From a04fa368b148ce1a7c0426a33f708f53b84a8702 Mon Sep 17 00:00:00 2001 From: wangjian963 <15215920+aprilry@user.noreply.gitee.com> Date: Mon, 8 Jun 2026 14:42:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(clinic):=20=E4=BF=AE=E5=A4=8D=E9=97=A8?= =?UTF-8?q?=E8=AF=8A=E6=89=8B=E6=9C=AF=E5=AE=89=E6=8E=92=E8=AE=A1=E8=B4=B9?= =?UTF-8?q?=E5=BC=B9=E7=AA=97vxe-table=E5=B8=83=E5=B1=80=E4=B8=8E=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E9=80=89=E6=8B=A9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 问题: 1. vxe-table expand列40px切换格中渲染复杂编辑表单,内容溢出导致表头表体列错位 2. adviceBaseList clickRow未解构vxe-table 4.x cell-click事件对象{row},导致selectAdviceBase数据错误 3. prescriptionList数组元素替换(arr[i]={})不被vxe-table变更检测,选中项目后数据未填入input 4. 保存按钮调用formRef{index}但表单已迁出expand列,运行时抛undefined.validate异常 --- .../bargain/component/adviceBaseList.vue | 5 +- .../bargain/component/prescriptionlist.vue | 343 +++++++++--------- 2 files changed, 178 insertions(+), 170 deletions(-) diff --git a/healthlink-his-ui/src/views/clinicmanagement/bargain/component/adviceBaseList.vue b/healthlink-his-ui/src/views/clinicmanagement/bargain/component/adviceBaseList.vue index c37ff46cb..0622b801a 100755 --- a/healthlink-his-ui/src/views/clinicmanagement/bargain/component/adviceBaseList.vue +++ b/healthlink-his-ui/src/views/clinicmanagement/bargain/component/adviceBaseList.vue @@ -263,9 +263,8 @@ const handleCurrentChange = (currentRow) => { currentSelectRow.value = currentRow; }; -function clickRow(row, column, cell, event) { - // cell-click 事件会传递 row, column, cell, event 四个参数 - // 确保传递的是完整的行数据 +function clickRow({ row }) { + // vxe-table 4.x cell-click 事件参数是 { row, column, ... } 对象,需解构取 row if (row) { emit('selectAdviceBase', row); } diff --git a/healthlink-his-ui/src/views/clinicmanagement/bargain/component/prescriptionlist.vue b/healthlink-his-ui/src/views/clinicmanagement/bargain/component/prescriptionlist.vue index a61ad40ac..766ba718f 100755 --- a/healthlink-his-ui/src/views/clinicmanagement/bargain/component/prescriptionlist.vue +++ b/healthlink-his-ui/src/views/clinicmanagement/bargain/component/prescriptionlist.vue @@ -38,170 +38,15 @@ max-height="650" :data="prescriptionList" :row-config="{ keyField: 'uniqueKey', expandRowKeys: expandOrder }" + :column-config="{ resizable: true }" border + auto-resize @cell-dblclick="clickRowDb" > - - + />