Selaa lähdekoodia

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

28169 1 päivä sitten
vanhempi
commit
02b83f6fee

+ 10 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_seventeen.vue Näytä tiedosto

@@ -98,11 +98,12 @@
98 98
                 <tr>
99 99
                 <td style="text-align:left;" colspan="3">
100 100
                     <span style="display:inline-block;margin-left:15px;">治疗方式:</span>
101
-                    <label-box :isChecked="record.prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>&nbsp;
102
-                    <label-box :isChecked="record.prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp;
103
-                    <label-box :isChecked="record.prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>&nbsp;
104
-                    <label-box :isChecked="record.prescription.mode_id == 7 ? true : false" showValue="IUF"></label-box>&nbsp;
105
-                    <label-box :isChecked="record.prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>&nbsp;
101
+                    <label-box :isChecked="record.prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
102
+                    <label-box :isChecked="record.prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>
103
+                    <label-box :isChecked="record.prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>
104
+                    <label-box :isChecked="record.prescription.mode_id == 7 ? true : false" showValue="IUF"></label-box>
105
+                    <label-box :isChecked="record.prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>
106
+                    <label-box :isChecked="record.prescription.mode_id == 3 ? true : false" showValue="HD+HP"></label-box>
106 107
                 </td>
107 108
                 <td style="text-align:left;" colspan="4">
108 109
                     <span style="display:inline-block;margin-left:15px;">诊断: {{ record.patient.diagnose }}</span>
@@ -181,7 +182,7 @@
181 182
                     </span>
182 183
                 </td>
183 184
                 <td style="text-align:left;padding-left:15px;" colspan="6">
184
-                    
185
+
185 186
                     <span style="display:inline-block;">
186 187
                     <label-box :isChecked="record.prescription.anticoagulant == 7 ? true : false" showValue="低分子肝素钠"></label-box>:
187 188
                     <!-- <label-box :isChecked="record.prescription.anticoagulant == 6 ? true : false" showValue="低分子肝素钙"></label-box>: -->
@@ -998,7 +999,7 @@
998 999
                     </span>
999 1000
                 </td>
1000 1001
                 <td style="text-align:left;" colspan="3">
1001
-                    <span style="display:flex;align-items:center;height:36px;margin-left:15px;">下机护士: 
1002
+                    <span style="display:flex;align-items:center;height:36px;margin-left:15px;">下机护士:
1002 1003
                         <span  v-if="setAdminUserES(record.dialysis_order, 'finish_nurse') == ''">{{getAdminUser(record.dialysis_order, 'finish_nurse')}}</span>
1003 1004
                             <img class="es-img" :src="setAdminUserES(record.dialysis_order, 'finish_nurse')" alt=""
1004 1005
                         srcset="" v-else style="height: 30px;">
@@ -1206,7 +1207,7 @@ export default {
1206 1207
     }
1207 1208
     console.log(this.bloodAccessParOpera)
1208 1209
 
1209
-    
1210
+
1210 1211
      var arr = [];
1211 1212
     var arrtwo = [];
