695593266@qq.com 9 luni în urmă
părinte
comite
3b570a3a2f
1 a modificat fișierele cu 7 adăugiri și 4 ștergeri
  1. 7 4
      src/views/workOrder/components/releaseDialog.vue

+ 7 - 4
src/views/workOrder/components/releaseDialog.vue

@@ -363,13 +363,13 @@
         tabLoading: false,
         dynamicName: '工位名称',
         form: {
-          assignType: 1,
+          assignType: '',
           crewIds: '',
           workstationIds: '',
           teamId: '',
           singleReport: '',
           workCenterId: '',
-          taskAss: 1,
+          taskAss: '',
           factoryName: '',
           factoryLineIds: ''
         },
@@ -546,6 +546,8 @@
     },
     watch: {},
     created() {
+      this.getDispatchMethod('dispatch_method');
+      this.getAssignmentMethod('assignment_method');
       // 时间计算规则code
       this.getCode();
       this.workCenterData(); // 查询工作中心
@@ -553,8 +555,6 @@
       this.queryCheckExists(); // 查询是否派单
       this.form.singleReport = this.clientEnvironmentId == 2 ? 0 : '';
       this.dateValue = this.getFormattedDate();
-      // this.getDispatchMethod('dispatch_method');
-      // this.getAssignmentMethod('assignment_method');
     },
     methods: {
       getCode() {
@@ -569,14 +569,17 @@
 
       async getDispatchMethod(code) {
         await parameterGetByCode({ code }).then((res) => {
+          console.log(res, '返回的数据111');
           if (res) {
             this.form.taskAss = res.value == '0' ? 0 : 1;
+            console.log(this.form.taskAss, 'this.form.taskAss');
           }
         });
       },
 
       async getAssignmentMethod(code) {
         await parameterGetByCode({ code }).then((res) => {
+          console.log(res, '返回的数据222');
           if (res) {
             this.form.assignType =
               res.value == '0' ? 0 : res.value == '1' ? 1 : 2;