Browse Source

Merge remote-tracking branch 'origin/20230223_pad_vue_new_branch' into 20230223_pad_vue_new_branch

yq1 1 week ago
parent
commit
6c0a9f8af1

+ 1 - 1
build/cdn.json View File

1
 {
1
 {
2
-  "version": "2999.999.13755"
2
+  "version": "2999.999.13757"
3
 }
3
 }

+ 187 - 13
src/pages/main/DetailsPage.vue View File

126
 
126
 
127
         <van-tabs v-model="active">
127
         <van-tabs v-model="active">
128
           <van-tab title="我的病人">
128
           <van-tab title="我的病人">
129
-            <van-index-bar class="indexBar" sticky highlight-color="#fb6463">
130
-              <div v-for="(subItem, index) in mypatients" :key="index" :index="index">
129
+            <van-index-bar class="indexBar" sticky highlight-color="#fb6463"  >
130
+              <div v-for="(subItem, index) in mypatients" :key="index" :index="index" v-if="$store.getters.user.template_info.org_id!=10721">
131
                 <van-index-anchor :index="index">
131
                 <van-index-anchor :index="index">
132
-                  <!-- <span class="indexWord">{{ index }}</span> -->
133
                 </van-index-anchor>
132
                 </van-index-anchor>
134
                 <van-cell
133
                 <van-cell
135
                   @click="choosePatient(item)"
134
                   @click="choosePatient(item)"
138
                   :title="item.patient.name"
137
                   :title="item.patient.name"
139
                 />
138
                 />
140
               </div>
139
               </div>
140
+              <div  :key="index" :index="index" v-if="$store.getters.user.template_info.org_id==10721">
141
+                <van-cell
142
+                  @click="choosePatient(item)"
143
+                  v-for="(item, subIndex) in myPatientsOne"
144
+                  :key="subIndex"
145
+                  :title="item.patient.name+ '' +'('+ item.device_number.number+')'"
146
+                />
147
+              </div>
141
             </van-index-bar>
148
             </van-index-bar>
142
           </van-tab>
149
           </van-tab>
143
           <van-tab title="全部病人">
150
           <van-tab title="全部病人">
144
             <van-index-bar class="indexBar" sticky highlight-color="#fb6463">
151
             <van-index-bar class="indexBar" sticky highlight-color="#fb6463">
145
-              <div v-for="(subItem, index) in patients" :key="index" :index="index">
152
+              <div v-for="(subItem, index) in patients" :key="index" :index="index" v-if="$store.getters.user.template_info.org_id!=10721">
146
                 <van-index-anchor :index="index">
153
                 <van-index-anchor :index="index">
147
-                  <!-- <span class="indexWord">{{ index }}</span> -->
148
                 </van-index-anchor>
154
                 </van-index-anchor>
149
                 <van-cell
155
                 <van-cell
150
                   @click="choosePatient(item)"
156
                   @click="choosePatient(item)"
153
                   :title="item.patient.name"
159
                   :title="item.patient.name"
154
                 />
160
                 />
155
               </div>
161
               </div>
162
+
163
+              <div  v-if="$store.getters.user.template_info.org_id==10721">
164
+               
165
+                <van-cell
166
+                  @click="choosePatient(item)"
167
+                  v-for="(item, subIndex) in newPatient"
168
+                  :key="subIndex"
169
+                  :title="item.patient.name+ '' +'('+ item.device_number.number+')'"
170
+                />
171
+              </div>
156
             </van-index-bar>
172
             </van-index-bar>
157
           </van-tab>
173
           </van-tab>
158
         </van-tabs>
174
         </van-tabs>
272
       zoneValue: 0,
288
       zoneValue: 0,
273
       zoneShow: false,
289
       zoneShow: false,
274
       zoneColumns: [],
290
       zoneColumns: [],
275
-
291
+      myPatientsOne:[],
292
+      newPatient:[],
276
       //
293
       //
277
       users: {
294
       users: {
278
         name: '',
295
         name: '',
738
     getScheduals (patient) {
755
     getScheduals (patient) {
739
       // console.log('222222', this.$store.getters.adminUserArr.adminUserArr)
756
       // console.log('222222', this.$store.getters.adminUserArr.adminUserArr)
740
       if (this.$store.getters.adminUserArr.adminUserArr) {
757
       if (this.$store.getters.adminUserArr.adminUserArr) {
741
-        // console.log('上面')
758
+        console.log('上面')
742
         this.getAdminUser(patient)
759
         this.getAdminUser(patient)
743
       } else {
760
       } else {
744
-        // console.log('下面')
761
+        console.log('下面')
745
         this.dialysisGlobalConfig(patient)
762
         this.dialysisGlobalConfig(patient)
746
       }
763
       }
747
 
764
 
768
           }
785
           }
769
         })
786
         })
770
       }
787
       }
788
+
789
+     
790
+
791
+     
792
+
793
+
771
       let cityNameList = []
794
       let cityNameList = []
772
       for (let p in zoneNewPatients) {
795
       for (let p in zoneNewPatients) {
773
         cityNameList.push(zoneNewPatients[p])
796
         cityNameList.push(zoneNewPatients[p])
774
       }
797
       }
798
+
799
+      console.log("全部患者-------------------------",cityNameList)
800
+
801
+
802
+        // //解决溪康排序问题
803
+       if(cityNameList!=null && cityNameList.length>0){
804
+          for(let i=0;i<cityNameList.length;i++){
805
+            cityNameList[i].sort = 0
806
+            cityNameList[i].sort = cityNameList[i].device_number.sort 
807
+          }
808
+        }
809
+       
810
+        this.newPatient = []
811
+        this.newPatient = cityNameList.sort(function (a, b) {
812
+            return a.sort > b.sort
813
+         })
814
+
815
+
816
+
817
+
775
       let firstName = {}
818
       let firstName = {}
776
       this.FirstPin.forEach(item => {
819
       this.FirstPin.forEach(item => {
777
         firstName[item] = []
820
         firstName[item] = []
782
           }
825
           }
783
         })
826
         })
784
         this.patients = firstName
827
         this.patients = firstName
828
+
829
+      
830
+
831
+       
832
+        
833
+        
785
         // 判断非空
834
         // 判断非空
786
         let newObj = {}
835
         let newObj = {}
787
         Object.keys(this.patients).map((item, index) => {
836
         Object.keys(this.patients).map((item, index) => {
790
           }
839
           }
791
         })
840
         })
792
         this.patients = newObj
841
         this.patients = newObj
842
+
843
+     
844
+       
845
+        
793
         // console.log('所有的病人', this.patients)
846
         // console.log('所有的病人', this.patients)
794
       })
847
       })
795
     },
848
     },
856
       this.show = false
909
       this.show = false
857
     },
910
     },
858
     getAdminUser (patient) {
911
     getAdminUser (patient) {
859
-      // console.log('user---', this.users.user_type)
912
+      // console.log("病人列表-----------------------------------",patient)
913
+
914
+      // if(patient!=null && patient.length>0){
915
+      //   for(let i=0;i<patient.length;i++){
916
+      //      patient[i].sort= 0
917
+      //      patient[i].sort = patient[i].device_number.sort
918
+      //   }
919
+      //   this.newPatient =  patient.sort(function (a, b) {
920
+      //       return a.sort > b.sort
921
+      //    })
922
+      // }
923
+
924
+      console.log('user---', this.users.user_type)
860
       if (this.users.user_type == 1 || this.users.user_type == 2) {
925
       if (this.users.user_type == 1 || this.users.user_type == 2) {
861
         // console.log('触发了吗')
926
         // console.log('触发了吗')
862
         let arr = []
927
         let arr = []
877
             zoneArr.push(item)
942
             zoneArr.push(item)
878
           }
943
           }
879
         })
944
         })
945
+
946
+        if(zoneArr!=null && zoneArr.length>0){
947
+          for(let i=0;i<zoneArr.length;i++){
948
+            zoneArr[i].sort = 0
949
+            zoneArr[i].sort = zoneArr[i].device_number.sort 
950
+          }
951
+        }
952
+       
953
+        this.myPatientsOne = []
954
+        this.myPatientsOne = zoneArr.sort(function (a, b) {
955
+            return a.sort > b.sort
956
+         })
957
+
958
+       
959
+
880
         this.searchArr = zoneArr
960
         this.searchArr = zoneArr
961
+
962
+
963
+
881
         let cityNameList = []
964
         let cityNameList = []
882
         for (let p in zoneArr) {
965
         for (let p in zoneArr) {
883
           cityNameList.push(zoneArr[p])
966
           cityNameList.push(zoneArr[p])
891
               firstName[item].push(el)
974
               firstName[item].push(el)
892
             }
975
             }
893
           })
976
           })
977
+         
978
+
894
           this.mypatients = firstName
979
           this.mypatients = firstName
895
           // 判断非空