1212 1213
     for (let i = 0; i < bloodAccessParOpera.length; i++) {
@@ -1234,7 +1235,7 @@ export default {
1234 1235
       this.arr = arr;
1235 1236
       this.arrtwo = arrtwo;
1236 1237
 
1237
-      
1238
+
1238 1239
     this.blood_access_part = getDataConfig('hemodialysis', 'vascular_access')
1239 1240
 
1240 1241
     var dialysateFormulationOptions = getDataConfig(

+ 6 - 5
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue Näytä tiedosto

@@ -80,11 +80,12 @@
80 80
           <tr>
81 81
             <td style="text-align:left;" colspan="3">
82 82
               <span style="display:inline-block;margin-left:15px;">治疗方式:</span>
83
-              <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>&nbsp;
84
-              <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>&nbsp;
85
-              <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>&nbsp;
86
-              <label-box :isChecked="prescription.mode_id == 7 ? true : false" showValue="IUF"></label-box>&nbsp;
87
-              <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>&nbsp;
83
+              <label-box :isChecked="prescription.mode_id == 1 ? true : false" showValue="HD"></label-box>
84
+              <label-box :isChecked="prescription.mode_id == 2 ? true : false" showValue="HDF"></label-box>
85
+              <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>
86
+              <label-box :isChecked="prescription.mode_id == 7 ? true : false" showValue="IUF"></label-box>
87
+              <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>
88
+              <label-box :isChecked="prescription.mode_id == 3 ? true : false" showValue="HD+HP"></label-box>
88 89
             </td>
89 90
             <td style="text-align:left;" colspan="4">
90 91
               <span style="display:inline-block;margin-left:15px;">诊断: {{ patientInfo.diagnose }}</span>

+ 129 - 47
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue Näytä tiedosto

@@ -78,7 +78,7 @@
78 78
                   ? patientInfo.DialysisSchedule.device_zone.name
79 79
                   : "/"
80 80
               }}</span>
81
-              
81
+
82 82
             </div>
83 83
           </div>
84 84
           <div class="inline_block">
@@ -91,7 +91,7 @@
91 91
                   ? dialysisOrder.DeviceNumber.number
92 92
                   : patientInfo.DialysisSchedule.device_number.number
93 93
               }}</span>
94
-              
94
+
95 95
             </div>
96 96
           </div>
97 97
           <div class="inline_block">
@@ -414,7 +414,7 @@
414 414
                         }}
415 415
                       </div>
416 416
                     </div>
417
-                  
417
+
418 418
                   </div>
419 419
                   <div  class="row" style="padding: 2px 0; line-height: 23px; display: flex">
420 420
                     <div
@@ -824,7 +824,7 @@
824 824
                         <span v-if="dialysisOrder != null">
825 825
                           {{dialysisOrder.dialysis_dialyszers  }}
826 826
                         </span>
827
-                        
827
+
828 828
                       </div>
829 829
                       <!--  透析(滤)器合并取值 -->
830 830
                        <div v-if="org_id==10414"
@@ -856,7 +856,7 @@
856 856
                          <span v-if="dialysisOrder != null">
857 857
                           {{dialysisOrder.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}
858 858
                          </span>
859
-                         
859
+
860 860
                       </div>
861 861
                     </div>
862 862
 
@@ -943,7 +943,7 @@
943 943
                             : "/"
944 944
                         }}
945 945
                        </span>
946
-                      
946
+
947 947
                       </div>
948 948
                       <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
949 949
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
@@ -1069,7 +1069,7 @@
1069 1069
                      <span v-if="prescription.anticoagulant == 11">iu</span>
1070 1070
                      <span v-if="prescription.anticoagulant == 13||prescription.anticoagulant == 14">iu</span>
1071 1071
                      <span v-if="prescription.anticoagulant == 15">mg</span>
1072
-                     
1072
+
1073 1073
                     </span>
1074 1074
                     </div>
1075 1075
                     <div class="inline_block" style="margin-left: 20px" v-if="prescription.anticoagulant != 1">
@@ -1544,7 +1544,7 @@
1544 1544
                         </td>
1545 1545
                         <td style="font-size: 16px" width="10%">时间</td>
1546 1546
                         <td style="font-size: 16px" width="10%">医生签名</td>
1547
-                      
1547
+
1548 1548
                         <td style="font-size: 16px" width="10%">执行人签名</td>
1549 1549
 
1550 1550
                         <td style="font-size: 16px" width="10%" v-if="org_id == 0 || org_id == 10677">核对人签名</td>
@@ -1560,40 +1560,66 @@
1560 1560
                           </span>
1561 1561
 
1562 1562
                         </td>
1563
-                        <td
1564
-                          height="32px"
1565
-                          colspan="2"
1566
-                          class="advice-name"
1563
+                        <td height="32px"
1564
+                          colspan="2" class="advice-name"
1567 1565
                           style="padding-left: 7px"
1568 1566
                         >
