Browse Source

11月20日,打印单

yq1 5 days ago
parent
commit
247aafaea0

+ 5 - 0
src/pages/main/template/DialysisPrintOrderSeventeen.vue View File

104
                   showValue="HF"
104
                   showValue="HF"
105
                   ></label-box
105
                   ></label-box
106
                   >&nbsp;
106
                   >&nbsp;
107
+                  <label-box
108
+                  :isChecked="prescription.mode_id == 3 ? true : false"
109
+                  showValue="HD+HP"
110
+                  ></label-box
111
+                  >
107
               </td>
112
               </td>
108
               <td style="text-align:left;" colspan="4">
113
               <td style="text-align:left;" colspan="4">
109
                   <span style="display:inline-block;margin-left:15px;"
114
                   <span style="display:inline-block;margin-left:15px;"

+ 118 - 3
src/pages/main/template/DialysisPrintOrderSixtyeight.vue View File

828
                           <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
828
                           <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
829
                         </td>
829
                         </td>
830
                         <td height="35px" colspan="2" class="advice-name" style="padding-left:7px;" >
830
                         <td height="35px" colspan="2" class="advice-name" style="padding-left:7px;" >
831
-                          <span v-if="advice.parent_id > 0">---></span>
831
+                          <div v-if="org_id==10551 || org_id==0">
832
+                            <div :rowspan="advice.prescriptionChild.length"  v-for="(it,key)  in advice.prescriptionChild" style="border: none;">
833
+                              <div style="border: none;">
834
+                                <span>{{ it.advice_name }}</span>
835
+                                      <span v-if="it && it.advice_desc"
836
+                                        >({{ it.advice_desc
837
+                                        }}{{ it.drug_spec_unit }})</span
838
+                                      >
839
+                                      <span v-if="it.prescribing_number"
840
+                                        >&nbsp;&nbsp; {{ it.prescribing_number
841
+                                        }}{{ it.prescribing_number_unit }}</span
842
+                                      >
843
+                                       <span v-if="it.single_dose != 0"
844
+                                        >{{ it.single_dose
845
+                                        }}{{ it.single_dose_unit }}</span
846
+                                      >
847
+                                      <span>{{ it.delivery_way}}</span>
848
+                                      <span>{{
849
+                                        it.execution_frequency
850
+                                      }}</span>
851
+                                      <!-- {{ it.remark }} -->
852
+                                     <span v-if="it.remark!=''">{{ it.remark }}</span>
853
+                              </div> 
854
+                            </div>
855
+                          </div>
856
+                          <div v-else>
857
+                            <span v-if="advice.parent_id > 0">---></span>
858
+                            <span>{{ advice.advice_name }}</span>
859
+                            <span v-if="advice && advice.advice_desc"
860
+                              >({{ advice.advice_desc
861
+                              }}{{ advice.drug_spec_unit }})</span
862
+                            >
863
+                            <span v-if="advice.prescribing_number"
864
+                              >&nbsp;&nbsp; {{ advice.prescribing_number
865
+                              }}{{ advice.prescribing_number_unit }}</span
866
+                            >
867
+                            <span v-if="advice.single_dose != 0">
868
+                              <span v-if="advice.advice_name!='血液透析滤过'&&advice.advice_name!='血液透析'&&advice.advice_name!='电脑血糖监测'">
869
+                                {{ advice.single_dose}}{{ advice.single_dose_unit }}
870
+                              </span>
871
+                              </span>
872
+                            <span v-if="advice.parent_id == 0">{{
873
+                              advice.delivery_way
874
+                            }}</span>
875
+                            <span v-if="advice.parent_id == 0">{{
876
+                              advice.execution_frequency
877
+                            }}</span>
878
+                            <span
879
+                              v-if="
880
+                                advice.parent_id == 0 && advice.remark.length > 0
881
+                              "
882
+                              >({{ advice.remark }})</span
883
+                            >
884
+                          </div>
885
+                          <!-- <span v-if="advice.parent_id > 0"></span>
832
                           <span >{{advice.advice_name }}</span>
886
                           <span >{{advice.advice_name }}</span>
833
                           <span v-if="advice&&advice.advice_desc">({{advice.advice_desc}}{{advice.drug_spec_unit}})</span>
887
                           <span v-if="advice&&advice.advice_desc">({{advice.advice_desc}}{{advice.drug_spec_unit}})</span>
834
                           <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
888
                           <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
835
                           <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
889
                           <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