980
           // 判断非空
896
           let newObj = {}
981
           let newObj = {}
905
       } else if (this.users.user_type == 3) {
990
       } else if (this.users.user_type == 3) {
906
         let arr = []
991
         let arr = []
907
         let zoneArr = []
992
         let zoneArr = []
908
-        console.log('武警机构ID', this.$store.getters.user.template_info.org_id)
909
-        console.log('9999999', patient)
993
+       
910
 
994
 
911
         if (this.$store.getters.user.template_info.org_id == 10340) {
995
         if (this.$store.getters.user.template_info.org_id == 10340) {
912
           patient.map((item, index) => {
996
           patient.map((item, index) => {
924
               }
1008
               }
925
             }
1009
             }
926
           })
1010
           })
927
-          console.log('arr0------------------', arr)
1011
+          
928
         } else {
1012
         } else {
929
           patient.map((item, index) => {
1013
           patient.map((item, index) => {
930
             if (item.dialysis_order != null && item.dialysis_order.start_nurse == this.users.id) {
1014
             if (item.dialysis_order != null && item.dialysis_order.start_nurse == this.users.id) {
937
           })
1021
           })
938
         }
1022
         }
939
 
1023
 
1024
+
1025
+
940
         arr.map(item => {
1026
         arr.map(item => {
941
           if (item.device_number.zone_id == this.zoneValue) {
1027
           if (item.device_number.zone_id == this.zoneValue) {
942
             zoneArr.push(item)
1028
             zoneArr.push(item)
944
             zoneArr.push(item)
1030
             zoneArr.push(item)
945
           }
1031
           }
946
         })
1032
         })
947
-        // console.log('arr', arr)
1033
+
1034
+        console.log("zoneArr---------------------",zoneArr)
1035
+       
1036
+
1037
+        // //解决溪康排序问题  我的病人列表
1038
+        if(zoneArr!=null && zoneArr.length>0){
1039
+          for(let i=0;i<zoneArr.length;i++){
1040
+            zoneArr[i].sort = 0
1041
+            zoneArr[i].sort = zoneArr[i].device_number.sort 
1042
+          }
1043
+        }
1044
+       
1045
+        this.myPatientsOne = []
1046
+        this.myPatientsOne = zoneArr.sort(function (a, b) {
1047
+            return a.sort > b.sort
1048
+         })
1049
+
1050
+      
1051
+
948
         let cityNameList = []
1052
         let cityNameList = []
949
         for (let p in zoneArr) {
1053
         for (let p in zoneArr) {
950
           cityNameList.push(zoneArr[p])
1054
           cityNameList.push(zoneArr[p])
951
         }
1055
         }
1056
+
1057
+        
1058
+
952
         let firstName = {}
1059
         let firstName = {}
953
         this.FirstPin.forEach(item => {
1060
         this.FirstPin.forEach(item => {
954
           firstName[item] = []
1061
           firstName[item] = []
958
               firstName[item].push(el)
1065
               firstName[item].push(el)
959
             }
1066
             }
960
           })
1067
           })
1068
+         
961
           this.mypatients = firstName
1069
           this.mypatients = firstName
962
           // 判断非空
1070
           // 判断非空
963
           let newObj = {}
1071
           let newObj = {}
969
           this.mypatients = newObj
1077
           this.mypatients = newObj
970
         })
1078
         })
971
         console.log('我的病人', this.mypatients)
1079
         console.log('我的病人', this.mypatients)
1080
+        
1081
+      
972
       }
1082
       }
973
     },
1083
     },
974
     dialysisGlobalConfig (patient) {
1084
     dialysisGlobalConfig (patient) {
996
                 zoneArr.push(item)
1106
                 zoneArr.push(item)
997
               }
1107
               }
998
             })
1108
             })
1109
+              // //解决溪康排序问题  我的病人列表
1110
+             if(zoneArr!=null && zoneArr.length>0){
1111
+                for(let i=0;i<zoneArr.length;i++){
1112
+                  zoneArr[i].sort = 0
1113
+                  zoneArr[i].sort = zoneArr[i].device_number.sort 
1114
+                }
1115
+              }
1116
+            
1117
+              this.myPatientsOne = []
1118
+              this.myPatientsOne = zoneArr.sort(function (a, b) {
1119
+                  return a.sort > b.sort
1120
+              })
1121
+
999
             this.searchArr = zoneArr
1122
             this.searchArr = zoneArr
1123
+
1000
             let cityNameList = []
1124
             let cityNameList = []
1001
             for (let p in zoneArr) {
1125
             for (let p in zoneArr) {
1002
               cityNameList.push(zoneArr[p])
1126
               cityNameList.push(zoneArr[p])
1003
             }
1127
             }
1128
+            
1129
+
1130
+            if(cityNameList!=null && cityNameList.length>0){
1131
+              for(let i=0;i<cityNameList.length;i++){
1132
+                cityNameList[i].sort = 0
1133
+                cityNameList[i].sort = cityNameList[i].device_number.sort 
1134
+              }
1135
+            }
1136
+       
1137
+            this.newPatient = []
1138
+            this.newPatient = cityNameList.sort(function (a, b) {
1139
+                return a.sort > b.sort
1140
+            })
1141
+
1142
+
1004
             let firstName = {}
1143
             let firstName = {}
1005
             this.FirstPin.forEach(item => {
1144
             this.FirstPin.forEach(item => {
1006
               firstName[item] = []
1145
               firstName[item] = []
1040
                 zoneArr.push(item)
1179
                 zoneArr.push(item)
1041
               }
1180
               }
1042
             })
1181
             })
1182
+
1183
+
1184
+              // //解决溪康排序问题  我的病人列表
1185
+              if(zoneArr!=null && zoneArr.length>0){
1186
+                for(let i=0;i<zoneArr.length;i++){
1187
+                  zoneArr[i].sort = 0
1188
+                  zoneArr[i].sort = zoneArr[i].device_number.sort 
1189
+                }
1190
+              }
1191
+            
1192
+              this.myPatientsOne = []
1193
+              this.myPatientsOne = zoneArr.sort(function (a, b) {
1194
+                  return a.sort > b.sort
1195
+              })
1196
+
1197
+
1198
+
1043
             // console.log('arr', arr)
1199
             // console.log('arr', arr)
1044
             let cityNameList = []
1200
             let cityNameList = []
1045
             for (let p in zoneArr) {
1201
             for (let p in zoneArr) {
1046
               cityNameList.push(zoneArr[p])
1202
               cityNameList.push(zoneArr[p])
1047
             }
1203
             }
1204
+
1205
+
1206
+            if(cityNameList!=null && cityNameList.length>0){
1207
+              for(let i=0;i<cityNameList.length;i++){
1208
+                cityNameList[i].sort = 0
1209
+                cityNameList[i].sort = cityNameList[i].device_number.sort 
1210
+              }
1211
+            }
1212
+       
1213
+            this.newPatient = []
1214
+            this.newPatient = cityNameList.sort(function (a, b) {
1215
+                return a.sort > b.sort
1216
+            })
1217
+              
1218
+           
1219
+          
1220
+
1221
+
1048
             let firstName = {}
1222
             let firstName = {}