1569
-
1570
-                          <span v-if="advice.parent_id > 0"></span>
1571
-                          <span>{{ advice.advice_name }}</span>
1572
-                          <span v-if="advice && advice.advice_desc"
1573
-                            >({{ advice.advice_desc
1574
-                            }}{{ advice.drug_spec_unit }})</span
1575
-                          >
1576
-                          <span v-if="advice.prescribing_number"
1577
-                            >&nbsp;&nbsp; {{ advice.prescribing_number
1578
-                            }}{{ advice.prescribing_number_unit }}</span
1579
-                          >
1580
-                          <span v-if="advice.single_dose != 0">
1581
-                            <span v-if="advice.advice_name!='血液透析滤过'&&advice.advice_name!='血液透析'&&advice.advice_name!='电脑血糖监测'">
1582
-                              {{ advice.single_dose}}{{ advice.single_dose_unit }}
1583
-                            </span>
1584
-                            </span>
1585
-                          <span v-if="advice.parent_id == 0">{{
1586
-                            advice.delivery_way
1587
-                          }}</span>
1588
-                          <span v-if="advice.parent_id == 0">{{
1589
-                            advice.execution_frequency
1590
-                          }}</span>
1591
-                          <span
1592
-                            v-if="
1593
-                              advice.parent_id == 0 && advice.remark.length > 0
1594
-                            "
1595
-                            >({{ advice.remark }})</span
1596
-                          >
1567
+                          <div v-if="org_id==10551 || org_id==0">
1568
+                            <div :rowspan="advice.prescriptionChild.length"  v-for="(it,key)  in advice.prescriptionChild" style="border: none;">
1569
+                              <div style="border: none;">
1570
+                                <span>{{ it.advice_name }}</span>
1571
+                                      <span v-if="it && it.advice_desc"
1572
+                                        >({{ it.advice_desc
1573
+                                        }}{{ it.drug_spec_unit }})</span
1574
+                                      >
1575
+                                      <span v-if="it.prescribing_number"
1576
+                                        >&nbsp;&nbsp; {{ it.prescribing_number
1577
+                                        }}{{ it.prescribing_number_unit }}</span
1578
+                                      >
1579
+                                      <span v-if="it.single_dose != 0"
1580
+                                        >{{ it.single_dose
1581
+                                        }}{{ it.single_dose_unit }}</span
1582
+                                      >
1583
+                                      <span>{{ it.delivery_way}}</span>
1584
+                                      <span>{{
1585
+                                        it.execution_frequency
1586
+                                      }}</span>
1587
+                                      <span v-if="it.remark.length > 0"
1588
+                                        >({{ it.remark }})</span
1589
+                                      >
1590
+                              </div>
1591
+                            </div>
1592
+                          </div>
1593
+                          <div v-else>
1594
+                            <span v-if="advice.parent_id > 0">---></span>
1595
+                            <span>{{ advice.advice_name }}</span>
1596
+                            <span v-if="advice && advice.advice_desc"
1597
+                              >({{ advice.advice_desc
1598
+                              }}{{ advice.drug_spec_unit }})</span
1599
+                            >
1600
+                            <span v-if="advice.prescribing_number"
1601
+                              >&nbsp;&nbsp; {{ advice.prescribing_number
1602
+                              }}{{ advice.prescribing_number_unit }}</span
1603
+                            >
1604
+                            <span v-if="advice.single_dose != 0">
1605
+                              <span v-if="advice.advice_name!='血液透析滤过'&&advice.advice_name!='血液透析'&&advice.advice_name!='电脑血糖监测'">
1606
+                                {{ advice.single_dose}}{{ advice.single_dose_unit }}
1607
+                              </span>
1608
+                              </span>
1609
+                            <span v-if="advice.parent_id == 0">{{
1610
+                              advice.delivery_way
1611
+                            }}</span>
1612
+                            <span v-if="advice.parent_id == 0">{{
1613
+                              advice.execution_frequency
1614
+                            }}</span>
1615
+                            <span
1616
+                              v-if="
1617
+                                advice.parent_id == 0 && advice.remark.length > 0
1618
+                              "
1619
+                              >({{ advice.remark }})</span
1620
+                            >
1621
+                          </div>
1622
+                          <!-- -->
1597 1623
                         </td>
