From a0652ca5fb438e0cc489bb27ebc620dabb5b6d10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 17 Dec 2025 15:59:56 +0800 Subject: [PATCH] =?UTF-8?q?feat(wms):=20=E6=96=B0=E5=A2=9E=E5=8F=91?= =?UTF-8?q?=E8=B4=A7=E8=AE=A1=E5=88=92=E8=AE=A2=E5=8D=95=E6=98=8E=E7=BB=86?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=92=8C=E6=93=8D=E4=BD=9C=E8=AE=B0=E5=BD=95?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加发货计划订单明细组件planOrder.vue,实现订单明细的增删改查功能 新增发货计划钢卷操作记录API和相关功能,记录钢卷的插入和删除操作 优化发货计划页面布局和样式,分离订单明细和钢卷管理区域 --- klp-ui/src/api/wms/coil.js | 15 + klp-ui/src/api/wms/deliveryPlanCoilOperate.js | 44 +++ klp-ui/src/api/wms/deliveryPlanDetail.js | 44 +++ .../wms/delivery/components/planList.vue | 0 .../wms/delivery/components/planOrder.vue | 330 +++++++++++++++++ klp-ui/src/views/wms/delivery/plan/index.vue | 335 +++++++++++------- 6 files changed, 643 insertions(+), 125 deletions(-) create mode 100644 klp-ui/src/api/wms/deliveryPlanCoilOperate.js create mode 100644 klp-ui/src/api/wms/deliveryPlanDetail.js create mode 100644 klp-ui/src/views/wms/delivery/components/planList.vue create mode 100644 klp-ui/src/views/wms/delivery/components/planOrder.vue diff --git a/klp-ui/src/api/wms/coil.js b/klp-ui/src/api/wms/coil.js index 389d2e28..0b80eeff 100644 --- a/klp-ui/src/api/wms/coil.js +++ b/klp-ui/src/api/wms/coil.js @@ -148,4 +148,19 @@ export function listCoilByIds(coilIds) { pageSize: 1000 } }) +} + +// 根据钢卷id查询最近的操作人和操作时间 +export function listCoilOperation({coilIds, planId}) { + return request({ + url: '/wms/deliveryPlanCoilOperate/coilOperate', + method: 'get', + params: { + // 至少要穿一个空字符串兜底 + coilIds: coilIds, + planId, + pageNum: 1, + pageSize: 1000 + } + }) } \ No newline at end of file diff --git a/klp-ui/src/api/wms/deliveryPlanCoilOperate.js b/klp-ui/src/api/wms/deliveryPlanCoilOperate.js new file mode 100644 index 00000000..faf65289 --- /dev/null +++ b/klp-ui/src/api/wms/deliveryPlanCoilOperate.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询发货计划钢卷操作记录列表 +export function listDeliveryPlanCoilOperate(query) { + return request({ + url: '/wms/deliveryPlanCoilOperate/list', + method: 'get', + params: query + }) +} + +// 查询发货计划钢卷操作记录详细 +export function getDeliveryPlanCoilOperate(operateId) { + return request({ + url: '/wms/deliveryPlanCoilOperate/' + operateId, + method: 'get' + }) +} + +// 新增发货计划钢卷操作记录 +export function addDeliveryPlanCoilOperate(data) { + return request({ + url: '/wms/deliveryPlanCoilOperate', + method: 'post', + data: data + }) +} + +// 修改发货计划钢卷操作记录 +export function updateDeliveryPlanCoilOperate(data) { + return request({ + url: '/wms/deliveryPlanCoilOperate', + method: 'put', + data: data + }) +} + +// 删除发货计划钢卷操作记录 +export function delDeliveryPlanCoilOperate(operateId) { + return request({ + url: '/wms/deliveryPlanCoilOperate/' + operateId, + method: 'delete' + }) +} diff --git a/klp-ui/src/api/wms/deliveryPlanDetail.js b/klp-ui/src/api/wms/deliveryPlanDetail.js new file mode 100644 index 00000000..d849bef6 --- /dev/null +++ b/klp-ui/src/api/wms/deliveryPlanDetail.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询发货计划明细列表 +export function listDeliveryPlanDetail(query) { + return request({ + url: '/wms/deliveryPlanDetail/list', + method: 'get', + params: query + }) +} + +// 查询发货计划明细详细 +export function getDeliveryPlanDetail(detailId) { + return request({ + url: '/wms/deliveryPlanDetail/' + detailId, + method: 'get' + }) +} + +// 新增发货计划明细 +export function addDeliveryPlanDetail(data) { + return request({ + url: '/wms/deliveryPlanDetail', + method: 'post', + data: data + }) +} + +// 修改发货计划明细 +export function updateDeliveryPlanDetail(data) { + return request({ + url: '/wms/deliveryPlanDetail', + method: 'put', + data: data + }) +} + +// 删除发货计划明细 +export function delDeliveryPlanDetail(detailId) { + return request({ + url: '/wms/deliveryPlanDetail/' + detailId, + method: 'delete' + }) +} diff --git a/klp-ui/src/views/wms/delivery/components/planList.vue b/klp-ui/src/views/wms/delivery/components/planList.vue new file mode 100644 index 00000000..e69de29b diff --git a/klp-ui/src/views/wms/delivery/components/planOrder.vue b/klp-ui/src/views/wms/delivery/components/planOrder.vue new file mode 100644 index 00000000..cae1d24f --- /dev/null +++ b/klp-ui/src/views/wms/delivery/components/planOrder.vue @@ -0,0 +1,330 @@ + + + diff --git a/klp-ui/src/views/wms/delivery/plan/index.vue b/klp-ui/src/views/wms/delivery/plan/index.vue index 8dab44f0..7cc1c8de 100644 --- a/klp-ui/src/views/wms/delivery/plan/index.vue +++ b/klp-ui/src/views/wms/delivery/plan/index.vue @@ -19,14 +19,6 @@ 新增 - - 修改 - - - 删除 - 导出 @@ -34,40 +26,28 @@ - - - + + + + +
-
{{ row.planName }}
{{ parseTime(row.planDate, '{y}-{m}-{d}') }} - - 已审批 - 待审批 -
{{ row.createBy }}({{ parseTime(row.updateTime, '{y}-{m}-{d}') }})
- - - - - 备注: - - - - + 备注: {{ row.remark || '-' }}
- 审批 修改 删除
@@ -75,46 +55,63 @@
+ + :limit.sync="queryParams.pageSize" @pagination="getList" class="pagination-container" />
- - + +
- -
- - - - - - - - - - - - - - +
+
-
- + +
+ + + +
+ + + + + + + + + + + + + + + + +
+
+ +
- @@ -126,9 +123,6 @@ placeholder="请选择计划日期"> - @@ -143,13 +137,16 @@ + +/* 空状态提示 */ +.empty-tip { + height: 100%; + display: flex; + justify-content: center; + align-items: center; +} + +/* 分页容器 */ +.pagination-container { + margin-top: 10px; + text-align: right; +} + \ No newline at end of file