Fix Bug #403: 住院医生工作站-应用医嘱组套后药品明细字段丢失未正确引入表格
根因:handleSaveGroup 中组套项预初始化行设置 isEdit: true,但表格明细列 (单次剂量/总量/总金额/药房/频次/用法等)均使用 v-if="!scope.row.isEdit" 条 件渲染。isEdit 为 true 时所有明细字段被隐藏,仅显示医嘱名称。正常药品选择流 程中 isEdit: true 后紧跟 expandOrder 展开 OrderForm 表单供编辑,但组套应用流 程未展开行,导致预填的组套明细值完全不可见。 修复:组套项带预填完整明细值,isEdit 设为 false,让表格列直接展示明细字段。 用户仍可双击行进入编辑模式修改。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -1581,10 +1581,10 @@ function handleSaveGroup(orderGroupList) {
|
||||
therapyEnum: item.orderDetailInfos?.therapyEnum || '1',
|
||||
};
|
||||
|
||||
// 预初始化空行
|
||||
// 预初始化空行(组套项带预填值,设为 false 让明细字段在表格中直接展示)
|
||||
prescriptionList.value[rowIndex.value] = {
|
||||
uniqueKey: nextId.value++,
|
||||
isEdit: true,
|
||||
isEdit: false,
|
||||
statusEnum: 1,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user