1598 1624
 
1599 1625
                         <td height="32px">
@@ -1729,7 +1755,7 @@
1729 1755
                     ? patientInfo.DialysisSchedule.device_zone.name
1730 1756
                     : "/"
1731 1757
                 }}</span>
1732
-                
1758
+
1733 1759
               </div>
1734 1760
             </div>
1735 1761
             <div class="inline_block">
@@ -3660,11 +3686,8 @@ export default {
3660 3686
         //   }
3661 3687
         // }
3662 3688
 
3663
-
3664
-
3665
-
3666 3689
         console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
3667
-        if(this.org_id ==10515 || this.org_id == 0){
3690
+        if(this.org_id ==10515 ){
3668 3691
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
3669 3692
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
3670 3693
               this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
@@ -3759,9 +3782,68 @@ export default {
3759 3782
           this.doctor_advices = doctor_advices_1;
3760 3783
           this.doctor_advices_2 = doctor_advices_2;
3761 3784
         }
3762
-        // console.log(this.advice_groups);
3785
+        if(this.org_id ==10551 ||this.org_id ==0){
3786
+          var docArr = []
3787
+          if(this.doctor_advices!=null && this.doctor_advices.length>0){
3788
+            for(let i=0;i<this.doctor_advices.length;i++){
3789
+              if(this.doctor_advices[i].delivery_way!='口服'){
3790
+                  docArr.push(this.doctor_advices[i])
3791
+              }
3792
+            }
3793
+          }
3794
+          this.doctor_advices = []
3795
+          this.doctor_advices = docArr
3763 3796
 
3797
+          if(this.doctor_advices!=null && this.doctor_advices.length>0 ){
3764 3798
 
3799
+            for(let i=0;i<this.doctor_advices.length;i++){
3800
+              this.doctor_advices[i].groupPrescriptionId = this.doctor_advices[i].prescription_id + "_"  + this.doctor_advices[i].groupno
3801
+            }
3802
+            console.log("医嘱内容我我哦我我哦doctor_advices",this.doctor_advices)
3803
+
3804
+            let dataInfo = {}
3805
+            this.doctor_advices.forEach((item, index) => {
3806
+
3807
+            let { groupPrescriptionId } = item
3808
+            if (!dataInfo[groupPrescriptionId]) {
3809
+              dataInfo[groupPrescriptionId] = {
3810
+                groupPrescriptionId:item.groupPrescriptionId,
3811
+                start_time:item.start_time,
3812
+                advice_name:item.advice_name,
3813
+                advice_desc:item.advice_desc,
3814
+                parent_id:item.parent_id,
3815
+                drug_spec_unit:item.drug_spec_unit,
3816
+                prescribing_number:item.prescribing_number,
3817
+                prescribing_number_unit:item.prescribing_number_unit,
3818
+                single_dose:item.single_dose,
3819
+                single_dose_unit:item.single_dose_unit,
3820
+                delivery_way:item.delivery_way,
3821
+                execution_frequency:item.execution_frequency,
3822
+                remark:item.remark,
3823
+                execution_time:item.execution_time,
3824
+                execution_staff:item.execution_staff,
3825
+                prescriptionChild:[],
3826
+                advice_doctor:item.advice_doctor,
3827
+              }
3828
+            }
3829
+            })
3830
+            let newArr = Object.values(dataInfo)
3831
+
3832
+            if(newArr!=null && newArr.length >0){
3833
+            for(let i=0;i<newArr.length;i++){
3834
+              for(let j=0;j<this.doctor_advices.length;j++){
3835
+                if(newArr[i].groupPrescriptionId == this.doctor_advices[j].groupPrescriptionId){
3836
+                    newArr[i].prescriptionChild.push(this.doctor_advices[j])
3837
+                }
3838
+              }
3839
+            }
3840
+            }
3841
+            console.log("newArr",newArr)
3842
+            this.doctor_advices = []
3843
+            this.doctor_advices = newArr
3844
+
3845
+          }
3846
+        }
3765 3847
       } else {
3766 3848
         this.loading = false;
3767 3849
         this.$message.error("请求数据失败");
@@ -3883,7 +3965,7 @@ export default {
3883 3965
         this.patientInfo_source_1 = false;
3884 3966
       }
3885 3967
       }
3886
-     
3968
+
3887 3969
     },
3888 3970
 
3889 3971
 

+ 20 - 16
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue Näytä tiedosto

@@ -229,6 +229,13 @@
229 229
             <span v-if="predialysis.is_hemorrhage == 2">无</span>
230 230
             <span v-if="predialysis.is_hemorrhage != 2 && predialysis.is_hemorrhage != 1">/</span>
231 231
           </div>
232
+          <div style="display: inline-block;width: 250px;">
233
+            换药护士
234
+            <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
235
+              <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
236
+              <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
237
+            </div>
238
+          </div>
232 239
         </div>
233 240
         <div class="row">
234 241
           上机医生
@@ -243,20 +250,14 @@
243 250
             <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)}}</span>
