소스 검색

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

28169 1 주 전
부모
커밋
83f87240d9

+ 1 - 1
build/cdn.json 파일 보기

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

+ 187 - 13
src/pages/main/DetailsPage.vue 파일 보기

@@ -126,10 +126,9 @@
126 126
 
127 127
         <van-tabs v-model="active">
128 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 131
                 <van-index-anchor :index="index">
132
-                  <!-- <span class="indexWord">{{ index }}</span> -->
133 132
                 </van-index-anchor>
134 133
                 <van-cell
135 134
                   @click="choosePatient(item)"
@@ -138,13 +137,20 @@
138 137
                   :title="item.patient.name"
139 138
                 />
140 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 148
             </van-index-bar>
142 149
           </van-tab>
143 150
           <van-tab title="全部病人">
144 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 153
                 <van-index-anchor :index="index">
147
-                  <!-- <span class="indexWord">{{ index }}</span> -->
148 154
                 </van-index-anchor>
149 155
                 <van-cell
150 156
                   @click="choosePatient(item)"
@@ -153,6 +159,16 @@
153 159
                   :title="item.patient.name"
154 160
                 />
155 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 172
             </van-index-bar>
157 173
           </van-tab>
158 174
         </van-tabs>
@@ -272,7 +288,8 @@ export default {
272 288
       zoneValue: 0,
273 289
       zoneShow: false,
274 290
       zoneColumns: [],
275
-
291
+      myPatientsOne:[],
292
+      newPatient:[],
276 293
       //
277 294
       users: {
278 295
         name: '',
@@ -738,10 +755,10 @@ export default {
738 755
     getScheduals (patient) {
739 756
       // console.log('222222', this.$store.getters.adminUserArr.adminUserArr)
740 757
       if (this.$store.getters.adminUserArr.adminUserArr) {
741
-        // console.log('上面')
758
+        console.log('上面')
742 759
         this.getAdminUser(patient)
743 760
       } else {
744
-        // console.log('下面')
761
+        console.log('下面')
745 762
         this.dialysisGlobalConfig(patient)
746 763
       }
747 764
 
@@ -768,10 +785,36 @@ export default {
768 785
           }
769 786
         })
770 787
       }
788
+
789
+     
790
+
791
+     
792
+
793
+
771 794
       let cityNameList = []
772 795
       for (let p in zoneNewPatients) {
773 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 818
       let firstName = {}
776 819
       this.FirstPin.forEach(item => {
777 820
         firstName[item] = []
@@ -782,6 +825,12 @@ export default {
782 825
           }
783 826
         })
784 827
         this.patients = firstName
828
+
829
+      
830
+
831
+       
832
+        
833
+        
785 834
         // 判断非空
786 835
         let newObj = {}
787 836
         Object.keys(this.patients).map((item, index) => {
@@ -790,6 +839,10 @@ export default {
790 839
           }
791 840
         })
792 841
         this.patients = newObj
842
+
843
+     
844
+       
845
+        
793 846
         // console.log('所有的病人', this.patients)
794 847
       })
795 848
     },
@@ -856,7 +909,19 @@ export default {
856 909
       this.show = false
857 910
     },
