master
xiaozhiyong 10 months ago
parent 3c902f183e
commit da9e3c4ab4
  1. 57
      contractManagement/list/details.vue
  2. 97
      oilAccount/components/accountListItem.vue
  3. 50
      oilAccount/page/accountRecharge/details.vue
  4. 9
      oilAccount/page/accountRecharge/index.vue

@ -31,7 +31,7 @@
</view> </view>
</template> </template>
</template> </template>
<view v-if="item.type === 'filelist'" style="padding-left: 200rpx;"> <view v-if="item.type === 'filelist'" style="padding-left: 205rpx;">
<text v-if="!item.value.length">暂无</text> <text v-if="!item.value.length">暂无</text>
<template v-else> <template v-else>
<template v-for="(_item, _index) in item.value"> <template v-for="(_item, _index) in item.value">
@ -53,6 +53,20 @@
</template> </template>
</view> </view>
<view v-if="item.type === 'table'">
<uni-table v-for="_item,_index in item.value" :key="_index" border stripe emptyText="暂无更多数据">
<!-- 表头行 -->
<uni-tr>
<uni-th width="150" align="center">标题</uni-th>
<uni-th align="center">内容</uni-th>
</uni-tr>
<!-- 表格数据行 -->
<uni-tr v-for="__item,__index in _item" :key="__index">
<uni-td>{{__item.title}}</uni-td>
<uni-td>{{phoneHandle(__item.value)}}</uni-td>
</uni-tr>
</uni-table>
</view>
</view> </view>
</view> </view>
<uni-popup ref="popup" background-color="#fff"> <uni-popup ref="popup" background-color="#fff">
@ -79,9 +93,7 @@
}, },
onLoad(option) { onLoad(option) {
this.styles = uni.getMenuButtonBoundingClientRect() this.styles = uni.getMenuButtonBoundingClientRect()
if (option.details) { if (option.details) {
console.log('option', decodeURIComponent(option.details))
this.infoList = JSON.parse(decodeURIComponent(option.details)) this.infoList = JSON.parse(decodeURIComponent(option.details))
} }
console.log(this.infoList) console.log(this.infoList)
@ -94,6 +106,12 @@
} }
}, },
methods: { methods: {
phoneHandle(value) {
if (value.includes('+86')) {
return JSON.parse(value).number
}
return value
},
altHandle(item) { altHandle(item) {
let arr = item.split('/') let arr = item.split('/')
return arr[arr.length - 1] return arr[arr.length - 1]
@ -138,6 +156,11 @@
</script> </script>
<style lang="scss"> <style lang="scss">
::v-deep {
.uni-table-scroll {
margin-top: 20rpx;
}
}
page { page {
background: #dddddd80; background: #dddddd80;
} }
@ -172,7 +195,6 @@
position: relative; position: relative;
top: -80rpx; top: -80rpx;
margin: 0 auto; margin: 0 auto;
// padding-bottom: 30rpx;
min-height: calc(100vh - 350rpx); min-height: calc(100vh - 350rpx);
width: 96%; width: 96%;
padding: 20rpx 20rpx 30rpx 30rpx; padding: 20rpx 20rpx 30rpx 30rpx;
@ -185,8 +207,8 @@
>text { >text {
&:nth-of-type(1) { &:nth-of-type(1) {
display: inline-block; display: inline-block;
margin-right: 50rpx; margin-right: 35rpx;
width: 150rpx; width: 170rpx;
color: #999; color: #999;
} }
@ -219,12 +241,8 @@
} }
.file-download { .file-download {
// display: inline;
// display: flex;
margin-bottom: 10rpx; margin-bottom: 10rpx;
display: inline-flex;
display: inline-flex;
>image { >image {
width: 80rpx; width: 80rpx;
@ -252,23 +270,6 @@
color: #999; color: #999;
} }
} }
// image {
// &:nth-of-type(1) {
// // margin-right: 15rpx;
// width: 80rpx;
// height: 80rpx;
// border-radius: 10rpx;
// }
// &:nth-of-type(2) {
// position: relative;
// left: -5rpx;
// bottom: -5rpx;
// width: 32rpx;
// height: 32rpx;
// }
// }
} }
} }
</style> </style>

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

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

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

Loading…
Cancel
Save