From 772e026aa5bb701a2dbf7da1af32e6231679aa4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 17 Dec 2025 11:41:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?refactor(wms):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E8=A1=A8=E5=8D=95=E5=AD=97=E6=AE=B5=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E9=A2=86=E6=96=99=E7=A1=AE=E8=AE=A4=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除交付计划中的绑定订单字段和接收导入中的类型、逻辑库区列 为导入数据添加默认类型和逻辑库区值 在领料操作前添加确认弹窗提示 --- klp-ui/src/views/wms/coil/panels/do.vue | 16 ++++++---------- klp-ui/src/views/wms/delivery/plan/index.vue | 4 ++-- .../views/wms/receive/components/ImportGuide.vue | 8 ++++++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/klp-ui/src/views/wms/coil/panels/do.vue b/klp-ui/src/views/wms/coil/panels/do.vue index 85e47487..09ff9b21 100644 --- a/klp-ui/src/views/wms/coil/panels/do.vue +++ b/klp-ui/src/views/wms/coil/panels/do.vue @@ -506,16 +506,12 @@ export default { remark: `PC端领料创建-${this.label}` } - addPendingAction(pendingData).then(response => { - if (response.code === 200) { - this.$message.success('领料成功,已创建待操作任务') - this.getPendingAction() // 刷新待操作列表 - } else { - this.$message.error(response.msg || '领料失败') - } - }).catch(error => { - console.error('领料失败:', error) - this.$message.error('领料失败,请重试') + this.$modal.confirm(`是否确认从${row.warehouseName || '仓库'}领料${row.currentCoilNo || '物料'}?`).then(() => { + // 用户点击确认后执行的操作 + return addPendingAction(pendingData) + }).then(response => { + this.$message.success('领料成功,已创建待操作任务') + this.getPendingAction() // 刷新待操作列表 }).finally(() => { this.$set(row, 'picking', false) }) diff --git a/klp-ui/src/views/wms/delivery/plan/index.vue b/klp-ui/src/views/wms/delivery/plan/index.vue index 5894247a..8dab44f0 100644 --- a/klp-ui/src/views/wms/delivery/plan/index.vue +++ b/klp-ui/src/views/wms/delivery/plan/index.vue @@ -126,9 +126,9 @@ placeholder="请选择计划日期"> - + diff --git a/klp-ui/src/views/wms/receive/components/ImportGuide.vue b/klp-ui/src/views/wms/receive/components/ImportGuide.vue index a9751c48..3031697f 100644 --- a/klp-ui/src/views/wms/receive/components/ImportGuide.vue +++ b/klp-ui/src/views/wms/receive/components/ImportGuide.vue @@ -166,8 +166,8 @@ const ErrorType = Object.freeze({ * 表格列配置枚举 */ const TableColumnEnum = Object.freeze([ - { prop: 'type', label: '类型', width: 80 }, - { prop: 'logicWarehouse', label: '逻辑库区', width: 120 }, + // { prop: 'type', label: '类型', width: 80 }, + // { prop: 'logicWarehouse', label: '逻辑库区', width: 120 }, { prop: 'inboundCoilNo', label: '入场卷号', width: 150 }, { prop: 'factoryCoilNo', label: '厂家卷号', width: 150 }, { prop: 'weight', label: '重量(吨)', width: 120 }, @@ -440,6 +440,10 @@ export default { // 增加行号 rowObj.rowNum = rowNum; + // 模版中移除原料列和逻辑库区列,默认值为原料和酸连轧原料库 + rowObj.type = '原料' + rowObj.logicWarehouse = '酸连轧原料库' + return rowObj; }, 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 2/2] =?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