Commit 11f20609 by 张立顺

Merge branch 'SAAS+V5.6.1' of http://192.168.3.233:8090/saas_plus/dj-car-boutiqu…

…e-work-wechat into SAAS+V5.6.1
2 parents 85d4be07 66f44f24
......@@ -462,5 +462,9 @@ module.exports = {
// 获取员工日报/周报/月报模版
getStaffTemplate(data) {
return api.post('dj.api.carboutique.find.staff.good.news.template', data)
},
// 工资申述入口判断
hasPerformanceConfig(data) {
return api.post('dj.staff.api.has.performance.config.formerchant', data)
}
}
......@@ -10,7 +10,7 @@ import {
import aiApi from '../../aiApi'
import { getWaitAuditCountAPI, waitstaffstateAPI, getStaffTemplate } from '~/api/api'
import dayjs from 'dayjs'
import commonApi from '~/api/api'
let lastPath = null // 用于存储上一次的路径
function throttle(func, delay) {
let timeoutId
......@@ -741,11 +741,15 @@ Component({
userInfo.loginRole == 5) &&
menuList.every(item => item.menuText != '工资申诉')
) {
menuList.push({
menuText: '工资申诉',
path: 'packageEquity.salaryAppeal',
icon: 'salary_appeal_icon'
})
// commonApi.hasPerformanceConfig({}).then(res => {
if(res.data) {
menuList.push({
menuText: '工资申诉',
path: 'packageEquity.salaryAppeal',
icon: 'salary_appeal_icon'
})
}
// })
}
// 飞行督导展示带教管理入口(超管/飞行督导)
if (
......
......@@ -1738,23 +1738,25 @@ Page({
}
})
// V5.6.1新增工资申诉模块
// api.extractCheck({}).then(res => {
if (
(userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo.loginRole == 5) &&
menu.every(item => item.name != '工资申诉')
) {
menu.push({
name: '工资申诉',
icon: 'salary_appeal_icon',
path: 'packageEquity.salaryAppeal',
noCheckdailyReport: true,
params: {
type: 2
}
})
}
// api.hasPerformanceConfig({}).then(res => {
// if(res.data) {
if (
(userInfo?.isSuper ||
userInfo?.loginRole == 3 ||
userInfo.loginRole == 5) &&
menu.every(item => item.name != '工资申诉')
) {
menu.push({
name: '工资申诉',
icon: 'salary_appeal_icon',
path: 'packageEquity.salaryAppeal',
noCheckdailyReport: true,
params: {
type: 2
}
})
}
// }
// })
// 区域运营角色审批退款申请入口
if (userInfo?.loginRole == 3 && menu.every(item => item.name != '待审批')) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!