| | |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/caigouguanli.png", |
| | | label: "采购管理", |
| | | label: "采购审批", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/baojiaguanli.png", |
| | | label: "报价管理", |
| | | label: "报价审批", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/chukuguanli@2x.png", |
| | | label: "出库管理", |
| | | label: "发货审批", |
| | | }, |
| | | ]); |
| | | // 考勤财务合并菜单(考勤3个 + 财务4个 = 7个) |
| | | const kaoqinCaiwu = reactive([ |
| | | { |
| | | icon: "/static/images/icon/gongchuguanli@2x.png", |
| | | label: "公出管理", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/qingjiaguanli@2x.png", |
| | | label: "请假管理", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/chuchaiguanli@2x.png", |
| | | label: "出差管理", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/baoxiaoguanli.png", |
| | | label: "报销管理", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/caigouguanli.png", |
| | | label: "采购审批", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/baojiaguanli.png", |
| | | label: "报价审批", |
| | | }, |
| | | { |
| | | icon: "/static/images/icon/chukuguanli@2x.png", |
| | | label: "发货审批", |
| | | }, |
| | | ]); |
| | | |
| | |
| | | url: "/pages/cooperativeOffice/collaborativeApproval/index4", |
| | | }); |
| | | break; |
| | | case "采购管理": |
| | | case "采购审批": |
| | | uni.navigateTo({ |
| | | url: "/pages/cooperativeOffice/collaborativeApproval/index5", |
| | | }); |
| | | break; |
| | | case "报价管理": |
| | | case "报价审批": |
| | | uni.navigateTo({ |
| | | url: "/pages/cooperativeOffice/collaborativeApproval/index6", |
| | | }); |
| | | break; |
| | | case "出库管理": |
| | | case "发货审批": |
| | | uni.navigateTo({ |
| | | url: "/pages/cooperativeOffice/collaborativeApproval/index7", |
| | | }); |
| | |
| | | const operationType = ref(""); |
| | | onLoad(options => { |
| | | if (options.label) { |
| | | operationType.value = options.label; |
| | | // 处理 URL 参数可能包含其他查询参数的情况(如:协同审批?approveType=6) |
| | | // 只提取 label 参数的值,去除可能附加的查询参数 |
| | | let labelValue = options.label; |
| | | // 如果 label 包含 ? 符号,只取 ? 之前的部分 |
| | | if (labelValue.includes('?')) { |
| | | labelValue = labelValue.split('?')[0]; |
| | | } |
| | | operationType.value = labelValue; |
| | | if (operationType.value === "考勤管理") { |
| | | commonItems.value = kaoqin; |
| | | } else if (operationType.value === "会议管理") { |
| | | commonItems.value = huiyi; |
| | | } else if (operationType.value === "财务管理") { |
| | | commonItems.value = caiwu; |
| | | } else if (operationType.value === "协同审批") { |
| | | commonItems.value = kaoqinCaiwu; |
| | | operationType.value = "协同审批"; |
| | | } |
| | | } |
| | | console.log(operationType.value); |