Commit ce047b82 by zhangxw

bug修复

1 parent ff704e83
......@@ -620,24 +620,27 @@ Component({
if (!userInfo?.isSuper && userInfo?.loginRole != 3 && userInfo?.loginRole != 6) this.getMerchantCarBrandList();
},
getAwaitAuditCount(userInfo) {
let { menuList } = this.data
// 区域运营角色退款审批入口
if (userInfo?.loginRole == 3 && menuList.every(item => item.menuText != '待审批')) {
menuList.push({
menuText: '待审批',
path: 'tabWorkOrder.refundOperationList',
icon: 'refund_review_icon',
tipsNum: 0
})
}
let index = menuList.findIndex(e => e.menuText == '待审批')
getWaitAuditCountAPI({sceneType: userInfo?.sceneType}).then(res => {
let { code, data } = res
if (code == 0) {
this.setData({
[`menuList[${index}].tipsNum`]: data.waiteForAuditNum
return new Promise(resolve => {
let { menuList } = this.data
// 区域运营角色退款审批入口
if (userInfo?.loginRole == 3 && menuList.every(item => item.menuText != '待审批')) {
menuList.push({
menuText: '待审批',
path: 'tabWorkOrder.refundOperationList',
icon: 'refund_review_icon',
tipsNum: 0
})
}
let index = menuList.findIndex(e => e.menuText == '待审批')
getWaitAuditCountAPI({sceneType: userInfo?.sceneType}).then(res => {
let { code, data } = res
if (code == 0) {
this.setData({
[`menuList[${index}].tipsNum`]: data.waiteForAuditNum
})
}
})
resolve()
})
},
getStoreList() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!