Sfoglia il codice sorgente

Merge branch '20230223_pad_vue_new_branch' of http://git.shengws.com/csx/Pad_New into 20230223_pad_vue_new_branch

28169 10 ore fa
parent
commit
bb37b950ca

+ 1 - 1
src/pages/main/PatientBox.vue Vedi File

@@ -56,7 +56,7 @@
56 56
               <span v-if="patient.patient.is_infectious==2" style="color:red">{{ patient.patient.name }}</span> 
57 57
               <span v-if="patient.patient.is_infectious!=2">{{ patient.patient.name }}</span> 
58 58
               <span class="num"
59
-                >{{ genderText(patient) }} | {{ age(patient) }}岁</span
59
+                >{{ genderText(patient) }} | {{ age(patient)>200 ? patient.patient.age : age(patient) }}岁</span
60 60
               >
61 61
             </h3>
62 62
             <div class="difficult" v-if="patient.patient.troble_shoot == 1">

+ 8 - 7
src/pages/main/template/DialysisPrintOrderSeventyeight.vue Vedi File

@@ -189,16 +189,15 @@
189 189
                     </div>
190 190
                   </div>
191 191
                 </div>
192
-
193 192
                 <div class="row" style="display: flex">
194
-                  <div class="inline_block" style="flex: 1;">
193
+                  <!-- <div class="inline_block" style="flex: 1;">
195 194
                     合并症:
196 195
                     <div class="under_line"
197 196
                       style=" width: 50%;text-align: center; white-space: normal;"
198 197
                     >
199 198
                       {{ predialysis.complication ? predialysis.complication : "/" }}
200 199
                     </div>
201
-                  </div>
200
+                  </div> -->
202 201
 
203 202
                   <!-- <div class="inline_block" style=" flex: 1">
204 203
                     跌倒评估:
