see999 3 years ago
parent
commit
8e5b364b1e
1 changed files with 39 additions and 39 deletions
  1. 39 39
      src/xt_pages/outpatientCharges/listTemplate/printTwo.vue

+ 39 - 39
src/xt_pages/outpatientCharges/listTemplate/printTwo.vue View File

@@ -200,47 +200,47 @@ export default {
200 200
 
201 201
     },
202 202
     watch:{
203
-        // "order_infos.order_infos":{
204
-        //     handler(newVal){
205
-        //         let obj = {
206
-        //             'med_chrgitm_type01':[],
207
-        //             'med_chrgitm_type03':[],
208
-        //             'med_chrgitm_type04':[],
209
-        //             'med_chrgitm_type05':[],
210
-        //             'med_chrgitm_type06':[],
211
-        //             'med_chrgitm_type08':[],
212
-        //             'med_chrgitm_type09':[],
213
-        //             'med_chrgitm_type11':[],
214
-        //             'med_chrgitm_type14':[],
215
-        //         }
216
-        //         newVal.map(item => {
203
+        "order_infos.order_infos":{
204
+            handler(newVal){
205
+                let obj = {
206
+                    'med_chrgitm_type01':[],
207
+                    'med_chrgitm_type03':[],
208
+                    'med_chrgitm_type04':[],
209
+                    'med_chrgitm_type05':[],
210
+                    'med_chrgitm_type06':[],
211
+                    'med_chrgitm_type08':[],
212
+                    'med_chrgitm_type09':[],
213
+                    'med_chrgitm_type11':[],
214
+                    'med_chrgitm_type14':[],
215
+                }
216
+                newVal.map(item => {
217 217
                     
218
-        //             if(item.med_chrgitm_type == '01'){
219
-        //                 obj.med_chrgitm_type01.push(item)
220
-        //             }else if(item.med_chrgitm_type == '03'){
221
-        //                 obj.med_chrgitm_type03.push(item)
222
-        //             }else if(item.med_chrgitm_type == '04'){
223
-        //                 obj.med_chrgitm_type04.push(item)
224
-        //             }else if(item.med_chrgitm_type == '05'){
225
-        //                 obj.med_chrgitm_type05.push(item)
226
-        //             }else if(item.med_chrgitm_type == '06'){
227
-        //                 obj.med_chrgitm_type06.push(item)
228
-        //             }else if(item.med_chrgitm_type == '08'){
229
-        //                 obj.med_chrgitm_type08.push(item)
230
-        //             }else if(item.med_chrgitm_type == '09'){
231
-        //                 obj.med_chrgitm_type09.push(item)
232
-        //             }else if(item.med_chrgitm_type == '11'){
233
-        //                 obj.med_chrgitm_type11.push(item)
234
-        //             }else if(item.med_chrgitm_type == '14'){
235
-        //                 obj.med_chrgitm_type14.push(item)
236
-        //             }
218
+                    if(item.med_chrgitm_type == '01'){
219
+                        obj.med_chrgitm_type01.push(item)
220
+                    }else if(item.med_chrgitm_type == '03'){
221
+                        obj.med_chrgitm_type03.push(item)
222
+                    }else if(item.med_chrgitm_type == '04'){
223
+                        obj.med_chrgitm_type04.push(item)
224
+                    }else if(item.med_chrgitm_type == '05'){
225
+                        obj.med_chrgitm_type05.push(item)
226
+                    }else if(item.med_chrgitm_type == '06'){
227
+                        obj.med_chrgitm_type06.push(item)
228
+                    }else if(item.med_chrgitm_type == '08'){
229
+                        obj.med_chrgitm_type08.push(item)
230
+                    }else if(item.med_chrgitm_type == '09'){
231
+                        obj.med_chrgitm_type09.push(item)
232
+                    }else if(item.med_chrgitm_type == '11'){
233
+                        obj.med_chrgitm_type11.push(item)
234
+                    }else if(item.med_chrgitm_type == '14'){
235
+                        obj.med_chrgitm_type14.push(item)
236
+                    }
237 237
                     
238
-        //         })
239
-        //         this.obj = obj
240
-        //         console.log('this.obj',this.obj)
241
-        //     },
242
-        //     deep:true
243
-        // }
238
+                })
239
+                this.obj = obj
240
+                console.log('this.obj',this.obj)
241
+            },
242
+            deep:true
243
+        }
244 244
     }
245 245
 }
246 246