Browse Source

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

XMLWAN 4 years ago
parent
commit
93546c5c5a

+ 6 - 0
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

389
       },
389
       },
390
       getProjectSingleDose(scope){
390
       getProjectSingleDose(scope){
391
         this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
391
         this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
392
+        if(this.prescription.project[scope.$index].total == 0){
393
+          this.prescription.project[scope.$index].total = 1
394
+        }
392
       },
395
       },
393
       getProjectDay(scope){
396
       getProjectDay(scope){
394
         this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
397
         this.prescription.project[scope.$index].total = scope.row.single_dose * scope.row.number_days
398
+        if(this.prescription.project[scope.$index].total == 0){
399
+          this.prescription.project[scope.$index].total = 1
400
+        }
395
       }
401
       }
396
     },mounted(){
402
     },mounted(){
397
       this.getInitData()
403
       this.getInitData()