From 2aef552697ea06be1f684de317776f4cdacb3496 Mon Sep 17 00:00:00 2001 From: zm2000 <18386612143@163.com> Date: Mon, 22 Jun 2026 20:38:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=9A=8F=E6=9C=BA=E5=85=A5?= =?UTF-8?q?=E5=BA=93=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/request/apis.js | 20 + pages.json | 7 + pages/home/edit-quick-actions.vue | 5 + pages/index/index.vue | 6 + pages/work/storage/random-storage.vue | 845 ++++++++++++++++++++++++++ 5 files changed, 883 insertions(+) create mode 100644 pages/work/storage/random-storage.vue diff --git a/core/request/apis.js b/core/request/apis.js index 797af92..4f8aedc 100644 --- a/core/request/apis.js +++ b/core/request/apis.js @@ -163,6 +163,26 @@ export default { method: "POST", isSystemApi: true } + }, + directInbound: { + getItems: { + path: "storage.directInbound.getItems", + auth: true, + method: "POST", + isSystemApi: true + }, + inbound: { + path: "storage.directInbound.inbound", + auth: true, + method: "POST", + isSystemApi: true + }, + complete: { + path: "storage.directInbound.complete", + auth: true, + method: "POST", + isSystemApi: true + } } }, stock: { diff --git a/pages.json b/pages.json index b1c9492..5851ccb 100644 --- a/pages.json +++ b/pages.json @@ -86,6 +86,13 @@ "titleNView": false } }, + { + "path" : "pages/work/storage/random-storage", + "style" : + { + "titleNView": false + } + }, { "path" : "pages/403", "style" : diff --git a/pages/home/edit-quick-actions.vue b/pages/home/edit-quick-actions.vue index f9be69c..a73af3d 100644 --- a/pages/home/edit-quick-actions.vue +++ b/pages/home/edit-quick-actions.vue @@ -320,6 +320,7 @@ const isGrouponPickingDetail = menuName === '团购拣货详情' || (menuName.includes('团购') && menuName.includes('拣货') && menuName.includes('详情')); const rawPath = item?.component || item?.path || ''; const normalizedPath = rawPath ? (rawPath.startsWith('/') ? rawPath : `/${rawPath}`) : ''; + const isRandomStorage = menuName === '随机入库' || (menuName.includes('随机') && menuName.includes('入库')); const isRelocation = menuName === '移库作业' || normalizedPath === '/pages/work/storage/relocation'; if (isRelocation) { uni.showToast({ @@ -329,6 +330,10 @@ }); return; } + if (isRandomStorage) { + this.$tools.routerTo('/pages/work/storage/random-storage'); + return; + } const targetPath = isGoodsQuery ? '/pages/work/product/query' : (isOrderPicking diff --git a/pages/index/index.vue b/pages/index/index.vue index d3ac8ab..7afe3ca 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -531,6 +531,7 @@ '散单拣货详情', '团购拣货详情', '订单复核', + '随机入库', '移库作业' ]; @@ -1163,6 +1164,7 @@ const isGrouponPickingDetail = menuName === '团购拣货详情' || (menuName.includes('团购') && menuName.includes('拣货') && menuName.includes('详情')); const rawPath = item?.component || item?.path || ''; const normalizedPath = rawPath ? (rawPath.startsWith('/') ? rawPath : `/${rawPath}`) : ''; + const isRandomStorage = menuName === '随机入库' || (menuName.includes('随机') && menuName.includes('入库')); const isRelocation = menuName === '移库作业' || normalizedPath === '/pages/work/storage/relocation'; if (isRelocation) { uni.showToast({ @@ -1172,6 +1174,10 @@ }); return; } + if (isRandomStorage) { + this.$tools.routerTo('/pages/work/storage/random-storage'); + return; + } const targetPath = isGoodsQuery ? '/pages/work/product/query' : (isOrderPicking diff --git a/pages/work/storage/random-storage.vue b/pages/work/storage/random-storage.vue new file mode 100644 index 0000000..9eaa359 --- /dev/null +++ b/pages/work/storage/random-storage.vue @@ -0,0 +1,845 @@ + + + + +