feat(prescription): 更新处方列表数据结构并优化药品管理界面功能

- 在处方列表中新增总价、剂量和剂量数量字段
- 修复药品审批页面跳转时仓库信息丢失问题
- 扩展药品列表列宽度并启用溢出提示功能
- 为采购单界面添加多种视图状态下的字段禁用逻辑
- 优化采购单仓库位置字段的初始化流程,防止数据丢失
This commit is contained in:
2026-03-26 16:54:20 +08:00
parent f04c3d112c
commit 71e3601d51
4 changed files with 35 additions and 16 deletions

View File

@@ -310,6 +310,11 @@ function handelApplys(row, view) {
// 采购入库 1
getpurchaseInventoryDetail(row.supplyBusNo).then((response) => {
let currentData = response.data;
// 从明细数据中获取仓库ID并设置到row确保跳转后仓库字段能正确显示
if (currentData && currentData.length > 0 && !row.purposeLocationId) {
row.purposeLocationId = currentData[0].purposeLocationId;
row.purposeLocationId_dictText = currentData[0].purposeLocationName;
}
store.setCurrentData({ editRow: row, item: currentData });
router.replace({
path: '/medicationmanagement/medicationmanagement/purchaseDocument',