This commit is contained in:
2026-09-11 11:19:47 +08:00
parent 991150e64b
commit f8ebbd9610
10 changed files with 54 additions and 30 deletions
+10 -5
View File
@@ -24,7 +24,7 @@
const ICON_TYPES = {
'到货收货': 'download', '商品上架': 'upload', '入库质检': 'checkbox',
'一件代发合托': 'map', '集装箱拣货': 'cart', '出库复核': 'compose', '装箱交接': 'paperplane',
'一件代发合托': 'map', '出库拣货': 'cart', '出库复核': 'compose', '装箱交接': 'paperplane',
'库存盘点': 'list', '商品移库': 'loop', '库存调整': 'compose',
'商品查询': 'search', '库位查询': 'location', '任务查询': 'flag'
}
@@ -33,8 +33,9 @@
...module,
name: module.key === 'inventory' ? '库内作业' : module.name,
available: module.operations.some((operation) => operation.available),
operations: module.operations.map((operation) => ({ ...operation, iconType: ICON_TYPES[operation.name] || 'circle' }))
}))
operations: module.operations.filter((operation) => operation.visible)
.map((operation) => ({ ...operation, iconType: ICON_TYPES[operation.name] || 'circle' }))
})).filter((module) => module.operations.length)
export default {
components: { PortalHeader },
@@ -48,8 +49,12 @@
methods: {
openOperation(operation) {
if (!operation.available) return
const routes = { '一件代发合托': '/pages/dropship-tasks/dropship-tasks', '集装箱拣货': '/pages/tasks/tasks' }
uni.navigateTo({ url: routes[operation.name] || '/pages/operation/operation' })
const routes = {
'一件代发合托': '/pages/dropship-tasks/dropship-tasks',
'出库拣货': '/pages/tasks/tasks',
'库位查询': `/pages/operation/operation?module=query&name=${encodeURIComponent('库位查询')}`
}
uni.navigateTo({ url: routes[operation.name] })
}
}
}