1049
             this.FirstPin.forEach(item => {
1223
             this.FirstPin.forEach(item => {
1050
               firstName[item] = []
1224
               firstName[item] = []

+ 3 - 3
src/pages/main/newActionBar/assessmentAfter.vue View File

7
             <van-cell>
7
             <van-cell>
8
                 <template #title>
8
                 <template #title>
9
                     <span style="color:#7b8c9c" v-if="prescription_prop!=null">目标超滤量:{{prescription_prop.target_ultrafiltration}}</span>
9
                     <span style="color:#7b8c9c" v-if="prescription_prop!=null">目标超滤量:{{prescription_prop.target_ultrafiltration}}</span>
10
-                    <span style="color:#7b8c9c"  v-if="$store.getters.user.template_info.template_id != 9 && $store.getters.user.template_info.template_id != 17 && $store.getters.user.template_info.template_id != 20 && $store.getters.user.template_info.template_id != 21 && $store.getters.user.template_info.template_id != 22  && $store.getters.user.template_info.template_id != 23 && $store.getters.user.template_info.template_id != 24 && $store.getters.user.template_info.template_id != 26 && $store.getters.user.template_info.template_id != 28 && $store.getters.user.template_info.template_id != 27 && $store.getters.user.template_info.template_id != 29 && $store.getters.user.template_info.template_id != 30 && $store.getters.user.template_info.template_id != 31 && $store.getters.user.template_info.template_id != 32 && $store.getters.user.template_info.template_id != 34 && $store.getters.user.template_info.template_id != 38 && $store.getters.user.template_info.template_id != 40 && $store.getters.user.template_info.template_id != 43 && $store.getters.user.template_info.org_id!=9555 && $store.getters.user.template_info.template_id != 60  && $store.getters.user.template_info.org_id!=10340 && $store.getters.user.template_info.org_id!=10387 && $store.getters.user.template_info.org_id!=10430 && $store.getters.user.template_info.org_id!=10441 && $store.getters.user.template_info.org_id!=10445 && $store.getters.user.template_info.org_id!=9829 && $store.getters.user.template_info.org_id!=10440 && $store.getters.user.template_info.org_id!=10469 && $store.getters.user.template_info.org_id!=10460 && $store.getters.user.template_info.org_id!=10723">L</span>
11
-                    <span style="color:#7b8c9c"  v-if="$store.getters.user.template_info.template_id == 9 || $store.getters.user.template_info.template_id == 17 || $store.getters.user.template_info.template_id == 20 || $store.getters.user.template_info.template_id == 21 || $store.getters.user.template_info.template_id == 22 || $store.getters.user.template_info.template_id == 23 || $store.getters.user.template_info.template_id == 24 || $store.getters.user.template_info.template_id == 26 || $store.getters.user.template_info.template_id == 28 || $store.getters.user.template_info.template_id == 27 || $store.getters.user.template_info.template_id == 29 || $store.getters.user.template_info.template_id == 30 || $store.getters.user.template_info.template_id == 31 || $store.getters.user.template_info.template_id == 32 || $store.getters.user.template_info.template_id == 34 || $store.getters.user.template_info.template_id == 38 || $store.getters.user.template_info.template_id == 40 || $store.getters.user.template_info.template_id == 43 || $store.getters.user.template_info.org_id==9555 || $store.getters.user.template_info.template_id==60|| $store.getters.user.template_info.org_id==10340 || $store.getters.user.template_info.org_id==10387 || $store.getters.user.template_info.org_id==10430  || $store.getters.user.template_info.org_id==10441 || $store.getters.user.template_info.org_id==10445 || $store.getters.user.template_info.org_id==9829 ||  $store.getters.user.template_info.org_id==10440 ||  $store.getters.user.template_info.org_id==10469 ||  $store.getters.user.template_info.org_id==10460 ||  $store.getters.user.template_info.org_id==10723">ml</span>
10
+                    <span style="color:#7b8c9c"  v-if="$store.getters.user.template_info.template_id != 9 && $store.getters.user.template_info.template_id != 17 && $store.getters.user.template_info.template_id != 20 && $store.getters.user.template_info.template_id != 21 && $store.getters.user.template_info.template_id != 22  && $store.getters.user.template_info.template_id != 23 && $store.getters.user.template_info.template_id != 24 && $store.getters.user.template_info.template_id != 26 && $store.getters.user.template_info.template_id != 28 && $store.getters.user.template_info.template_id != 27 && $store.getters.user.template_info.template_id != 29 && $store.getters.user.template_info.template_id != 30 && $store.getters.user.template_info.template_id != 31 && $store.getters.user.template_info.template_id != 32 && $store.getters.user.template_info.template_id != 34 && $store.getters.user.template_info.template_id != 38 && $store.getters.user.template_info.template_id != 40 && $store.getters.user.template_info.template_id != 43 && $store.getters.user.template_info.org_id!=9555 && $store.getters.user.template_info.template_id != 60  && $store.getters.user.template_info.org_id!=10340 && $store.getters.user.template_info.org_id!=10387 && $store.getters.user.template_info.org_id!=10430 && $store.getters.user.template_info.org_id!=10441 && $store.getters.user.template_info.org_id!=10445 && $store.getters.user.template_info.org_id!=9829 && $store.getters.user.template_info.org_id!=10440 && $store.getters.user.template_info.org_id!=10469 && $store.getters.user.template_info.org_id!=10460 && $store.getters.user.template_info.org_id!=10723 && $store.getters.user.template_info.org_id!=10731">L</span>
11
+                    <span style="color:#7b8c9c"  v-if="$store.getters.user.template_info.template_id == 9 || $store.getters.user.template_info.template_id == 17 || $store.getters.user.template_info.template_id == 20 || $store.getters.user.template_info.template_id == 21 || $store.getters.user.template_info.template_id == 22 || $store.getters.user.template_info.template_id == 23 || $store.getters.user.template_info.template_id == 24 || $store.getters.user.template_info.template_id == 26 || $store.getters.user.template_info.template_id == 28 || $store.getters.user.template_info.template_id == 27 || $store.getters.user.template_info.template_id == 29 || $store.getters.user.template_info.template_id == 30 || $store.getters.user.template_info.template_id == 31 || $store.getters.user.template_info.template_id == 32 || $store.getters.user.template_info.template_id == 34 || $store.getters.user.template_info.template_id == 38 || $store.getters.user.template_info.template_id == 40 || $store.getters.user.template_info.template_id == 43 || $store.getters.user.template_info.org_id==9555 || $store.getters.user.template_info.template_id==60|| $store.getters.user.template_info.org_id==10340 || $store.getters.user.template_info.org_id==10387 || $store.getters.user.template_info.org_id==10430  || $store.getters.user.template_info.org_id==10441 || $store.getters.user.template_info.org_id==10445 || $store.getters.user.template_info.org_id==9829 ||  $store.getters.user.template_info.org_id==10440 ||  $store.getters.user.template_info.org_id==10469 ||  $store.getters.user.template_info.org_id==10460 ||  $store.getters.user.template_info.org_id==10723 ||  $store.getters.user.template_info.org_id==10731">ml</span>
12
                     &nbsp;&nbsp;&nbsp;&nbsp;
12
                     &nbsp;&nbsp;&nbsp;&nbsp;
13
                     <span style="color:#7b8c9c" v-if="prescription_prop!=null && ($store.getters.user.template_info.org_id == 9671 || $store.getters.user.template_info.org_id == 10469)">处方脱水量:{{prescription_prop.prescription_water}}ml</span>
13
                     <span style="color:#7b8c9c" v-if="prescription_prop!=null && ($store.getters.user.template_info.org_id == 9671 || $store.getters.user.template_info.org_id == 10469)">处方脱水量:{{prescription_prop.prescription_water}}ml</span>
14
                     &nbsp;&nbsp;&nbsp;&nbsp;
14
                     &nbsp;&nbsp;&nbsp;&nbsp;
21
                 <van-field v-model="timeValue" readonly @click="openPicker" @focus="inputFocus" v-if="isShow('实际治疗时长')" :required="isShow_title('实际治疗时长')" label="实际治疗时长" input-align="right"/>
21
                 <van-field v-model="timeValue" readonly @click="openPicker" @focus="inputFocus" v-if="isShow('实际治疗时长')" :required="isShow_title('实际治疗时长')" label="实际治疗时长" input-align="right"/>
22
                 <van-field v-model="formValue.actual_ultrafiltration" @focus="inputFocus" v-if="isShow('实际超滤量')" :required="isShow_title('实际超滤量')" type="number" input-align="right">
22
                 <van-field v-model="formValue.actual_ultrafiltration" @focus="inputFocus" v-if="isShow('实际超滤量')" :required="isShow_title('实际超滤量')" type="number" input-align="right">
23
                     <template #label>
23
                     <template #label>
24
-                        <span v-if="(template_id == 6 && $store.getters.user.template_info.org_id !=10447 && $store.getters.user.template_info.org_id !=10471) || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 17 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 28 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 36 || template_id == 38 || template_id == 40 || template_id == 43 || template_id == 44 || template_id == 47 || template_id == 56 || template_id == 60 || $store.getters.user.template_info.org_id == 9555 || $store.getters.user.template_info.org_id == 10307 || $store.getters.user.template_info.org_id == 10340 || $store.getters.user.template_info.org_id == 10387 || $store.getters.user.template_info.org_id == 10430 || $store.getters.user.template_info.org_id == 10432 || $store.getters.user.template_info.org_id == 10441 || $store.getters.user.template_info.org_id == 10445 || $store.getters.user.template_info.org_id == 10495 || $store.getters.user.template_info.org_id == 10375  || $store.getters.user.template_info.org_id == 10551 || $store.getters.user.template_info.org_id == 10597 || $store.getters.user.template_info.org_id == 10599 || $store.getters.user.template_info.org_id == 10580 || $store.getters.user.template_info.org_id == 10629 || $store.getters.user.template_info.org_id == 10617 || $store.getters.user.template_info.org_id == 10677 || $store.getters.user.template_info.org_id == 10667 || $store.getters.user.template_info.org_id == 10480 || $store.getters.user.template_info.org_id == 10693 || $store.getters.user.template_info.org_id == 10702 || $store.getters.user.template_info.org_id == 10697 || $store.getters.user.template_info.org_id == 10635 ||  $store.getters.user.template_info.org_id == 10723 ||  $store.getters.user.template_info.org_id == 10721">实际超滤量(ml)</span>
24
+                        <span v-if="(template_id == 6 && $store.getters.user.template_info.org_id !=10447 && $store.getters.user.template_info.org_id !=10471 && $store.getters.user.template_info.org_id !=10624) || template_id == 9 || template_id == 10 || template_id == 11 || template_id == 17 || template_id == 20 || template_id == 21 || template_id == 22 || template_id == 23 || template_id == 24 || template_id == 26 || template_id == 28 || template_id == 27 || template_id == 29 || template_id == 30 || template_id == 31 || template_id == 32 || template_id == 34 || template_id == 36 || template_id == 38 || template_id == 40 || template_id == 43 || template_id == 44 || template_id == 47 || template_id == 56 || template_id == 60 || $store.getters.user.template_info.org_id == 9555 || $store.getters.user.template_info.org_id == 10307 || $store.getters.user.template_info.org_id == 10340 || $store.getters.user.template_info.org_id == 10387 || $store.getters.user.template_info.org_id == 10430 || $store.getters.user.template_info.org_id == 10432 || $store.getters.user.template_info.org_id == 10441 || $store.getters.user.template_info.org_id == 10445 || $store.getters.user.template_info.org_id == 10495 || $store.getters.user.template_info.org_id == 10375  || $store.getters.user.template_info.org_id == 10551 || $store.getters.user.template_info.org_id == 10597 || $store.getters.user.template_info.org_id == 10599 || $store.getters.user.template_info.org_id == 10580 || $store.getters.user.template_info.org_id == 10629 || $store.getters.user.template_info.org_id == 10617 || $store.getters.user.template_info.org_id == 10677 || $store.getters.user.template_info.org_id == 10667 || $store.getters.user.template_info.org_id == 10480 || $store.getters.user.template_info.org_id == 10693 || $store.getters.user.template_info.org_id == 10702 || $store.getters.user.template_info.org_id == 10697 || $store.getters.user.template_info.org_id == 10635 ||  $store.getters.user.template_info.org_id == 10723 ||  $store.getters.user.template_info.org_id == 10721">实际超滤量(ml)</span>
25
                         <span v-else>实际超滤量(L)</span>
25
                         <span v-else>实际超滤量(L)</span>
26
                     </template>
26
                     </template>
27
                 </van-field>
27
                 </van-field>

+ 5 - 3
src/pages/main/newActionBar/dialysisPrescription.vue View File

153
                 $store.getters.user.template_info.org_id!=10644 &&
153
                 $store.getters.user.template_info.org_id!=10644 &&
154
                 $store.getters.user.template_info.org_id!=10667 &&
154
                 $store.getters.user.template_info.org_id!=10667 &&
155
                 $store.getters.user.template_info.org_id!=10723 &&
155
                 $store.getters.user.template_info.org_id!=10723 &&
156
-                $store.getters.user.template_info.org_id!=10727)||
156
+                $store.getters.user.template_info.org_id!=10727&&
157
+                $store.getters.user.template_info.org_id!=10731)||
157
                 $store.getters.user.template_info.org_id==10633
158
                 $store.getters.user.template_info.org_id==10633
158
               "
159
               "
159
               >目标超滤量(L)</span
160
               >目标超滤量(L)</span
197
                 $store.getters.user.template_info.org_id == 10644 ||
198
                 $store.getters.user.template_info.org_id == 10644 ||
198
                 $store.getters.user.template_info.org_id == 10667 ||
199
                 $store.getters.user.template_info.org_id == 10667 ||
199
                 $store.getters.user.template_info.org_id == 10723 ||
200
                 $store.getters.user.template_info.org_id == 10723 ||
200
-                $store.getters.user.template_info.org_id == 10727)&&
201
+                $store.getters.user.template_info.org_id == 10727 ||
202
+                $store.getters.user.template_info.org_id == 10731)&&
201
                 $store.getters.user.template_info.org_id != 10633
