更新
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
</view>
|
||||
</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>
|
||||
<template v-else>
|
||||
<template v-for="(_item, _index) in item.value">
|
||||
@@ -53,6 +53,20 @@
|
||||
|
||||
</template>
|
||||
</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>
|
||||
<uni-popup ref="popup" background-color="#fff">
|
||||
@@ -79,9 +93,7 @@
|
||||
},
|
||||
onLoad(option) {
|
||||
this.styles = uni.getMenuButtonBoundingClientRect()
|
||||
|
||||
if (option.details) {
|
||||
console.log('option', decodeURIComponent(option.details))
|
||||
this.infoList = JSON.parse(decodeURIComponent(option.details))
|
||||
}
|
||||
console.log(this.infoList)
|
||||
@@ -94,6 +106,12 @@
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
phoneHandle(value) {
|
||||
if (value.includes('+86')) {
|
||||
return JSON.parse(value).number
|
||||
}
|
||||
return value
|
||||
},
|
||||
altHandle(item) {
|
||||
let arr = item.split('/')
|
||||
return arr[arr.length - 1]
|
||||
@@ -138,6 +156,11 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
::v-deep {
|
||||
.uni-table-scroll {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
}
|
||||
page {
|
||||
background: #dddddd80;
|
||||
}
|
||||
@@ -172,7 +195,6 @@
|
||||
position: relative;
|
||||
top: -80rpx;
|
||||
margin: 0 auto;
|
||||
// padding-bottom: 30rpx;
|
||||
min-height: calc(100vh - 350rpx);
|
||||
width: 96%;
|
||||
padding: 20rpx 20rpx 30rpx 30rpx;
|
||||
@@ -185,8 +207,8 @@
|
||||
>text {
|
||||
&:nth-of-type(1) {
|
||||
display: inline-block;
|
||||
margin-right: 50rpx;
|
||||
width: 150rpx;
|
||||
margin-right: 35rpx;
|
||||
width: 170rpx;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
@@ -219,13 +241,9 @@
|
||||
}
|
||||
|
||||
.file-download {
|
||||
// display: inline;
|
||||
// display: flex;
|
||||
margin-bottom: 10rpx;
|
||||
|
||||
display: inline-flex;
|
||||
|
||||
|
||||
>image {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
@@ -252,23 +270,6 @@
|
||||
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>
|
||||
@@ -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 '---'
|
||||
}
|
||||
|
||||
@@ -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
|
||||
},
|
||||
|
||||
|
||||
@@ -127,10 +127,11 @@
|
||||
{
|
||||
text: '已审核',
|
||||
index: '1'
|
||||
},{
|
||||
text: '待数据中心审核',
|
||||
index: '5'
|
||||
}
|
||||
},
|
||||
// {
|
||||
// text: '待数据中心审核',
|
||||
// index: '5'
|
||||
// }
|
||||
],
|
||||
listData: []
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user