Browse Source

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

28169 1 month ago
parent
commit
18dbf05771

+ 7 - 0
src/api/his/his.js View File

@@ -895,6 +895,13 @@ export function summary2(params) {
895 895
     params: params
896 896
   })
897 897
 }
898
+export function list_batch(id) {
899
+  return request({
900
+    url: '/api/batch/orderlist?id='+id,
901
+    method: 'get',
902
+    // params: params
903
+  })
904
+}
898 905
 
899 906
 
900 907
 

+ 8 - 0
src/router/modules/outpatientCharges.js View File

@@ -85,5 +85,13 @@ export default {
85 85
         name: 'outpatientChargesPrint',
86 86
         meta: { title: 'outpatientChargesPrint', noCache: true }
87 87
     },
88
+    {
89
+      path: '/listTemplate/batch_listPrint',
90
+      component: () => import('@/xt_pages/outpatientCharges/listTemplate/batch_listPrint'),
91
+      hidden: true,
92
+      is_menu: false,
93
+      name: 'outpatientChargesPrint',
94
+      meta: { title: 'outpatientChargesPrint', noCache: true }
95
+  },
88 96
   ]
89 97
 }

+ 3 - 3
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue View File

@@ -2568,7 +2568,7 @@
2568 2568
                       </div>
2569 2569
                     </div>
2570 2570
 
2571
-                    <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
2571
+                    <div class="row" style="padding: 2px 0; line-height: 23px; display: flex" v-if="org_id!=10735 && org_id!=0">
2572 2572
                       <div class="inline_block" style="flex: 1; display: inline-block">
2573 2573
                         宣教知识:
2574 2574
                         <div class="under_line" style="
@@ -2850,12 +2850,12 @@
2850 2850
                         </div>
2851 2851
                       </div>
2852 2852
 
2853
-                      <div class="inline_block" style="flex: 1" v-if="org_id == 10579">
2853
+                      <!-- <div class="inline_block" style="flex: 1" v-if="org_id == 10579">
2854 2854
                         患者签名:
2855 2855
                         <div class="under_line" style="width: 80px; text-align: center">
2856 2856
 
2857 2857
                         </div>
2858
-                      </div>
2858
+                      </div> -->
2859 2859
                       <div class="inline_block" style="flex: 1">
2860 2860
                         治疗医生:
2861 2861
                         <div class="under_line" style="width: 80px; text-align: center">

+ 5 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue View File

@@ -2268,7 +2268,7 @@
2268 2268
                         </span>
2269 2269
                         <span v-if="org_id == 10460">
2270 2270
                           透析中入量
2271
-                          <span v-if="org_id!=10644">(ml)</span> 
2271
+                          <span v-if="org_id!=10644">(ml)</span>
2272 2272
2273 2273
                         </span>
2274 2274
                         <div class="under_line" style="width: 70px; text-align: center">
@@ -2388,7 +2388,7 @@
2388 2388
                       <div class="inline_block" style="flex: 1; display: inline-block">
2389 2389
                         治疗小结:
2390 2390
                         <div class="under_line" style="
2391
-                            width: 860px;
2391
+                            width: 85%;
2392 2392
                             line-height: 25px;
2393 2393
                             text-align: left;
2394 2394
                             margin-left: 2px;
@@ -2403,7 +2403,7 @@
2403 2403
                         </div>
2404 2404
                       </div>
2405 2405
                     </div>
2406
-                    <div v-if="org_id != 10460 && org_id != 10624" class="row"
2406
+                    <div v-if="org_id != 10460 && org_id != 10624 && org_id!=10735 " class="row"
2407 2407
                       style="padding: 2px 0; line-height: 23px; display: flex">
2408 2408
                       <div class="inline_block" style="flex: 1; display: inline-block">
2409 2409
                         宣教知识:
@@ -2806,13 +2806,13 @@
2806 2806
                             " alt="" srcset="" v-else />
2807 2807
                         </div>
2808 2808
                       </div>
2809
-                      <div class="inline_block" style="flex: 1" v-if="org_id == 10579">
2809
+                      <!-- <div class="inline_block" style="flex: 1" v-if="org_id == 10579">
2810 2810
                         患者签名
2811 2811
                         <div class="under_line" style="width: 80px; text-align: center">
2812 2812
 
2813 2813
 
2814 2814
                         </div>
2815
-                      </div>
2815
+                      </div> -->
2816 2816
                       <div class="inline_block" style="flex: 1">
2817 2817
                         治疗医生:
2818 2818
                         <div v-if="org_id == 10191" class="under_line" style="width: 80px; text-align: center">

File diff suppressed because it is too large
+ 1987 - 1772
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue


File diff suppressed because it is too large
+ 1220 - 865
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyFour.vue


+ 238 - 164
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySeven.vue View File

@@ -794,7 +794,7 @@
794 794
                                   <span v-if="prescription.anticoagulant == '肝素钠'">&nbsp;肝素钠</span>
795 795
                                 </div>
796 796
                               </td>
797
-                             
797
+
798 798
 
799 799
                               <td width="50">首剂量</td>
800 800
                               <td width="60">
@@ -843,7 +843,7 @@
843 843
                                   <span v-if="prescription.anticoagulant == '低分子量肝素钙'">mg</span>
844 844
                                   <span v-if="prescription.anticoagulant == '肝素钠'">mg</span>
845 845
                               </td>
846
-                             
846
+
847 847
                             </tr>
848 848
                           </tbody>
849 849
                         </table>
@@ -1175,10 +1175,6 @@
1175 1175
           </tbody>
1176 1176
         </table>
1177 1177
         <div style="page-break-after: always;"></div>
1178
-
1179
-
1180
-
1181
-
1182 1178
       </div>
1183 1179
       <div id='new-dialysis-2' class="dialysis-print-order">
1184 1180
         <!-- <div class="order-yy-name"></div> -->
@@ -1425,168 +1421,234 @@ export default {
1425 1421
   },