203
                 $store.getters.user.template_info.org_id != 10633
202
               "
204
               "
203
               >目标超滤量(ml)</span
205
               >目标超滤量(ml)</span
1073
         <van-collapse-item v-if="isShow('置换液')" name="9" v-show="huShow">
1075
         <van-collapse-item v-if="isShow('置换液')" name="9" v-show="huShow">
1074
           <template #title>
1076
           <template #title>
1075
             <span v-if="$store.getters.user.template_info.template_id != 6"
1077
             <span v-if="$store.getters.user.template_info.template_id != 6"
1076
-              ><span v-if="isShow_title('置换液')&&$store.getters.user.template_info.template_id != 6" class="warn_tip">*</span>置换</span
1078
+              ><span v-if="isShow_title('置换液')&&$store.getters.user.template_info.template_id != 6" class="warn_tip">*</span>置换方式</span
1077
             >
1079
             >
1078
             <span v-if="$store.getters.user.template_info.template_id == 6"
1080
             <span v-if="$store.getters.user.template_info.template_id == 6"
1079
               ><span v-if="isShow_title('置换液')&&$store.getters.user.template_info.template_id == 6" class="warn_tip">*</span>置换方式</span
1081
               ><span v-if="isShow_title('置换液')&&$store.getters.user.template_info.template_id == 6" class="warn_tip">*</span>置换方式</span

+ 2 - 2
src/pages/main/template/DialysisPrintOrderSix.vue View File

1193
                   <div class="under_line" style="width: 50px;text-align: center">
1193
                   <div class="under_line" style="width: 50px;text-align: center">
1194
                     {{afterdialysis.actual_ultrafiltration?afterdialysis.actual_ultrafiltration:'/'}}
1194
                     {{afterdialysis.actual_ultrafiltration?afterdialysis.actual_ultrafiltration:'/'}}
1195
                   </div>
1195
                   </div>
1196
-                  <span v-if="org_id!=9675&&org_id!=10447 &&org_id!=10471">
1196
+                  <span v-if="org_id!=9675&&org_id!=10447 &&org_id!=10471 &&org_id!=10624">
1197
                     ml
1197
                     ml
1198
                   </span>
1198
                   </span>
1199
 
1199
 
1200
-                  <span v-if="org_id==9675||org_id==10447 || org_id == 10471">
1200
+                  <span v-if="org_id==9675||org_id==10447 || org_id == 10471 || org_id ==10624">
1201
                    L
1201
                    L
1202
                   </span>
1202
                   </span>
1203
 
1203
 

+ 43 - 44
src/pages/main/template/DialysisPrintOrdereightyone.vue View File

215
                         {{ predialysis.internal_fistula ? predialysis.internal_fistula : '/' }}
215
                         {{ predialysis.internal_fistula ? predialysis.internal_fistula : '/' }}
216
                       </div>
216
                       </div>
217
                     </div>
217
                     </div>
218
-                    
218
+
219
                     <div class="inline_block" style="flex: 1">
219
                     <div class="inline_block" style="flex: 1">
220
                       导管:
220
                       导管:
221
                       <div class="under_line"
221
                       <div class="under_line"
234
                       </div>
234
                       </div>
235
                     </div>
235
                     </div>
236
                   </div>
236
                   </div>
237
-                  <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">  
237
+                  <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
238
                     <div class="inline_block" style="flex: 1">
238
                     <div class="inline_block" style="flex: 1">
239
                       透析方式:
239
                       透析方式:
240
                       <div class="under_line"
240
                       <div class="under_line"
278
                       </div>
278
                       </div>
279
                       ml/min
279
                       ml/min
280
                     </div>
280
                     </div>
281
-                    
281
+
282
                   </div>
282
                   </div>
283
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
283
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
284
                     <div class="inline_block" style="flex: 1">
284
                     <div class="inline_block" style="flex: 1">
332
                       <div class="under_line"
332
                       <div class="under_line"
333
                         style="width: 20%;text-align: center;white-space: normal;"
333
                         style="width: 20%;text-align: center;white-space: normal;"
334
                       >
334
                       >
335
-                        
335
+
336
                       </div>
336
                       </div>
337
                     </div>
337
                     </div>
338
                     <div class="inline_block" style="flex: 1">
338
                     <div class="inline_block" style="flex: 1">
340
                       <div class="under_line"
340
                       <div class="under_line"
341
                         style="width: 50%; text-align: center"
341
                         style="width: 50%; text-align: center"
342
                       >
342
                       >
343
-                        
343
+
344
                       </div>
344
                       </div>
345
                     </div>
345
                     </div>
346
 
346
 
349
                       <div class="under_line"
349
                       <div class="under_line"
350
                         style="width: 70px; text-align: center"
350
                         style="width: 70px; text-align: center"
351
                       >
351
                       >
352
-                        <span> 
352
+                        <span>
353
                         </span>
353
                         </span>
354
                       </div>
354
                       </div>
355
                     </div> -->
355
                     </div> -->
356
                   </div>
356
                   </div>
357
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
357
                   <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
358
-                    
358
+
359
                     <div class="inline_block" style="flex: 1">
