695593266@qq.com 10 месяцев назад
Родитель
Сommit
3911c390b2
2 измененных файлов с 22 добавлено и 3 удалено
  1. 20 1
      src/views/workOrder/components/releaseDialog.vue
  2. 2 2
      vue.config.js

+ 20 - 1
src/views/workOrder/components/releaseDialog.vue

@@ -551,8 +551,10 @@
       this.workCenterData(); // 查询工作中心
       this.getClassesData(); // 查询班次
       this.queryCheckExists(); // 查询是否派单
-      // this.form.singleReport = this.clientEnvironmentId == 2 ? 0 : 1;
+      this.form.singleReport = this.clientEnvironmentId == 2 ? 0 : '';
       this.dateValue = this.getFormattedDate();
+      // this.getDispatchMethod('dispatch_method');
+      // this.getAssignmentMethod('assignment_method');
     },
     methods: {
       getCode() {
@@ -563,6 +565,23 @@
             this.time_calc_code = res.value || '0';
           }
         });
+      },
+
+      async getDispatchMethod(code) {
+        await parameterGetByCode({ code }).then((res) => {
+          if (res) {
+            this.form.taskAss = res.value == '0' ? 0 : 1;
+          }
+        });
+      },
+
+      async getAssignmentMethod(code) {
+        await parameterGetByCode({ code }).then((res) => {
+          if (res) {
+            this.form.assignType =
+              res.value == '0' ? 0 : res.value == '1' ? 1 : 2;
+          }
+        });
       }
     }
   };

+ 2 - 2
vue.config.js

@@ -36,10 +36,10 @@ module.exports = {
         // target: 'http://192.168.1.158:18086',
         // target: 'http://192.168.158:18086',
         // target: 'http://192.168.1.251:18086',
-        target: 'http://192.168.1.144:18086',
+        // target: 'http://192.168.1.144:18086',
         // target: 'http://192.168.1.211:18086',
         // target: 'http://192.168.1.251:18186',
-        // target: 'http://192.168.1.125:18086',
+        target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.116:18086',
 
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域