gjy 3 年之前
父節點
當前提交
214fe149f4
共有 2 個文件被更改,包括 11 次插入1 次删除
  1. 1 0
      src/views/newTask/listPage.vue
  2. 10 1
      src/views/workNotification/utils/index.js

+ 1 - 0
src/views/newTask/listPage.vue

@@ -390,6 +390,7 @@ export default {
           data.noticeTaskStatus,
           this.typeShow
         )
+        console.log(url)
         if (!url) {
           EventBus.$emit('error', this.$t('workNotification.noRelatedType'))
         } else {

+ 10 - 1
src/views/workNotification/utils/index.js

@@ -15,6 +15,9 @@ export function code2Url (type, code, state) {
     // 判断 销售
     case 'SALE':
       return sale(code, state)
+      // 判断 运输
+    case 'Tran':
+      return tran(code, state)
     default:
       return ''
   }
@@ -795,7 +798,13 @@ export function sale (code, state) {
   }
   return undefined
 }
-
+export function tran (code, state) {
+  if (code === 'TRAN-TASK-APPROVE') {
+    // 运输单价
+    return 'vehicleDispatching'
+  }
+  return undefined
+}
 // 调度
 export function checkDispatch (code, state) {
   let url = ''