|
@@ -2293,6 +2293,44 @@ export default {
|
2293
|
2293
|
|
2294
|
2294
|
}
|
2295
|
2295
|
|
|
2296
|
+ for (let b = 0; b < this.prescriptions[i].advices.length; b++) {
|
|
2297
|
+ if(this.prescriptions[i].advices[b].delivery_way == "" ){
|
|
2298
|
+ this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}用法未填写`)
|
|
2299
|
+ this.$emit('editKeepLoad', false)
|
|
2300
|
+ return
|
|
2301
|
+ }
|
|
2302
|
+ if(this.prescriptions[i].advices[b].execution_frequency == "" ){
|
|
2303
|
+ this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}频率未填写`)
|
|
2304
|
+ this.$emit('editKeepLoad', false)
|
|
2305
|
+ return
|
|
2306
|
+ }
|
|
2307
|
+ if(this.prescriptions[i].advices[b].day == NaN){
|
|
2308
|
+ this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数未填写`)
|
|
2309
|
+ this.$emit('editKeepLoad', false)
|
|
2310
|
+ return
|
|
2311
|
+ }
|
|
2312
|
+ if(this.prescriptions[i].advices[b].day == 0){
|
|
2313
|
+ this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}天数不能为0`)
|
|
2314
|
+ this.$emit('editKeepLoad', false)
|
|
2315
|
+ return
|
|
2316
|
+ }
|
|
2317
|
+ if(this.prescriptions[i].advices[b].prescribing_number == ""){
|
|
2318
|
+ this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量未填写`)
|
|
2319
|
+ this.$emit('editKeepLoad', false)
|
|
2320
|
+ return
|
|
2321
|
+ }
|
|
2322
|
+ if(this.prescriptions[i].advices[b].prescribing_number == "0"){
|
|
2323
|
+ this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量不能为0`)
|
|
2324
|
+ this.$emit('editKeepLoad', false)
|
|
2325
|
+ return
|
|
2326
|
+ }
|
|
2327
|
+ if(this.prescriptions[i].advices[b].prescribing_number_unit == ""){
|
|
2328
|
+ this.$message.error(`处方${i+1}的${this.prescriptions[i].advices[b].drug_name}总量单位未填写`)
|
|
2329
|
+ this.$emit('editKeepLoad', false)
|
|
2330
|
+ return
|
|
2331
|
+ }
|
|
2332
|
+ }
|
|
2333
|
+
|
2296
|
2334
|
for (let b = 0; b < this.prescriptions[i].project.length; b++) {
|
2297
|
2335
|
this.prescriptions[i].project[b].price = this.prescriptions[i].project[b].price.toString()
|
2298
|
2336
|
this.prescriptions[i].project[b].total = this.prescriptions[i].project[b].total.toString()
|
|
@@ -2301,6 +2339,29 @@ export default {
|
2301
|
2339
|
|
2302
|
2340
|
}
|
2303
|
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
|
+ }
|
|
2364
|
+
|
2304
|
2365
|
for (let b = 0; b < this.prescriptions[i].addition.length; b++) {
|
2305
|
2366
|
this.prescriptions[i].addition[b].id = prarseInt(this.prescriptions[i].addition[b].id)
|
2306
|
2367
|
this.prescriptions[i].addition[b].item_id = parseInt(this.prescriptions[i].addition[b].item_id)
|