fix(medical): 修复医嘱剂量计算和数据同步问题
- 修正剂量转换公式,将乘法改为除法以正确计算 - 修复剂量数量字段的计算逻辑错误 - 添加字典文本字段回显支持 - 实现医嘱组套字段同步功能 - 保留组套中的原始值而不是强制重置 - 修复设备名称映射字段错误
This commit is contained in:
@@ -146,7 +146,7 @@
|
||||
v-model="scope.row.doseQuantity"
|
||||
@input="
|
||||
(value) => {
|
||||
scope.row.dose = value * scope.row.unitConversionRatio;
|
||||
scope.row.dose = value / scope.row.unitConversionRatio;
|
||||
}
|
||||
"
|
||||
/>
|
||||
@@ -164,7 +164,7 @@
|
||||
v-model="scope.row.dose"
|
||||
@input="
|
||||
(value) => {
|
||||
scope.row.doseQuantity = value / scope.row.unitConversionRatio;
|
||||
scope.row.doseQuantity = value * scope.row.unitConversionRatio;
|
||||
}
|
||||
"
|
||||
/>
|
||||
@@ -543,7 +543,9 @@ function openEdit(tab, row) {
|
||||
dose: item.dose,
|
||||
doseQuantity: item.doseQuantity,
|
||||
methodCode: item.methodCode,
|
||||
methodCode_dictText: item.methodCode_dictText,
|
||||
rateCode: item.rateCode,
|
||||
rateCode_dictText: item.rateCode_dictText,
|
||||
// 医嘱类型(药品=1):没有则按表名推断(药品表 -> 药品)
|
||||
adviceType:
|
||||
item.adviceType !== undefined
|
||||
|
||||
Reference in New Issue
Block a user