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 @@ + + + + +