zhangyuewww 3 rokov pred
rodič
commit
5f9ab3ae4a
1 zmenil súbory, kde vykonal 14 pridanie a 2 odobranie
  1. 14 2
      src/views/workNotification/utils/index.js

+ 14 - 2
src/views/workNotification/utils/index.js

@@ -2,6 +2,7 @@ import HandleType from '../types/handleType'
 
 // 根据业务类型和业务码获取对应url
 export function code2Url (type, code, state) {
+  console.log(type,code)
   switch (type) {
     // 判断 出入库
     case 'INOUTTASK':
@@ -23,13 +24,24 @@ export function code2Url (type, code, state) {
       return payment(code, state)
     case 'TRADE':
       return warehouseReceiptRegulation(code, state)
-      case 'ROLE':
+    case 'ROLE':
       return stock(code, state)
+    case 'TRANSPORTATION':
+      return trantask(code,state)
     default:
       return ''
   }
 }
-
+// 运输任务
+export function trantask(code, state){
+  let url = ''
+  switch (code) {
+    case 'TRANSPORTATION-SETTLEMENT-REPORT':
+      url = 'applicationDetail'
+      break
+  }
+  return url
+}
 export function checkNavigation (code, state) {
   // 航海
   let url = ''