| | |
| | | icon: "/static/images/icon/caigoutaizhang@2x.png", |
| | | label: "人员薪资", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/caigoutaizhang@2x.png", |
| | | label: "合同管理", |
| | | }, |
| | | ]); |
| | | const safetyItems = reactive([ |
| | | { |
| | |
| | | icon: "/static/images/icon/caigoutaizhang@2x.png", |
| | | label: "危险作业审批", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/guzhangfenxi@2x.png", |
| | | label: "隐患排查上报", |
| | | }, |
| | | // { |
| | | // icon: "/static/images/icon/guzhangfenxi@2x.png", |
| | | // label: "隐患排查上报", |
| | | // }, |
| | | { |
| | | icon: "/static/images/icon/guzhangfenxi@2x.png", |
| | | label: "危险物料管控", |
| | |
| | | icon: "/static/images/icon/guzhangfenxi@2x.png", |
| | | label: "应急预案查阅", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/guzhangfenxi@2x.png", |
| | | label: "事故上报记录", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/guzhangfenxi@2x.png", |
| | | label: "安全培训考核", |
| | | }, |
| | | // { |
| | | // icon: "/static/images/icon/guzhangfenxi@2x.png", |
| | | // label: "事故上报记录", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/guzhangfenxi@2x.png", |
| | | // label: "安全培训考核", |
| | | // }, |
| | | ]); |
| | | // 协同办公功能数据 |
| | | const collaborationItems = reactive([ |
| | |
| | | icon: "/static/images/icon/baoxiaoguanli.png", |
| | | label: "协同审批", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/huiyiliebiao@2x.png", |
| | | label: "会议管理", |
| | | }, |
| | | // { |
| | | // icon: "/static/images/icon/huiyiliebiao@2x.png", |
| | | // label: "会议管理", |
| | | // }, |
| | | { |
| | | icon: "/static/images/icon/tongzhigonggao@2x.png", |
| | | label: "通知公告", |
| | |
| | | icon: "/static/images/icon/zhishiku@2x.png", |
| | | label: "知识库", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/yongyinguanli@2x.png", |
| | | label: "用印管理", |
| | | }, |
| | | // { |
| | | // icon: "/static/images/icon/yongyinguanli@2x.png", |
| | | // label: "用印管理", |
| | | // }, |
| | | { |
| | | icon: "/static/images/icon/guizhangzhidu@2x.png", |
| | | label: "规章制度", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/kehubaifang@2x.png", |
| | | label: "客户拜访", |
| | | }, |
| | | // { |
| | | // icon: "/static/images/icon/kehubaifang@2x.png", |
| | | // label: "客户拜访", |
| | | // }, |
| | | ]); |
| | | |
| | | // 生产管控功能数据 |
| | |
| | | // label: "工序排产", |
| | | // bgColor: "#E91E63", |
| | | // }, |
| | | // { |
| | | // icon: "/static/images/icon/shengchanbaogong@2x.png", |
| | | // label: "生产报工", |
| | | // bgColor: "#673AB7", |
| | | // }, |
| | | { |
| | | icon: "/static/images/icon/shengchanbaogong@2x.png", |
| | | icon: "/static/images/icon/caigoutaizhang@2x.png", |
| | | label: "生产报工", |
| | | bgColor: "#673AB7", |
| | | }, |
| | | // { |
| | | // icon: "/static/images/icon/shengchanhesuan@2x.png", |
| | |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/xunjianshangchuan@2x.png", |
| | | label: "巡检上传", |
| | | label: "巡检任务", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/xunjianshangchuan@2x.png", |
| | | label: "巡检管理", |
| | | }, |
| | | |
| | | ]); |
| | | |
| | | // 处理常用功能点击 |
| | |
| | | url: "/pages/productionManagement/processScheduling/index", |
| | | }); |
| | | break; |
| | | // case "生产报工": |
| | | // getcode(); |
| | | // break; |
| | | case "生产报工": |
| | | getcode(); |
| | | uni.navigateTo({ |
| | | url: "/pages/productionManagement/workOrder/index", |
| | | }); |
| | | break; |
| | | case "生产核算": |
| | | uni.navigateTo({ |
| | |
| | | url: "/pages/equipmentManagement/repair/index", |
| | | }); |
| | | break; |
| | | case "设备保养任务": |
| | | uni.navigateTo({ |
| | | url: "/pages/equipmentManagement/upkeepTask/index", |
| | | }); |
| | | break; |
| | | case "设备保养": |
| | | uni.navigateTo({ |
| | | url: "/pages/equipmentManagement/upkeep/index", |
| | | }); |
| | | break; |
| | | case "巡检上传": |
| | | case "巡检管理": |
| | | uni.navigateTo({ |
| | | url: "/pages/inspectionUpload/index", |
| | | }); |
| | | break; |
| | | case "巡检任务": |
| | | uni.navigateTo({ |
| | | url: "/pages/inspectionManagement/index", |
| | | }); |
| | | break; |
| | | case "分析追溯": |
| | |
| | | case "人员薪资": |
| | | uni.navigateTo({ |
| | | url: "/pages/humanResources/monthlyStatistics/index", |
| | | }); |
| | | break; |
| | | case "合同管理": |
| | | uni.navigateTo({ |
| | | url: "/pages/humanResources/contractManagement/index", |
| | | }); |
| | | break; |
| | | default: |
| | |
| | | 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); |
| | |
| | | |
| | | // 过滤生产管控菜单 |
| | | const originalProduction = [ |
| | | // { |
| | | // icon: "/static/images/icon/shengchanbaogong@2x.png", |
| | | // label: "生产报工", |
| | | // bgColor: "#673AB7", |
| | | // }, |
| | | { |
| | | icon: "/static/images/icon/shengchanbaogong@2x.png", |
| | | icon: "/static/images/icon/caigoutaizhang@2x.png", |
| | | label: "生产报工", |
| | | bgColor: "#673AB7", |
| | | }, |
| | | ]; |
| | | const filteredProduction = originalProduction.filter(item => { |
| | |
| | | const originalEquipment = [ |
| | | { icon: "/static/images/icon/shbeibaoxiu@2x.png", label: "运行管理" }, |
| | | { icon: "/static/images/icon/shbeibaoxiu@2x.png", label: "设备报修" }, |
| | | { icon: "/static/images/icon/shbeibaoyang@2x.png", label: "设备保养任务" }, |
| | | { icon: "/static/images/icon/shbeibaoyang@2x.png", label: "设备保养" }, |
| | | { icon: "/static/images/icon/xunjianshangchuan@2x.png", label: "巡检上传" }, |
| | | { icon: "/static/images/icon/xunjianshangchuan@2x.png", label: "巡检任务" }, |
| | | { icon: "/static/images/icon/xunjianshangchuan@2x.png", label: "巡检管理" }, |
| | | ]; |
| | | const filteredEquipment = originalEquipment.filter(item => { |
| | | return allowedMenuTitles.has(item.label); |
| | | }); |
| | | if (filteredEquipment.some(i => i.label === "设备保养")) { |
| | | const upkeepTask = originalEquipment.find(i => i.label === "设备保养任务"); |
| | | if (upkeepTask && !filteredEquipment.some(i => i.label === "设备保养任务")) { |
| | | const upkeepIndex = filteredEquipment.findIndex(i => i.label === "设备保养"); |
| | | filteredEquipment.splice(upkeepIndex, 0, upkeepTask); |
| | | } |
| | | } |
| | | if (filteredEquipment.some(i => i.label === "巡检管理")) { |
| | | const task = originalEquipment.find(i => i.label === "巡检任务"); |
| | | if (task && !filteredEquipment.some(i => i.label === "巡检任务")) { |
| | | const manageIndex = filteredEquipment.findIndex(i => i.label === "巡检管理"); |
| | | filteredEquipment.splice(manageIndex, 0, task); |
| | | } |
| | | } |
| | | 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) |
| | | ); |
| | | }; |
| | | |
| | | // 检查模块是否有菜单项需要显示 |
| | |
| | | box-shadow: 0 0.375rem 1.25rem rgba(0, 0, 0, 0.4); |
| | | } |
| | | } |
| | | </style> |
| | | </style> |