diff --git a/oilAccount/components/accountListItem.vue b/oilAccount/components/accountListItem.vue index 2c376ce..7858a40 100644 --- a/oilAccount/components/accountListItem.vue +++ b/oilAccount/components/accountListItem.vue @@ -8,7 +8,7 @@ - {{item.auditMark|typeText}} + {{item.auditMark|typeText(item)}} @@ -18,7 +18,8 @@ - {{ transactionType(item.transactionType).text}} @@ -60,11 +61,12 @@ return '---' } }, - typeText: function(e) { - console.log(e, '----') + typeText: (e, item) => { switch (Number(e)) { case 0: - return '等待审核' + return ['RECHARGE_REBETE', 'CONSUME_REBATE', 'CALIBRATION_BALANCE'].includes(item + .transactionType) ? '待运营组长审核' : '等待审核' + case 1: return '审核通过' case -1: @@ -75,6 +77,8 @@ return '付款完成' case 4: return '取消充值' + case 5: + return '待数据中心审核' default: return '---' } @@ -120,12 +124,18 @@ color: '#EC4545', bg: 'rgba(236, 69, 69, 0.1)' } - default: + case 'CALIBRATION_BALANCE': return { - text: '---', - color: '#666666', - bg: 'rgba(102, 102, 102, 0.1)' + 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) { @@ -155,7 +165,7 @@ } }, typeBackground: function(e) { - console.log(e, '-----') + // console.log(e, '-----') switch (Number(e)) { case 0: return '#E8CD3026' @@ -169,12 +179,14 @@ return '#13ce66' case 4: return '#ff4949' + case 5: + return '#E8CD3026' default: return '' } }, typeColor: function(e) { - console.log(e, '-----') + // console.log(e, '-----') switch (Number(e)) { case 0: return '#E8CD30' @@ -188,6 +200,8 @@ return '#ffffff' case 4: return '#ffffff' + case 5: + return '#E8CD30' default: return '' } @@ -201,13 +215,14 @@