From 688cd6008251905deee5af9addef8c1a036ed2e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Fri, 19 Dec 2025 16:56:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(check):=20=E6=96=B0=E5=A2=9E=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E7=9B=98=E7=82=B9=E5=8D=95=E9=A1=B5=E9=9D=A2=E5=8F=8A?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=8D=95=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 getCurrentActiveCount API 接口用于获取当前活动盘点单 - 新增 pushCountToWcs 和 continuePushCount API 接口用于推送盘点单到 WCS - 新增任务单相关 API:searchOrderTaskByCountNo、searchOrderTaskDetail、hasUncompletedTask、createReviewTask - 新建 currentPhysicalInventory.vue 页面展示当前盘点单详情 - 在搜索盘点单页面增加任务单 tab 页签及相关数据加载逻辑 - 修改盘点进度显示字段从标签数改为栈板数 - 更新标签明细和栈板明细表格列配置,新增所在层数字段 - 调整表格高度自适应并优化操作按钮布局 - 增加复核任务相关功能,包括复核弹窗和任务创建逻辑 - 优化页面加载逻辑,支持自动选择首条记录并加载明细数据 --- src/api/check/physicalInventory.js | 25 + .../check/currentPhysicalInventory.vue | 801 ++++++++++++++++++ .../modules/check/searchPhysicalInventory.vue | 160 +++- 3 files changed, 973 insertions(+), 13 deletions(-) create mode 100644 src/views/modules/check/currentPhysicalInventory.vue diff --git a/src/api/check/physicalInventory.js b/src/api/check/physicalInventory.js index 9c13596..2cd64ee 100644 --- a/src/api/check/physicalInventory.js +++ b/src/api/check/physicalInventory.js @@ -8,6 +8,9 @@ export const searchCountHeaderList = data => createAPI(`/check/physicalInventory // 根据site和countNo查询盘点主表 export const getCountHeaderByNo = data => createAPI(`/check/physicalInventory/getCountHeaderByNo`, 'post', data) +// 获取当前活动的盘点单(草稿、已下达、盘点中)- rqrq +export const getCurrentActiveCount = data => createAPI(`/check/physicalInventory/getCurrentActiveCount`, 'post', data) + // 创建循环盘点单 export const createCycleCount = data => createAPI(`/check/physicalInventory/createCycleCount`, 'post', data) @@ -23,6 +26,12 @@ export const addMaterialToCount = data => createAPI(`/check/physicalInventory/ad // 下达盘点单 export const releaseCount = data => createAPI(`/check/physicalInventory/releaseCount`, 'post', data) +// 推送盘点单到WCS(首次推送,推前10个栈板)- rqrq +export const pushCountToWcs = data => createAPI(`/check/physicalInventory/pushCountToWcs`, 'post', data) + +// 继续推送盘点单到WCS(推后续10个栈板,由其他交互调用)- rqrq +export const continuePushCount = data => createAPI(`/check/physicalInventory/continuePushCount`, 'post', data) + // 完成盘点单 export const completeCount = data => createAPI(`/check/physicalInventory/completeCount`, 'post', data) @@ -54,3 +63,19 @@ export const searchCountResultList = data => createAPI(`/check/physicalInventory // 查询物料汇总 export const searchMaterialSummary = data => createAPI(`/check/physicalInventory/searchMaterialSummary`, 'post', data) + +// ==================== 任务单查询 ==================== - rqrq + +// 根据盘点单号查询关联的任务单主表列表 +export const searchOrderTaskByCountNo = data => createAPI(`/check/physicalInventory/searchOrderTaskByCountNo`, 'post', data) + +// 查询任务单明细列表 +export const searchOrderTaskDetail = data => createAPI(`/check/physicalInventory/searchOrderTaskDetail`, 'post', data) + +// ==================== 复核任务 ==================== - rqrq + +// 检查是否存在未完成的任务单 +export const hasUncompletedTask = data => createAPI(`/check/physicalInventory/hasUncompletedTask`, 'post', data) + +// 创建复核任务单 +export const createReviewTask = data => createAPI(`/check/physicalInventory/createReviewTask`, 'post', data) diff --git a/src/views/modules/check/currentPhysicalInventory.vue b/src/views/modules/check/currentPhysicalInventory.vue new file mode 100644 index 0000000..0d10715 --- /dev/null +++ b/src/views/modules/check/currentPhysicalInventory.vue @@ -0,0 +1,801 @@ + + + + + + diff --git a/src/views/modules/check/searchPhysicalInventory.vue b/src/views/modules/check/searchPhysicalInventory.vue index 70fb548..2d2f07b 100644 --- a/src/views/modules/check/searchPhysicalInventory.vue +++ b/src/views/modules/check/searchPhysicalInventory.vue @@ -51,17 +51,18 @@ - + @@ -76,7 +77,7 @@ - + - + - + - + + + +
+ +
+
任务单
+ + + + + + + + + + + +
+ +
+
任务单明细
+ + + + + + + +
+
+
@@ -244,7 +283,7 @@