|
@@ -408,29 +408,29 @@
|
408
|
408
|
if(scope.row.prescribing_number == 0){
|
409
|
409
|
scope.row.prescribing_number = 1
|
410
|
410
|
}
|
411
|
|
- if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
412
|
|
- // scope.row.retail_price = scope.row.drug.min_price * scope.row.prescribing_number
|
413
|
|
- if(scope.row.prescribing_number > scope.row.drug.total){
|
414
|
|
- this.$message.error(scope.row.drug_name + '库存不足')
|
415
|
|
- }
|
416
|
|
- }else{
|
417
|
|
- if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
|
418
|
|
- this.$message.error(scope.row.drug_name + '库存不足')
|
419
|
|
- }
|
420
|
|
- // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
|
421
|
|
- }
|
|
411
|
+ // if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
|
412
|
+ // // scope.row.retail_price = scope.row.drug.min_price * scope.row.prescribing_number
|
|
413
|
+ // if(scope.row.prescribing_number > scope.row.drug.total){
|
|
414
|
+ // this.$message.error(scope.row.drug_name + '库存不足')
|
|
415
|
+ // }
|
|
416
|
+ // }else{
|
|
417
|
+ // if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
|
|
418
|
+ // this.$message.error(scope.row.drug_name + '库存不足')
|
|
419
|
+ // }
|
|
420
|
+ // // scope.row.retail_price = scope.row.drug.retail_price * scope.row.prescribing_number
|
|
421
|
+ // }
|
422
|
422
|
|
423
|
423
|
},
|
424
|
424
|
changePrescribingNumber(scope){
|
425
|
|
- if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
426
|
|
- if(parseInt(scope.row.prescribing_number) > scope.row.drug.total){
|
427
|
|
- this.$message.error(scope.row.drug_name + '库存不足')
|
428
|
|
- }
|
429
|
|
- }else{
|
430
|
|
- if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
|
431
|
|
- this.$message.error(scope.row.drug_name + '库存不足')
|
432
|
|
- }
|
433
|
|
- }
|
|
425
|
+ // if(scope.row.prescribing_number_unit == scope.row.drug.min_unit){
|
|
426
|
+ // if(parseInt(scope.row.prescribing_number) > scope.row.drug.total){
|
|
427
|
+ // this.$message.error(scope.row.drug_name + '库存不足')
|
|
428
|
+ // }
|
|
429
|
+ // }else{
|
|
430
|
+ // if((parseInt(scope.row.prescribing_number) * scope.row.drug.min_number) > scope.row.drug.total){
|
|
431
|
+ // this.$message.error(scope.row.drug_name + '库存不足')
|
|
432
|
+ // }
|
|
433
|
+ // }
|
434
|
434
|
},
|
435
|
435
|
getSingleDose(scope){
|
436
|
436
|
this.prescription.advices[scope.$index].prescribing_number = scope.row.single_dose * scope.row.day
|