Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

28169 3 weeks ago
parent
commit
18261e3efa

+ 4 - 4
src/xt_pages/outpatientTool/components/allgather.vue View File

473
         let name = order.name
473
         let name = order.name
474
         let item_name = order.item_name
474
         let item_name = order.item_name
475
         let pay_sumamt = order.price.toFixed(2)
475
         let pay_sumamt = order.price.toFixed(2)
476
-        let total = order.sum.toFixed(2)
476
+        // let total = order.sum.toFixed(2)
477
 
477
 
478
         let obj = {
478
         let obj = {
479
           '患者姓名': name,
479
           '患者姓名': name,
480
           '项目类别': item_name,
480
           '项目类别': item_name,
481
           '费用': pay_sumamt,
481
           '费用': pay_sumamt,
482
-          '费用总额': total
482
+          // '费用总额': total
483
         }
483
         }
484
         list.push(obj)
484
         list.push(obj)
485
       }
485
       }
486
       import('@/vendor/Export2Excel').then(excel => {
486
       import('@/vendor/Export2Excel').then(excel => {
487
-        const tHeader = ['患者姓名', '项目名称', '费用', '费用总额']
488
-        const filterVal = ['患者姓名', '项目名称', '费用', '费用总额']
487
+        const tHeader = ['患者姓名', '项目名称', '费用']
488
+        const filterVal = ['患者姓名', '项目名称', '费用']
489
         const data = this.formatJson(filterVal, list)
489
         const data = this.formatJson(filterVal, list)
490
         excel.export_json_to_excel1({
490
         excel.export_json_to_excel1({
491
           header: tHeader,
491
           header: tHeader,

+ 51 - 3
src/xt_pages/outpatientTool/gatherPrint.vue View File

270
                   arr[i].spec = arr[i].child[0].advice.drug.dose + arr[i].child[0].advice.drug.dose_unit + "*"+arr[i].child[0].advice.drug.min_number + arr[i].child[0].advice.drug.min_unit+"/"+arr[i].child[0].advice.drug.max_unit
270
                   arr[i].spec = arr[i].child[0].advice.drug.dose + arr[i].child[0].advice.drug.dose_unit + "*"+arr[i].child[0].advice.drug.min_number + arr[i].child[0].advice.drug.min_unit+"/"+arr[i].child[0].advice.drug.max_unit
271
                   arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
271
                   arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
272
                   arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
272
                   arr[i].cost_type = arr[i].child[0].advice.drug.drug_type
273
-                  arr[i].medical_insurance_level = arr[i].child[0].advice.drug.medical_insurance_level
273
+                  arr[i].medical_insurance_level = arr[i].child[0].chrgitm_lv
274
 
274
 
275
 
275
 
276
                }
276
                }
281
                     arr[i].name = arr[i].child[0].project.project.project_name
281
                     arr[i].name = arr[i].child[0].project.project.project_name
282
                     arr[i].spec = arr[i].child[0].project.project.project_name
282
                     arr[i].spec = arr[i].child[0].project.project.project_name
283
                     arr[i].unit = arr[i].child[0].project.project.unit
283
                     arr[i].unit = arr[i].child[0].project.project.unit
284
-                    arr[i].medical_insurance_level = arr[i].child[0].project.project.medical_coverage
284
+                    arr[i].medical_insurance_level = arr[i].child[0].chrgitm_lv
285
                     arr[i].cost_type = arr[i].child[0].project.project.cost_classify
285
                     arr[i].cost_type = arr[i].child[0].project.project.cost_classify
286
                   }
286
                   }
287
                   if(arr[i].child[0].project.type == 3){
287
                   if(arr[i].child[0].project.type == 3){
288
                     arr[i].name = arr[i].child[0].project.good_info.good_name
288
                     arr[i].name = arr[i].child[0].project.good_info.good_name
289
                     arr[i].spec = arr[i].child[0].project.good_info.specification_name
289
                     arr[i].spec = arr[i].child[0].project.good_info.specification_name
290
                     arr[i].unit = arr[i].child[0].project.good_info.packing_unit
290
                     arr[i].unit = arr[i].child[0].project.good_info.packing_unit
291
-                    arr[i].medical_insurance_level = arr[i].child[0].project.good_info.medical_insurance_level
291
+                    arr[i].medical_insurance_level = arr[i].child[0].chrgitm_lv
292
                     arr[i].cost_type = "材料费"
292
                     arr[i].cost_type = "材料费"
293
                   }
293
                   }
294
                }
294
                }
337
               this.tableList = new_arr
337
               this.tableList = new_arr
338
           }
338
           }
339
 
339
 
340
+
341
+
340
           if(this.$route.query.id == 1){
342
           if(this.$route.query.id == 1){
341
              var new_arr = []
343
              var new_arr = []
342
              for(let i=0;i<this.tableList.length;i++){
344
              for(let i=0;i<this.tableList.length;i++){
374
              }
376
              }
375
              this.tableList = []
377
              this.tableList = []
376
              this.tableList = new_arr
378
              this.tableList = new_arr
379
+
380
+            }
381
+
382
+            let tempList = []
383
+            for(let i = 0; i < this.tableList.length;i++){
384
+              if(this.tableList[i].cost_type == "西药"){
385
+                tempList.push(this.tableList[i])
386
+              }
387
+            }
388
+            for(let i = 0; i < this.tableList.length;i++){
389
+              if(this.tableList[i].cost_type == "治疗费"){
390
+                tempList.push(this.tableList[i])
391
+              }
392
+            }
393
+
394
+            for(let i = 0; i < this.tableList.length;i++){
395
+              if(this.tableList[i].cost_type == "材料费"){
396
+                tempList.push(this.tableList[i])
397
+              }
398
+            }
399
+
400
+            for(let i = 0; i < this.tableList.length;i++){
401
+              if(this.tableList[i].cost_type == "化验费"){
402
+                tempList.push(this.tableList[i])
403
+              }
404
+            }
405
+
406
+            for(let i = 0; i < this.tableList.length;i++){
407
+              if(this.tableList[i].cost_type == "检查费"){
408
+                tempList.push(this.tableList[i])
409
+              }
410
+            }
411
+
412
+            for(let i = 0; i < this.tableList.length;i++){
413
+              if(this.tableList[i].cost_type == "护理费"){
414
+                tempList.push(this.tableList[i])
415
+              }
416
+            }
417
+
418
+            for(let i = 0; i < this.tableList.length;i++){
419
+            if(this.tableList[i].cost_type != "材料费"  && this.tableList[i].cost_type != "西药" && this.tableList[i].cost_type != "护理费" && this.tableList[i].cost_type != "治疗费" && this.tableList[i].cost_type != "化验费"  && this.tableList[i].cost_type != "检查费" ){
420
+                tempList.push(this.tableList[i])
421
+              }
377
             }
422
             }
423
+            this.tableList = []
424
+            this.tableList = tempList
425
+
378
         }
426
         }
379
      })
427
      })
380
     },
428
     },