From 40452d513e3b05d5b8e0f5c0f11f6d3fb65968a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Mon, 8 Dec 2025 15:17:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=8F=91=E8=B4=A7=E8=AE=A1=E5=88=92):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=92=A2=E5=8D=B7=E9=80=89=E6=8B=A9=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96=E7=95=8C=E9=9D=A2=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在发货计划页面添加钢卷选择器组件,支持从列表中选择钢卷 - 优化发货计划卡片布局,增加审批状态显示 - 新增钢卷列表查询API接口 - 调整分页大小和查询条件 - 重构CoilSelector组件,增加更多钢卷信息展示 - 添加钢卷转移组件框架 --- klp-ui/src/api/wms/coil.js | 11 + klp-ui/src/components/CoilSelector/index.vue | 22 +- .../wms/delivery/components/coilsTranfer.vue | 64 ++++ klp-ui/src/views/wms/delivery/plan/index.vue | 282 ++++++++++++------ .../src/views/wms/delivery/waybill/index.vue | 3 +- 5 files changed, 275 insertions(+), 107 deletions(-) create mode 100644 klp-ui/src/views/wms/delivery/components/coilsTranfer.vue diff --git a/klp-ui/src/api/wms/coil.js b/klp-ui/src/api/wms/coil.js index 1c309d4a..e57b5b0c 100644 --- a/klp-ui/src/api/wms/coil.js +++ b/klp-ui/src/api/wms/coil.js @@ -135,4 +135,15 @@ export function exportCoil(coilId) { url: '/wms/materialCoil/exportCoil/' + coilId, method: 'get' }) +} + +// 根据钢卷ID序列查询钢卷列表 +export function listCoilByIds(coilIds) { + return request({ + url: '/wms/materialCoil/list', + method: 'get', + params: { + coilIds + } + }) } \ No newline at end of file diff --git a/klp-ui/src/components/CoilSelector/index.vue b/klp-ui/src/components/CoilSelector/index.vue index c24a3563..4046779e 100644 --- a/klp-ui/src/components/CoilSelector/index.vue +++ b/klp-ui/src/components/CoilSelector/index.vue @@ -7,12 +7,10 @@ {{ selectedCoil.currentCoilNo }} - - ({{ selectedCoil.itemName }}) - + ({{ selectedCoil.itemName }}) [{{ selectedCoil.netWeight }}t] - 请选择钢卷 + {{ placeholder }} @@ -38,16 +36,14 @@ - + + + + - - - @@ -77,6 +73,10 @@ export default { type: Object, default: () => ({}) }, + placeholder: { + type: String, + default: '请选择钢卷' + }, value: { type: [String, Number], default: '' @@ -90,7 +90,7 @@ export default { initialCoil: { type: Object, default: null - } + }, }, data() { return { diff --git a/klp-ui/src/views/wms/delivery/components/coilsTranfer.vue b/klp-ui/src/views/wms/delivery/components/coilsTranfer.vue new file mode 100644 index 00000000..f362e635 --- /dev/null +++ b/klp-ui/src/views/wms/delivery/components/coilsTranfer.vue @@ -0,0 +1,64 @@ + + + \ No newline at end of file diff --git a/klp-ui/src/views/wms/delivery/plan/index.vue b/klp-ui/src/views/wms/delivery/plan/index.vue index 7a250c6e..c8e9200d 100644 --- a/klp-ui/src/views/wms/delivery/plan/index.vue +++ b/klp-ui/src/views/wms/delivery/plan/index.vue @@ -2,18 +2,10 @@
- + - @@ -25,96 +17,95 @@ - 新增 + 新增 - 修改 + 修改 - 删除 + 删除 - 导出 + 导出 - - - -
- -
{{ row.planName }}
+ + + + + +
+ +
{{ row.planName }}
+
+
+
+ {{ parseTime(row.planDate, '{y}-{m}-{d}') }} + + 已审批 + 待审批 + +
+
+ {{ row.createBy }}({{ parseTime(row.updateTime, '{y}-{m}-{d}') }}) +
+
+ 备注: + {{ row.remark || '-' }} +
+
+
+ 审批 + 修改 + 删除 +
+
+
+
+ + +
+ + + + +
+ +
+ +
+ +
+ + + + + + + + + + + + + +
-
-
- 计划日期: - {{ parseTime(row.planDate, '{y}-{m}-{d}') }} -
-
- 备注: - {{ row.remark || '-' }} -
-
- 创建人: - {{ row.createBy }} -
-
- 更新时间: - {{ parseTime(row.updateTime, '{y}-{m}-{d}') }} -
+
+
-
- 修改 - 删除 -
- +
- @@ -123,10 +114,7 @@ - @@ -144,9 +132,14 @@