244 251
             <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)" alt="" srcset="" v-else>
245 252
           </div>
246
-          <div v-if="predialysis.catheter ==''" style="display: inline-block;width: 250px;">
253
+          <div style="display: inline-block;width: 250px;">
247 254
             穿刺者
248 255
             <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
249 256
               <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
250 257
               <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
251 258
             </div>
252 259
           </div>
253
-          <div v-if="predialysis.catheter !=''" style="display: inline-block;width: 250px;">
254
-            换药护士
255
-            <div class="inline_block under_line" style="width:150px;text-align: center;margin-right:30px;">
256
-              <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.change_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.change_nurse)}}</span>
257
-              <img class="es-img" style="height:30px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.change_nurse)" alt="" srcset="" v-else>
258
-            </div>
259
-          </div>
260
+          
260 261
           上机护士
261 262
           <div class="inline_block under_line" style="width:100px;text-align: center;">
262 263
             <span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.start_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.start_nurse)}}</span>
@@ -448,13 +449,8 @@
448 449
                 <table class="table-box">
449 450
                   <tbody>
450 451
                     <tr>
451
-                      <td width="100" style="border:none;padding-left:5px">
452
-                        体外凝血等级: 
453
-                      </td>
454
-                      <td style="border:none;text-align:left;">
455
-                        
456
-                      </td>
457
-                      <td width="100" style="border:none;padding-left:5px">透析器凝血:</td>
452
+                      
453
+                      <td width="180" style="border:none;padding-left:5px">体外凝血等级透析器凝血:</td>
458 454
                       <td width="120" style="text-align:left;border:none;">
459 455
                         <span class="under_line" style="width:100px;display:inline-block">
460 456
                           {{ afterdialysis.cruor ? afterdialysis.cruor : "/" }}
@@ -507,6 +503,14 @@
507 503
                           </span>
508 504
                         </div>
509 505
                       </td>
506
+                      <td width="70" style="border:none;padding-left:5px;">体重减少:</td>
507
+                      <td width="100" colspan="3" style="text-align:left;border:none;">
508
+                        <div>
509
+                          <span class="under_line" style="width:50px;display:inline-block;">
510
+                            {{ afterdialysis.weight_loss ? afterdialysis.weight_loss : "/"}}
511
+                          </span>kg
512
+                        </div>
513
+                      </td>
510 514
                       <td width="70" style="border:none;padding-left:5px">下机护士:</td>
511 515
                       <td width="100" style="text-align:left;border:none;">
512 516
                         <div>
@@ -587,7 +591,7 @@
587 591
       <div>
588 592
         透析液配方详情:
589 593
           <div class="inline_block">
590
-           钠
594
+           钠
591 595
             <div
592 596
               class="under_line"
593 597
               style="width: 50px; text-align: center"