Browse Source

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

28169 1 week ago
parent
commit
83f87240d9

+ 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
 

+ 5 - 4
src/pages/main/template/DialysisPrintOrdereightyone.vue View File

383
                     <div class="under_line" style="width: 70px; text-align: center">
383
                     <div class="under_line" style="width: 70px; text-align: center">
384
                       <span>
384
                       <span>
385
                         <span v-if="lastWeight.weight_after>0">{{ (predialysis.weight_before - predialysis.additional_weight - lastWeight.weight_after).toFixed(2)}}</span> 
385
                         <span v-if="lastWeight.weight_after>0">{{ (predialysis.weight_before - predialysis.additional_weight - lastWeight.weight_after).toFixed(2)}}</span> 
386
-                        <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 && afterdialysis.last_after_weight>0">{{ (predialysis.weight_before - predialysis.additional_weight -afterdialysis.last_after_weight).toFixed(2)}}</span> 
387
+                        <span v-if="lastWeight.weight_after<=0 && afterdialysis.last_after_weight ==0">/</span> 
387
                       </span>
388
                       </span>
388
                     </div>
389
                     </div>
389
                     kg
390
                     kg
392
                     超滤总量:
393
                     超滤总量:
393
                     <div class="under_line" style="width: 60px; text-align: center">
394
                     <div class="under_line" style="width: 60px; text-align: center">
394
                       {{
395
                       {{
395
-                        prescription.target_ultrafiltration
396
-                          ? prescription.target_ultrafiltration
396
+                        prescription.prescription_water
397
+                          ? prescription.prescription_water
397
                           : "/"
398
                           : "/"
398
                       }}
399
                       }}
399
                     </div>
400
                     </div>
1371
       } if (this.predialysis.weight_before == 0) {
1372
       } if (this.predialysis.weight_before == 0) {
1372
         const obj19 ='透前体重'
1373
         const obj19 ='透前体重'
1373
         checkDate.push(obj19)
1374
         checkDate.push(obj19)
1374
-      } if (this.prescription.target_ultrafiltration == 0) {
1375
+      } if (this.prescription.prescription_water == 0) {
1375
         const obj20 ='超滤总量'
1376
         const obj20 ='超滤总量'
1376
         checkDate.push(obj20)
1377
         checkDate.push(obj20)
1377
       } if (this.prescription.calcium == 0) {
1378
       } if (this.prescription.calcium == 0) {

+ 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 => {