diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/mapper/xml/FleetConsumeRecordMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/mapper/xml/FleetConsumeRecordMapper.xml index decd493e2..d39ae991a 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/mapper/xml/FleetConsumeRecordMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/mapper/xml/FleetConsumeRecordMapper.xml @@ -41,7 +41,7 @@ - order by create_time desc + order by fc.create_time desc diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/service/impl/FleetLinesChangeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/service/impl/FleetLinesChangeServiceImpl.java index 6112365c3..ff46697cd 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/service/impl/FleetLinesChangeServiceImpl.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/fleet/service/impl/FleetLinesChangeServiceImpl.java @@ -31,7 +31,7 @@ public class FleetLinesChangeServiceImpl extends ServiceImpl queryByPageUni(Page page1, FleetLinesChangeVo fleetLinesChangeVo) { AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); - fleetLinesChangeVo.setUserId(nowAccountInfo.getId()); +// fleetLinesChangeVo.setUserId(nowAccountInfo.getId()); if (ObjectUtil.isNotEmpty(fleetLinesChangeVo.getStartTime())) { DateTime parse = DateUtil.parse(fleetLinesChangeVo.getStartTime(), "yyyy-MM"); fleetLinesChangeVo.setStartTime(DateUtil.beginOfMonth(parse).toString()); diff --git a/gasStation-uni/pagesMy/fleetInfo/fund.vue b/gasStation-uni/pagesMy/fleetInfo/fund.vue index f654b5683..ea89f08e0 100644 --- a/gasStation-uni/pagesMy/fleetInfo/fund.vue +++ b/gasStation-uni/pagesMy/fleetInfo/fund.vue @@ -11,99 +11,62 @@ 可用余额(元) - 1299.00 + {{fleetBalance}} 类型筛选 全部时间 - + - 积分兑换 - 900 + {{item.fromType}} + {{item.cardPaymentAmount}} 储值卡 - 余额120000.00 + 余额{{item.afterTheChange}} - 中建锦绣二期店 - 2024-09-09 16:54:09 + {{item.storeName}} + {{item.paymentTime}} - - - - - - - 会员充值 - 900 - - - 储值卡 - 余额120000.00 - - - 中建锦绣二期店 - 2024-09-09 16:54:09 - - - - - - - - - - 油品 - 900 - - - 储值卡 - 余额120000.00 - - - 中建锦绣二期店 - 2024-09-09 16:54:09 - - - - - + 类型筛选 全部时间 - + - 额度增加 - +2000.00 + 额度增加 + 额度扣除 + + + + - + {{item.adjustLimit}} + - 小小(156****6655) - 当前额度0.00 + {{item.userName}} + 当前额度{{item.remainingCreditLimit}} - 操作人:问问 - 2024-09-09 16:54:09 + 操作人:{{item.createName}} + {{item.createTime}} @@ -113,7 +76,8 @@ --> - + @@ -141,8 +105,30 @@ show: false, show1: false, value1: Number(new Date()), + fleetBalance:0, columns: [ - ['全部类型', '油品', '积分兑换', '会员充值'] + [{ + label: '全部类型', + type: null + }, { + label: '额度增加', + type: 0 + }, { + label: '额度扣除', + type: 1 + }] + ], + columnsBalance: [ + [{ + label:'全部类型', + type:null + }, { + label:'油品' + }, { + label:'积分兑换' + }, { + label:"会员充值" + }] ], queryParams: { pageNo: 1, @@ -150,17 +136,20 @@ type: "", storeId: uni.getStorageSync("storeId"), changeReason: "", + fleetId: "", startTime: "" }, pointsList: [], total: 0, - fleetId:'', - storeId:'' + fleetId: '', + storeId: '' } }, onLoad(e) { - this.fleetId = e.fleetId - this.storeId = uni.getStorageSync("storeId") + this.queryParams.fleetId = e.fleetId + // console.log('this.fleetId', this.fleetId); + this.storeId = uni.getStorageSync("storeId"), + this.getFleetBalance() }, onShow() { this.query.chainStoreId = uni.getStorageSync('chainStoreId'); @@ -190,6 +179,11 @@ methods: { getindex(index) { this.type = index + if (index == 1) { + this.getFleetLinesChange() + } else if (index == 0) { + this.getList() + } }, // 获取余额信息 getUserBalance() { @@ -203,9 +197,36 @@ } }) }, - getList() { + //获取车队金额 + getFleetBalance(){ + request({ - url: '/business/integral/integralDetail/queryByPageUni', + url: '/fleetInfo/' + this.queryParams.fleetId, + method: 'get', + // params: this.query + }).then(res => { + if (res.code == 200) { + this.fleetBalance = res.data.totalBalance + } + }) + }, + //获取额度 + getFleetLinesChange() { + request({ + url: '/fleetLinesChange/queryByPageUni', + method: 'get', + params: this.queryParams + }).then(res => { + if (res.code == 200) { + this.pointsList = res.data.records, + this.total = res.data.total + } + }) + }, + getList() { + console.log('this.queryParams:', this.queryParams); + request({ + url: '/fleetConsumeRecord/queryByPageUni', method: 'get', params: this.queryParams }).then(res => { @@ -217,10 +238,23 @@ }, confirm(e) { this.queryParams.pageNo = 1 + console.log("获取的e:", e); if (e.value[0] == '全部类型') { - this.queryParams.type = "" + this.queryParams.adjustType = null } else { - this.queryParams.type = e.value[0] + this.queryParams.adjustType = e.value[0].type + } + this.getFleetLinesChange() + this.show1 = false + }, + + confirmBalance(e) { + this.queryParams.pageNo = 1 + console.log("获取的e:", e); + if (e.value[0] == '全部类型') { + this.queryParams.formType = null + } else { + this.queryParams.formType = e.value[0].type } this.getList() this.show1 = false @@ -240,7 +274,7 @@ confirm1(e) { this.queryParams.startTime = this.timestampToString(e.value) this.queryParams.pageNo = 1 - this.getList() + this.getFleetLinesChange() this.show = false }, cancel1() {