858 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 925
       if (this.users.user_type == 1 || this.users.user_type == 2) {
861 926
         // console.log('触发了吗')
862 927
         let arr = []
@@ -877,7 +942,25 @@ export default {
877 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 960
         this.searchArr = zoneArr
961
+
962
+
963
+
881 964
         let cityNameList = []
882 965
         for (let p in zoneArr) {
883 966
           cityNameList.push(zoneArr[p])
@@ -891,6 +974,8 @@ export default {
891 974
               firstName[item].push(el)
892 975
             }
893 976
           })
977
+         
978
+
894 979
           this.mypatients = firstName
895 980
           // 判断非空
896 981
           let newObj = {}
@@ -905,8 +990,7 @@ export default {
905 990
       } else if (this.users.user_type == 3) {
906 991
         let arr = []
907 992
         let zoneArr = []
908
-        console.log('武警机构ID', this.$store.getters.user.template_info.org_id)
909
-        console.log('9999999', patient)
993
+       
910 994
 
911 995
         if (this.$store.getters.user.template_info.org_id == 10340) {
912 996
           patient.map((item, index) => {
@@ -924,7 +1008,7 @@ export default {
924 1008
               }
925 1009
             }
926 1010
           })
927
-          console.log('arr0------------------', arr)
1011
+          
928 1012
         } else {
929 1013
           patient.map((item, index) => {
930 1014
             if (item.dialysis_order != null && item.dialysis_order.start_nurse == this.users.id) {
@@ -937,6 +1021,8 @@ export default {
937 1021
           })
938 1022
         }
939 1023
 
1024
+
1025
+
940 1026
         arr.map(item => {
941 1027
           if (item.device_number.zone_id == this.zoneValue) {
942 1028
             zoneArr.push(item)
@@ -944,11 +1030,32 @@ export default {
944 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 1052
         let cityNameList = []
949 1053
         for (let p in zoneArr) {
950 1054
           cityNameList.push(zoneArr[p])
951 1055
         }
1056
+
1057
+        
1058
+
952 1059
         let firstName = {}
953 1060
         this.FirstPin.forEach(item => {
954 1061
           firstName[item] = []
@@ -958,6 +1065,7 @@ export default {
958 1065
               firstName[item].push(el)
959 1066
             }
960 1067
           })
1068
+         
961 1069
           this.mypatients = firstName
962 1070
           // 判断非空
963 1071
           let newObj = {}
@@ -969,6 +1077,8 @@ export default {
969 1077
           this.mypatients = newObj
970 1078
         })
971 1079
         console.log('我的病人', this.mypatients)
1080
+        
1081
+      
972 1082
       }
973 1083
     },
974 1084
     dialysisGlobalConfig (patient) {
@@ -996,11 +1106,40 @@ export default {
996 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 1122
             this.searchArr = zoneArr
1123
+
1000 1124
             let cityNameList = []
1001 1125
             for (let p in zoneArr) {
1002 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 1143
             let firstName = {}
1005 1144
             this.FirstPin.forEach(item => {
1006 1145
               firstName[item] = []
@@ -1040,11 +1179,46 @@ export default {
1040 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 1199
             // console.log('arr', arr)
1044 1200
             let cityNameList = []
1045 1201
             for (let p in zoneArr) {
1046 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 1222
             let firstName = {}
1049 1223
             this.FirstPin.forEach(item => {
1050 1224
               firstName[item] = []

+ 3 - 3
src/pages/main/newActionBar/assessmentAfter.vue 파일 보기

@@ -7,8 +7,8 @@
7 7
             <van-cell>
8 8
                 <template #title>
9 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 12
                     &nbsp;&nbsp;&nbsp;&nbsp;
13 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 14
                     &nbsp;&nbsp;&nbsp;&nbsp;
@@ -21,7 +21,7 @@
21 21
                 <van-field v-model="timeValue" readonly @click="openPicker" @focus="inputFocus" v-if="isShow('实际治疗时长')" :required="isShow_title('实际治疗时长')" label="实际治疗时长" input-align="right"/>
22 22
                 <van-field v-model="formValue.actual_ultrafiltration" @focus="inputFocus" v-if="isShow('实际超滤量')" :required="isShow_title('实际超滤量')" type="number" input-align="right">
23 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 25
                         <span v-else>实际超滤量(L)</span>
26 26
                     </template>
27 27
                 </van-field>

+ 5 - 3
src/pages/main/newActionBar/dialysisPrescription.vue 파일 보기

@@ -153,7 +153,8 @@
153 153
                 $store.getters.user.template_info.org_id!=10644 &&
154 154
                 $store.getters.user.template_info.org_id!=10667 &&
155 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 158
                 $store.getters.user.template_info.org_id==10633
158 159
               "
159 160
               >目标超滤量(L)</span
@@ -197,7 +198,8 @@
197 198
                 $store.getters.user.template_info.org_id == 10644 ||
198 199
                 $store.getters.user.template_info.org_id == 10667 ||
199 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 203
                 $store.getters.user.template_info.org_id != 10633
202 204
               "
203 205
               >目标超滤量(ml)</span
@@ -1073,7 +1075,7 @@
1073 1075
         <van-collapse-item v-if="isShow('置换液')" name="9" v-show="huShow">
1074 1076
           <template #title>
1075 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 1080
             <span v-if="$store.getters.user.template_info.template_id == 6"
1079 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 파일 보기

@@ -1193,11 +1193,11 @@
1193 1193
                   <div class="under_line" style="width: 50px;text-align: center">
1194 1194
                     {{afterdialysis.actual_ultrafiltration?afterdialysis.actual_ultrafiltration:'/'}}
1195 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 1197
                     ml
1198 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 1201
                    L
1202 1202
                   </span>
1203 1203
 

+ 5 - 4
src/pages/main/template/DialysisPrintOrdereightyone.vue 파일 보기

@@ -383,7 +383,8 @@
383 383
                     <div class="under_line" style="width: 70px; text-align: center">
384 384
                       <span>
385 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 388
                       </span>
388 389
                     </div>
389 390
                     kg
@@ -392,8 +393,8 @@
392 393
                     超滤总量:
393 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 400
                     </div>
@@ -1371,7 +1372,7 @@ export default {
1371 1372
       } if (this.predialysis.weight_before == 0) {
1372 1373
         const obj19 ='透前体重'
1373 1374
         checkDate.push(obj19)
1374
-      } if (this.prescription.target_ultrafiltration == 0) {
1375
+      } if (this.prescription.prescription_water == 0) {
1375 1376
         const obj20 ='超滤总量'
1376 1377
         checkDate.push(obj20)
1377 1378
       } if (this.prescription.calcium == 0) {

+ 2 - 2
src/pages/main/today/dialysisPrescription.vue 파일 보기

@@ -16,8 +16,8 @@
16 16
         <li v-if="isShow('目标超滤量')">
17 17
           <label>目标超滤量 :</label>
18 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 21
           <!--<span-->
22 22
           <!--class="unit"-->
23 23
           <!--v-if="this.$store.getters.user.template_info.template_id == 6"-->

+ 47 - 10
src/pages/patients/addPatient.vue 파일 보기

@@ -67,16 +67,37 @@
67 67
       <van-cell>
68 68
 
69 69
         <!-- 使用 title 插槽来自定义标题 -->
70
-        <template slot="title">
70
+        <!-- <template slot="title">
71 71
           <span class="custom-title">患者类型</span>
72 72
           <div style="width:60%;margin-left:2.2rem">
73 73
             <van-checkbox-group v-model="result" @change="changeMode">
74 74
               <van-checkbox name="1" shape="square">血透患者</van-checkbox>
75 75
               <van-checkbox name="2" shape="square">慢病患者</van-checkbox>
76 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 80
             </van-checkbox-group>
78 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 101
       </van-cell>
81 102
     </div>
82 103
 
@@ -447,7 +468,8 @@ export default {
447 468
         treatment_plan: ''
448 469
       },
449 470
       illnesslist: [],
450
-      showOne: false
471
+      showOne: false,
472
+      patient_type:1,
451 473
     }
452 474
   },
453 475
   methods: {
@@ -769,10 +791,10 @@ export default {
769 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 798
       if (this.patientForm.dialysis === '' && this.result.indexOf('1') != -1) {
777 799
         this.$toast('透析号不能为空')
778 800
         return false
@@ -974,9 +996,24 @@ export default {
974 996
         is_infectious: this.patientForm.is_infectious,
975 997
         relative_phone: this.patientForm.relative_phone,
976 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 1018
       savePatient(params).then(response => {
982 1019
         if (response.data.state === 1) {

+ 38 - 5
src/pages/patients/editPatient.vue 파일 보기

@@ -87,8 +87,8 @@
87 87
           :readonly="readonly"
88 88
           placeholder="请输入家庭地址"
89 89
         />
90
-      <van-cell>
91
-        <!-- 使用 title 插槽来自定义标题 -->
90
+      <!-- <van-cell>
91
+     
92 92
         <template slot="title">
93 93
           <span class="custom-title">患者类型</span>
94 94
           <div style="width:60%;margin-left:2rem">
@@ -102,10 +102,37 @@
102 102
               <van-checkbox name="3" shape="square" @click="changeMode"
103 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 114
             </van-checkbox-group>
106 115
           </div>
107 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 136
       <van-cell class="upfileCell">
110 137
         <!-- 使用 title 插槽来自定义标题 -->
111 138
         <template slot="title">
@@ -564,7 +591,9 @@ export default {
564 591
       centerDialogVisible: false,
565 592
       loading: false,
566 593
       uploadAvatar: '',
567
-      showDeath: false
594
+      showDeath: false,
595
+      patient_type:"",
596
+
568 597
     }
569 598
   },
570 599
   methods: {
@@ -942,6 +971,9 @@ export default {
942 971
           this.patientForm.death_time = uParseTimeOne(patientdetail.death_time, '{y}-{m}-{d}')
943 972
           this.patientForm.out_reason = patientdetail.out_reason
944 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,7 +1324,8 @@ export default {
1292 1324
         out_reason: this.patientForm.out_reason,
1293 1325
         relative_phone: this.patientForm.relative_phone,
1294 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 1331
       updatedPatient(params).then(response => {