fix(prescription): 解决处方列表中剂量变化后未重新计算总量的问题
- 在费率代码选择器上添加 change 事件监听器以触发总量计算 - 在持续时间输入框上添加 change 事件监听器以触发总量计算 - 移除注释的计算调用并添加正确的剂量变化后总量计算逻辑 - 修复 Bug #273 中单次剂量变化后总量未更新的问题 feat(surgery): 为手术管理界面中的手术单号添加链接功能 - 将手术单号列转换为可点击的链接组件 - 为手术单号添加 handleView 点击事件处理 - 扩展手术单号列宽度以改善显示效果 - 在手术排程界面中为手术单号同样添加链接功能
This commit is contained in:
@@ -289,7 +289,9 @@
|
|||||||
}
|
}
|
||||||
// inputRefs.rateCode.blur();
|
// inputRefs.rateCode.blur();
|
||||||
}
|
}
|
||||||
" :ref="(el) => (inputRefs.rateCode = el)">
|
"
|
||||||
|
@change="calculateTotalAmount(scope.row, scope.$index)"
|
||||||
|
:ref="(el) => (inputRefs.rateCode = el)">
|
||||||
<el-option v-for="dict in rate_code" @click="() => (scope.row.rateCode_dictText = dict.label)"
|
<el-option v-for="dict in rate_code" @click="() => (scope.row.rateCode_dictText = dict.label)"
|
||||||
:key="dict.value" :label="dict.label" :value="dict.value" />
|
:key="dict.value" :label="dict.label" :value="dict.value" />
|
||||||
</el-select>
|
</el-select>
|
||||||
@@ -310,7 +312,8 @@
|
|||||||
controls-position="right" :controls="false" :ref="(el) => (inputRefs.dispensePerDuration = el)"
|
controls-position="right" :controls="false" :ref="(el) => (inputRefs.dispensePerDuration = el)"
|
||||||
@keyup.enter.prevent="
|
@keyup.enter.prevent="
|
||||||
handleEnter('dispensePerDuration', scope.row, scope.$index)
|
handleEnter('dispensePerDuration', scope.row, scope.$index)
|
||||||
">
|
"
|
||||||
|
@change="calculateTotalAmount(scope.row, scope.$index)">
|
||||||
<template #suffix>天</template>
|
<template #suffix>天</template>
|
||||||
</el-input-number>
|
</el-input-number>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -3883,8 +3886,9 @@ function convertValues(row, index) {
|
|||||||
row.dose = row.doseQuantity / row.partPercent;
|
row.dose = row.doseQuantity / row.partPercent;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// 🔧 Bug #273 修复:单次剂量变化后重新计算总量
|
||||||
|
calculateTotalAmount(row, index);
|
||||||
});
|
});
|
||||||
// calculateTotalAmount(row, index);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 单次剂量数量改变时自动计算总量
|
// 单次剂量数量改变时自动计算总量
|
||||||
@@ -3910,8 +3914,9 @@ function convertDoseValues(row, index) {
|
|||||||
row.doseQuantity = row.dose * row.partPercent;
|
row.doseQuantity = row.dose * row.partPercent;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// 🔧 Bug #273 修复:单次剂量变化后重新计算总量
|
||||||
|
calculateTotalAmount(row, index);
|
||||||
});
|
});
|
||||||
// calculateTotalAmount(row, index);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 总量计算,仅适用只有两种单位的情况
|
// 总量计算,仅适用只有两种单位的情况
|
||||||
|
|||||||
@@ -85,7 +85,13 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
|
||||||
<!-- 手术单号:string - OP2025092003 - 可查看详情 -->
|
<!-- 手术单号:string - OP2025092003 - 可查看详情 -->
|
||||||
<el-table-column label="手术单号" align="center" prop="surgeryNo" width="140" show-overflow-tooltip />
|
<el-table-column label="手术单号" align="center" prop="surgeryNo" width="180" show-overflow-tooltip>
|
||||||
|
<template #default="scope">
|
||||||
|
<el-link type="primary" :underline="false" @click="handleView(scope.row)">
|
||||||
|
{{ scope.row.surgeryNo }}
|
||||||
|
</el-link>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
|
||||||
<!-- 患者姓名:string - 张小明 - 不可操作 -->
|
<!-- 患者姓名:string - 张小明 - 不可操作 -->
|
||||||
<el-table-column label="患者姓名" align="center" prop="patientName" width="90" />
|
<el-table-column label="患者姓名" align="center" prop="patientName" width="90" />
|
||||||
|
|||||||
@@ -74,7 +74,13 @@
|
|||||||
<el-table-column label="卫生机构" align="center" prop="orgName" width="120" show-overflow-tooltip />
|
<el-table-column label="卫生机构" align="center" prop="orgName" width="120" show-overflow-tooltip />
|
||||||
<el-table-column label="姓名" align="center" prop="patientName" width="100" />
|
<el-table-column label="姓名" align="center" prop="patientName" width="100" />
|
||||||
<el-table-column label="就诊卡号" align="center" prop="visitId" width="120" />
|
<el-table-column label="就诊卡号" align="center" prop="visitId" width="120" />
|
||||||
<el-table-column label="手术单号" align="center" prop="operCode" width="120" show-overflow-tooltip />
|
<el-table-column label="手术单号" align="center" prop="operCode" width="180" show-overflow-tooltip>
|
||||||
|
<template #default="scope">
|
||||||
|
<el-link type="primary" :underline="false" @click="handleView(scope.row)">
|
||||||
|
{{ scope.row.operCode }}
|
||||||
|
</el-link>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="手术名称" align="center" prop="operName" min-width="140" show-overflow-tooltip />
|
<el-table-column label="手术名称" align="center" prop="operName" min-width="140" show-overflow-tooltip />
|
||||||
<el-table-column label="申请科室" align="center" prop="applyDeptName" width="100" show-overflow-tooltip />
|
<el-table-column label="申请科室" align="center" prop="applyDeptName" width="100" show-overflow-tooltip />
|
||||||
<el-table-column label="手术类型" align="center" width="100">
|
<el-table-column label="手术类型" align="center" width="100">
|
||||||
|
|||||||
Reference in New Issue
Block a user