Ver Fonte

修改派单方式

695593266@qq.com há 9 meses atrás
pai
commit
44b352d39c
1 ficheiros alterados com 11 adições e 1 exclusões
  1. 11 1
      src/views/workOrder/components/releaseDialog.vue

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

@@ -548,12 +548,13 @@
     created() {
       this.getDispatchMethod('dispatch_method');
       this.getAssignmentMethod('assignment_method');
+      this.getReportType('report_type');
       // 时间计算规则code
       this.getCode();
       this.workCenterData(); // 查询工作中心
       this.getClassesData(); // 查询班次
       this.queryCheckExists(); // 查询是否派单
-      this.form.singleReport = this.clientEnvironmentId == 2 ? 0 : '';
+      // this.form.singleReport = this.clientEnvironmentId == 2 ? 0 : '';
       this.dateValue = this.getFormattedDate();
     },
     methods: {
@@ -567,6 +568,15 @@
         });
       },
 
+      async getReportType(code) {
+        await parameterGetByCode({ code }).then((res) => {
+          if (res) {
+            this.form.singleReport =
+              this.clientEnvironmentId == 2 ? 0 : res.value == '0' ? 0 : 1;
+          }
+        });
+      },
+
       async getDispatchMethod(code) {
         await parameterGetByCode({ code }).then((res) => {
           if (res) {