瀏覽代碼

工业工程修改施工信息、审核

wangzhe 1 年之前
父節點
當前提交
c6c06c6888
共有 1 個文件被更改,包括 17 次插入16 次删除
  1. 17 16
      src/views/zdsz/engineeringGY/index.vue

+ 17 - 16
src/views/zdsz/engineeringGY/index.vue

@@ -895,6 +895,21 @@ export default {
     });
   },
   methods: {
+    getDictChild(dict){
+      let str = '';
+      if (dict == '室内管线') {
+        str = 'gy_inner'
+      } else if (dict == '庭院') {
+        str = 'gy_out'
+      // } else if (dict == '调压柜') {
+      //   str = 'gy_tyg'
+      } else if (dict == '架空管线') {
+        str = 'gy_jkgx'
+      } else if (dict == '每日施工日志') {
+        str = 'gy_log_every_day'
+      }
+      return str;
+    },
     getSceneHeadList(param){
       this.form.projectHead = param.split(',')[0];
       this.form.sceneHead = "";
@@ -1124,14 +1139,7 @@ export default {
       console.log('历史',e)
       this.currentId = e.id
       if (!e.enginClassification)return;
-      let str = '';
-      if (e.enginClassification == '室内管线') {
-        str = 'gy_inner'
-      } else if (e.enginClassification == '庭院') {
-        str = 'gy_out'
-      } else if (e.enginClassification == '调压柜') {
-        str = 'gy_tyg'
-      }
+      let str = this.getDictChild(e.enginClassification);
       const r = await getDicts(str)
       let dict = []
       for (let i = 0; i < r.data.length; i++) {
@@ -1150,14 +1158,7 @@ export default {
     async updateviewSource(e) {
       this.currentId = e.id
       if (!e.enginClassification)return;
-      let str = '';
-      if (e.enginClassification == '室内管线') {
-        str = 'gy_inner'
-      } else if (e.enginClassification == '庭院') {
-        str = 'gy_out'
-      } else if (e.enginClassification == '调压柜') {
-        str = 'gy_tyg'
-      }
+      let str = this.getDictChild(e.enginClassification);
       const r = await getDicts(str)
       let dict = []
       for (let i = 0; i < r.data.length; i++) {