see999 3 år sedan
förälder
incheckning
89ea4be4a6

+ 6 - 0
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Visa fil

@@ -389,9 +389,15 @@
389 389
       },
390 390
       getProjectSingleDose(scope){
391 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 396
       getProjectDay(scope){
394 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 402
     },mounted(){
397 403
       this.getInitData()