Pārlūkot izejas kodu

11月20 打印单

yq1 2 dienas atpakaļ
vecāks
revīzija
6c043bc6dd

+ 1 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue Parādīt failu

@@ -85,6 +85,7 @@
85 85
               <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></label-box>&nbsp;
86 86
               <label-box :isChecked="prescription.mode_id == 7 ? true : false" showValue="IUF"></label-box>&nbsp;
87 87
               <label-box :isChecked="prescription.mode_id == 5 ? true : false" showValue="HF"></label-box>&nbsp;
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 Parādīt failu

@@ -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
 

+ 1 - 1
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue Parādīt failu

@@ -587,7 +587,7 @@
587 587
       <div>
588 588
         透析液配方详情:
589 589
           <div class="inline_block">
590
-           钠
590
+           钠
591 591
             <div
592 592
               class="under_line"
593 593
               style="width: 50px; text-align: center"