diff --git a/src/pages/financial/rechargeDetail.vue b/src/pages/financial/rechargeDetail.vue index 37b49c5..774d1bc 100644 --- a/src/pages/financial/rechargeDetail.vue +++ b/src/pages/financial/rechargeDetail.vue @@ -21,78 +21,78 @@ - + {{ '会员编号' }} {{ item.memberCode }} - + {{ '会员姓名' }} {{ item.memberName }} - + {{ '钱包类型' }} {{ item.pkAccountVal }} - + {{ '交款方式' }} {{ item.paymentMethodVal }} - + {{ '充前余额' + `(${isLocalSymbol()})` }} {{ item.paymentBeforeBalance | toThousandthAndKeepDecimal }} - + {{ '充值金额' + `(${isLocalSymbol()})` }} {{ item.paymentAmount | toThousandthAndKeepDecimal }} - + {{ '当前余额' + `(${isLocalSymbol()})` }} {{ item.paymentBalance | toThousandthAndKeepDecimal }} - + {{ '充值金额' + `(${isLocals()})` }} {{ item.settlePaymentAmount }} - + {{ '汇率' }} {{ item.exchangeRate }} - + {{ '单据编号' }} {{ item.rechargeCode }} - + {{ '充值批次' }} {{ item.batch }} - + {{ '操作人' }} {{ item.creator }} - + {{ '充值日期' }} {{ item.creationTime }} - + {{ '操作备注' }} {{ item.remarks }} - + {{ '审核人' }} {{ item.approverName }} - + {{ '审核日期' }} {{ item.approveTime }} - + {{ '审核状态' }} {{ @@ -380,8 +380,13 @@ export default { maxDate: "", monthNum: 25, }, + }; }, + onReachBottom() { + this.queryParams.pageNum++; + this.getSearch(); + }, onLoad(options) { if (uni.getStorageSync("userAll")) { this.userCountry = JSON.parse(uni.getStorageSync("userAll")).country; @@ -395,18 +400,27 @@ export default { this.getUserRole(); }, methods: { + getColumnVisible(columnName) { + return !!this.dataList.find(item => item.name === columnName); + }, isLocalSymbol, isLocals, getUserRole() { getRoleMenu('RechargeDetail').then((res) => { - this.dataList.forEach((item) => { - res.data.forEach((items) => { - if (item.name == items) { - item.key = items - } - // this.flag = true - }) - }) + const result = res.data || [] + if (result.length > 0) { + this.dataList = this.dataList.filter(item => res.data.includes(item.name)); + } else { + this.dataList = [] + } + // this.dataList.forEach((item) => { + // res.data.forEach((items) => { + // if (item.name == items) { + // item.key = items + // } + // // this.flag = true + // }) + // }) }) }, // 设置默认日期,最大值为今天,最小值为去年今天 @@ -445,10 +459,7 @@ export default { }); }, - onReachBottom() { - this.queryParams.pageNum++; - this.getSearch(); - }, + getSearch() { api .getrechageList(Object.assign({}, this.queryParams, this.select))