From 6af8dceb6447ebc140a53b63b70c3575b2f0e464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 17 Nov 2025 13:22:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(wms):=20=E4=BC=98=E5=8C=96=E9=92=A2?= =?UTF-8?q?=E5=8D=B7=E5=85=A5=E5=BA=93=E5=92=8C=E5=8F=91=E8=B4=A7=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=9A=84UI=E5=B8=83=E5=B1=80=E5=92=8C=E4=BA=A4?= =?UTF-8?q?=E4=BA=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 重构入库和发货页面的UI布局,使用卡片式设计提升视觉效果和用户体验: 1. 将表单和记录列表分别放入卡片容器中 2. 添加查询表单和刷新按钮功能 3. 使用网格布局展示待操作任务卡片 4. 为不同优先级任务添加视觉区分 5. 优化滚动条样式和空状态提示 6. 统一两个页面的样式和交互逻辑 --- klp-ui/src/views/wms/coil/do/ship.vue | 696 +++++++++++++++---- klp-ui/src/views/wms/coil/do/warehousing.vue | 678 ++++++++++++++---- 2 files changed, 1094 insertions(+), 280 deletions(-) diff --git a/klp-ui/src/views/wms/coil/do/ship.vue b/klp-ui/src/views/wms/coil/do/ship.vue index c796a55e..c35e61e9 100644 --- a/klp-ui/src/views/wms/coil/do/ship.vue +++ b/klp-ui/src/views/wms/coil/do/ship.vue @@ -2,160 +2,188 @@
- -

钢卷发货

- - - - - 选择钢卷 - - - {{ form.currentCoilNo }} - - - - - - - - - - - - - - - - - - - - - +
+
+

钢卷发货

+
+ + + + + 选择钢卷 + + + {{ form.currentCoilNo }} + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - -
请先选择材料类型
-
-
-
+ + + + + + + + + + + + + + +
请先选择材料类型
+
+
+
- - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - -
+ + + + + + + + + + + + + + + + + + -
- 发 货 - 重 置 +
+ 发 货 + 重 置 +
- -

发货记录

- - - - +
+ +
+

发货记录

+ 刷新 +
+ + + + + + 查询 + + + + +
+
+ +

暂无待操作任务

+
+
+
+ {{ item.currentCoilNo }} +
+ +
+
+
+ 创建人: + {{ item.createBy || '—' }} +
+
+ 创建时间: + {{ parseTime(item.createTime, '{m}-{d} {h}:{i}') || '—' }} +
+
+
+
+
- - - + +
- - - - - - -
- -
@@ -198,6 +226,9 @@ export default { coilSelectorVisible: false, loading: false, buttonLoading: false, + queryForm: { + currentCoilNo: null, + }, // 分页参数 pagination: { currentPage: 1, @@ -271,7 +302,7 @@ export default { getList() { // 获取发货历史 this.loading = true - listPendingAction({ actionType: 402, ...this.pagination }).then(res => { + listPendingAction({ actionType: 402, ...this.pagination, ...this.queryForm }).then(res => { this.pendingActions = res.rows this.total = res.total this.loading = false @@ -291,6 +322,7 @@ export default { actionType: 402, currentCoilNo: this.form.currentCoilNo, coilId: this.form.coilId, + sourceType: 'manual', priority: 0, remark: this.form.remark, actionStatus: 2, @@ -312,4 +344,378 @@ export default { } } } - \ No newline at end of file + + + \ No newline at end of file diff --git a/klp-ui/src/views/wms/coil/do/warehousing.vue b/klp-ui/src/views/wms/coil/do/warehousing.vue index 05d271e1..828fa10a 100644 --- a/klp-ui/src/views/wms/coil/do/warehousing.vue +++ b/klp-ui/src/views/wms/coil/do/warehousing.vue @@ -2,148 +2,178 @@
- -

新增入库

- - - - - - - - - - - - - - - - - - +
+ +
+

新增入库

+
+ + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - -
请先选择材料类型
-
-
-
+ + + + + + + + + + + + + + +
请先选择材料类型
+
+
+
- - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 入 库 + 重 置 + +
+
- - - - - - - - - - - - - - - - - - - 入 库 - 重 置 - -
- -

入库记录

- - - - +
+ +
+

入库记录

+ 刷新 +
+ + + + + + 查询 + + + + +
+
+ +

暂无待操作任务

+
+
+
+ {{ item.currentCoilNo }} +
+ +
+
+
+ 创建人: + {{ item.createBy || '—' }} +
+
+ 创建时间: + {{ parseTime(item.createTime, '{m}-{d} {h}:{i}') || '—' }} +
+
+
+
+
- - - + +
- - - - - - -
- -
@@ -176,6 +206,9 @@ export default { form: {}, loading: false, buttonLoading: false, + queryForm: { + currentCoilNo: null, + }, // 分页参数 pagination: { currentPage: 1, @@ -235,7 +268,7 @@ export default { getList() { // 获取入库历史 this.loading = true - listPendingAction({ actionType: 401, ...this.pagination }).then(res => { + listPendingAction({ actionType: 401, ...this.pagination, ...this.queryForm }).then(res => { this.pendingActions = res.rows this.total = res.total this.loading = false @@ -250,6 +283,7 @@ export default { addPendingAction({ actionType: 401, currentCoilNo: this.form.currentCoilNo, + sourceType: 'manual', coilId: response.data.coilId, priority: 0, remark: this.form.remark, @@ -272,4 +306,378 @@ export default { } } } - \ No newline at end of file + + + \ No newline at end of file