Przeglądaj źródła

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

28169 3 tygodni temu
rodzic
commit
18261e3efa

+ 4 - 4
src/xt_pages/outpatientTool/components/allgather.vue Wyświetl plik

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

+ 51 - 3
src/xt_pages/outpatientTool/gatherPrint.vue Wyświetl plik

@@ -270,7 +270,7 @@
270 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 271
                   arr[i].unit = arr[i].child[0].advice.prescribing_number_unit
272 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,14 +281,14 @@
281 281
                     arr[i].name = arr[i].child[0].project.project.project_name
282 282
                     arr[i].spec = arr[i].child[0].project.project.project_name
283 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 285
                     arr[i].cost_type = arr[i].child[0].project.project.cost_classify
286 286
                   }
287 287
                   if(arr[i].child[0].project.type == 3){
288 288
                     arr[i].name = arr[i].child[0].project.good_info.good_name
289 289
                     arr[i].spec = arr[i].child[0].project.good_info.specification_name
290 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 292
                     arr[i].cost_type = "材料费"
293 293
                   }
294 294
                }
@@ -337,6 +337,8 @@
337 337
               this.tableList = new_arr
338 338
           }
339 339
 
340
+
341
+
340 342
           if(this.$route.query.id == 1){
341 343
              var new_arr = []
342 344
              for(let i=0;i<this.tableList.length;i++){
@@ -374,7 +376,53 @@
374 376
              }
375 377
              this.tableList = []
376 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
     },