feat(hand-factory): 新增收货页面及发货计划API

新增收货页面功能,包含收货计划选择、钢卷号筛选、收货表单提交等
添加发货计划相关API接口,包括查询、新增、修改、删除和报表统计
This commit is contained in:
砂糖
2025-12-03 10:01:37 +08:00
parent 9221aa6276
commit 041ac52600
12 changed files with 826 additions and 293 deletions

View File

@@ -1,5 +1,4 @@
<template>
<!-- 模板内容保持不变注释部分可根据需求保留 -->
</template>
<script>
@@ -13,12 +12,6 @@ export default {
// 已跳转过则不再执行逻辑
if (this.hasJumped) return;
// 显示加载状态,提升用户感知
// uni.showLoading({
// title: '验证身份中...',
// mask: true // 防止用户重复操作
// });
// 检查用户角色
this.$store.dispatch('GetInfo')
.then(res => {
@@ -32,6 +25,10 @@ export default {
const roles = res.data.roles;
if (roles.includes('admin')) {
uni.setTabBarItem({
index: 0,
visible: true
});
// 管理员角色跳转
uni.switchTab({
url: '/pages/line/line',
@@ -49,7 +46,13 @@ export default {
});
} else if (roles.includes('worker')) {
// 工人角色跳转
uni.navigateTo({
// 设置tab内容
// 设置产线和复杂扫码不可见
uni.setTabBarItem({
index: 0,
visible: false
});
uni.switchTab({
url: '/pages/easycode/easycode',
success: () => {
this.hasJumped = true; // 标记已跳转
@@ -70,10 +73,13 @@ export default {
icon: 'none',
duration: 2000
});
uni.setTabBarItem({
index: 0,
visible: false
});
// 延迟跳转,确保提示被用户看到
setTimeout(() => {
uni.navigateTo({
uni.switchTab({
url: '/pages/easycode/easycode',
success: () => {
this.hasJumped = true;