瀏覽代碼

11月8 处方

yq1 6 月之前
父節點
當前提交
42edeffc54
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue

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

@@ -541,10 +541,10 @@
541 541
             if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
542 542
               console.log('123',scope.row.drug.dose,scope.row.execution_frequency,scope.row.drug.min_unit)
543 543
               // 单次用量single_dose,用量单位single_dose_unit,用法delivery_way,频率execution_frequency 总量prescribing_number,规格drug.dose
544
-              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / parseInt(this.getdrugdose(scope.row.drug.dose)) ) //  / scope.row.drug.dose
544
+              scope.row.prescribing_number = Math.ceil((parseInt(scope.row.single_dose) * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / parseInt(this.getdrugdose(scope.row.drug.dose)) ) //  / scope.row.drug.dose
545 545
             } else {
546 546
               console.log(1234,scope.row.drug.dose)
547
-              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / scope.row.drug.dose / scope.row.drug.min_number)//
547
+              scope.row.prescribing_number = Math.ceil((scope.row.single_dose * (scope.row.execution_frequency ? this.getNum(scope.row.execution_frequency) : 1) * (scope.row.day ? scope.row.day : 1)) / (scope.row.drug.dose*1) / (scope.row.drug.min_number*1))//
548 548
             }
549 549
           }
550 550
           if (scope.row.prescribing_number == 0) {