fix(medicalOrderSet): 修复医嘱剂量转换计算错误
- 修正了剂量数量字段的单位转换公式,从除法改为乘法 - 修正了剂量字段的单位转换公式,从乘法改为除法 - 确保剂量和剂量数量之间的转换逻辑正确性 - 解决了因单位转换错误导致的数据显示问题
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user