359
                     <div class="inline_block" style="flex: 1">
360
                       上次透后体重:
360
                       上次透后体重:
361
                       <div class="under_line" style="width: 50px; text-align: center">
361
                       <div class="under_line" style="width: 50px; text-align: center">
362
-                        <span v-if="lastWeight!=null && lastWeight.weight_after>0">{{lastWeight.weight_after?lastWeight.weight_after:"未称重"}}</span> 
363
-                        <span v-if=" lastWeight!=null &&lastWeight.weight_after<=0">{{afterdialysis.last_after_weight?afterdialysis.last_after_weight:"未称重"}}</span> 
362
+                        <span v-if="lastWeight!=null && lastWeight.weight_after>0">{{lastWeight.weight_after?lastWeight.weight_after:"未称重"}}</span>
363
+                        <span v-if=" lastWeight!=null &&lastWeight.weight_after<=0">{{afterdialysis.last_after_weight?afterdialysis.last_after_weight:"未称重"}}</span>
364
                       </div>
364
                       </div>
365
                       kg
365
                       kg
366
                     </div>
366
                     </div>
383
                       体重增加:
383
                       体重增加:
384
                       <div class="under_line" style="width: 70px; text-align: center">
384
                       <div class="under_line" style="width: 70px; text-align: center">
385
                         <span>
385
                         <span>
386
-                          <span v-if="lastWeight.weight_after>0">{{ (predialysis.weight_before - predialysis.additional_weight - lastWeight.weight_after).toFixed(2)}}</span> 
387
-                          <span v-if="lastWeight.weight_after<=0">{{ (predialysis.weight_before - predialysis.additional_weight -afterdialysis.last_after_weight).toFixed(2)}}</span> 
386
+                          <span v-if="lastWeight.weight_after>0">{{ (predialysis.weight_before - predialysis.additional_weight - lastWeight.weight_after).toFixed(2)}}</span>
387
+                          <span v-if="lastWeight.weight_after<=0">{{ (predialysis.weight_before - predialysis.additional_weight -afterdialysis.last_after_weight).toFixed(2)}}</span>
388
                         </span>
388
                         </span>
389
                       </div>
389
                       </div>
390
                       kg
390
                       kg
401
                       L
401
                       L
402
                     </div>
402
                     </div>
403
                   </div>
403
                   </div>
404
-                  <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;" >        
404
+                  <div class="row" style="padding: 2px 0; line-height: 23px;display: flex;" >
405
                     <div class="inline_block" style="flex: 1.3;">
405
                     <div class="inline_block" style="flex: 1.3;">
406
                       透析液成分:钾:
406
                       透析液成分:钾:
407
                       <div class="under_line"
407
                       <div class="under_line"
408
                         style="width: 50px; text-align: center"
408
                         style="width: 50px; text-align: center"
409
                       >
409
                       >
410
                         {{ prescription.kalium ? prescription.kalium : "/" }}
410
                         {{ prescription.kalium ? prescription.kalium : "/" }}
411
-                        
411
+
412
                       </div>
412
                       </div>
413
                       mmol/L
413
                       mmol/L
414
                     </div>
414
                     </div>
428
                         class="under_line"
428
                         class="under_line"
429
                         style="width: 50px; text-align: center"
429
                         style="width: 50px; text-align: center"
430
                       >
430
                       >
431
-                        <span> {{ prescription.calcium ? prescription.calcium : "/" }}</span>                     
431
+                        <span> {{ prescription.calcium ? prescription.calcium : "/" }}</span>
432
                       </div>
432
                       </div>
433
                       mmol/L
433
                       mmol/L
434
                     </div>
434
                     </div>
442
                           prescription.bicarbonate ? prescription.bicarbonate : "/"
442
                           prescription.bicarbonate ? prescription.bicarbonate : "/"
443
                         }}
443
                         }}
444
                         </span>
444
                         </span>
445
-                        
445
+
446
                       </div>
446
                       </div>
447
                       mmol/L
447
                       mmol/L
448
                     </div>
448
                     </div>
486
                       <span v-if="prescription.anticoagulant!=''">
486
                       <span v-if="prescription.anticoagulant!=''">
487
                         {{ getshouji(prescription.anticoagulant) }}
487
                         {{ getshouji(prescription.anticoagulant) }}
488
                       </span>
488
                       </span>
489
-                      
489
+
490
                     </div>
490
                     </div>
491
                     <div class="inline_block" style="flex: 1;">
491
                     <div class="inline_block" style="flex: 1;">
492
                       追加:
492
                       追加:
502
                       <span v-if="prescription.anticoagulant!=''">
502
                       <span v-if="prescription.anticoagulant!=''">
503
                         {{ getweichi(prescription.anticoagulant) }}
503
                         {{ getweichi(prescription.anticoagulant) }}
504
                       </span>
504
                       </span>
505
-                      
505
+
506
                     </div>
506
                     </div>
507
                     <div class="inline_block" style="flex: 1;"
507
                     <div class="inline_block" style="flex: 1;"
508
                       v-if="prescription.anticoagulant == 5"
508
                       v-if="prescription.anticoagulant == 5"
551
                       <span v-if="prescription.anticoagulant!=''">
551
                       <span v-if="prescription.anticoagulant!=''">
552
                         {{ getzongliang(prescription.anticoagulant) }}
552
                         {{ getzongliang(prescription.anticoagulant) }}
553
                       </span>
553
                       </span>
554
-                      
554
+
555
                     </div>
555
                     </div>
556
                     <div class="inline_block" style="flex: 1">
556
                     <div class="inline_block" style="flex: 1">
557
                       透析机号:
557
                       透析机号:
564
                             : patientInfo.DialysisSchedule.device_number.number
564
                             : patientInfo.DialysisSchedule.device_number.number
565
                         }}
565
                         }}
566
                       </div>
566
                       </div>
567
-                    </div> 
567
+                    </div>
568
                     <div class="inline_block" style="flex: 1">
568
                     <div class="inline_block" style="flex: 1">
569
                       型号:
569
                       型号:
570
                       <div class="under_line" style="width: 60%; text-align: center">
570
                       <div class="under_line" style="width: 60%; text-align: center">
571
                         <span v-if="dialysisOrder && dialysisOrder.bed_id !=0">
571
                         <span v-if="dialysisOrder && dialysisOrder.bed_id !=0">
572
-                          {{ getnumberlist(dialysisOrder.bed_id) ? getnumberlist(dialysisOrder.bed_id) : '东丽'}} 
572
+                          {{ getnumberlist(dialysisOrder.bed_id) ? getnumberlist(dialysisOrder.bed_id) : '东丽'}}
573
                         </span>
573
                         </span>
574
                         <span v-else>
574
                         <span v-else>
575
-                          {{ getnumberlist(patientInfo.DialysisSchedule.bed_id) ?                    
575
+                          {{ getnumberlist(patientInfo.DialysisSchedule.bed_id) ?
576
                             getnumberlist(patientInfo.DialysisSchedule.bed_id) : '东丽'
576
                             getnumberlist(patientInfo.DialysisSchedule.bed_id) : '东丽'
577
-                          }} 
577
+                          }}
578
                         </span>
578
                         </span>
579
                         <!-- {{predialysis.machine_type ? predialysis.machine_type : ""}} -->
579
                         <!-- {{predialysis.machine_type ? predialysis.machine_type : ""}} -->
580
                       </div>
580
                       </div>
581
-                    </div>   
581
+                    </div>
582
                   </div>
582
                   </div>
583
                 </td>
583
                 </td>
584
               </tr>
584
               </tr>
795
                     </div>
795
                     </div>
796
                   </div>
796
                   </div>
797
                 </div>
797
                 </div>
798
-                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex"> 
798
+                <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
799
                   <div class="inline_block" style="flex: 1">
799
                   <div class="inline_block" style="flex: 1">
800
                     实际治疗时间:
800
                     实际治疗时间:
801
                     <div class="under_line"
801
                     <div class="under_line"
933
                       }}
933
                       }}
934
                     </div>
934
                     </div>
935
                     mmHg
935
                     mmHg
936
-                  </div>   
936
+                  </div>
937
                 </div>
937
                 </div>
938
 
938
 
939
                 <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
939
                 <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
