see999 3 年前
父节点
当前提交
89ea4be4a6
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue

+ 6 - 0
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue 查看文件

@@ -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()