see999 3 лет назад
Родитель
Сommit
d3ab436452
1 измененных файлов: 43 добавлений и 43 удалений
  1. 43 43
      src/xt_pages/outpatientCharges/listTemplate/printTwo.vue

+ 43 - 43
src/xt_pages/outpatientCharges/listTemplate/printTwo.vue Просмотреть файл

@@ -69,7 +69,7 @@
69 69
       <div style="width:10%;text-align:center;">自费</div>
70 70
       <div style="width:10%;text-align:center;">自费比例</div>
71 71
     </div>
72
-    <div style="border-bottom:1px solid #000;padding:10px 0;display:flex;" v-for="(newItem,index) in obj"
72
+    <div style="border-bottom:1px solid #000;padding:10px 0;display:flex;" v-for="(newItem,index) in Object.keys(obj)"
73 73
          :key="index">
74 74
          <div>
75 75
              <span v-if="Object.keys(obj)[index] == 'med_chrgitm_type01'">床位费</span>
@@ -159,9 +159,9 @@ export default {
159 159
     },
160 160
     created(){
161 161
         // let obj = {
162
-        //     检查费:[{name:1,age:2},{name:'张三',age:41}],
163
-        //     床位费:[{name:3,age:4}],
164
-        //     检验费:[{name:5,age:6}],
162
+        //     med_chrgitm_type01:[{name:1,age:2},{name:'张三',age:41}],
163
+        //     med_chrgitm_type03:[{name:3,age:4}],
164
+        //     med_chrgitm_type04:[{name:5,age:6}],
165 165
         // }
166 166
         // this.obj = obj
167 167
         // console.log(1111,Object.values(obj))
@@ -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