1426 1422
   methods: {
1427 1423
     checkData(){
1424
+      var checkdata=[]
1428 1425
       if(this.receiverTreatmentAccess.way == 0){
1429
-        this.$message.error('入科方式未填')
1430
-      }else if(this.receiverTreatmentAccess.consciousness == 0){
1431
-        this.$message.error('意识未填')
1432
-      }else if(this.predialysis.is_hemorrhage == 0){
1433
-        this.$message.error('出血未填')
1434
-      }else if(this.predialysis.is_hemorrhage == 1 && this.predialysis.hemorrhage == ""){
1435
-        this.$message.error('出血选项未填')
1436
-      }else if(this.prescription.body_fluid == 0 || this.predialysis.humor_excessive_symptom == ""){
1437
-        this.$message.error('体液过多症状未填')
1438
-      }else if(this.predialysis.special_medicine == 0){
1439
-        this.$message.error('透析前使用特殊药物未填')
1440
-      }else if(this.predialysis.blood_access_part_opera_name == ''){
1441
-        this.$message.error('通路类型未填')
1442
-      }else if(this.predialysis.puncture_way == ''){
1443
-        this.$message.error('穿刺方法未填')
1444
-      }else if(this.predialysis.catheter == ''){
1445
-        this.$message.error('导管或导管出口处未填')
1446
-      }else if(this.predialysis.internal_fistula == ''){
1447
-        this.$message.error('内瘘震颤未填')
1448
-      }else if(this.predialysis.internal_fistula_skin == ''){
1449
-        this.$message.error('内瘘皮肤情况未填')
1450
-      }else if(this.predialysis.venous_catheterization == 0){
1451
-        this.$message.error('中心静脉置管未填')
1452
-      }else if(this.predialysis.blood_access_part_id == ''){
1453
-        this.$message.error('血管通路位置未填')
1454
-      }else if(this.predialysis.thromubus_type == 0){
1455
-        this.$message.error('血栓未填')
1456
-      }else if(this.predialysis.thrombus_av == ''){
1457
-        this.$message.error('导管AV端未填')
1458
-      }else if(this.predialysis.thromubus_a == ''){
1459
-        this.$message.error('a端未填')
1460
-      }else if(this.predialysis.thromubus_v == ''){
1461
-        this.$message.error('v端未填')
1462
-      }else if(this.predialysis.temperature == ""){
1463
-        this.$message.error('透前体温未填')
1464
-      }else if(this.predialysis.pulse_frequency == ""){
1465
-        this.$message.error('透前脉搏未填')
1466
-      }else if(this.predialysis.breathing_rate == ""){
1467
-        this.$message.error('透前呼吸频率未填')
1468
-      }else if(this.predialysis.systolic_blood_pressure == 0){
1469
-        this.$message.error('收缩压未填完整')
1470
-      }else if(this.predialysis.diastolic_blood_pressure == 0){
1471
-        this.$message.error('舒张压未填完整')
1472
-      }else if(this.predialysis.weight_before == 0){
1473
-        this.$message.error('本次透前体重未填')
1474
-      }else if(this.predialysis.dry_weight == 0){
1475
-        this.$message.error('干体重未填')
1476
-      }else if(this.assessmentafter.weight_after == 0){
1477
-        this.$message.error('上次透后体重未填')
1478
-      }else if(this.afterdialysis.weight_after == 0){
1479
-        this.$message.error('本次透后体重未填')
1480
-      }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1481
-        this.$message.error('计划时间未填')
1482
-      }else if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1483
-        this.$message.error('机面治疗时间未填')
1484
-      }else if(this.prescription.target_ultrafiltration == 0){
1485
-        this.$message.error('预设超滤量未填')
1486
-      }else if(this.afterdialysis.actual_ultrafiltration == 0){
1487
-        this.$message.error('机面超滤量未填')
1488
-      }else if(this.prescription.mode_id == ""){
1489
-        this.$message.error('治疗方式未填')
1490
-      }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
1491
-        this.$message.error('透析器或灌流器未填')
1492
-      }else if(this.prescription.anticoagulant == 0){
1493
-        this.$message.error('抗凝方式未填')
1494
-      }else if(this.prescription.dialysate_formulation_name == ""){
1495
-        this.$message.error('透析液配方未填')
1496
-      }else if(this.afterdialysis.return_blood == 0){
1497
-        this.$message.error('回血未填')
1498
-      }else if(this.afterdialysis.rehydration_volume == 0){
1499
-        this.$message.error('补液量未填')
1500
-      }else if(this.afterdialysis.dialysis_during == 0){
1501
-        this.$message.error('透析中进食量未填')
1502
-      }else if(this.afterdialysis.stroke_volume == 0){
1503
-        this.$message.error('出量未填')
1504
-      }else if(this.prescription.prescription_doctor == 0){
1505
-        this.$message.error('主管医生未填')
1506
-      }else if(this.dialysisOrder.puncture_nurse == 0){
1507
-        this.$message.error('穿刺/开管护士未填')
1508
-      }else if(this.check.modifier == 0){
1509
-        this.$message.error('核对护士未填')
1510
-      }else if(this.afterdialysis.internal_fistula == ''){
1511
-        this.$message.error('透后内瘘震颤未填')
1512
-      }else if(this.afterdialysis.catheter == ''){
1513
-        this.$message.error('置管口未填')
1514
-      }else if(this.afterdialysis.blood_flow == 0){
1515
-        this.$message.error('血流量未填')
1516
-      }else if(this.afterdialysis.sealing_fluid_dispose == ""){
1517
-        this.$message.error('封管液配置未填')
1518
-      }else if(this.afterdialysis.cvc_a == 0){
1519
-        this.$message.error('封管量A端未填')
1520
-      }else if(this.afterdialysis.cvc_v == 0){
1521
-        this.$message.error('封管量V端未填')
1522
-      }else if(this.afterdialysis.catheter == ""){
1523
-        this.$message.error('打折和吸壁未填')
1524
-      }else if(this.afterdialysis.catheter != "" && this.afterdialysis.catheter.indexOf('打折') == -1){
1525
-        this.$message.error('打折未填')
1526
-      }else if(this.afterdialysis.catheter != "" && this.afterdialysis.catheter.indexOf('吸壁') == -1){
1527
-        this.$message.error('吸壁未填')
1528
-      }else if(this.afterdialysis.cruor == ""){
1529
-        this.$message.error('透析器凝血未填')
1530
-      }else if(this.afterdialysis.arterial_tube == 0){
1531
-        this.$message.error('动脉管道未填')
1532
-      }else if(this.afterdialysis.intravenous_tube == 0){
1533
-        this.$message.error('静脉管道未填')
1534
-      }else if(this.afterdialysis.complication == ""){
1535
-        this.$message.error('透后并发症未填')
1536
-      }else if(this.summary.special_record == ""){
1537
-        this.$message.error('特殊记录未填')
1538
-      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1539
-        this.$message.error('当班责任护士未填')
1540
-      }else if(this.dialysisOrder.finish_nurse == 0){
1541
-        this.$message.error('下机护士未填')
1542
-      }else if(this.tableAdvice.length > 0){
1543
-        let num = 0
1544
-        if(this.tableAdvice.length > 0){
1545
-          this.tableAdvice.map(item => {
1546
-            if(item.id > 0 && (item.created_time || item.start_time)){
1547
-              this.users.map(it => {
1548
-                if(it.id == item.advice_doctor){
1549
-                  if(it.user_type == 3){
1550
-                    num++
1551
-                    this.$message.closeAll()
1552
-                    this.$message.error('存在不是医生保存的医嘱')
1553
-                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1554
-                    if(it.user_type == 2){
1555
-                      num++
1556
-                      this.$message.closeAll()
1557
-                      this.$message.error('存在不是护士执行的医嘱')
1558
-                    }
1559
-                  }else if(it.id == item.checker && item.checker > 0){
1560
-                    if(it.user_type == 2){
1561
-                      num++
1562
-                      this.$message.closeAll()
1563
-                      this.$message.error('存在不是护士核对的医嘱')
1564
-                    }
1565
-                  }
1566
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1567
-                  if(it.user_type == 2){
1568
-                    num++
1569
-                    this.$message.closeAll()
1570
-                    this.$message.error('存在不是护士执行的医嘱')
1571
-                  }
1572
-                }else if(it.id == item.checker && item.checker > 0){
1573
-                  if(it.user_type == 2){
1574
-                    num++
1575
-                    this.$message.closeAll()
1576
-                    this.$message.error('存在不是护士核对的医嘱')
1577
-                  }
1578
-                }
1579
-              })
1580
-            }
1581
-        })
1582
-        }
1426
+        const obj='入科方式'
1427
+        checkdata.push(obj)
1428
+      } if(this.receiverTreatmentAccess.consciousness == 0){
1429
+        const obj0='意识'
1430
+        checkdata.push(obj0)
1431
+      } if(this.predialysis.is_hemorrhage == 0){
1432
+        const obj1='出血'
1433
+        checkdata.push(obj1)
1434
+      } if(this.predialysis.is_hemorrhage == 1 && this.predialysis.hemorrhage == ""){
1435
+        const obj2='出血选项'
1436
+        checkdata.push(obj2)
1437
+      } if(this.prescription.body_fluid == 0 || this.predialysis.humor_excessive_symptom == ""){
1438
+        const obj3='体液过多症状'
1439
+        checkdata.push(obj3)
1440
+      } if(this.predialysis.special_medicine == 0){
1441
+        const obj4='透析前使用特殊药物'
1442
+        checkdata.push(obj4)
1443
+      } if(this.predialysis.blood_access_part_opera_name == ''){
1444
+        const obj5='通路类型'
1445
+        checkdata.push(obj5)
1446
+      } if(this.predialysis.puncture_way == ''){
1447
+        const obj6='穿刺方法'
1448
+        checkdata.push(obj6)
1449
+      } if(this.predialysis.catheter == ''){
1450
+        const obj7='导管'
1451
+        checkdata.push(obj7)
1452
+      } if(this.predialysis.internal_fistula == ''){
1453
+        const obj8='内瘘震颤'
1454
+        checkdata.push(obj8)
1455
+      } if(this.predialysis.internal_fistula_skin == ''){
1456
+        const obj9='内瘘皮肤情况'
1457
+        checkdata.push(obj9)
1458
+      } if(this.predialysis.venous_catheterization == 0){
1459
+        const obj10='中心静脉置管'
1460
+        checkdata.push(obj10)
1461
+      } if(this.predialysis.blood_access_part_id == ''){
1462
+        const obj11='血管通路位置'
1463
+        checkdata.push(obj11)
1464
+      } if(this.predialysis.thromubus_type == 0){
1465
+        const obj12='血栓'
1466
+        checkdata.push(obj12)
1467
+      } if(this.predialysis.thrombus_av == ''){
1468
+        const obj13='导管AV端'
1469
+        checkdata.push(obj13)
1470
+      } if(this.predialysis.thromubus_a == ''){
1471
+        const obj14='a端'
1472
+        checkdata.push(obj14)
1473
+      } if(this.predialysis.thromubus_v == ''){
1474
+        const obj15='v端'
1475
+        checkdata.push(obj15)
1476
+      } if(this.predialysis.temperature == ""){
1477
+        const obj16='透前体温'
1478
+        checkdata.push(obj16)
1479
+      } if(this.predialysis.pulse_frequency == ""){
1480
+        const obj17='透前脉搏'
1481
+        checkdata.push(obj17)
1482
+      } if(this.predialysis.breathing_rate == ""){
1483
+        const obj18='透前呼吸频率'
1484
+        checkdata.push(obj18)
1485
+      } if(this.predialysis.systolic_blood_pressure == 0){
1486
+        const obj19='收缩压'
1487
+        checkdata.push(obj19)
1488
+      } if(this.predialysis.diastolic_blood_pressure == 0){
1489
+        const obj20='舒张压'
1490
+        checkdata.push(obj20)
1491
+      } if(this.predialysis.weight_before == 0){
1492
+        const obj21='本次透前体重'
1493
+        checkdata.push(obj21)
1494
+      } if(this.predialysis.dry_weight == 0){
1495
+        const obj22='干体重'
1496
+        checkdata.push(obj22)
1497
+      } if(this.assessmentafter.weight_after == 0){
1498
+        const obj23='上次透后体重'
1499
+        checkdata.push(obj23)
1500
+      } if(this.afterdialysis.weight_after == 0){
1501
+        const obj24='本次透后体重'
1502
+        checkdata.push(obj24)
1503
+      } if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1504
+        const obj25='计划时间'
1505
+        checkdata.push(obj25)
1506
+      } if(this.afterdialysis.actual_treatment_hour == 0 && this.afterdialysis.actual_treatment_minute == 0){
1507
+        const obj26='机面治疗时间'
1508
+        checkdata.push(obj26)
1509
+      } if(this.prescription.target_ultrafiltration == 0){
1510
+        const obj27='预设超滤量'
1511
+        checkdata.push(obj27)
1512
+      } if(this.afterdialysis.actual_ultrafiltration == 0){
1513
+        const obj28='机面超滤量'
1514
+        checkdata.push(obj28)
1515
+      } if(this.prescription.mode_id == ""){
1516
+        const obj29='治疗方式'
1517
+        checkdata.push(obj29)
1518
+      } if(this.prescription.dialyzer_perfusion_apparatus == ""){
1519
+        const obj30='透析器或灌流器'
1520
+        checkdata.push(obj30)
1521
+      } if(this.prescription.anticoagulant == 0){
1522
+        const obj31='抗凝方式'
1523
+        checkdata.push(obj31)
1524
+      } if(this.prescription.dialysate_formulation_name == ""){
1525
+        const obj32='透析液配方'
1526
+        checkdata.push(obj32)
1527
+      } if(this.afterdialysis.return_blood == 0){
1528
+        const obj33='回血'
1529
+        checkdata.push(obj33)
1530
+      } if(this.afterdialysis.rehydration_volume == 0){
1531
+        const obj34='补液量'
1532
+        checkdata.push(obj34)
1533
+      } if(this.afterdialysis.dialysis_during == 0){
1534
+        const obj35='透析中进食量'
1535
+        checkdata.push(obj35)
1536
+      } if(this.afterdialysis.stroke_volume == 0){
1537
+        const obj36='出量'
1538
+        checkdata.push(obj36)
1539
+      } if(this.prescription.prescription_doctor == 0){
1540
+        const obj37='主管医生'
1541
+        checkdata.push(obj37)
1542
+      } if( this.dialysisOrder ==null || this.dialysisOrder.puncture_nurse == 0){
1543
+        const obj38='穿刺/开管护士'
1544
+        checkdata.push(obj38)
1545
+      } if(this.check.modifier == 0){
1546
+        const obj39='核对护士'
1547
+        checkdata.push(obj39)
1548
+      } if(this.afterdialysis.internal_fistula == ''){
1549
+        const obj40='透后内瘘震颤'
1550
+        checkdata.push(obj40)
1551
+      } if(this.afterdialysis.catheter == ''){
1552
+        const obj41='置管口'
1553
+        checkdata.push(obj41)
1554
+      } if(this.afterdialysis.blood_flow == 0){
1555
+        const obj42='血流量'
1556
+        checkdata.push(obj42)
1557
+      } if(this.afterdialysis.sealing_fluid_dispose == ""){
1558
+        const obj43='封管液配置'
1559
+        checkdata.push(obj43)
1560
+      } if(this.afterdialysis.cvc_a == 0){
1561
+        const obj44='A端'
1562
+        checkdata.push(obj44)
1563
+      } if(this.afterdialysis.cvc_v == 0){
1564
+        const obj45='V端'
1565
+        checkdata.push(obj45)
1566
+      } if(this.afterdialysis.catheter == ""){
1567
+        const obj46='打折和吸壁'
1568
+        checkdata.push(obj46)
1569
+      } if(this.afterdialysis.catheter != "" && this.afterdialysis.catheter.indexOf('打折') == -1){
1570
+        const obj46='打折'
1571
+        checkdata.push(obj46)
1572
+      } if(this.afterdialysis.catheter != "" && this.afterdialysis.catheter.indexOf('吸壁') == -1){
1573
+        const obj47='吸壁'
1574
+        checkdata.push(obj47)
1575
+      } if(this.afterdialysis.cruor == ""){
1576
+        const obj48='透析器堵塞'
1577
+        checkdata.push(obj48)
1578
+      } if(this.afterdialysis.arterial_tube == 0){
1579
+        const obj49='动脉管道'
1580
+        checkdata.push(obj49)
1581
+      } if(this.afterdialysis.intravenous_tube == 0){
1582
+        const obj50='静脉管道'
1583
+        checkdata.push(obj50)
1584
+      } if(this.afterdialysis.complication == ""){
1585
+        const obj51='透后并发症'
1586
+        checkdata.push(obj51)
1587
+      } if(this.summary.special_record == ""){
1588
+        const obj52='特殊记录'
1589
+        checkdata.push(obj52)
1590
+      } if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1591
+        const obj53='当班责任护士'
1592
+        checkdata.push(obj53)
1593
+      } if(this.dialysisOrder.finish_nurse == 0){
1594
+        const obj54='下机护士'
1595
+        checkdata.push(obj54)
1596
+      } if(this.monitors.length > 0){
1597
+        for(let i in this.monitors){
1598
+          if(this.monitors[i].temperature==''){
1599
+           const obj55= '监测第'+((i*1)+1)+'行体温'
1600
+            checkdata.push(obj55)
1601
+          }
1602
+          if(this.monitors[i].systolic_blood_pressure=='' || this.monitors[i].diastolic_blood_pressure==''){
1603
+            const obj56='监测第'+((i*1)+1)+'行血压'
1604
+            checkdata.push(obj56)
1605
+          }
1606
+          if(this.monitors[i].pulse_frequency==''){
1607
+            const obj57='监测第'+((i*1)+1)+'行脉搏'
1608
+            checkdata.push(obj57)
1609
+          }
1610
+          if(this.monitors[i].breathing_rate==''){
1611
+            const obj58='监测第'+((i*1)+1)+'行呼吸'
1612
+            checkdata.push(obj58)
1613
+          }
1614
+          if(this.monitors[i].arterial_pressure==''){
1615
+            const obj59='监测第'+((i*1)+1)+'行动脉压'
1616
+            checkdata.push(obj59)
1617
+          }
1618
+          if(this.monitors[i].venous_pressure==''){
1619
+            const obj60='监测第'+((i*1)+1)+'行静脉压'
1620
+            checkdata.push(obj60)
1621
+          }
1622
+          if(this.monitors[i].transmembrane_pressure==''){
1623
+            const obj61='监测第'+((i*1)+1)+'行跨膜压'
1624
+            checkdata.push(obj61)
1625
+          }
1626
+          if(this.monitors[i].ultrafiltration_volume==''){
1627
+            const obj62='监测第'+((i*1)+1)+'行超滤量'
1628
+            checkdata.push(obj62)
1629
+          }if(this.monitors[i].sodium_concentration==''){
1630
+            const obj63='监测第'+((i*1)+1)+'行钠浓度'
1631
+            checkdata.push(obj63)
1632
+          }if(this.monitors[i].conductivity==''){
1633
+            const obj64='监测第'+((i*1)+1)+'行电导度'
1634
+            checkdata.push(obj64)
1635
+          }
1636
+          if(this.monitors[i].blood_flow_volume==''){
1637
+            const obj65='监测第'+((i*1)+1)+'行血流量'
1638
+            checkdata.push(obj65)
1639
+          }
1583 1640
 
1584
-        if(num == 0){
1585
-          this.$message.success('核对完成')
1641
+          if(this.monitors[i].dialysate_temperature==''){
1642
+            const obj66='监测第'+((i*1)+1)+'行液温'
1643
+            checkdata.push(obj66)
1644
+          }
1645
+          if(this.monitors[i].displacement_quantity==''){
1646
+            const obj67='监测第'+((i*1)+1)+'行置换量'
1647
+            checkdata.push(obj67)
1648
+          }
1586 1649
         }
1587
-      }else{
1588
-        this.$message.success('核对完成')
1589 1650
       }
1651
+      this.getcheckData(checkdata)
1590 1652
     },
