huangyw 2 years ago
parent
commit
f01af642e4

+ 22 - 22
src/xt_pages/hospitalStation/components/deskPrescription.vue View File

@@ -2339,28 +2339,28 @@ export default {
2339 2339
 
2340 2340
                 }
2341 2341
 
2342
-                for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2343
-                  if(this.prescriptions[i].project[b].delivery_way == "" ){
2344
-                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}用法未填写`)
2345
-                    this.$emit('editKeepLoad', false)
2346
-                    return
2347
-                  }
2348
-                  if(this.prescriptions[i].project[b].execution_frequency == "" ){
2349
-                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}频率未填写`)
2350
-                    this.$emit('editKeepLoad', false)
2351
-                    return
2352
-                  }
2353
-                  if(this.prescriptions[i].project[b].day == " "){
2354
-                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数未填写`)
2355
-                    this.$emit('editKeepLoad', false)
2356
-                    return
2357
-                  }
2358
-                  if(this.prescriptions[i].project[b].day == "0"){
2359
-                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数不能为0`)
2360
-                    this.$emit('editKeepLoad', false)
2361
-                    return
2362
-                  }
2363
-                }
2342
+                // for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2343
+                //   if(this.prescriptions[i].project[b].delivery_way == "" ){
2344
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}用法未填写`)
2345
+                //     this.$emit('editKeepLoad', false)
2346
+                //     return
2347
+                //   }
2348
+                //   if(this.prescriptions[i].project[b].execution_frequency == "" ){
2349
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}频率未填写`)
2350
+                //     this.$emit('editKeepLoad', false)
2351
+                //     return
2352
+                //   }
2353
+                //   if(this.prescriptions[i].project[b].day == " "){
2354
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数未填写`)
2355
+                //     this.$emit('editKeepLoad', false)
2356
+                //     return
2357
+                //   }
2358
+                //   if(this.prescriptions[i].project[b].day == "0"){
2359
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数不能为0`)
2360
+                //     this.$emit('editKeepLoad', false)
2361
+                //     return
2362
+                //   }
2363
+                // }
2364 2364
 
2365 2365
                 for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2366 2366
                   this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)

+ 22 - 22
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

@@ -2336,28 +2336,28 @@
2336 2336
 
2337 2337
                 }
2338 2338
 
2339
-                for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2340
-                  if(this.prescriptions[i].project[b].delivery_way == "" ){
2341
-                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}用法未填写`)
2342
-                    this.$emit('editKeepLoad', false)
2343
-                    return
2344
-                  }
2345
-                  if(this.prescriptions[i].project[b].execution_frequency == "" ){
2346
-                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}频率未填写`)
2347
-                    this.$emit('editKeepLoad', false)
2348
-                    return
2349
-                  }
2350
-                  if(this.prescriptions[i].project[b].day == " "){
2351
-                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数未填写`)
2352
-                    this.$emit('editKeepLoad', false)
2353
-                    return
2354
-                  }
2355
-                  if(this.prescriptions[i].project[b].day == "0"){
2356
-                    this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数不能为0`)
2357
-                    this.$emit('editKeepLoad', false)
2358
-                    return
2359
-                  }
2360
-                }
2339
+                // for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2340
+                //   if(this.prescriptions[i].project[b].delivery_way == "" ){
2341
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}用法未填写`)
2342
+                //     this.$emit('editKeepLoad', false)
2343
+                //     return
2344
+                //   }
2345
+                //   if(this.prescriptions[i].project[b].execution_frequency == "" ){
2346
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].project_name}频率未填写`)
2347
+                //     this.$emit('editKeepLoad', false)
2348
+                //     return
2349
+                //   }
2350
+                //   if(this.prescriptions[i].project[b].day == " "){
2351
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数未填写`)
2352
+                //     this.$emit('editKeepLoad', false)
2353
+                //     return
2354
+                //   }
2355
+                //   if(this.prescriptions[i].project[b].day == "0"){
2356
+                //     this.$message.error(`处方${i+1}的${this.prescriptions[i].project[b].number_days}天数不能为0`)
2357
+                //     this.$emit('editKeepLoad', false)
2358
+                //     return
2359
+                //   }
2360
+                // }
2361 2361
 
2362 2362
                 for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
2363 2363
                   this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)