Parcourir la source

11月20日,打印单

yq1 il y a 2 jours
Parent
révision
247aafaea0

+ 5 - 0
src/pages/main/template/DialysisPrintOrderSeventeen.vue Voir le fichier

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

+ 118 - 3
src/pages/main/template/DialysisPrintOrderSixtyeight.vue Voir le fichier

@@ -828,14 +828,68 @@
828 828
                           <!-- <span v-else>&nbsp;<br/>&nbsp;</span> -->
829 829
                         </td>
830 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 886
                           <span >{{advice.advice_name }}</span>
833 887
                           <span v-if="advice&&advice.advice_desc">({{advice.advice_desc}}{{advice.drug_spec_unit}})</span>
834 888
                           <span v-if="advice.prescribing_number">* {{advice.prescribing_number}}{{advice.prescribing_number_unit}}</span>
835 889
                           <span  v-if="advice.single_dose != 0"> {{advice.single_dose}}{{advice.single_dose_unit}}</span>
836 890
                           <span v-if="advice.parent_id == 0">{{advice.delivery_way}}</span>
837 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 893
                         </td>
840 894
                         <!-- <td colspan="2" height="60px" style="text-align: center" v-else >
841 895
                           <span>{{advice.delivery_way}}</span>
@@ -1864,7 +1918,68 @@ export default {
1864 1918
         }
1865 1919
         this.totollength = this.doctor_advices.length + this.monitors.length
1866 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 1983
       } else {
1869 1984
         this.loading = false
1870 1985
         this.$message.error('请求数据失败')

+ 1 - 1
src/pages/main/template/DialysisPrintOrdereightytwo.vue Voir le fichier

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