Browse Source

7月31,医生工作站处方总量问题

yq1 8 months ago
parent
commit
4ec1bd2b5c

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

@@ -542,11 +542,11 @@
542 542
             }
543 543
           } else {
544 544
             if (scope.row.prescribing_number_unit == scope.row.drug.min_unit) {
545
-              console.log(123)
546
-              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)
545
+              console.log('123',scope.row.drug.dose)
546
+              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
547 547
             } else {
548 548
               console.log(1234)
549
-              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)
549
+              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)// 
550 550
             }
551 551
           }
552 552
           if (scope.row.prescribing_number == 0) {