From 90b62923d378b745f391c4f46be8e98b4e1c5fa9 Mon Sep 17 00:00:00 2001 From: "han\\hanst" Date: Mon, 24 Nov 2025 17:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=8D=95(1)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/ecss/codelnotify.vue | 22 ++++++++++--------- src/views/modules/ecss/codelnotifyConfirm.vue | 8 ++++--- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/src/views/modules/ecss/codelnotify.vue b/src/views/modules/ecss/codelnotify.vue index 6e652ff..18ba123 100644 --- a/src/views/modules/ecss/codelnotify.vue +++ b/src/views/modules/ecss/codelnotify.vue @@ -1011,7 +1011,7 @@ sortLv: 0, status: true, fixed: '', - columnWidth: 50 + columnWidth: 60 }, { userId: this.$store.state.user.name, @@ -1798,7 +1798,8 @@ this.totalPage = data.page.totalCount if(this.dataList.length>0){ this.dataList.forEach(o => { - o.modifyLabel = !!o.modifyFlag?'是':''; + // 显示改单次数,如:改单(1)、改单(2) + o.modifyLabel = !!o.modifyFlag ? (o.modifyCount>1 ? '改单(' + o.modifyCount + ')' : '改单(1)') : ''; }); // 使用 $nextTick 确保 DOM 渲染完成后再设置选中行 @@ -2072,7 +2073,8 @@ } }, cellStyle({row, column }) { - if (column.property === 'modifyLabel' && row.modifyLabel==='是') { // 根据列属性判断 + // 改单列显示橙色:只要modifyFlag为true就显示橙色 + if (column.property === 'modifyLabel' && row.modifyFlag===true) { return { color: '#ff5d03' }; } return {}; @@ -2280,10 +2282,10 @@ }) return false } - + // 开始加载 this.updateDetailLoading = true - + updateEcssDelDetail(this.updateDetailModel).then(({data}) => { if (data && data.code === 0) { // 保存当前选中行的标识,以便刷新后恢复 @@ -2292,12 +2294,12 @@ this.selectedRowKey = currentSelectedKey this.saveSelectedRowToStorage() } - + // 刷新明细表格 this.refreshCurrentTabTable() // 刷新表头列表 this.searchTable() - + this.updateDetailModelFlag=false this.$message({ message: '操作成功', @@ -2380,7 +2382,7 @@ this.$confirm('确认取消此明细?', '提示').then(() => { // 开始加载 this.updateDetailLoading = true - + deleteEcssDelDetail(row).then(({data}) => { if (data && data.code === 0) { // 保存当前选中行的标识,以便刷新后恢复 @@ -2389,12 +2391,12 @@ this.selectedRowKey = currentSelectedKey this.saveSelectedRowToStorage() } - + // 刷新明细表格 this.refreshCurrentTabTable() // 刷新表头列表 this.searchTable() - + this.$message({ message: '操作成功', type: 'success', diff --git a/src/views/modules/ecss/codelnotifyConfirm.vue b/src/views/modules/ecss/codelnotifyConfirm.vue index 8b8bf9d..602a9d7 100644 --- a/src/views/modules/ecss/codelnotifyConfirm.vue +++ b/src/views/modules/ecss/codelnotifyConfirm.vue @@ -909,7 +909,7 @@ sortLv: 0, status: true, fixed: '', - columnWidth: 50 + columnWidth: 60 }, { userId: this.$store.state.user.name, @@ -1967,7 +1967,8 @@ if (o.notifyStatus==='仓库已确认'&&!o.notifyDate) { o.notifyDate='发货日期不确定' } - o.modifyLabel = !!o.modifyFlag?'是':''; + // 显示改单次数,如:改单(1)、改单(2) + o.modifyLabel = !!o.modifyFlag ? (o.modifyCount ? '改单(' + o.modifyCount + ')' : '改单(1)') : ''; }); // 使用 $nextTick 确保 DOM 渲染完成后再设置选中行 @@ -2013,7 +2014,8 @@ if (column.property === 'notifyDate' && row.notifyDate==='发货日期不确定') { // 根据列属性判断 return { color: '#ff5d03' }; } - if (column.property === 'modifyLabel' && row.modifyLabel==='是') { // 根据列属性判断 + // 改单列显示橙色:只要modifyFlag为true就显示橙色 + if (column.property === 'modifyLabel' && row.modifyFlag===true) { return { color: '#ff5d03' }; } return {};