1591 1653
     getComplication(complication){
1592 1654
       if(complication.indexOf(',') == -1){
@@ -2449,6 +2511,18 @@ export default {
2449 2511
           // checker: 0,
2450 2512
         }
2451 2513
       )
2514
+    },
2515
+    getcheckData(val){
2516
+      if(val.length >0){
2517
+        let message = `记录单未填数据:<br/>&nbsp;${val.join("<br/>&nbsp;")}`;
2518
+        this.$alert(message, '提示', {
2519
+          confirmButtonText: '确定',
2520
+          type: 'warning',
2521
+          dangerouslyUseHTMLString: true,
2522
+        });
2523
+      }else{
2524
+        this.$message.success('核对完成')
2525
+      }
2452 2526
     }
2453 2527
   },
2454 2528
   watch: {

+ 162 - 123
src/xt_pages/dialysis/template/DialysisPrintOrderTwentySix.vue View File

@@ -193,7 +193,7 @@
193 193
             <tr style="text-align:left">
194 194
               <td colspan="11" style="padding-left:5px">
195 195
                 血管通路:
196
-                <label-box :isChecked="predialysis.blood_access_part_opera_name == '内瘘' ? true : false" showValue="内瘘"></label-box>&nbsp;
196
+                <label-box :isChecked="predialysis.blood_access_part_opera_name=='内瘘' ? true : false" showValue="内瘘"></label-box>&nbsp;
197 197
                 <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('长期静脉导管') > -1 ? true : false" showValue="长期静脉导管"></label-box>&nbsp;
198 198
                 <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('颈内静脉') > -1 ? true : false" showValue="临时颈内静脉导管"></label-box>&nbsp;
199 199
                 <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('股静脉') > -1 ? true : false" showValue="临时股静脉导管"></label-box>&nbsp;
@@ -1256,137 +1256,163 @@ export default {
1256 1256
   },
1257 1257
   methods: {
1258 1258
     checkData(){
1259
+      var checkdata=[]
1259 1260
       if(this.predialysis.temperature == ""){
1260
-        this.$message.error('透前体温未填')
1261
-      }else if(this.predialysis.pulse_frequency == ""){
1262
-        this.$message.error('透前脉搏未填')
1263
-      }else if(this.predialysis.breathing_rate == ""){
1264
-        this.$message.error('透前呼吸频率未填')
1265
-      }else if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1266
-        this.$message.error('透前血压未填完整')
1267
-      }else if(this.predialysis.symptom_before_dialysis == ""){
1268
-        this.$message.error('上机前病情未填')
1269
-      }else if(this.prescription.mode_id == ""){
1270
-        this.$message.error('治疗方式未填')
1271
-      }else if(this.prescription.displace_liqui_part == 0 && this.prescription.mode_id == 2){
1272
-        this.$message.error('置换方式未填')
1273
-      }else if(this.prescription.displace_liqui_value == 0 && this.prescription.mode_id == 2){
1274
-        this.$message.error('置换量未填')
1275
-      }else if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1276
-        this.$message.error('治疗时间未填')
1277
-      }else if(this.prescription.anticoagulant == 0){
1278
-        this.$message.error('治疗抗凝未填')
1279
-      }else if(this.prescription.target_ultrafiltration == 0){
1280
-        this.$message.error('处方脱水量未填')
1281
-      }else if(this.prescription.dialysate_flow == 0){
1282
-        this.$message.error('透析液流量未填')
1283
-      }else if(this.prescription.blood_flow_volume == 0){
1284
-        this.$message.error('血流量未填')
1285
-      }else if(this.prescription.prescription_doctor == 0){
1286
-        this.$message.error('医师签名未填')
1287
-      }else if(this.predialysis.machine_type == ""){
1288
-        this.$message.error('透析机未填')
1289
-      }else if(this.prescription.dialyzer_perfusion_apparatus == ""){
1290
-        this.$message.error('透析(滤)器未填')
1291
-      }else if(this.prescription.calcium == 0){
1292
-        this.$message.error('钙未填')
1293
-      }else if(this.prescription.sodium == 0){
1294
-        this.$message.error('钠未填')
1295
-      }else if(this.prescription.bicarbonate == 0){
1296
-        this.$message.error('碳酸氢根未填')
1297
-      }else if(this.predialysis.blood_access_part_opera_name == ''){
1298
-        this.$message.error('血管通路未填')
1299
-      }else if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1300
-        this.$message.error('穿刺者未填')
1301
-      }else if(this.predialysis.weight_before == 0){
1302
-        this.$message.error('透前体重未填')
1303
-      }else if(this.predialysis.dry_weight == 0){
1304
-        this.$message.error('干体重未填')
1305
-      }else if(this.afterdialysis.actual_ultrafiltration == 0){
1306
-        this.$message.error('实际脱水量未填')
1307
-      }else if(this.afterdialysis.weight_after == 0){
1308
-        this.$message.error('透后体重未填')
1309
-      }else if(this.afterdialysis.cruor == ""){
1310
-        this.$message.error('透析器凝血未填')
1311
-      }else if(this.afterdialysis.internal_fistula == ''){
1312
-        this.$message.error('透后内瘘未填')
1313
-      }else if(this.afterdialysis.catheter == ''){
1314
-        this.$message.error('透后导管未填')
1315
-      }else if(this.summary.dialysis_summary == ""){
1316
-        this.$message.error('治疗小结未填')
1317
-      }else if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1318
-        this.$message.error('护士签名未填')
1319
-      }else if (this.dialysisOrder == null && this.check.creater == 0) {
1320
-        this.$message.error('核对护士未填')
1261
+        const obj='透前体温'
1262
+        checkdata.push(obj)
1263
+      } if(this.predialysis.pulse_frequency == ""){
1264
+        const obj1='透前脉搏'
1265
+        checkdata.push(obj1)
1266
+      } if(this.predialysis.breathing_rate == ""){
1267
+        const obj2='透前呼吸频率'
1268
+        checkdata.push(obj2)
1269
+      } if(this.predialysis.systolic_blood_pressure == 0 || this.predialysis.diastolic_blood_pressure == 0){
1270
+        const obj3='透前血压'
1271
+        checkdata.push(obj3)
1272
+      } if(this.predialysis.symptom_before_dialysis == ""){
1273
+        const obj4='上机前病情'
1274
+        checkdata.push(obj4)
1275
+      } if(this.prescription.mode_id == ""){
1276
+        const obj5='治疗方式'
1277
+        checkdata.push(obj5)
1278
+      } if(this.prescription.displace_liqui_part == 0 && this.prescription.mode_id == 2){
1279
+        const obj6='置换方式'
1280
+        checkdata.push(obj6)
1281
+      } if(this.prescription.displace_liqui_value == 0 && this.prescription.mode_id == 2){
1282
+        const obj7='置换量'
1283
+        checkdata.push(obj7)
1284
+      } if(this.prescription.dialysis_duration_hour == 0 && this.prescription.dialysis_duration_minute == 0){
1285
+        const obj8='治疗时间'
1286
+        checkdata.push(obj8)
1287
+      } if(this.prescription.anticoagulant == 0){
1288
+        const obj9='治疗抗凝'
1289
+        checkdata.push(obj9)
1290
+      } if(this.prescription.target_ultrafiltration == 0){
1291
+        const obj10='处方脱水量'
1292
+        checkdata.push(obj10)
1293
+      } if(this.prescription.dialysate_flow == 0){
1294
+        const obj11='透析液流量'
1295
+        checkdata.push(obj11)
1296
+      } if(this.prescription.blood_flow_volume == 0){
1297
+        const obj12='血流量'
1298
+        checkdata.push(obj12)
1299
+      } if(this.prescription.prescription_doctor == 0){
1300
+        const obj13='医师签名'
1301
+        checkdata.push(obj13)
1302
+      } if(this.predialysis.machine_type == ""){
1303
+        const obj14='透析机'
1304
+        checkdata.push(obj14)
1305
+      } if(this.prescription.dialyzer_perfusion_apparatus == ""){
1306
+        const obj15='透析(滤)器'
1307
+        checkdata.push(obj15)
1308
+      } if(this.prescription.calcium == 0){
1309
+        const obj16='钙'
1310
+        checkdata.push(obj16)
1311
+      } if(this.prescription.sodium == 0){
1312
+        const obj17='钠'
1313
+        checkdata.push(obj17)
1314
+      } if(this.prescription.bicarbonate == 0){
1315
+        const obj18='碳酸氢根'
1316
+        checkdata.push(obj18)
1317
+      } if(this.predialysis.blood_access_part_opera_name == ''){
1318
+        const obj19='血管通路'
1319
+        checkdata.push(obj19)
1320
+      } if(this.dialysisOrder == null || this.dialysisOrder.puncture_nurse == 0){
1321
+        const obj20='穿刺者'
1322
+        checkdata.push(obj20)
1323
+      } if(this.predialysis.weight_before == 0){
1324
+        const obj21='透前体重'
1325
+        checkdata.push(obj21)
1326
+      } if(this.predialysis.dry_weight == 0){
1327
+        const obj22='干体重'
1328
+        checkdata.push(obj22)
1329
+      } if(this.afterdialysis.actual_ultrafiltration == 0){
1330
+        const obj23='实际脱水量'
1331
+        checkdata.push(obj23)
1332
+      } if(this.afterdialysis.weight_after == 0){
1333
+        const obj24='透后体重'
1334
+        checkdata.push(obj24)
1335
+      } if(this.afterdialysis.cruor == ""){
1336
+        const obj25='透析器凝血'
1337
+        checkdata.push(obj25)
1338
+      } if(this.afterdialysis.internal_fistula == ''){
1339
+        const obj26='透后内瘘'
1340
+        checkdata.push(obj26)
1341
+      } if(this.afterdialysis.catheter == ''){
1342
+        const obj27='透后导管'
1343
+        checkdata.push(obj27)
1344
+      } if(this.summary.dialysis_summary == ""){
1345
+        const obj28='治疗小结'
1346
+        checkdata.push(obj28)
1347
+      } if(this.dialysisOrder == null || this.dialysisOrder.start_nurse == 0){
1348
+        const obj29='护士签名'
1349
+        checkdata.push(obj29)
1350
+      } if (this.dialysisOrder == null && this.check.creater == 0) {
1351
+        const obj30='核对护士'
1352
+        checkdata.push(obj30)
1321 1353
       }else if (this.dialysisOrder != null && this.check.creater == 0) {
1322
-        this.$message.error('核对护士未填')
1354
+        const obj30='核对护士'
1355
+        checkdata.push(obj30)
1323 1356
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.modifier && this.check.creater == 0){
1324
-        this.$message.error('核对护士未填')
1357
+        const obj30='核对护士'
1358
+        checkdata.push(obj30)
1325 1359
       }else if(this.dialysisOrder != null && this.dialysisOrder.start_nurse == this.check.creater && this.check.modifier == 0){
1326
-        this.$message.error('核对护士未填')
1327
-      }else if(this.tableAdvice.length > 0 || this.monitors.length > 0){
1328
-        let num = 0
1360
+        const obj30='核对护士'
1361
+        checkdata.push(obj30)
1362
+      } 
1329 1363
         if(this.monitors.length > 0){
1330
-          this.monitors.map(item => {
1331
-            if(item.id > 0 && item.operate_time){
1332
-              this.users.map(it => {
1333
-                if(it.id == item.monitoring_nurse){
1334
-                  if(it.user_type == 2){
1335
-                    num++
1336
-                    this.$message.closeAll()
1337
-                    this.$message.error('存在不是护士保存的监测')
1338
-                  }
1339
-                }
1340
-              })
1364
+          for(let i in this.monitors){
1365
+            if(this.monitors[i].venous_pressure==''){
1366
+              const obj31='监测第'+((i*1)+1)+'行静脉压'
1367
+              checkdata.push(obj31)
1341 1368
             }
1342
-          })
1369
+            if(this.monitors[i].replacement_rate=='' && this.prescription.mode_id==2){
1370
+              const obj32='监测第'+((i*1)+1)+'行置换率'
1371
+              checkdata.push(obj32)
1372
+            }
1373
+
1374
+            if(this.monitors[i].ultrafiltration_rate==''){
1375
+              const obj33='监测第'+((i*1)+1)+'行超滤率'
1376
+              checkdata.push(obj33)
1377
+            }
1378
+            if(this.monitors[i].blood_flow_volume==''){
1379
+              const obj34='监测第'+((i*1)+1)+'行血流量'
1380
+              checkdata.push(obj34)
1381
+            }
1382
+            if(this.monitors[i].ultrafiltration_volume==''){
1383
+              const obj35='监测第'+((i*1)+1)+'行脱水量'
1384
+              checkdata.push(obj35)
1385
+            }
1386
+            if(this.monitors[i].temperature==''){
1387
+            const obj36= '监测第'+((i*1)+1)+'行T'
1388
+              checkdata.push(obj36)
1389
+            }
1390
+            if(this.monitors[i].systolic_blood_pressure=='' || this.monitors[i].diastolic_blood_pressure==''){
1391
+              const obj37='监测第'+((i*1)+1)+'行Bp'
1392
+              checkdata.push(obj37)
1393
+            }
1394
+            if(this.monitors[i].pulse_frequency==''){
1395
+              const obj38='监测第'+((i*1)+1)+'行P'
1396
+              checkdata.push(obj38)
1397
+            }
1398
+            if(this.monitors[i].breathing_rate==''){
1399
+              const obj39='监测第'+((i*1)+1)+'行R'
1400
+              checkdata.push(obj39)
1401
+            }
1402
+          }
1343 1403
         }
1344 1404
         if(this.tableAdvice.length > 0){
1345
-          this.tableAdvice.map(item => {
1405
+          this.tableAdvice.map((item) =>{
1346 1406
             if(item.id > 0 && (item.created_time || item.start_time)){
1347
-              this.users.map(it => {
1348
-                if(it.id == item.advice_doctor){
1349
-                  if(it.user_type == 3){
1350
-                    num++
1351
-                    this.$message.closeAll()
1352
-                    this.$message.error('存在不是医生保存的医嘱')
1353
-                  }else if(it.id == item.execution_staff && item.execution_staff > 0){
1354
-                    if(it.user_type == 2){
1355
-                      num++
1356
-                      this.$message.closeAll()
1357
-                      this.$message.error('存在不是护士执行的医嘱')
1358
-                    }
1359
-                  }else if(it.id == item.checker && item.checker > 0){
1360
-                    if(it.user_type == 2){
1361
-                      num++
1362
-                      this.$message.closeAll()
1363
-                      this.$message.error('存在不是护士核对的医嘱')
1364
-                    }
1365
-                  }
1366
-                }else if(it.id == item.execution_staff && item.execution_staff > 0){
1367
-                  if(it.user_type == 2){
1368
-                    num++
1369
-                    this.$message.closeAll()
1370
-                    this.$message.error('存在不是护士执行的医嘱')
1371
-                  }
1372
-                }else if(it.id == item.checker && item.checker > 0){
1373
-                  if(it.user_type == 2){
1374
-                    num++
1375
-                    this.$message.closeAll()
1376
-                    this.$message.error('存在不是护士核对的医嘱')
1377
-                  }
1378
-                }
1379
-              })
1407
+              if(item.execution_staff ==0 || item.advice_doctor==0){
1408
+                const obj40 = '执行人员,核对人员,医生签名'
1409
+                checkdata.push(obj40)
1410
+              }
1380 1411
             }
1381
-        })
1382
-        }
1383
-        
1384
-        if(num == 0){
1385
-          this.$message.success('核对完成')
1412
+          })
1386 1413
         }
1387
-      }else{
1388
-        this.$message.success('核对完成')
1389
-      }
1414
+      
1415
+      this.getcheckData(checkdata)
1390 1416
     },