1355
       ) {
1355
       ) {
1356
         const obj14 ='预透时间'
1356
         const obj14 ='预透时间'
1357
         checkDate.push(obj14)
1357
         checkDate.push(obj14)
1358
-      } if (this.prescription.dialyzer_perfusion_apparatus == '' && 
1358
+      } if (this.prescription.dialyzer_perfusion_apparatus == '' &&
1359
             this.prescription.dialysis_dialyszers ==''
1359
             this.prescription.dialysis_dialyszers ==''
1360
       ) {
1360
       ) {
1361
         const obj15 ='透析(滤)器'
1361
         const obj15 ='透析(滤)器'
1372
       } if (this.predialysis.weight_before == 0) {
1372
       } if (this.predialysis.weight_before == 0) {
1373
         const obj19 ='透前体重'
1373
         const obj19 ='透前体重'
1374
         checkDate.push(obj19)
1374
         checkDate.push(obj19)
1375
-      } if (this.prescription.target_ultrafiltration == 0) {
1375
+      } if (this.prescription.prescription_water == 0) {
1376
         const obj20 ='超滤总量'
1376
         const obj20 ='超滤总量'
1377
         checkDate.push(obj20)
1377
         checkDate.push(obj20)
1378
       } if (this.prescription.calcium == 0) {
1378
       } if (this.prescription.calcium == 0) {
1398
       ) {
1398
       ) {
1399
         const obj27 ='首剂'
1399
         const obj27 ='首剂'
1400
         checkDate.push(obj27)
1400
         checkDate.push(obj27)
1401
-      } if (this.prescription.anticoagulant_zongliang == 0 && this.prescription.anticoagulant !=1 
1401
+      } if (this.prescription.anticoagulant_zongliang == 0 && this.prescription.anticoagulant !=1
1402
             && this.prescription.anticoagulant !='' && this.prescription.anticoagulant != 5
1402
             && this.prescription.anticoagulant !='' && this.prescription.anticoagulant != 5
1403
       ) {
1403
       ) {
1404
         const obj28 ='总量'
1404
         const obj28 ='总量'
1405
         checkDate.push(obj28)
1405
         checkDate.push(obj28)
1406
-      } if (this.dialysisOrder.DeviceNumber.number == 0 && 
1406
+      } if (this.dialysisOrder.DeviceNumber.number == 0 &&
1407
             this.patientInfo.DialysisSchedule.device_number.number ==''
1407
             this.patientInfo.DialysisSchedule.device_number.number ==''
1408
       ) {
1408
       ) {
1409
         const obj29 ='透析机号'
1409
         const obj29 ='透析机号'
1410
         checkDate.push(obj29)
1410
         checkDate.push(obj29)
1411
-      } if (this.patientInfo.DialysisSchedule.bed_id == 0 && 
1411
+      } if (this.patientInfo.DialysisSchedule.bed_id == 0 &&
1412
             this.dialysisOrder && this.dialysisOrder.bed_id ==0
1412
             this.dialysisOrder && this.dialysisOrder.bed_id ==0
1413
       ) {
1413
       ) {
1414
         const obj30 ='型号'
1414
         const obj30 ='型号'
1540
           ){
1540
           ){
1541
             const obj58 = '监测第'+((i*1)+1)+'行置换率'
1541
             const obj58 = '监测第'+((i*1)+1)+'行置换率'
1542
             monearr.push(obj58)
1542
             monearr.push(obj58)
1543
-          } 
1543
+          }
1544
           // if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1544
           // if(this.monitors[i].displacement_quantity == 0 && this.prescription.mode =='HDF'&& i !=0){
1545
           //   const obj54 = '监测第'+((i*1)+1)+'行置换量'
1545
           //   const obj54 = '监测第'+((i*1)+1)+'行置换量'
1546
           //   monearr.push(obj54)
1546
           //   monearr.push(obj54)
1547
-          // }  
1547
+          // }
1548
           if(this.monitors[i].sodium_concentration ==0 ){
1548
           if(this.monitors[i].sodium_concentration ==0 ){
1549
             // this.monitors[i].temperature == 0
1549
             // this.monitors[i].temperature == 0
1550
             const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1550
             const obj59 = '监测第'+((i*1)+1)+'行钠浓度/温度'
1711
       // getDialysisRecord(this.queryParams).then(response => {
1711
       // getDialysisRecord(this.queryParams).then(response => {
1712
       var response = this.childResponse
1712
       var response = this.childResponse
1713
       if (response.data.state == 1) {
1713
       if (response.data.state == 1) {
1714
-        console.log('1234566',response.data.data);  
1714
+        console.log('1234566',response.data.data);
1715
         this.adminUser = response.data.data.users
1715
         this.adminUser = response.data.data.users
1716
         this.users = response.data.data.users
1716
         this.users = response.data.data.users
1717
         this.patientInfo = response.data.data.patientInfo
1717
         this.patientInfo = response.data.data.patientInfo
1885
             //   if(this.org_id!=10683){
1885
             //   if(this.org_id!=10683){
1886
             //     this.monitors[index].end = '【结束透析】回血100ml/min'
1886
             //     this.monitors[index].end = '【结束透析】回血100ml/min'
1887
             //   }
1887
             //   }
1888
-             
1888
+
1889
             // }
1889
             // }
1890
           }
1890
           }
1891
         }
1891
         }
1960
           if(this.doctor_advices[i].delivery_way!='口服' && this.doctor_advices[i].delivery_way!='中药口服'){
1960
           if(this.doctor_advices[i].delivery_way!='口服' && this.doctor_advices[i].delivery_way!='中药口服'){
1961
             if(this.doctor_advices[i].execution_frequency.indexOf("上机前") == -1 ){
1961
             if(this.doctor_advices[i].execution_frequency.indexOf("上机前") == -1 ){
1962
               advicearr.push(this.doctor_advices[i])
1962
               advicearr.push(this.doctor_advices[i])
1963
-            } 
1964
-           
1963
+            }
1964
+
1965
           }
1965
           }
1966
 
1966
 
1967
           // if(this.doctor_advices[i].delivery_way!='口服' && this.doctor_advices[i].delivery_way!='中药口服'){
1967
           // if(this.doctor_advices[i].delivery_way!='口服' && this.doctor_advices[i].delivery_way!='中药口服'){
1968
-             
1968
+
1969
           //   if(this.doctor_advices[i].execution_frequency.indexOf("上机前") == -1 ){
1969
           //   if(this.doctor_advices[i].execution_frequency.indexOf("上机前") == -1 ){
1970
           //     advicearr.push(this.doctor_advices[i])
1970
           //     advicearr.push(this.doctor_advices[i])
1971
-          //   } 
1971
+          //   }
1972
           // }
1972
           // }
1973
 
1973
 
1974
         }
1974
         }
1984
         //   this.print_length = 6
1984
         //   this.print_length = 6
1985
 
1985
 
1986
         //   for (let index = 0; index < nl; index++) {
1986
         //   for (let index = 0; index < nl; index++) {
1987
-            
1987
+
1988
         //     if (
1988
         //     if (
1989
         //       this.doctor_advices[index] == undefined ||
1989
         //       this.doctor_advices[index] == undefined ||
1990
-        //       this.doctor_advices[index].length <= 0  
1990
+        //       this.doctor_advices[index].length <= 0
1991
         //     ) {
1991
         //     ) {
1992
         //       this.doctor_advices.push([])
1992
         //       this.doctor_advices.push([])
1993
         //       console.log('1234567',this.doctor_advices)
1993
         //       console.log('1234567',this.doctor_advices)
1997
         //   }
1997
         //   }
1998
         // }
1998
         // }
1999
         // this.totollength = this.doctor_advices.length + this.monitors.length
1999
         // this.totollength = this.doctor_advices.length + this.monitors.length
2000
-        
2001
-       
2000
+
2001
+
2002
       } else {
2002
       } else {
2003
         this.loading = false
2003
         this.loading = false
2004
         this.$message.error('请求数据失败')
2004
         this.$message.error('请求数据失败')
2139
           .catch(() => {
2139
           .catch(() => {
2140
 
2140
 
2141
           });
2141
           });
2142
-       
2142
+
2143
         return message
2143
         return message
2144
       }else{
2144
       }else{
2145
         this.$toast('核对完成');
2145
         this.$toast('核对完成');
2260
   margin: 0 auto 50px;
2260
   margin: 0 auto 50px;
2261
   padding: 0 0 0 0;
2261
   padding: 0 0 0 0;
2262
   page-break-after: always;
2262
   page-break-after: always;
2263
-  height: 1000px;
2264
 }
2263
 }
2265
 
2264
 
