Bläddra i källkod

Merge branch '20200710_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

See999 4 år sedan
förälder
incheckning
6f62cc213e

+ 28 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Visa fil

@@ -121,6 +121,7 @@
121 121
             </el-form-item>
122 122
           </el-col>
123 123
 
124
+
124 125
           <el-col :span="8" v-if="anticoagulant.weichi != -1 && isShows('维持')" >
125 126
             <el-form-item :label="'维持(' + anticoagulant.weichi_unit + ') : '" v-if="anticoagulant.weichi != -1" >
126 127
               <el-input type="number" v-if="dialysisPrescription.anticoagulant != 1" v-model="dialysisPrescription.anticoagulant_weichi" ></el-input>
@@ -1217,6 +1218,10 @@ export default {
1217 1218
         'dialyzer_perfusion_apparatus'
1218 1219
       )
1219 1220
       console.log('灌流器', this.dialyzerPerfusionApparatus)
1221
+
1222
+
1223
+
1224
+
1220 1225
       if (this.$route.query && this.$route.query.date) {
1221 1226
         var date = this.$route.query && this.$route.query.date
1222 1227
         this.record_date = uParseTime(date, '{y}-{m}-{d}')
@@ -1280,6 +1285,8 @@ export default {
1280 1285
           this.totalShow = false
1281 1286
         }
1282 1287
         this.dialysisPrescription.mode_id = schedual.mode_id
1288
+
1289
+
1283 1290
       }
1284 1291
       var thismode = parseInt(this.dialysisPrescription.anticoagulant)
1285 1292
       if (isNaN(thismode) || thismode <= 0) {
@@ -1292,6 +1299,19 @@ export default {
1292 1299
         return false
1293 1300
       }
1294 1301
       this.anticoagulant = this.$store.getters.anticoagulants_confit[thismode]
1302
+
1303
+
1304
+      for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
1305
+        if (this.dialysisPrescription.dialyzer_perfusion_apparatus == this.dialyzerPerfusionApparatus[i].name) {
1306
+          this.dialysisPrescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
1307
+            i
1308
+            ].id
1309
+        }
1310
+      }
1311
+
1312
+
1313
+
1314
+
1295 1315
     },
1296 1316
     menuMsgTip: function() {
1297 1317
       this.msgtip_visibility = false
@@ -3047,6 +3067,14 @@ export default {
3047 3067
         this.huShow = true
3048 3068
         this.totalShow = true
3049 3069
       }
3070
+
3071
+      for (let i = 0; i < this.dialyzerPerfusionApparatus.length; i++) {
3072
+        if (this.dialysisPrescription.dialyzer_perfusion_apparatus == this.dialyzerPerfusionApparatus[i].name) {
3073
+          this.dialysisPrescription.dialyzer_perfusion_apparatus = this.dialyzerPerfusionApparatus[
3074
+            i
3075
+            ].id
3076
+        }
3077
+      }
3050 3078
     },
3051 3079
     handlePatientInfo() {
3052 3080
       this.isVisibility = false

+ 2 - 2
src/xt_pages/user/components/PatientForm.vue Visa fil

@@ -1139,7 +1139,7 @@ export default {
1139 1139
       }
1140 1140
       if (
1141 1141
         !value.match(
1142
-          /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/
1142
+          /^1\d{10}$/
1143 1143
         )
1144 1144
       ) {
1145 1145
         return callback(new Error("请填写正确的电话(手机号码)"));
@@ -1152,7 +1152,7 @@ export default {
1152 1152
       }
1153 1153
       if (
1154 1154
         !value.match(
1155
-          /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/
1155
+          /^1\d{10}$/
1156 1156
         )
1157 1157
       ) {
1158 1158
         return callback(new Error("请填写正确的电话(手机号码)"));