Commit ce047b82 by zhangxw

bug修复

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