Hwt 2 years ago
parent
commit
6b0267da99
1 changed files with 19 additions and 7 deletions
  1. 19 7
      operationSupport/src/views/flow/index.vue

+ 19 - 7
operationSupport/src/views/flow/index.vue

@@ -138,7 +138,7 @@ export default {
           label: '业务类型',
           prop: 'businessType',
           format (val) {
-            let arr = ['', '安保巡更', '设备巡检', '运维工单'];
+            let arr = ['', '安保巡更', '设备巡检', '运维工单', '应收审核'];
             return arr[val];
           }
         },
@@ -146,13 +146,23 @@ export default {
           label: '任务类型',
           prop: 'taskType',
           format (val) {
-            let typeName = '',
-              isObj = taskTypeList.filter((item) => item.dictCode == val)[0];
-            debugger
-            if (!!isObj) {
-              typeName = isObj.dictValue;
+            if (val == 1) {
+              return '安保巡更'
+            } else if (val == '2') {
+              return '设备巡检'
+            } else if (val == '3') {
+              return '运维工单'
+            } else if (val == '4') {
+              return '应收审核'
             }
-            return typeName;
+            // debugger
+            // let typeName = '',
+            //   isObj = taskTypeList.filter((item) => item.dictCode == val)[0];
+
+            // if (!!isObj) {
+            //   typeName = isObj.dictValue;
+            // }
+            // return typeName;
           }
         },
         {
@@ -255,8 +265,10 @@ export default {
               taskTypeList = item.concat(data);
               this.$api.common.getDictionaryData('SC_WORK_ORDER_TYPE').then(({ msg, status, data }) => {
                 if (status == 0) {
+
                   taskTypeList = taskTypeList.concat(data);
                   this.$api.common.getDictionaryData('CZC_CHARGE_TYPE').then(({ msg, status, data }) => {
+
                     taskTypeList = taskTypeList.concat(data);
                   })
                 }