Browse Source

11月20 打印单

yq1 2 days ago
parent
commit
6c043bc6dd

+ 1 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue View File

85
               <label-box :isChecked="prescription.mode_id == 4 ? true : false" showValue="HP"></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;
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;
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
             </td>
89
             </td>
89
             <td style="text-align:left;" colspan="4">
90
             <td style="text-align:left;" colspan="4">
90
               <span style="display:inline-block;margin-left:15px;">诊断: {{ patientInfo.diagnose }}</span>
91
               <span style="display:inline-block;margin-left:15px;">诊断: {{ patientInfo.diagnose }}</span>

+ 129 - 47
src/xt_pages/dialysis/template/DialysisPrintOrderSixtyeight.vue View File

78
                   ? patientInfo.DialysisSchedule.device_zone.name
78
                   ? patientInfo.DialysisSchedule.device_zone.name
79
                   : "/"
79
                   : "/"
80
               }}</span>
80
               }}</span>
81
-              
81
+
82
             </div>
82
             </div>
83
           </div>
83
           </div>
84
           <div class="inline_block">
84
           <div class="inline_block">
91
                   ? dialysisOrder.DeviceNumber.number
91
                   ? dialysisOrder.DeviceNumber.number
92
                   : patientInfo.DialysisSchedule.device_number.number
92
                   : patientInfo.DialysisSchedule.device_number.number
93
               }}</span>
93
               }}</span>
94
-              
94
+
95
             </div>
95
             </div>
96
           </div>
96
           </div>
97
           <div class="inline_block">
97
           <div class="inline_block">
414
                         }}
414
                         }}
415
                       </div>
415
                       </div>
416
                     </div>
416
                     </div>
417
-                  
417
+
418
                   </div>
418
                   </div>
419
                   <div  class="row" style="padding: 2px 0; line-height: 23px; display: flex">
419
                   <div  class="row" style="padding: 2px 0; line-height: 23px; display: flex">
420
                     <div
420
                     <div
824
                         <span v-if="dialysisOrder != null">
824
                         <span v-if="dialysisOrder != null">
825
                           {{dialysisOrder.dialysis_dialyszers  }}
825
                           {{dialysisOrder.dialysis_dialyszers  }}
826
                         </span>
826
                         </span>
827
-                        
827
+
828
                       </div>
828
                       </div>
829
                       <!--  透析(滤)器合并取值 -->
829
                       <!--  透析(滤)器合并取值 -->
830
                        <div v-if="org_id==10414"
830
                        <div v-if="org_id==10414"
856
                          <span v-if="dialysisOrder != null">
856
                          <span v-if="dialysisOrder != null">
857
                           {{dialysisOrder.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}
857
                           {{dialysisOrder.dialysis_irrigation ? prescription.dialysis_irrigation : "/" }}
858
                          </span>
858
                          </span>
859
-                         
859
+
860
                       </div>
860
                       </div>
861
                     </div>
861
                     </div>
862
 
862
 
943
                             : "/"
943
                             : "/"
944
                         }}
944
                         }}
945
                        </span>
945
                        </span>
946
-                      
946
+
947
                       </div>
947
                       </div>
948
                       <span v-if="org_id == 10395 || org_id == 9829 || org_id == 10440 || org_id == 10469 || org_id == 10471 || org_id == 10460">ml</span>
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
                       <span v-if="org_id!=10395&&org_id!=9829 && org_id!=10440 && org_id!=10469 && org_id!=10471 && org_id!=10460">L</span>
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
                      <span v-if="prescription.anticoagulant == 11">iu</span>
1069
                      <span v-if="prescription.anticoagulant == 11">iu</span>
1070
                      <span v-if="prescription.anticoagulant == 13||prescription.anticoagulant == 14">iu</span>
1070
                      <span v-if="prescription.anticoagulant == 13||prescription.anticoagulant == 14">iu</span>
1071
                      <span v-if="prescription.anticoagulant == 15">mg</span>
1071
                      <span v-if="prescription.anticoagulant == 15">mg</span>
1072
-                     
1072
+
1073
                     </span>
1073
                     </span>
1074
                     </div>
1074
                     </div>
1075
                     <div class="inline_block" style="margin-left: 20px" v-if="prescription.anticoagulant != 1">
1075
                     <div class="inline_block" style="margin-left: 20px" v-if="prescription.anticoagulant != 1">
1544
                         </td>
1544
                         </td>
1545
                         <td style="font-size: 16px" width="10%">时间</td>
1545
                         <td style="font-size: 16px" width="10%">时间</td>
1546
                         <td style="font-size: 16px" width="10%">医生签名</td>
1546
                         <td style="font-size: 16px" width="10%">医生签名</td>
1547
-                      
1547
+
1548
                         <td style="font-size: 16px" width="10%">执行人签名</td>
1548
                         <td style="font-size: 16px" width="10%">执行人签名</td>
1549
 
1549
 
1550
                         <td style="font-size: 16px" width="10%" v-if="org_id == 0 || org_id == 10677">核对人签名</td>
1550
                         <td style="font-size: 16px" width="10%" v-if="org_id == 0 || org_id == 10677">核对人签名</td>
1560
                           </span>
1560
                           </span>
1561
 
1561
 
1562
                         </td>
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
                           style="padding-left: 7px"
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
                         </td>
1623
                         </td>
1598
 
1624
 
1599
                         <td height="32px">
1625
                         <td height="32px">
1729
                     ? patientInfo.DialysisSchedule.device_zone.name
1755
                     ? patientInfo.DialysisSchedule.device_zone.name
1730
                     : "/"
1756
                     : "/"
1731
                 }}</span>
1757
                 }}</span>
1732
-                
1758
+
1733
               </div>
1759
               </div>
1734
             </div>
1760
             </div>
1735
             <div class="inline_block">
1761
             <div class="inline_block">
3660
         //   }
3686
         //   }
3661
         // }
3687
         // }
3662
 
3688
 
3663
-
3664
-
3665
-
3666
         console.log("RESWOOWOWWOOW",response.data.data.doctorAdevieInfo)
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
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
3691
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
3669
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
3692
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
3670
               this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
3693
               this.doctor_advices.push(response.data.data.doctorAdevieInfo[i])
3759
           this.doctor_advices = doctor_advices_1;
3782
           this.doctor_advices = doctor_advices_1;
3760
           this.doctor_advices_2 = doctor_advices_2;
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
       } else {
3847
       } else {
3766
         this.loading = false;
3848
         this.loading = false;
3767
         this.$message.error("请求数据失败");
3849
         this.$message.error("请求数据失败");
3883
         this.patientInfo_source_1 = false;
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 View File

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