fix(medicalOrderSet): 修复医嘱剂量转换计算错误

- 修正了剂量数量字段的单位转换公式,从除法改为乘法
- 修正了剂量字段的单位转换公式,从乘法改为除法
- 确保剂量和剂量数量之间的转换逻辑正确性
- 解决了因单位转换错误导致的数据显示问题
This commit is contained in:
2026-03-20 17:46:28 +08:00
parent 427d567337
commit 888ac1fee3
2 changed files with 4 additions and 4 deletions

View File

@@ -146,7 +146,7 @@
v-model="scope.row.doseQuantity" v-model="scope.row.doseQuantity"
@input=" @input="
(value) => { (value) => {
scope.row.dose = value / scope.row.unitConversionRatio; scope.row.dose = value * scope.row.unitConversionRatio;
} }
" "
/> />
@@ -164,7 +164,7 @@
v-model="scope.row.dose" v-model="scope.row.dose"
@input=" @input="
(value) => { (value) => {
scope.row.doseQuantity = value * scope.row.unitConversionRatio; scope.row.doseQuantity = value / scope.row.unitConversionRatio;
} }
" "
/> />

View File

@@ -227,7 +227,7 @@
v-model="scope.row.doseQuantity" v-model="scope.row.doseQuantity"
@input=" @input="
(value) => { (value) => {
scope.row.dose = value / scope.row.unitConversionRatio; scope.row.dose = value * scope.row.unitConversionRatio;
} }
" "
/> />
@@ -238,7 +238,7 @@
v-model="scope.row.dose" v-model="scope.row.dose"
@input=" @input="
(value) => { (value) => {
scope.row.doseQuantity = value * scope.row.unitConversionRatio; scope.row.doseQuantity = value / scope.row.unitConversionRatio;
} }
" "
/> />