From a9fb6d51b10fcdbf5b70503d0c9615d2a34851ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Thu, 29 Jan 2026 15:04:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=A1=A8=E5=8D=95?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E7=8A=B6=E6=80=81=E5=92=8C=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复发货表单字段的禁用状态逻辑,移除多余的readonly属性 调整取消分卷操作的加载状态处理,确保在finally中重置状态 优化钢卷选择器组件,增加切边和包装筛选及显示列 将结算方式输入框改为下拉选择框,提升用户体验 --- klp-ui/src/components/CoilSelector/index.vue | 50 +++++++++++++------ klp-ui/src/views/wms/coil/do/ship.vue | 10 ++-- klp-ui/src/views/wms/coil/panels/do.vue | 5 +- .../wms/delivery/components/detailTable.vue | 15 +++--- .../src/views/wms/delivery/waybill/index.vue | 2 +- 5 files changed, 53 insertions(+), 29 deletions(-) diff --git a/klp-ui/src/components/CoilSelector/index.vue b/klp-ui/src/components/CoilSelector/index.vue index 957d848e..faa29a13 100644 --- a/klp-ui/src/components/CoilSelector/index.vue +++ b/klp-ui/src/components/CoilSelector/index.vue @@ -47,6 +47,19 @@ + + + + + + + + + + + + + @@ -59,10 +72,13 @@ - + + +
@@ -72,11 +88,13 @@ - + + +
@@ -291,17 +309,17 @@ export default { // 动态生成表格行类名 - 综合处理选中、禁用等状态 getRowClassName({ row }) { const classNames = []; - + // 检查是否为已选中的钢卷 if (this.selectedCoilIds.has(row.coilId)) { classNames.push('selected-coil-row'); } - + // 销售受限模式下,判断当前行是否有权限 if (this.salesRestricted && row.saleId !== this.currentUserId) { classNames.push('disabled-coil-row'); // 禁用行类名 } - + return classNames.join(' '); }, @@ -544,12 +562,14 @@ export default { // 核心:已选钢卷样式(黄色背景) ::v-deep .el-table .selected-coil-row { - background-color: #fffbe6 !important; /* 浅黄色背景 */ - - &:hover > td { - background-color: #fff8d9 !important; /* hover时稍深一点的黄色 */ + background-color: #fffbe6 !important; + /* 浅黄色背景 */ + + &:hover>td { + background-color: #fff8d9 !important; + /* hover时稍深一点的黄色 */ } - + // 当同时是当前行时 &.current-row { background-color: #fff8d9 !important; @@ -563,7 +583,7 @@ export default { cursor: not-allowed !important; // 覆盖hover高亮 - &:hover > td { + &:hover>td { background-color: #f8f8f8 !important; } @@ -577,12 +597,12 @@ export default { pointer-events: none; user-select: none; // 禁止文本选中 } - + // 当同时是已选行时(优先级:禁用 > 已选) &.selected-coil-row { background-color: #f5f5f5 !important; - - &:hover > td { + + &:hover>td { background-color: #f5f5f5 !important; } } diff --git a/klp-ui/src/views/wms/coil/do/ship.vue b/klp-ui/src/views/wms/coil/do/ship.vue index 06c7a6c8..92289c63 100644 --- a/klp-ui/src/views/wms/coil/do/ship.vue +++ b/klp-ui/src/views/wms/coil/do/ship.vue @@ -46,7 +46,7 @@ - + @@ -77,25 +77,25 @@ - + - + - + - + diff --git a/klp-ui/src/views/wms/coil/panels/do.vue b/klp-ui/src/views/wms/coil/panels/do.vue index 560f4c03..1390e4a7 100644 --- a/klp-ui/src/views/wms/coil/panels/do.vue +++ b/klp-ui/src/views/wms/coil/panels/do.vue @@ -768,10 +768,11 @@ export default { this.buttonLoading = true cancelSpecialSplit(row.actionId).then(response => { this.$message.success('取消分卷成功') - this.stepSpilt.loading = false - this.buttonLoading = false this.getPendingAction() // 刷新待操作列表 this.getStepSplitList() + }).finally(() => { + this.stepSpilt.loading = false + this.buttonLoading = false }) }) }, diff --git a/klp-ui/src/views/wms/delivery/components/detailTable.vue b/klp-ui/src/views/wms/delivery/components/detailTable.vue index fd3a6988..24e3d435 100644 --- a/klp-ui/src/views/wms/delivery/components/detailTable.vue +++ b/klp-ui/src/views/wms/delivery/components/detailTable.vue @@ -7,7 +7,7 @@ 新增 - 批量新增 @@ -54,7 +54,7 @@
- @@ -67,20 +67,23 @@ - + - + - + + + + @@ -139,7 +142,7 @@ export default { waybillId: { handler(newVal, oldVal) { // if (newVal) { - this.getList(); + this.getList(); // } }, immediate: true diff --git a/klp-ui/src/views/wms/delivery/waybill/index.vue b/klp-ui/src/views/wms/delivery/waybill/index.vue index 99212efa..c9488ace 100644 --- a/klp-ui/src/views/wms/delivery/waybill/index.vue +++ b/klp-ui/src/views/wms/delivery/waybill/index.vue @@ -118,7 +118,7 @@