1391 1417
     getNewAge(UUserCard) {
1392 1418
       if (UUserCard != null && UUserCard != '') {
@@ -1525,7 +1551,7 @@ export default {
1525 1551
           if (patientInfo.gender === 2) {
1526 1552
             patientInfo.gender = "女";
1527 1553
           }
1528
-          // console.log("patientInfo", patientInfo);
1554
+          console.log("response.data.data", response.data.data);
1529 1555
           this.patientInfo = patientInfo;
1530 1556
           this.patientInfo.birth = uParseTime(
1531 1557
             this.patientInfo.birthday,
@@ -2015,7 +2041,7 @@ export default {
2015 2041
       if (id in this.bloodAccessParOpera) {
2016 2042
         return this.bloodAccessParOpera[id].name;
2017 2043
       }
2018
-      return "";
2044
+      return ''
2019 2045
     },
2020 2046
     dialysateFormulationName(id) {
2021 2047
       if (id in this.dialysateFormulationOptions) {
@@ -2060,6 +2086,18 @@ export default {
2060 2086
           // checker: 0,
2061 2087
         }
2062 2088
       );
2089
+    },
2090
+    getcheckData(val){
2091
+      if(val.length >0){
2092
+        let message = `记录单未填数据:<br/>&nbsp;${val.join("<br/>&nbsp;")}`;
2093
+        this.$alert(message, '提示', {
2094
+          confirmButtonText: '确定',
2095
+          type: 'warning',
2096
+          dangerouslyUseHTMLString: true,
2097
+        });
2098
+      }else{
2099
+        this.$message.success('核对完成')
2100
+      }
2063 2101
     }
2064 2102
   },
2065 2103
   watch: {
@@ -2112,6 +2150,7 @@ export default {
2112 2150
       "hemodialysis",
2113 2151
       "vascular_access_desc"
2114 2152
     );
2153
+
2115 2154
     for (var key in bloodAccessParOpera) {
2116 2155
       this.bloodAccessParOpera[bloodAccessParOpera[key].id] =
2117 2156
         bloodAccessParOpera[key];

+ 370 - 0
src/xt_pages/outpatientCharges/listTemplate/batch_listPrint.vue View File

@@ -0,0 +1,370 @@
1
+<template>
2
+  <div >
3
+    
4
+    <div class="position" >
5
+      <div style="text-align: right;flex: 1;">
6
+        <el-button type='primary' @click="printThisPage">打印</el-button>
7
+      </div>
8
+    </div>
9
+    <div class="app-container">
10
+      <div  id="list-print">
11
+        <div style="page-break-after: always;margin-bottom: 20px;" v-for="(item,index) in list_arr" :key="index">
12
+          <div class="listTitle">{{$store.getters.xt_user.org.org_name}}费用清单</div>
13
+          <div class="listInfo">
14
+            <div>患者姓名:{{item.patient.name}}</div>
15
+            <div>性别:{{item.patient.gender == 1 ? '男': '女'}}</div>
16
+            <div>身份证号:{{item.patient.id_card_no}}</div>
17
+            <div>年龄:{{item.patient.age }}  岁</div>
18
+            <div v-if="org_id!=10489">开方日期:{{getTimes(item.order.settle_accounts_date)}}</div>
19
+          </div>
20
+          <div class="listInfo">
21
+            <div>结算类型:{{item.order.is_medicine_insurance == 1 ? "医保" : "自费"}}</div>
22
+            <div>就诊流水号:{{ item.order.mdtrt_id }}</div>
23
+            <div>透析号:{{ item.patient.dialysis_no }}</div>
24
+            <div v-if="org_id ==10653 ">总金额:{{ item.order.medfee_sumamt }}</div>
25
+            <div v-if="org_id ==10653 ">收费日期:{{getTimes(item.order.ctime)}}</div>
26
+            <div v-if="org_id !=10653">发票号:{{item.order.fa_piao_number}}</div>
27
+          </div>
28
+          <div class="listInfo">
29
+            <div v-if="org_id !=10653">总金额:{{ item.order.medfee_sumamt }}</div>
30
+            <div v-if="org_id !=10653">个人支付金额:{{ item.order.psn_cash_pay }}</div>
31
+            <div v-if="org_id !=10653">基金支付金额:{{ item.order.fund_pay_sumamt }}</div>
32
+            <div v-if="org_id !=10653">收费日期:{{getTimes(item.order.ctime)}}</div>
33
+          </div>
34
+          <table class="listTable" style="text-align: center;">
35
+            <tr style="border-bottom: 1px solid black;">
36
+              <td style="width:12%" v-if="org_id==10489">开方日期</td>
37
+              <td style="width:20%" v-if="org_id !=10653 && org_id !=0">医保编码</td>
38
+              <td style="width:20%">项目名称</td>
39
+              <td style="width:12%">规格</td>
40
+              <td style="width:5%">数量</td>
41
+              <td style="width:5%">单位</td>
42
+              <td style="width:7%">单价(元)</td>
43
+              <td style="width:7%">金额(元)</td>
44
+              <td style="width:8%" v-if="org_id !=10653 && org_id !=0">自付比例</td>
45
+            </tr>
46
+            <tr v-for="(ite,inde) in item.lists" style="line-height: 30px;">
47
+                <td style="width:12%" v-if="org_id==10489">
48
+                  <span v-if="ite.code!=undefined">{{getTimes(ite.record_date) }}</span>
49
+                </td>
50
+                <td style="width:20%" v-if="org_id !=10653 && org_id !=0">{{ite.code}}</td>
51
+                <td style="width:20%">{{ite.name}}</td>
52
+                <td style="width:12%">{{ite.spec}}</td>
53
+                <td style="width:5%" >
54
+                  <span v-if="ite.code!=undefined">{{ite.count}}</span>
55
+                </td>
56
+                <td style="width:5%" >{{ite.unit}}</td>
57
+                <td style="width:7%">
58
+                  <span v-if="ite.code!=undefined">{{(ite.price*1).toFixed(2)}}</span>
59
+                </td>
60
+                <td style="width:7%">{{(ite.price * ite.count).toFixed(2)}}</td>
61
+                <td style="width:8%" v-if="org_id !=10653 ">
62
+                  <div v-if="ite.code!=undefined">
63
+                    {{(ite.selfpay_prop)*100}}
64
+                    <span v-if="ite.selfpay_prop !=''">%</span>
65
+                  </div>
66
+                  
67
+                </td>
68
+            </tr>
69
+          </table>
70
+          <div style="border-top: 1px solid black;">
71
+            <div style="text-align: right;">
72
+              合计金额:{{item.order.medfee_sumamt}}
73
+            </div>
74
+          </div>
75
+        </div>
76
+      </div>
77
+    </div>
78
+  </div>
79
+</template>
80
+
81
+<script>
82
+import { uParseTime } from '@/utils/tools'
83
+import { list_batch } from '@/api/his/his'
84
+import print from "print-js";
85
+export default {
86
+  // props: {
87
+  //   list: {
88
+  //     type: Array,
89
+  //     default: function () {
90
+  //       return [];
91
+  //     }
92
+  //   },
93
+  //   patient: {
94
+  //     type: Object,
95
+  //     default: function () {
96
+  //       return {};
97
+  //     }
98
+  //   }, order: {
99
+  //     type: Object,
100
+  //     default: function () {
101
+  //       return {};
102
+  //     }
103
+  //   }, admin: {
104
+  //     type: Object,
105
+  //     default: function () {
106
+  //       return {};
107
+  //     }
108
+  //   },
109
+  // },
110
+  data(){
111
+      return{
112
+          page:1,
113
+          pageArr:[],
114
+          org_id:'',
115
+          list:[],
116
+          list_id:'',
117
+          list_arr:[],
118
+      }
119
+  },
120
+  // // mounted(){
121
+  // //     this.getPage()
122
+  // // },
123
+  methods:{
124
+    getMedicineInsuranceKind(type){
125
+      switch (type) {
126
+        case "01":
127
+          return '甲类';
128
+        case "02":
129
+          return '乙类';
130
+        case "03":
131
+          return '自费';
132
+          break;
133
+      }
134
+
135
+    },
136
+    getNowTime: function () {
137
+      let dateTime
138
+      let yy = new Date().getFullYear()
139
+      let mm = new Date().getMonth() + 1
140
+      let dd = new Date().getDate()
141
+      let hh = new Date().getHours()
142
+      let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes()
143
+        :
144
+        new Date().getMinutes()
145
+      let ss = new Date().getSeconds() < 10 ? '0' + new Date().getSeconds()
146
+        :
147
+        new Date().getSeconds()
148
+      dateTime = yy + '-' + mm + '-' + dd
149
+      return dateTime
150
+    },
151
+    getTimes(time) {
152
+      return uParseTime(time, '{y}-{m}-{d}')
153
+    },
154
+    getPage(){
155
+
156
+      if(this.list.length <= 17){
157
+          this.page = 1
158
+          this.pageArr.push(this.list.length)
159
+      }else if(this.list.length > 17){
160
+          this.page = parseInt(this.list.length / 17)
161
+          let num = this.list.length % 17
162
+          for (var i=0;i<this.page;i++){
163
+              this.pageArr.push(17)
164
+          }
165
+          if(num != 0){
166
+              this.pageArr.push(num)
167
+          }
168
+      }
169
+      console.log('this.pageArr',this.list);
170
+    },
171
+    getlist(){
172
+      list_batch(this.list_id).then(res =>{
173
+        console.log('res',res);
174
+        this.list_arr = res.data.data.orders
175
+        for(let x in this.list_arr){
176
+          this.list_arr[x]['lists']=[]
177
+          for (let i = 0; i < this.list_arr[x].order_info.length; i++) {
178
+          var infos = this.list_arr[x].order_info[i]
179
+          let obj = {
180
+            med_chrgitm_type: this.getType(infos.med_chrgitm_type),
181
+            price: infos.pric.toFixed(4),
182
+            count: infos.cnt,
183
+            selfpay_prop:infos.selfpay_prop,
184
+          }
185
+          if (infos.advice && infos.advice.id == 0 && infos.project && infos.project.id > 0) {
186
+            obj['p_time'] = this.getTimes(infos.project.prescription.ctime)
187
+            obj['feedetl_sn'] = infos.feedetl_sn
188
+            obj['type'] = infos.chrgitm_lv
189
+
190
+            if(infos.project.type == 2){
191
+              obj['name'] = infos.project.project.project_name
192
+              obj['code'] = infos.project.project.medical_code
193
+              obj['spec'] = ''
194
+              obj['unit'] =  infos.project.project.unit
195
+              obj['is_total']= 0
196
+              obj['record_date'] = infos.project.record_date
197
+
198
+            }else if (infos.project.type == 3){
199
+              obj['name'] = infos.project.good_info.good_name
200
+              obj['spec'] = ""
201
+              obj['code'] = infos.project.good_info.medical_insurance_number
202
+              obj['unit'] = infos.project.good_info.packing_unit
203
+              obj['is_total']= 0
204
+              obj['record_date'] = infos.project.record_date
205
+            }
206
+
207
+          }
208
+          if (infos.advice && infos.advice.id > 0 && infos.project && infos.project.id == 0) {
209
+            obj['type'] = infos.chrgitm_lv
210
+            obj['p_time'] = this.getTimes(infos.advice.prescription.ctime)
211
+            obj['name'] = infos.advice.drug.drug_name
212
+            obj['code'] = infos.advice.drug.medical_insurance_number
213
+            obj['unit'] = infos.advice.prescribing_number_unit
214
+            obj['feedetl_sn'] =  infos.feedetl_sn
215
+            obj['spec'] =  infos.advice.drug.dose +  infos.advice.drug.dose_unit+"*" + infos.advice.drug.min_number +  infos.advice.drug.min_unit+"/"+infos.advice.drug.max_unit
216
+            obj['is_total']= 0
217
+            obj['record_date'] = infos.advice.record_date
218
+            // v-if="scope.row.min_unit != scope.row.dose_unit">{{ scope.row.dose }}{{ scope.row.dose_unit }}&nbsp;* &nbsp;</span>{{ scope.row.min_number }}{{ scope.row.min_unit }}/{{ scope.row.max_unit }}
219
+
220
+
221
+          }
222
+          this.list_arr[x].lists.push(obj)
223
+          this.list_arr[x].lists.sort(function(a, b) {
224
+            return b.p_time < a.p_time ? 1 : -1
225
+          })
226
+        }
227
+
228
+          let newObj = {}
229
+          newObj['name'] = "合计"
230
+          newObj['count']= 1
231
+          newObj['price']= this.list_arr[x].order.medfee_sumamt.toFixed(2)
232
+          newObj['is_total']= 1
233
+          this.list_arr[x].lists.push(newObj)
234
+        }
235
+        
236
+      })
237
+    },
238
+    getType(med_chrgitm_type) {
239
+      switch (med_chrgitm_type) {
240
+        case '01':
241
+          return '床位费'
242
+          break
243
+        case '02':
244
+          return '诊察费'
245
+
246
+          break
247
+        case '03':
248
+          return '检查费'
249
+
250
+          break
251
+        case '04':
252
+          return '化验费'
253
+          break
254
+        case '05':
255
+          return '治疗费'
256
+
257
+          break
258
+        case '06':
259
+          return '手术费'
260
+
261
+          break
262
+        case '07':
263
+          return '护理费'
264
+
265
+          break
266
+        case '08':
267
+          return '材料费'
268
+
269
+          break
270
+        case '09':
271
+          return '西药费'
272
+
273
+          break
274
+        case '10':
275
+          return '中药饮片费'
276
+
277
+          break
278
+        case '11':
279
+          return '中成药费'
280
+
281
+          break
282
+        case '12':
283
+          return '一般诊疗费'
284
+
285
+          break
286
+        case '13':
287
+          return '挂号费'
288
+          break
289
+        case '14':
290
+          return '其他费'
291
+          break
292
+        case '0':
293
+          return '其他费'
294
+          break
295
+
296
+      }
297
+    },
298
+    printThisPage() {
299
+          const style =
300
+            '@media print {.listTitle{font-size: 20px;text-align: center;font-weight: bold;margin-bottom: 10px;} .listInfo{display: flex;font-size: 14px;justify-content: space-around;margin: 10px 0;} .listTable{width: 100%;text-align: center;border-collapse: collapse;line-height: 20px;font-size: 14px;border-color: #000;text-align: left;} .listTable tr td {padding: 0 5px;}}';
301
+          printJS({
302
+            printable: "list-print",
303
+            type: "html",
304
+            style: style,
305
+            scanStyles: false
306
+          });
307
+      },
308
+  },
309
+  created(){
310
+    this.list_id = this.$route.query.list_id
311
+    this.getlist()
312
+    this.org_id = this.$store.getters.xt_user.org_id
313
+  },
314
+  // watch:{
315
+  //     list: {
316
+  //         handler(newVal) {
317
+  //           // this.list = newVal
318
+  //             this.getPage()
319
+  //             // this.getlist()
320
+  //         },
321
+  //         deep: true
322
+  //     }
323
+  // }
324
+
325
+}
326
+
327
+
328
+</script>
329
+
330
+<style lang="scss" scoped>
331
+.list-print{
332
+  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 60px rgba(0, 0, 0, 0.06) inset;
333
+  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
334
+  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
335
+  margin-bottom: 20px;
336
+  padding:20px 10px;
337
+}
338
+.listTitle{
339
+  font-size: 20px;
340
+  text-align: center;
341
+  font-weight: bold;
342
+  margin-bottom: 10px;
343
+}
344
+.listInfo{
345
+  display: flex;
346
+  font-size: 14px;
347
+  justify-content: space-around;
348
+  margin: 10px 0;
349
+}
350
+.listTable{
351
+  width: 100%;
352
+  text-align: center;
353
+  border-collapse: collapse;
354
+  line-height: 20px;
355
+  font-size: 14px;
356
+  border-color: #000;
357
+  text-align: left;
358
+}
359
+.listTable tr td {
360
+  padding: 0 5px;
361
+}
362
+.tableBottom{
363
+  font-size: 12px;
364
+  display: flex;
365
+  margin-top: 20px;
366
+}
367
+.tableBottomOne{
368
+  margin-right: 20px;
369
+}
370
+</style>

+ 16 - 3
src/xt_pages/outpatientCharges/summary.vue View File

@@ -62,6 +62,7 @@
62 62
                 $store.getters.xt_user.org_id == 10610 || $store.getters.xt_user.org_id == 0"
63 63
             size="small" type="primary" @click="batch_print_settlte">批量打印结算单
64 64
           </el-button>
65
+          <el-button size="small" type="primary" @click="list_click">批量打印费用清单</el-button>
65 66
           <el-button size="small" type="primary" @click="export_detail"
66 67
           >报表下载
67 68
           </el-button>
@@ -71,8 +72,7 @@
71 72
           <el-button v-if="$store.getters.xt_user.org_id == 10318" size="small"
72 73
                      type="primary" @click="export_detail_ten_two">报表下载3
73 74
           </el-button>
74
-
75
-
75
+          
76 76
         </div>
77 77
       </div>
78 78
 
@@ -636,7 +636,7 @@
636 636
 
637 637
 <script>
638 638
 import BreadCrumb from '@/xt_pages/components/bread-crumb'
639
-import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund } from '@/api/his/his'
639
+import { getDoctorList, getExportConsumeDetailList, getHisOrderList, Refund,list_batch } from '@/api/his/his'
640 640
 import { ModifyFapiaoCode } from '@/api/his/his_tools'
641 641
 
642 642
 // import NewStatementPrint from './newStatementPrint'
@@ -4204,6 +4204,19 @@ export default {
4204 4204
       }
4205 4205
 
4206 4206
 
4207
+    },
4208
+    list_click(){
4209
+      console.log('selecting_schs',this.selecting_schs);
4210
+      var list_arr=[]
4211
+      for(let i in this.selecting_schs){
4212
+        list_arr.push(this.selecting_schs[i].id)
4213
+      }
4214
+      var list_id = list_arr.join(",")
4215
+      this.$router.push({path:'/listTemplate/batch_listPrint',query:{list_id:list_id}})
4216
+      // list_batch(list_id).then(res =>{
4217
+      //   console.log('res',res);
4218
+        
4219
+      // })
4207 4220
     }
4208 4221
   },
4209 4222
 

+ 8 - 11
src/xt_pages/user/inspection.vue View File

@@ -154,15 +154,16 @@
154 154
                         <span v-if="parseFloat(scope.row.value) < parseFloat(getrange(scope.row.range_min)) ">
155 155
                           {{ scope.row.value }} <span style="color: blue;" v-if="scope.row.value>0">↓</span>
156 156
                         </span>
157
-                        <span v-if="parseFloat(getrange(scope.row.range_min))<= parseFloat( scope.row.value) && parseFloat(scope.row.value)<= parseFloat(getrange(scope.row.range_max)) ">
157
+                        <span v-else-if="parseFloat(getrange(scope.row.range_min))<= parseFloat( scope.row.value) && parseFloat(scope.row.value)<= parseFloat(getrange(scope.row.range_max)) ">
158 158
                           {{ scope.row.value }}
159 159
                         </span>
160
-                        <span v-if="parseFloat(scope.row.value) >parseFloat(getrange(scope.row.range_max)) ">
160
+                        <span v-else-if="parseFloat(scope.row.value) >parseFloat(getrange(scope.row.range_max)) ">
161 161
                           {{ scope.row.value }} <span style="color: red;" v-if="scope.row.value>0">↑</span>
162 162
                         </span>
163
-                        <span v-if ="scope.row.range_max ==''||scope.row.range_min ==''">
163
+                        <span v-else-if ="scope.row.range_max ==''||scope.row.range_min ==''">
164 164
                           {{ scope.row.value }}
165 165
                         </span>
166
+                        <span v-else>{{ scope.row.value }}</span>
166 167
                       </span>
167 168
                       <!-- <span v-if="scope.row.value =='阳性'" style="color:red">{{ scope.row.value }}</span> -->
168 169
                       <!-- <span v-else>{{ scope.row.value }}</span> -->
@@ -1409,7 +1410,6 @@ export default {
1409 1410
                 this.is_open = true
1410 1411
               }else{
1411 1412
                 this.is_open = false
1412
-
1413 1413
               }
1414 1414
             }else{
1415 1415
               this.is_open = false
@@ -1458,7 +1458,7 @@ export default {
1458 1458
                   }else{
1459 1459
                     console.log('执行1');
1460 1460
 
1461
-                    if(this.org_id == 10702 || this.org_id == 0){
1461
+                    if(this.org_id == 10702){
1462 1462
                       if(item.project_name == '血常规'|| item.project_name == '透后肾功能' ||
1463 1463
                           item.project_name == '肝功能' || item.project_name == '电解质' || item.project_name == '透前肾功能' ||
1464 1464
                           item.project_name == '传染病检查'
@@ -1500,7 +1500,7 @@ export default {
1500 1500
               // item["inspect_type"] = inspectionsMap[items[index].id].inspect_type
1501 1501
               item.value_direction = ''
1502 1502
               if (item.range_type == 1) {
1503
-                console.log('执行5',parseFloat(item.value));
1503
+                console.log('执行5',item.value);
1504 1504
                 var value = parseFloat(item.value)
1505 1505
                 var range_min = parseFloat(item.range_min)
1506 1506
                 var range_max = parseFloat(item.range_max)
@@ -1519,12 +1519,9 @@ export default {
1519 1519
               // }
1520 1520
 
1521 1521
               console.log('fffff',this.items);
1522
-              if(item.value.indexOf("http") <0){
1523
-                this.isPic = true
1524
-              }
1522
+              if(item.value.indexOf("http") !=-1){
1525 1523
 
1526
-              if(this.org_id!=10503){
1527
-                this.isPic = false
1524
+                this.isPic = true
1528 1525
               }
1529 1526
 
1530 1527
               console.log("woowwoow",this.isPic)