| | |
| | | icon: "/static/images/icon/caigoutaizhang@2x.png", |
| | | label: "人员薪资", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/caigoutaizhang@2x.png", |
| | | label: "合同管理", |
| | | }, |
| | | ]); |
| | | const safetyItems = reactive([ |
| | | { |
| | |
| | | url: "/pages/humanResources/monthlyStatistics/index", |
| | | }); |
| | | break; |
| | | case "合同管理": |
| | | uni.navigateTo({ |
| | | url: "/pages/humanResources/contractManagement/index", |
| | | }); |
| | | break; |
| | | default: |
| | | uni.showToast({ |
| | | title: `点击了${item.label}`, |
| | |
| | | return; |
| | | } |
| | | } |
| | | |
| | | console.log(orderRow, "orderRow======@@@@@@@@"); |
| | | // 扫码成功后跳转到生产报工页面,并传递orderRow参数 |
| | | uni.navigateTo({ |
| | | url: `/pages/productionManagement/productionReport/index?orderRow=${orderRow}`, |
| | |
| | | }; |
| | | collectMenuTitles(routers); |
| | | |
| | | console.log("允许的菜单标题:", Array.from(allowedMenuTitles)); |
| | | console.log( |
| | | "过滤前 - 营销管理:", |
| | | marketingItems.length, |
| | | "采购管理:", |
| | | purchaseItems.length, |
| | | "协同办公:", |
| | | collaborationItems.length |
| | | ); |
| | | console.log( |
| | | "过滤前 - 安全生产:", |
| | | safetyItems.length, |
| | | "人力资源:", |
| | | humanResourcesItems.length, |
| | | "生产管控:", |
| | | productionItems.length, |
| | | "设备管理:", |
| | | equipmentItems.length |
| | | ); |
| | | |
| | | // 过滤营销管理菜单 |
| | | const originalMarketing = [ |
| | | { icon: "/static/images/icon/xiaoshoutaizhang@2x.png", label: "销售台账" }, |
| | |
| | | const originalHumanResources = [ |
| | | { icon: "/static/images/icon/caigoutaizhang@2x.png", label: "打卡签到" }, |
| | | { icon: "/static/images/icon/caigoutaizhang@2x.png", label: "人员薪资" }, |
| | | { icon: "/static/images/icon/caigoutaizhang@2x.png", label: "合同管理" }, |
| | | ]; |
| | | const filteredHumanResources = originalHumanResources.filter(item => { |
| | | return allowedMenuTitles.has(item.label); |
| | |
| | | return allowedMenuTitles.has(item.label); |
| | | }); |
| | | equipmentItems.splice(0, equipmentItems.length, ...filteredEquipment); |
| | | |
| | | console.log( |
| | | "过滤后 - 营销管理:", |
| | | marketingItems.length, |
| | | "采购管理:", |
| | | purchaseItems.length, |
| | | "协同办公:", |
| | | collaborationItems.length |
| | | ); |
| | | console.log( |
| | | "过滤后 - 安全生产:", |
| | | safetyItems.length, |
| | | "人力资源:", |
| | | humanResourcesItems.length, |
| | | "生产管控:", |
| | | productionItems.length, |
| | | "设备管理:", |
| | | equipmentItems.length |
| | | ); |
| | | console.log( |
| | | "生产管控菜单项:", |
| | | productionItems.map(item => item.label) |
| | | ); |
| | | }; |
| | | |
| | | // 检查模块是否有菜单项需要显示 |