yq1 6 miesięcy temu
rodzic
commit
42edeffc54

+ 2 - 2
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue Wyświetl plik

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