2266
 .print_page_main_content .order-yy-name {
2265
 .print_page_main_content .order-yy-name {

+ 2 - 2
src/pages/main/today/dialysisPrescription.vue View File

16
         <li v-if="isShow('目标超滤量')">
16
         <li v-if="isShow('目标超滤量')">
17
           <label>目标超滤量 :</label>
17
           <label>目标超滤量 :</label>
18
           <span class="content">{{target_ultrafiltration != '0'?target_ultrafiltration:''}}</span>
18
           <span class="content">{{target_ultrafiltration != '0'?target_ultrafiltration:''}}</span>
19
-          <span v-if="this.$store.getters.user.template_info.template_id != 9 && this.$store.getters.user.template_info.template_id != 17 && this.$store.getters.user.template_info.template_id != 20 && this.$store.getters.user.template_info.template_id != 21 && this.$store.getters.user.template_info.template_id != 22 && this.$store.getters.user.template_info.template_id != 23 && this.$store.getters.user.template_info.template_id != 24 && this.$store.getters.user.template_info.template_id != 26 && this.$store.getters.user.template_info.template_id != 28 && this.$store.getters.user.template_info.org_id!=9555 && this.$store.getters.user.template_info.template_id != 27  && this.$store.getters.user.template_info.template_id != 30  && this.$store.getters.user.template_info.template_id != 32 && this.$store.getters.user.template_info.template_id != 38 && this.$store.getters.user.template_info.template_id != 40 && this.$store.getters.user.template_info.template_id != 43 && this.$store.getters.user.template_info.template_id != 45  && this.$store.getters.user.template_info.template_id != 46 && this.$store.getters.user.template_info.template_id != 48 && this.$store.getters.user.template_info.template_id != 56 &&  this.$store.getters.user.template_info.org_id!=10395 &&  this.$store.getters.user.template_info.org_id!=10340 && this.$store.getters.user.template_info.template_id != 60 &&  this.$store.getters.user.template_info.org_id!=10430 &&  this.$store.getters.user.template_info.org_id!=10432 &&  this.$store.getters.user.template_info.org_id!=10441 && this.$store.getters.user.template_info.org_id!=10445 && this.$store.getters.user.template_info.org_id!=9829 && this.$store.getters.user.template_info.org_id!=10440 && this.$store.getters.user.template_info.org_id!=10469 && this.$store.getters.user.template_info.org_id!=10460 && this.$store.getters.user.template_info.org_id!=10644 && this.$store.getters.user.template_info.org_id!=10667 && this.$store.getters.user.template_info.org_id!=10723&& this.$store.getters.user.template_info.org_id!=10727" class="unit" >{{target_ultrafiltration != '0'?"L":''}}</span>
20
-          <span v-if="this.$store.getters.user.template_info.template_id == 9 || this.$store.getters.user.template_info.template_id == 17 || this.$store.getters.user.template_info.template_id == 20 || this.$store.getters.user.template_info.template_id == 21 || this.$store.getters.user.template_info.template_id == 22 || this.$store.getters.user.template_info.template_id == 23 || this.$store.getters.user.template_info.template_id == 24 || this.$store.getters.user.template_info.template_id == 26 || this.$store.getters.user.template_info.template_id == 28 || this.$store.getters.user.template_info.org_id==9555 || this.$store.getters.user.template_info.template_id==27 || this.$store.getters.user.template_info.template_id == 30 || this.$store.getters.user.template_info.template_id == 32 || this.$store.getters.user.template_info.template_id == 38 || this.$store.getters.user.template_info.template_id == 40 || this.$store.getters.user.template_info.template_id == 43 || this.$store.getters.user.template_info.template_id == 45 || this.$store.getters.user.template_info.template_id == 46 || this.$store.getters.user.template_info.template_id == 48 || this.$store.getters.user.template_info.template_id == 56 || this.$store.getters.user.template_info.org_id==10395 || this.$store.getters.user.template_info.org_id ==10340  || this.$store.getters.user.template_info.template_id == 60 || this.$store.getters.user.template_info.org_id ==10430 || this.$store.getters.user.template_info.org_id ==10432  || this.$store.getters.user.template_info.org_id ==10441 || this.$store.getters.user.template_info.org_id ==10445 || this.$store.getters.user.template_info.org_id ==9829 || this.$store.getters.user.template_info.org_id ==10440 || this.$store.getters.user.template_info.org_id == 10469 ||  this.$store.getters.user.template_info.org_id == 10460 ||  this.$store.getters.user.template_info.org_id == 10644 ||  this.$store.getters.user.template_info.org_id == 10667 || this.$store.getters.user.template_info.org_id == 10723 || this.$store.getters.user.template_info.org_id == 10727" class="unit" >{{target_ultrafiltration != '0'?"ml":''}}</span>
19
+          <span v-if="this.$store.getters.user.template_info.template_id != 9 && this.$store.getters.user.template_info.template_id != 17 && this.$store.getters.user.template_info.template_id != 20 && this.$store.getters.user.template_info.template_id != 21 && this.$store.getters.user.template_info.template_id != 22 && this.$store.getters.user.template_info.template_id != 23 && this.$store.getters.user.template_info.template_id != 24 && this.$store.getters.user.template_info.template_id != 26 && this.$store.getters.user.template_info.template_id != 28 && this.$store.getters.user.template_info.org_id!=9555 && this.$store.getters.user.template_info.template_id != 27  && this.$store.getters.user.template_info.template_id != 30  && this.$store.getters.user.template_info.template_id != 32 && this.$store.getters.user.template_info.template_id != 38 && this.$store.getters.user.template_info.template_id != 40 && this.$store.getters.user.template_info.template_id != 43 && this.$store.getters.user.template_info.template_id != 45  && this.$store.getters.user.template_info.template_id != 46 && this.$store.getters.user.template_info.template_id != 48 && this.$store.getters.user.template_info.template_id != 56 &&  this.$store.getters.user.template_info.org_id!=10395 &&  this.$store.getters.user.template_info.org_id!=10340 && this.$store.getters.user.template_info.template_id != 60 &&  this.$store.getters.user.template_info.org_id!=10430 &&  this.$store.getters.user.template_info.org_id!=10432 &&  this.$store.getters.user.template_info.org_id!=10441 && this.$store.getters.user.template_info.org_id!=10445 && this.$store.getters.user.template_info.org_id!=9829 && this.$store.getters.user.template_info.org_id!=10440 && this.$store.getters.user.template_info.org_id!=10469 && this.$store.getters.user.template_info.org_id!=10460 && this.$store.getters.user.template_info.org_id!=10644 && this.$store.getters.user.template_info.org_id!=10667 && this.$store.getters.user.template_info.org_id!=10723&& this.$store.getters.user.template_info.org_id!=10727 && this.$store.getters.user.template_info.org_id!=10731" class="unit" >{{target_ultrafiltration != '0'?"L":''}}</span>
20
+          <span v-if="this.$store.getters.user.template_info.template_id == 9 || this.$store.getters.user.template_info.template_id == 17 || this.$store.getters.user.template_info.template_id == 20 || this.$store.getters.user.template_info.template_id == 21 || this.$store.getters.user.template_info.template_id == 22 || this.$store.getters.user.template_info.template_id == 23 || this.$store.getters.user.template_info.template_id == 24 || this.$store.getters.user.template_info.template_id == 26 || this.$store.getters.user.template_info.template_id == 28 || this.$store.getters.user.template_info.org_id==9555 || this.$store.getters.user.template_info.template_id==27 || this.$store.getters.user.template_info.template_id == 30 || this.$store.getters.user.template_info.template_id == 32 || this.$store.getters.user.template_info.template_id == 38 || this.$store.getters.user.template_info.template_id == 40 || this.$store.getters.user.template_info.template_id == 43 || this.$store.getters.user.template_info.template_id == 45 || this.$store.getters.user.template_info.template_id == 46 || this.$store.getters.user.template_info.template_id == 48 || this.$store.getters.user.template_info.template_id == 56 || this.$store.getters.user.template_info.org_id==10395 || this.$store.getters.user.template_info.org_id ==10340  || this.$store.getters.user.template_info.template_id == 60 || this.$store.getters.user.template_info.org_id ==10430 || this.$store.getters.user.template_info.org_id ==10432  || this.$store.getters.user.template_info.org_id ==10441 || this.$store.getters.user.template_info.org_id ==10445 || this.$store.getters.user.template_info.org_id ==9829 || this.$store.getters.user.template_info.org_id ==10440 || this.$store.getters.user.template_info.org_id == 10469 ||  this.$store.getters.user.template_info.org_id == 10460 ||  this.$store.getters.user.template_info.org_id == 10644 ||  this.$store.getters.user.template_info.org_id == 10667 || this.$store.getters.user.template_info.org_id == 10723 || this.$store.getters.user.template_info.org_id == 10727 || this.$store.getters.user.template_info.org_id == 10731" class="unit" >{{target_ultrafiltration != '0'?"ml":''}}</span>
21
           <!--<span-->
21
           <!--<span-->
22
           <!--class="unit"-->
22
           <!--class="unit"-->
23
           <!--v-if="this.$store.getters.user.template_info.template_id == 6"-->
23
           <!--v-if="this.$store.getters.user.template_info.template_id == 6"-->

+ 47 - 10
src/pages/patients/addPatient.vue View File

67
       <van-cell>
67
       <van-cell>
68
 
68
 
69
         <!-- 使用 title 插槽来自定义标题 -->
69
         <!-- 使用 title 插槽来自定义标题 -->
70
-        <template slot="title">
70
+        <!-- <template slot="title">
71
           <span class="custom-title">患者类型</span>
71
           <span class="custom-title">患者类型</span>
72
           <div style="width:60%;margin-left:2.2rem">
72
           <div style="width:60%;margin-left:2.2rem">
73
             <van-checkbox-group v-model="result" @change="changeMode">
73
             <van-checkbox-group v-model="result" @change="changeMode">
74
               <van-checkbox name="1" shape="square">血透患者</van-checkbox>
74
               <van-checkbox name="1" shape="square">血透患者</van-checkbox>
75
               <van-checkbox name="2" shape="square">慢病患者</van-checkbox>
75
               <van-checkbox name="2" shape="square">慢病患者</van-checkbox>
76
               <van-checkbox name="3" shape="square">会员患者</van-checkbox>
76
               <van-checkbox name="3" shape="square">会员患者</van-checkbox>
77
+              <van-checkbox name="4" shape="square">腹透患者</van-checkbox>
78
+              <van-checkbox name="5" shape="square">CKD患者</van-checkbox>
79
+              <van-checkbox name="6" shape="square">其他患者</van-checkbox>
77
             </van-checkbox-group>
80
             </van-checkbox-group>
78
           </div>
81
           </div>
79
-        </template>
82
+        </template> -->
83
+
84
+        <van-cell>
85
+          <template slot="title">
86
+            <span class="custom-title">患者类型</span>
87
+            <div
88
+              style="width:60%;margin-left:1.3rem;display: flex;align-items: center;"
89
+            >
90
+              <van-radio-group v-model="patient_type">
91
+                <van-radio name="1" shape="square">血透患者</van-radio>
92
+                <van-radio name="2" shape="square">慢病患者</van-radio>
93
+                <van-radio name="3" shape="square">会员患者</van-radio>
94
+                <van-radio name="4" shape="square">腹透患者</van-radio>
95
+                <van-radio name="5" shape="square">CKD患者</van-radio>
96
+                <van-radio name="6" shape="square">其他患者</van-radio>
97
+              </van-radio-group>
98
+            </div>
99
+          </template>
100
+        </van-cell>
80
       </van-cell>
101
       </van-cell>
81
     </div>
102
     </div>
82
 
103
 
447
         treatment_plan: ''
468
         treatment_plan: ''
448
       },
469
       },
