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 = { ...@@ -462,5 +462,9 @@ module.exports = {
// 获取员工日报/周报/月报模版 // 获取员工日报/周报/月报模版
getStaffTemplate(data) { getStaffTemplate(data) {
return api.post('dj.api.carboutique.find.staff.good.news.template', 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 { ...@@ -10,7 +10,7 @@ import {
import aiApi from '../../aiApi' import aiApi from '../../aiApi'
import { getWaitAuditCountAPI, waitstaffstateAPI, getStaffTemplate } from '~/api/api' import { getWaitAuditCountAPI, waitstaffstateAPI, getStaffTemplate } from '~/api/api'
import dayjs from 'dayjs' import dayjs from 'dayjs'
import commonApi from '~/api/api'
let lastPath = null // 用于存储上一次的路径 let lastPath = null // 用于存储上一次的路径
function throttle(func, delay) { function throttle(func, delay) {
let timeoutId let timeoutId
...@@ -741,11 +741,15 @@ Component({ ...@@ -741,11 +741,15 @@ Component({
userInfo.loginRole == 5) && userInfo.loginRole == 5) &&
menuList.every(item => item.menuText != '工资申诉') menuList.every(item => item.menuText != '工资申诉')
) { ) {
menuList.push({ // commonApi.hasPerformanceConfig({}).then(res => {
menuText: '工资申诉', if(res.data) {
path: 'packageEquity.salaryAppeal', menuList.push({
icon: 'salary_appeal_icon' menuText: '工资申诉',
}) path: 'packageEquity.salaryAppeal',
icon: 'salary_appeal_icon'
})
}
// })
} }
// 飞行督导展示带教管理入口(超管/飞行督导) // 飞行督导展示带教管理入口(超管/飞行督导)
if ( if (
......
...@@ -1738,23 +1738,25 @@ Page({ ...@@ -1738,23 +1738,25 @@ Page({
} }
}) })
// V5.6.1新增工资申诉模块 // V5.6.1新增工资申诉模块
// api.extractCheck({}).then(res => { // api.hasPerformanceConfig({}).then(res => {
if ( // if(res.data) {
(userInfo?.isSuper || if (
userInfo?.loginRole == 3 || (userInfo?.isSuper ||
userInfo.loginRole == 5) && userInfo?.loginRole == 3 ||
menu.every(item => item.name != '工资申诉') userInfo.loginRole == 5) &&
) { menu.every(item => item.name != '工资申诉')
menu.push({ ) {
name: '工资申诉', menu.push({
icon: 'salary_appeal_icon', name: '工资申诉',
path: 'packageEquity.salaryAppeal', icon: 'salary_appeal_icon',
noCheckdailyReport: true, path: 'packageEquity.salaryAppeal',
params: { noCheckdailyReport: true,
type: 2 params: {
} type: 2
}) }
} })
}
// }
// }) // })
// 区域运营角色审批退款申请入口 // 区域运营角色审批退款申请入口
if (userInfo?.loginRole == 3 && menu.every(item => item.name != '待审批')) { 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!