This commit is contained in:
xiaozhiyong
2024-08-20 10:59:47 +08:00
parent 3c902f183e
commit da9e3c4ab4
4 changed files with 109 additions and 104 deletions

View File

@@ -63,10 +63,11 @@
},
typeText: (e, item) => {
switch (Number(e)) {
// case 0:
// return ['RECHARGE_REBETE', 'CONSUME_REBATE', 'CALIBRATION_BALANCE'].includes(item
// .transactionType) ? '待运营组长审核' : '等待审核'
case 0:
return ['RECHARGE_REBETE', 'CONSUME_REBATE', 'CALIBRATION_BALANCE'].includes(item
.transactionType) ? '待运营组长审核' : '等待审核'
return '等待审核'
case 1:
return '审核通过'
case -1:
@@ -77,8 +78,8 @@
return '付款完成'
case 4:
return '取消充值'
case 5:
return '待数据中心审核'
// case 5:
// return '待数据中心审核'
default:
return '---'
}
@@ -94,48 +95,48 @@
color: '#666666',
bg: 'rgba(102, 102, 102, 0.1)'
}
case 'RECHARGE_REBETE':
return {
text: '充返',
color: '#9F43CC',
bg: 'rgba(159, 67, 204, 0.1)'
}
case 'CONSUME_REBATE':
return {
text: '消返',
color: '#9F43CC',
bg: 'rgba(159, 67, 204, 0.1)'
}
case 'DISPATCH':
return {
text: '调拨',
color: '#2866FF',
bg: 'rgba(40, 102, 255, 0.1)'
}
case 'CALLBACK':
return {
text: '回拨',
color: '#FF6700',
bg: 'rgba(255, 103, 0, 0.1)'
}
case 'TURN':
return {
text: '圈回',
color: '#EC4545',
bg: 'rgba(236, 69, 69, 0.1)'
}
case 'CALIBRATION_BALANCE':
return {
text: '结算校准',
color: '#2866FF',
bg: 'rgba(40, 102, 255, 0.1)'
}
default:
return {
text: '---',
color: '#666666',
bg: 'rgba(102, 102, 102, 0.1)'
}
case 'RECHARGE_REBETE':
return {
text: '充返',
color: '#9F43CC',
bg: 'rgba(159, 67, 204, 0.1)'
}
case 'CONSUME_REBATE':
return {
text: '消返',
color: '#9F43CC',
bg: 'rgba(159, 67, 204, 0.1)'
}
case 'DISPATCH':
return {
text: '调拨',
color: '#2866FF',
bg: 'rgba(40, 102, 255, 0.1)'
}
case 'CALLBACK':
return {
text: '回拨',
color: '#FF6700',
bg: 'rgba(255, 103, 0, 0.1)'
}
case 'TURN':
return {
text: '圈回',
color: '#EC4545',
bg: 'rgba(236, 69, 69, 0.1)'
}
case 'CALIBRATION_BALANCE':
return {
text: '结算校准',
color: '#2866FF',
bg: 'rgba(40, 102, 255, 0.1)'
}
default:
return {
text: '---',
color: '#666666',
bg: 'rgba(102, 102, 102, 0.1)'
}
}
},
icontype(a, b) {
@@ -388,4 +389,4 @@
overflow: hidden;
width: 670rpx;
}
</style>
</style>

View File

@@ -162,8 +162,10 @@
filters: {
typeText: function(e,details) {
switch (Number(e)) {
// case 0:
// return ['RECHARGE_REBETE', 'CONSUME_REBATE', 'CALIBRATION_BALANCE'].includes(details.transactionType) ? '待运营组长审核' : '等待审核'
case 0:
return ['RECHARGE_REBETE', 'CONSUME_REBATE', 'CALIBRATION_BALANCE'].includes(details.transactionType) ? '待运营组长审核' : '等待审核'
return '等待审核'
case 1:
return '审核通过'
case -1:
@@ -174,8 +176,8 @@
return '付款完成'
case 4:
return '取消充值'
case 5:
return '待数据中心审核'
// case 5:
// return '待数据中心审核'
default:
return '---'
}
@@ -184,27 +186,27 @@
},
methods: {
examineiPre() {
let {
auditMark,
transactionType
} = this.details
let authList = uni.getStorageSync('user').authList
if (auditMark == 0 && ['RECHARGE_REBETE', 'CONSUME_REBATE', 'CALIBRATION_BALANCE'].includes(
transactionType) &&
!authList.includes('finance:site:recharge:operateLeader')) {
uni.showToast({
title: '无运营组长审核权限!',
icon: 'none'
})
return
}
if (this.details.auditMark == 5 && !authList.includes('finance:site:recharge:dataCenter')) {
uni.showToast({
title: '无数据中心审核权限!',
icon: 'none'
})
return
}
// let {
// auditMark,
// transactionType
// } = this.details
// let authList = uni.getStorageSync('user').authList
// if (auditMark == 0 && ['RECHARGE_REBETE', 'CONSUME_REBATE', 'CALIBRATION_BALANCE'].includes(
// transactionType) &&
// !authList.includes('finance:site:recharge:operateLeader')) {
// uni.showToast({
// title: '无运营组长审核权限!',
// icon: 'none'
// })
// return
// }
// if (this.details.auditMark == 5 && !authList.includes('finance:site:recharge:dataCenter')) {
// uni.showToast({
// title: '无数据中心审核权限!',
// icon: 'none'
// })
// return
// }
this.iShow.examine = true
},

View File

@@ -127,10 +127,11 @@
{
text: '已审核',
index: '1'
},{
text: '待数据中心审核',
index: '5'
}
},
// {
// text: '待数据中心审核',
// index: '5'
// }
],
listData: []
}