449
       illnesslist: [],
470
       illnesslist: [],
450
-      showOne: false
471
+      showOne: false,
472
+      patient_type:1,
451
     }
473
     }
452
   },
474
   },
453
   methods: {
475
   methods: {
769
         return false
791
         return false
770
       }
792
       }
771
 
793
 
772
-      if (this.result.length === 0) {
773
-        this.$toast('患者类型不能为空')
774
-        return false
775
-      }
794
+      // if (this.result.length === 0) {
795
+      //   this.$toast('患者类型不能为空')
796
+      //   return false
797
+      // }
776
       if (this.patientForm.dialysis === '' && this.result.indexOf('1') != -1) {
798
       if (this.patientForm.dialysis === '' && this.result.indexOf('1') != -1) {
777
         this.$toast('透析号不能为空')
799
         this.$toast('透析号不能为空')
778
         return false
800
         return false
974
         is_infectious: this.patientForm.is_infectious,
996
         is_infectious: this.patientForm.is_infectious,
975
         relative_phone: this.patientForm.relative_phone,
997
         relative_phone: this.patientForm.relative_phone,
976
         remark: this.patientForm.remark,
998
         remark: this.patientForm.remark,
977
-        treatment_plan: this.patientForm.treatment_plan
978
-      }
979
-      // console.log('params', params)
999
+        treatment_plan: this.patientForm.treatment_plan,
1000
+        patient_type:parseInt(this.patient_type),
1001
+      }
1002
+    
1003
+      
1004
+      if(params.lapseto >0){
1005
+        params.lapseto = parseInt(params.lapseto)
1006
+      }else{
1007
+        params.lapseto = parseInt(params.lapseto)
1008
+      }
1009
+      params.treatmentMethod = 1
1010
+
1011
+      // if(params.treatmentMethod >0){
1012
+      //   params.treatmentMethod = parseInt(params.treatmentMethod)?parseInt(params.treatmentMethod):0
1013
+      // }else{
1014
+      //   params.treatmentMethod = parseInt(params.treatmentMethod)?parseInt(params.treatmentMethod):0
1015
+      // }
1016
+      console.log('params', params)
980
 
1017
 
981
       savePatient(params).then(response => {
1018
       savePatient(params).then(response => {
982
         if (response.data.state === 1) {
1019
         if (response.data.state === 1) {

+ 38 - 5
src/pages/patients/editPatient.vue View File

87
           :readonly="readonly"
87
           :readonly="readonly"
88
           placeholder="请输入家庭地址"
88
           placeholder="请输入家庭地址"
89
         />
89
         />
90
-      <van-cell>
91
-        <!-- 使用 title 插槽来自定义标题 -->
90
+      <!-- <van-cell>
91
+     
92
         <template slot="title">
92
         <template slot="title">
93
           <span class="custom-title">患者类型</span>
93
           <span class="custom-title">患者类型</span>
94
           <div style="width:60%;margin-left:2rem">
94
           <div style="width:60%;margin-left:2rem">
102
               <van-checkbox name="3" shape="square" @click="changeMode"
102
               <van-checkbox name="3" shape="square" @click="changeMode"
103
                 >会员患者</van-checkbox
103
                 >会员患者</van-checkbox
104
               >
104
               >
105
+              <van-checkbox name="4" shape="square" @click="changeMode"
106
+                >腹透患者</van-checkbox
107
+              >
108
+              <van-checkbox name="5" shape="square" @click="changeMode"
109
+                >CKD患者</van-checkbox
110
+              >
111
+              <van-checkbox name="6" shape="square" @click="changeMode"
112
+                >其他患者</van-checkbox
113
+              >
105
             </van-checkbox-group>
114
             </van-checkbox-group>
106
           </div>
115
           </div>
107
         </template>
116
         </template>
108
-      </van-cell>
117
+      </van-cell> -->
118
+
119
+      <van-cell>
120
+          <template slot="title">
121
+            <span class="custom-title">患者类型</span>
122
+            <div
123
+              style="width:60%;margin-left:1.3rem;display: flex;align-items: center;"
124
+            >
125
+              <van-radio-group v-model="patient_type">
126
+                <van-radio name="1" shape="square">血透患者</van-radio>
127
+                <van-radio name="2" shape="square">慢病患者</van-radio>
128
+                <van-radio name="3" shape="square">会员患者</van-radio>
129
+                <van-radio name="4" shape="square">腹透患者</van-radio>
130
+                <van-radio name="5" shape="square">CKD患者</van-radio>
131
+                <van-radio name="6" shape="square">其他患者</van-radio>
132
+              </van-radio-group>
133
+            </div>
134
+          </template>
135
+        </van-cell>
109
       <van-cell class="upfileCell">
136
       <van-cell class="upfileCell">
110
         <!-- 使用 title 插槽来自定义标题 -->
137
         <!-- 使用 title 插槽来自定义标题 -->
111
         <template slot="title">
138
         <template slot="title">
564
       centerDialogVisible: false,
591
       centerDialogVisible: false,
565
       loading: false,
592
       loading: false,
566
       uploadAvatar: '',
593
       uploadAvatar: '',
567
-      showDeath: false
594
+      showDeath: false,
595
+      patient_type:"",
596
+
568
     }
597
     }
569
   },
598
   },
570
   methods: {
599
   methods: {
942
           this.patientForm.death_time = uParseTimeOne(patientdetail.death_time, '{y}-{m}-{d}')
971
           this.patientForm.death_time = uParseTimeOne(patientdetail.death_time, '{y}-{m}-{d}')
943
           this.patientForm.out_reason = patientdetail.out_reason
972
           this.patientForm.out_reason = patientdetail.out_reason
944
           this.patientForm.treatment_plan = patientdetail.treatment_plan
973
           this.patientForm.treatment_plan = patientdetail.treatment_plan
974
+          this.patient_type = patientdetail.patient_type.toString()
975
+          console.log("类型===================",this.patient_type)
976
+          
945
         }
977
         }
946
       })
978
       })
947
     },
979
     },
1292
         out_reason: this.patientForm.out_reason,
1324
         out_reason: this.patientForm.out_reason,
1293
         relative_phone: this.patientForm.relative_phone,
1325
         relative_phone: this.patientForm.relative_phone,
1294
         remark: this.patientForm.remark,
1326
         remark: this.patientForm.remark,
1295
-        treatment_plan: this.patientForm.treatment_plan
1327
+        treatment_plan: this.patientForm.treatment_plan,
1328
+        patient_type:parseInt(this.patient_type),
1296
       }
1329
       }
1297
 
1330
 
1298
       updatedPatient(params).then(response => {
1331
       updatedPatient(params).then(response => {