836
                           <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
890
                           <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
837
                           <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
891
                           <span v-if="advice.parent_id == 0">{{advice.execution_frequency}}</span>
838
-                          <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span>
892
+                          <span v-if="advice.parent_id == 0 && advice.remark.length > 0" >({{advice.remark}})</span> -->
839
                         </td>
893
                         </td>
840
                         <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
894
                         <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
841
                           <span>{{advice.delivery_way}}</span>
895
                           <span>{{advice.delivery_way}}</span>
1864
         }
1918
         }
1865
         this.totollength = this.doctor_advices.length + this.monitors.length
1919
         this.totollength = this.doctor_advices.length + this.monitors.length
1866
         console.log(this.advice_groups)
1920
         console.log(this.advice_groups)
1867
-       
1921
+        if(this.org_id ==10551 ||this.org_id ==0){
1922
+          var docArr = []
1923
+          if(this.doctor_advices!=null && this.doctor_advices.length>0){
1924
+            for(let i=0;i<this.doctor_advices.length;i++){
1925
+              if(this.doctor_advices[i].delivery_way!='口服'){
1926
+                  docArr.push(this.doctor_advices[i])
1927
+              }
1928
+            }
1929
+          }
1930
+          this.doctor_advices = []
1931
+          this.doctor_advices = docArr
1932
+
1933
+          if(this.doctor_advices!=null && this.doctor_advices.length>0 ){
1934
+
1935
+            for(let i=0;i<this.doctor_advices.length;i++){
1936
+              this.doctor_advices[i].groupPrescriptionId = this.doctor_advices[i].prescription_id + "_"  + this.doctor_advices[i].groupno
1937
+            }
1938
+            console.log("医嘱内容我我哦我我哦doctor_advices",this.doctor_advices)
1939
+
1940
+            let dataInfo = {}
1941
+            this.doctor_advices.forEach((item, index) => {
1942
+
1943
+            let { groupPrescriptionId } = item
1944
+            if (!dataInfo[groupPrescriptionId]) {
1945
+              dataInfo[groupPrescriptionId] = {
1946
+                groupPrescriptionId:item.groupPrescriptionId,
1947
+                start_time:item.start_time,
1948
+                advice_name:item.advice_name,
1949
+                advice_desc:item.advice_desc,
1950
+                parent_id:item.parent_id,
1951
+                drug_spec_unit:item.drug_spec_unit,
1952
+                prescribing_number:item.prescribing_number,
1953
+                prescribing_number_unit:item.prescribing_number_unit,
1954
+                single_dose:item.single_dose,
1955
+                single_dose_unit:item.single_dose_unit,
1956
+                delivery_way:item.delivery_way,
1957
+                execution_frequency:item.execution_frequency,
1958
+                remark:item.remark,
1959
+                execution_time:item.execution_time,
1960
+                execution_staff:item.execution_staff,
1961
+                prescriptionChild:[],
1962
+                advice_doctor:item.advice_doctor,
1963
+              }
1964
+            }
1965
+            })
1966
+            let newArr = Object.values(dataInfo)
1967
+
1968
+            if(newArr!=null && newArr.length >0){
1969
+            for(let i=0;i<newArr.length;i++){
1970
+              for(let j=0;j<this.doctor_advices.length;j++){
1971
+                if(newArr[i].groupPrescriptionId == this.doctor_advices[j].groupPrescriptionId){
1972
+                    newArr[i].prescriptionChild.push(this.doctor_advices[j])
1973
+                }
1974
+              }
1975
+            }
1976
+            }
1977
+            
1978
+            this.doctor_advices = []
1979
+            this.doctor_advices = newArr
1980
+            console.log("newArr",this.doctor_advices)
1981
+          }
1982
+        }
1868
       } else {
1983
       } else {
1869
         this.loading = false
1984
         this.loading = false
1870
         this.$message.error('请求数据失败')
1985
         this.$message.error('请求数据失败')

+ 1 - 1
src/pages/main/template/DialysisPrintOrdereightytwo.vue View File

558
         <div style="font-size: 14px;">
558
         <div style="font-size: 14px;">
559
           透析液配方详情:
559
           透析液配方详情:
560
           <div class="inline_block">
560
           <div class="inline_block">
561
-          钠
561
+          钠
562
             <div
562
             <div
563
               class="under_line"
563
               class="under_line"
564
               style="width: 50px; text-align: center"
564
               style="width: 50px; text-align: center"