From 92265e0eee9921a8e203e06118592a7d86b50669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= <2178503051@qq.com> Date: Fri, 15 May 2026 10:49:30 +0800 Subject: [PATCH] =?UTF-8?q?refactor(wms/coil):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=92=A2=E5=8D=B7=E8=BF=BD=E6=BA=AF=E9=9D=A2=E6=9D=BF=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E4=B8=8E=E6=B8=B2=E6=9F=93=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 移除冗余的timeline外层卡片包装,调整渲染结构 2. 将合卷段的栅格布局改为flex布局,支持横向滚动 3. 删除不再需要的laneColSpan计算方法 4. 新增滚动条样式自定义配置优化视觉体验 5. 同时新增了获取钢卷发货单绑定销售信息的API接口 --- klp-ui/src/api/wms/coil.js | 11 + klp-ui/src/views/wms/coil/info.vue | 1890 +++++++++++------ .../views/wms/coil/panels/CoilTraceResult.vue | 114 +- 3 files changed, 1307 insertions(+), 708 deletions(-) diff --git a/klp-ui/src/api/wms/coil.js b/klp-ui/src/api/wms/coil.js index fe86c1df..c6e5c5c8 100644 --- a/klp-ui/src/api/wms/coil.js +++ b/klp-ui/src/api/wms/coil.js @@ -451,3 +451,14 @@ export function getFirstHeatCoilMaterial(enterCoilNo) { } }) } + +/** + * 查询钢卷发货单绑定的销售信息 + */ +export function getDeliveryOrderInfo(coilId) { + return request({ + url: `/crm/order/getOrderByCoilId/${coilId}`, + method: 'get', + timeout: 600000, + }) +} diff --git a/klp-ui/src/views/wms/coil/info.vue b/klp-ui/src/views/wms/coil/info.vue index bc73760f..4cfd12fb 100644 --- a/klp-ui/src/views/wms/coil/info.vue +++ b/klp-ui/src/views/wms/coil/info.vue @@ -17,616 +17,694 @@ 生命周期追踪
-
-
- -
- -
-
- 📦 入库 -
-
-
- {{ coil.currentCoilNo }} - {{ coil.netWeight ? coil.netWeight + ' t' : '-' }} -
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + - -
- -
-
- 变更前 -
-
-
- {{ coil.currentCoilNo }} - {{ coil.netWeight ? coil.netWeight + ' t' : '-' }} -
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
- -
-
-
- 材质 - {{ coil.material || '-' }} -
-
- - -
-
-
- 规格 - {{ coil.specification || '-' }} -
-
- - -
-
-
- 状态 - {{ - coil.qualityStatus || '-' }} -
-
- - -
-
- 入场卷号 - {{ coil.enterCoilNo || '-' }} -
-
- - -
-
- 厂家原料号 - {{ coil.supplierCoilNo || '-' }} -
-
- - -
-
- 班组 - {{ coil.team || '-' }} -
-
- - -
-
- 厂家 - {{ coil.manufacturer || '-' }} -
-
- - -
-
- 备注 - {{ coil.remark || '-' }} -
-
-
-
- - - -
-
- 无钢卷信息 -
+ +
+
+
+
+ 🚚 发货
- - -
-
- -
-
- {{ step.action }} - {{ step.operation }} - {{ step.time }} -
-
- - -
-
- 变更后 -
-
-
- {{ coil.currentCoilNo }} - {{ coil.netWeight ? coil.netWeight + ' t' : '-' }} +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
- -
-
-
- 材质 - {{ coil.material || '-' }} -
-
- - -
-
-
- 规格 - {{ coil.specification || '-' }} -
-
- - -
-
-
- 状态 - {{ - coil.qualityStatus || '-' }} -
-
- - -
-
- 入场卷号 - {{ coil.enterCoilNo || '-' }} -
-
- - -
-
- 厂家原料号 - {{ coil.supplierCoilNo || '-' }} -
-
- - -
-
- 班组 - {{ coil.team || '-' }} -
-
- - -
-
- 厂家 - {{ coil.manufacturer || '-' }} -
-
- - -
-
- 备注 - {{ coil.remark || '-' }} -
+
+
+
+ 发货状态 + + {{ coilInfo.status === 1 ? '已发货' : '未发货' }} +
- - - + -
- 无钢卷信息 -
-
-
-
- - -
-
-
-
- 🚚 发货 -
-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - -
- -
-
-
- 发货状态 - - {{ coilInfo.status === 1 ? '已发货' : '未发货' }} - -
-
-
-
- - - -
- -
- - 未找到相关钢卷记录 -
@@ -660,6 +738,76 @@
+
+ +
+ 💰 + 发货单对应的合同信息 +
+
+ + {{ deliveryOrderInfo.contractCode || '-' }} + {{ deliveryOrderInfo.customer || '-' }} + {{ deliveryOrderInfo.salesman || '-' }} + {{ deliveryOrderInfo.signTime || '-' }} + {{ deliveryOrderInfo.deliveryTime || '-' }} + {{ deliveryOrderInfo.orderAmount || '-' }} + + + +

技术附件

+ + + +

排产函

+ +
+ +
+ + 未找到相关发货单对应的合同信息记录 +
+
+ +
+
+ 💰 + 订单异议 +
+
+ + + + + + + + + + + + + + + + +
+
+ + 未找到相关订单异议记录 +
+
+ +
📋 @@ -725,7 +873,8 @@ 异常信息
- +
@@ -734,12 +883,13 @@
📈 生产工艺数据 - 加载中… + 加载中… ({{ perfSegCount }} 段)
- +
暂无生产数据
@@ -752,19 +902,16 @@ {{ group.label }}
-
{{ item.label }}
+ @click="selectTrendParam(item)">{{ item.label }}
← 点击左侧参数查看曲线
-
+
@@ -806,8 +953,9 @@