From 43db64ae6cdcedaa7e64584ae1c8c030de861eaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 26 Jan 2026 13:19:13 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix(wms):=20=E7=A7=BB=E9=99=A4=E5=88=86?= =?UTF-8?q?=E6=9D=A1=E6=93=8D=E4=BD=9C=E4=B8=AD=E5=86=97=E4=BD=99=E7=9A=84?= =?UTF-8?q?=E5=BE=85=E5=A4=84=E7=90=86=E5=8A=A8=E4=BD=9C=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除注释掉的addPendingAction调用,该操作已不再需要 将stepSpilt.loading设置为false移到finally块中确保执行 --- klp-ui/src/views/wms/coil/panels/do.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/klp-ui/src/views/wms/coil/panels/do.vue b/klp-ui/src/views/wms/coil/panels/do.vue index 6f28c6aa..fd432c6d 100644 --- a/klp-ui/src/views/wms/coil/panels/do.vue +++ b/klp-ui/src/views/wms/coil/panels/do.vue @@ -836,21 +836,22 @@ export default { await this.$modal.confirm('是否确认领料开始分条操作?') this.stepSpilt.loading = true await startSpecialSplit(row.coilId); - await addPendingAction({ - coilId: row.coilId, - currentCoilNo: row.currentCoilNo, - actionType: 501, - actionStatus: 0, - sourceType: 'manual', - priority: 0, - }) + // await addPendingAction({ + // coilId: row.coilId, + // currentCoilNo: row.currentCoilNo, + // actionType: 501, + // actionStatus: 0, + // sourceType: 'manual', + // priority: 0, + // }) this.$message.success('分条操作已创建') - this.stepSpilt.loading = false + this.getPendingAction() // this.getMaterialCoil() this.getStepSplitList() } finally { this.buttonLoading = false + this.stepSpilt.loading = false } }, handleContinueSplit(row) { From 5718a77be623becb877ba00df9d5a04fd15309bc Mon Sep 17 00:00:00 2001 From: Joshi <3040996759@qq.com> Date: Mon, 26 Jan 2026 14:22:13 +0800 Subject: [PATCH 2/3] =?UTF-8?q?style(wms):=20=E4=BF=AE=E6=94=B9=E5=88=86?= =?UTF-8?q?=E5=8D=B7=E6=8F=90=E7=A4=BA=E4=BF=A1=E6=81=AF=E6=9B=B4=E5=8A=A0?= =?UTF-8?q?=E4=BA=BA=E6=80=A7=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将"钢卷正在进行其他操作,无法开始单步分卷"简化为"钢卷正在进行操作" - 将"创建待操作记录失败"简化为"创建待操作失败" - 将"母卷不存在"统一为"钢卷不存在" - 将"母卷未处于单步分卷状态"修改为"钢卷未处于分卷状态" - 将"母卷已成为历史数据,无法取消分卷"修改为"该钢卷已成为历史数据,无法取消分卷" - 将"母卷未处于单步分卷状态,无法取消"修改为"钢卷未处于分卷状态,无法取消" - 将"取消单步分卷成功"修改为"取消分卷成功" --- .../impl/WmsMaterialCoilServiceImpl.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/klp-wms/src/main/java/com/klp/service/impl/WmsMaterialCoilServiceImpl.java b/klp-wms/src/main/java/com/klp/service/impl/WmsMaterialCoilServiceImpl.java index 725ebcbc..54e6a333 100644 --- a/klp-wms/src/main/java/com/klp/service/impl/WmsMaterialCoilServiceImpl.java +++ b/klp-wms/src/main/java/com/klp/service/impl/WmsMaterialCoilServiceImpl.java @@ -3263,7 +3263,7 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { // 3. 检查是否已被锁定或已有相同类型的待处理操作 if (coil.getExclusiveStatus() != null && coil.getExclusiveStatus() != 0) { - throw new RuntimeException("钢卷正在进行其他操作,无法开始单步分卷"); + throw new RuntimeException("钢卷正在进行操作"); } // // 3.1 检查是否已经有相同类型的待处理操作(防止重复领料) @@ -3293,7 +3293,7 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { Boolean insertResult = coilPendingActionService.insertByBo(pendingActionBo); if (!insertResult) { - throw new RuntimeException("创建待操作记录失败"); + throw new RuntimeException("创建待操作失败"); } return true; @@ -3308,12 +3308,12 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { // 1. 查询母卷信息 WmsMaterialCoil parentCoil = baseMapper.selectById(parentCoilId); if (parentCoil == null) { - throw new RuntimeException("母卷不存在"); + throw new RuntimeException("钢卷不存在"); } // 2. 验证独占状态 if (parentCoil.getExclusiveStatus() == null || parentCoil.getExclusiveStatus() != 1) { - throw new RuntimeException("母卷未处于单步分卷状态"); + throw new RuntimeException("钢卷未处于分卷状态"); } // 3. 查询待操作记录 @@ -3418,7 +3418,7 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { Long parentCoilId = pendingAction.getCoilId(); WmsMaterialCoil parentCoil = baseMapper.selectById(parentCoilId); if (parentCoil == null) { - throw new RuntimeException("母卷不存在"); + throw new RuntimeException("钢卷不存在"); } // 3. 获取所有子卷ID @@ -3519,16 +3519,16 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { // 3. 查询母卷 WmsMaterialCoil parentCoil = baseMapper.selectById(pendingAction.getCoilId()); if (parentCoil == null) { - throw new RuntimeException("母卷不存在"); + throw new RuntimeException("钢卷不存在"); } if (parentCoil.getDataType() == 0) { - throw new RuntimeException("母卷已成为历史数据,无法取消分卷"); + throw new RuntimeException("该钢卷已成为历史数据,无法取消分卷"); } // 4. 校验母卷是否处于“单步分卷中” if (Objects.equals(parentCoil.getExclusiveStatus(), 0)) { - throw new RuntimeException("母卷未处于单步分卷状态,无法取消"); + throw new RuntimeException("钢卷未处于分卷状态,无法取消"); } // 释放母卷独占锁 @@ -3540,7 +3540,7 @@ public class WmsMaterialCoilServiceImpl implements IWmsMaterialCoilService { } result.put("success", true); - result.put("message", "取消单步分卷成功"); + result.put("message", "取消分卷成功"); return result; } From 4faf5745e3433831b7078842a2f7a83fccc7b919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 26 Jan 2026 15:00:23 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat(wms):=20=E4=BC=98=E5=8C=96=E9=95=80?= =?UTF-8?q?=E9=94=8C=E5=B7=A5=E5=BA=8F=E7=95=8C=E9=9D=A2=E5=B9=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=93=8D=E4=BD=9C=E6=8C=89=E9=92=AE=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将"分条"按钮文本改为"加工"以更准确描述操作 - 重新设计进行中镀锌工序的卡片样式,增加视觉层次感 - 为待操作任务列表添加表格视图 - 调整对话框标题和提示信息以匹配新的操作术语 --- klp-ui/src/views/wms/coil/panels/do.vue | 119 ++++++++++++++++++------ 1 file changed, 91 insertions(+), 28 deletions(-) diff --git a/klp-ui/src/views/wms/coil/panels/do.vue b/klp-ui/src/views/wms/coil/panels/do.vue index fd432c6d..d2f6dcf0 100644 --- a/klp-ui/src/views/wms/coil/panels/do.vue +++ b/klp-ui/src/views/wms/coil/panels/do.vue @@ -196,14 +196,11 @@ {{ item.netWeight || '—' }}t - -