@@ -1275,10 +1274,12 @@ export default {
1275 1274
         } if (this.predialysis.internal_fistula == "" || this.predialysis.catheter == "") {
1276 1275
           const obj6 = "透前内瘘,导管"
1277 1276
           checkDate.push(obj6)
1278
-        } if (this.predialysis.complication == "" ) {
1279
-          const obj7 = "合并症"
1280
-          checkDate.push(obj7)
1281
-        } if (this.predialysis.dry_weight == '' ) {
1277
+        } 
1278
+        // if (this.predialysis.complication == "" ) {
1279
+        //   const obj7 = "合并症"
1280
+        //   checkDate.push(obj7)
1281
+        // } 
1282
+        if (this.predialysis.dry_weight == '' ) {
1282 1283
           const obj8 = "干体重"
1283 1284
           checkDate.push(obj8)
1284 1285
         } if ( this. predialysis.weight_before == '') {

+ 2 - 2
src/pages/main/template/DialysisPrintOrderSixty.vue Vedi File

@@ -562,8 +562,8 @@
562 562
                       style="width: 70px; text-align: center"
563 563
                     >
564 564
                       {{
565
-                        prescription.displace_liqui_value
566
-                          ? prescription.displace_liqui_value
565
+                        prescription.replacement_total
566
+                          ? prescription.replacement_total
567 567
                           : "/"
568 568
                       }}
569 569
                     </div>

+ 25 - 91
src/pages/main/template/DialysisPrintOrderSixtyeight.vue Vedi File

@@ -828,31 +828,23 @@
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
-                          <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
-                                     <span v-if="it.remark!=''">({{ it.remark }})</span>
852
-                              </div> 
831
+                          <template v-if="advice.children!=undefined && (org_id==10551||org_id == 0)">
832
+                            <div v-for="(item,index) in advice.children" :key="index">
833
+                              {{ item.advice_name }}
834
+                              <span v-if="item.advice_desc">
835
+                                ({{ item.advice_desc}}{{ item.drug_spec_unit }})
836
+                              </span>
837
+                              <span v-if="item.prescribing_number">
838
+                                &nbsp;&nbsp; {{ item.prescribing_number}}
839
+                                {{ item.prescribing_number_unit }}
840
+                              </span>
841
+                              <span v-if="item.single_dose !=''">
842
+                                {{ item.single_dose}}{{ item.single_dose_unit }}
843
+                              </span>
844
+                              
853 845
                             </div>
854
-                          </div>
855
-                          <div v-else>
846
+                          </template>
847
+                          <div >
856 848
                             <span v-if="advice.parent_id > 0">---></span>
857 849
                             <span>{{ advice.advice_name }}</span>
858 850
                             <span v-if="advice && advice.advice_desc"
@@ -1820,7 +1812,13 @@ export default {
1820 1812
         for (let index = 0; index < this.doctor_advices.length; index++) {
1821 1813
           this.doctor_advices[index]['isShow'] = 2
1822 1814
         }
1823
-
1815
+        if(this.org_id ==10551 ||this.org_id ==0){
1816
+          for(let i in this.doctor_advices){
1817
+            if(this.doctor_advices[i].parent_id >0){
1818
+              this.doctor_advices.splice(i,1)
1819
+            }
1820
+          }
1821
+        }
1824 1822
         // if (this.doctor_advices.length > 0) {
1825 1823
         //   var group = this.newAdviceGroupObject()
1826 1824
         //   var initGroupBlock = function(group, advice) {
@@ -1917,72 +1915,8 @@ export default {
1917 1915
         }
1918 1916
         this.totollength = this.doctor_advices.length + this.monitors.length
1919 1917
         console.log(this.advice_groups)
1920
-        if(this.org_id ==10551 ||this.org_id ==0){
1921
-          var docArr = []
1922
-          if(this.doctor_advices!=null && this.doctor_advices.length>0){
1923
-            for(let i=0;i<this.doctor_advices.length;i++){
1924
-              if(this.doctor_advices[i].delivery_way!='口服'){
1925
-                  docArr.push(this.doctor_advices[i])
1926
-              }
1927
-            }
1928
-          }
1929
-          this.doctor_advices = []
1930
-          this.doctor_advices = docArr
1931
-
1932
-          if(this.doctor_advices!=null && this.doctor_advices.length>0 ){
1933
-
1934
-            for(let i=0;i<this.doctor_advices.length;i++){
1935
-              this.doctor_advices[i].groupPrescriptionId = this.doctor_advices[i].prescription_id + "_"  + this.doctor_advices[i].groupno
1936
-            }
1937
-            console.log("医嘱内容我我哦我我哦doctor_advices",this.doctor_advices)
1938
-
1939
-            let dataInfo = {}
1940
-            this.doctor_advices.forEach((item, index) => {
1941
-
1942
-            let { groupPrescriptionId } = item
1943
-            if (!dataInfo[groupPrescriptionId]) {
1944
-              dataInfo[groupPrescriptionId] = {
1945
-                groupPrescriptionId:item.groupPrescriptionId,
1946
-                start_time:item.start_time,
1947
-                advice_name:item.advice_name,
1948
-                advice_desc:item.advice_desc,
1949
-                parent_id:item.parent_id,
1950
-                drug_spec_unit:item.drug_spec_unit,
1951
-                prescribing_number:item.prescribing_number,
1952
-                prescribing_number_unit:item.prescribing_number_unit,
1953
-                single_dose:item.single_dose,
1954
-                single_dose_unit:item.single_dose_unit,
1955
-                delivery_way:item.delivery_way,
1956
-                execution_frequency:item.execution_frequency,
1957
-                remark:item.remark,
1958
-                execution_time:item.execution_time,
1959
-                execution_staff:item.execution_staff,
1960
-                prescriptionChild:[],
1961
-                advice_doctor:item.advice_doctor,
1962
-              }
1963
-            }
1964
-            })
1965
-            let newArr = Object.values(dataInfo)
1966
-
1967
-            if(newArr!=null && newArr.length >0){
1968
-              for(let i=0;i<newArr.length;i++){
1969
-                for(let j=0;j<this.doctor_advices.length;j++){
1970
-                  if(newArr[i].groupPrescriptionId == this.doctor_advices[j].groupPrescriptionId){
1971
-                      newArr[i].prescriptionChild.push(this.doctor_advices[j])
1972
-                  }
1973
-                }
1974
-              }
1975
-            }
1976
-            for(let i in newArr){
1977
-              if(newArr[i].parent_id == undefined){
1978
-                newArr.splice(i,1)
1979
-              }
1980
-            }
1981
-            this.doctor_advices = []
1982
-            this.doctor_advices = newArr
1983
-            console.log("newArr",this.doctor_advices)
1984
-          }
1985
-        }
1918
+        console.log("医嘱内容我我哦我我哦doctor_advices",this.doctor_advices)
1919
+        
1986 1920
       } else {
1987 1921
         this.loading = false
1988 1922
         this.$message.error('请求数据失败')

+ 19 - 4
src/pages/main/template/DialysisPrintOrdereighty.vue Vedi File

@@ -754,21 +754,36 @@
754 754
                   <div class="under_line"
755 755
                     style="width: 50px; text-align: center"
756 756
                   >
757
-                    {{
757
+                    <!-- {{
758 758
                       afterdialysis.systolic_blood_pressure
759 759
                         ? afterdialysis.systolic_blood_pressure
760 760
                         : "/"
761
-                    }}
761
+                    }} -->
762
+                    
763
+                    <span v-if="monitors.length>0">
764
+                      {{ 
765
+                        monitors[monitors.length-1].systolic_blood_pressure ?
766
+                        monitors[monitors.length-1].systolic_blood_pressure :"/"
767
+                      }}
768
+                    </span>
769
+                      <span v-else>/</span>
762 770
                   </div>
763 771
                   /
764 772
                   <div class="under_line"
765 773
                     style="width: 50px; text-align: center"
766 774
                   >
767
-                    {{
775
+                    <!-- {{
768 776
                       afterdialysis.diastolic_blood_pressure
769 777
                         ? afterdialysis.diastolic_blood_pressure
770 778
                         : "/"
771
-                    }}
779
+                    }} -->
780
+                    <span v-if="monitors.length>0">
781
+                      {{ 
782
+                        monitors[monitors.length-1].diastolic_blood_pressure ?
783
+                          monitors[monitors.length-1].diastolic_blood_pressure :"/"
784
+                      }}
785
+                    </span>
786
+                    <span v-else>/</span>
772 787
                   </div>
773 788
                   mmHg
774 789
                 </div>

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

@@ -363,7 +363,7 @@
363 363
           <tbody>
364 364
               <tr style="line-height:20px;">
365 365
                 <td width="60">时间</td>
366
-                <td width="30">测血压</td>
366
+                <td width="30">测血压</td>
367 367
                 <td width="60">BP<br/>mmHg</td>
368 368
                 <td width="40">脉搏<br/>次/分</td>
369 369
                 <td width="40">血流速<br/>ml/min</td>