feat(发货): 新增发货功能模块及相关页面

- 添加发货功能页面及API接口
- 更新tabbar图标和路由配置
- 修改物料信息展示逻辑
- 优化页面跳转和权限控制
- 更新应用版本至1.3.29
This commit is contained in:
砂糖
2026-03-28 18:02:04 +08:00
parent 3afed26d7f
commit 9fab0ade4d
17 changed files with 978 additions and 202 deletions

View File

@@ -1,4 +1,5 @@
<template>
<div></div>
</template>
<script>
@@ -6,9 +7,9 @@ export default {
data() {
return {
tabVisible: {
admin: [true, true, true, true, true, true],
canteen: [false, false, false, false, true, true],
worker: [false, true, true, true, false, true]
admin: [true, true, false, true, true],
canteen: [false, false, true, false, true],
worker: [false, true, false, true, true]
},
hasJumped: false, // 防止重复跳转的标记
}
@@ -86,14 +87,6 @@ export default {
visible: v
});
}
// uni.setTabBarItem({
// index: 0,
// visible: false
// });
// uni.setTabBarItem({
// index: 4,
// visible: false
// });
uni.switchTab({
url: '/pages/easycode/easycode',
success: () => {
@@ -109,12 +102,6 @@ export default {
}
});
} else {
// 处理未定义角色(默认角色)
// uni.showToast({
// title: '检测到未知角色,将跳转至默认页面',
// icon: 'none',
// duration: 2000
// });
for (let i = 0; i < this.tabVisible.worker.length; i++) {
const v = this.tabVisible.worker[i]
uni.setTabBarItem({