seimin před 1 rokem
rodič
revize
ba31239277

+ 1 - 1
pages/outpatient/outpatientEndSignIn/outpatientEndSignIn.vue

@@ -153,7 +153,7 @@
153
       if(options.model){
153
       if(options.model){
154
         this.infoData = JSON.parse(options.model);
154
         this.infoData = JSON.parse(options.model);
155
         this.orderList = this.infoData.orderList || [];
155
         this.orderList = this.infoData.orderList || [];
156
-        this.deptName = this.infoData.deptName;
156
+        this.deptName = this.infoData.department ? this.infoData.department.dept : '';
157
         console.log(this.infoData);
157
         console.log(this.infoData);
158
       }
158
       }
159
       this.getTaskTypeConfig();
159
       this.getTaskTypeConfig();

+ 3 - 2
pages/outpatient/outpatientEndTaskType/outpatientEndTaskType.vue

@@ -60,7 +60,7 @@
60
           mask: true,
60
           mask: true,
61
         });
61
         });
62
         let postData = {workOrders: []};
62
         let postData = {workOrders: []};
63
-        this.addServiceTasks.forEach(v => {
63
+        this.addServiceTasks.filter(v => v.checked).forEach(v => {
64
           postData.workOrders.push({
64
           postData.workOrders.push({
65
               "sourceId": 4,
65
               "sourceId": 4,
66
               "taskType": {
66
               "taskType": {
@@ -92,12 +92,13 @@
92
           values = e.detail.value;
92
           values = e.detail.value;
93
         for (var i = 0, lenI = items.length; i < lenI; ++i) {
93
         for (var i = 0, lenI = items.length; i < lenI; ++i) {
94
           const item = items[i]
94
           const item = items[i]
95
-          if(values.includes(item.value)){
95
+          if(values.includes(item.id)){
96
             this.$set(item,'checked',true)
96
             this.$set(item,'checked',true)
97
           }else{
97
           }else{
98
             this.$set(item,'checked',false)
98
             this.$set(item,'checked',false)
99
           }
99
           }
100
         }
100
         }
101
+        console.log(e, this.addServiceTasks);
101
       },
102
       },
102
       // 获取检查页面控制
103
       // 获取检查页面控制
103
       getTaskTypeConfig(){
104
       getTaskTypeConfig(){