Pārlūkot izejas kodu

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

yq1 1 nedēļu atpakaļ
vecāks
revīzija
6c0a9f8af1

+ 1 - 1
build/cdn.json Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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
 

+ 43 - 44
src/pages/main/template/DialysisPrintOrdereightyone.vue Parādīt failu

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

+ 2 - 2
src/pages/main/today/dialysisPrescription.vue Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

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