This commit is contained in:
cun-nan 2024-05-29 17:37:23 +08:00
parent 6741e6ec86
commit a7792e4b20
2 changed files with 45 additions and 14 deletions

View File

@ -211,6 +211,7 @@ public class CardFuelRecordServiceImpl implements CardFuelRecordService {
cardFuelRecordDTO.setStoreId(nowAccountInfo.getStoreId()); cardFuelRecordDTO.setStoreId(nowAccountInfo.getStoreId());
cardFuelRecordDTO.setChainStoreId(nowAccountInfo.getChainStoreId()); cardFuelRecordDTO.setChainStoreId(nowAccountInfo.getChainStoreId());
cardFuelRecordDTO.setPayAmount(cardFuelRecordDTO.getRechargeBalance()); cardFuelRecordDTO.setPayAmount(cardFuelRecordDTO.getRechargeBalance());
cardFuelRecordDTO.setMtStaffId(nowAccountInfo.getStaffId());
LambdaQueryWrapper<CardFuelRecord> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<CardFuelRecord> queryWrapper = new LambdaQueryWrapper<>();

View File

@ -41,12 +41,12 @@
<view class="title_lan">充值记录</view> <view class="title_lan">充值记录</view>
</view> </view>
<view class="wrap-box"> <view class="wrap-box">
<view class="w-box" v-for="(item,index) in numList " :key="index" @click="getindex(index)"> <view class="w-box" v-for="(item,index) in numList " :key="index" @click="getindex(index,item)">
<view class="hezi" :class="{ 'acv' : listindex == index }"> <view class="hezi" :class="{ 'acv' : listindex == index }">
{{item.rechargeBalance}} {{item.rechargeBalance}}
</view> </view>
</view> </view>
<view class="w-box" @click="getindex(numList.length)"> <view class="w-box" @click="getindex(numList.length,null)">
<view class="hezi" :class="{ 'acv' : listindex == numList.length }"> <view class="hezi" :class="{ 'acv' : listindex == numList.length }">
<!-- 自定义金额 --> <!-- 自定义金额 -->
<input placeholder="自定义金额" v-model="value" @input="custom()"></input> <input placeholder="自定义金额" v-model="value" @input="custom()"></input>
@ -174,6 +174,7 @@
// //
custom(val) { custom(val) {
this.order.amount = val this.order.amount = val
this.realyPayBills = this.order.amount
}, },
// //
getRechargeAmount() { getRechargeAmount() {
@ -206,17 +207,44 @@
url: "/pagesHome/searchVip/searchVip?type=1" url: "/pagesHome/searchVip/searchVip?type=1"
}) })
}, },
getindex(index) { getindex(index,data) {
this.listindex = index this.listindex = index
if (data){
this.order.amount = data.rechargeBalance
this.order.rechargeBalance = data.rechargeBalance
this.order.points = data.points
this.realyPayBills = data.rechargeBalance
}
}, },
govipjs() { //
let actualPayment = 0 scanQrcode() {
if (!this.userInfo) { if (!this.userInfo) {
uni.showToast({ uni.showToast({
title: "请先选择会员", title: "请先选择会员",
icon: "none" icon: "none"
}) })
} }
if (!this.order.amount){
uni.showToast({
title:"请先选择充值金额",
icon:"none"
})
}
let _this = this
uni.scanCode({
onlyFromCamera: true,
success: (res) => {
console.log('扫描二维码成功,结果:' + JSON.stringify(res) + res.result);
_this.authCode = res.result
_this.govipjs()
},
error: (res) => {
console.log('扫描二维码出现错误')
}
})
},
govipjs() {
let actualPayment = 0
if (this.order.paymentType == "CASH") actualPayment = this.authCode if (this.order.paymentType == "CASH") actualPayment = this.authCode
// id // id
this.order.mtUserId = this.userInfo.id this.order.mtUserId = this.userInfo.id
@ -226,15 +254,17 @@
this.order.authCode = this.authCode this.order.authCode = this.authCode
this.order.realyPayBills = this.realyPayBills this.order.realyPayBills = this.realyPayBills
this.order.actualPayment = actualPayment this.order.actualPayment = actualPayment
// if (!this.userInfo){
// uni.showToast({ request({
// title:"", url: 'business/marketingActivity/cardFuelRecord/prepaidFuelTopUp',
// icon:"none" method: 'post',
// }) data:this.order
// } }).then((res) => {
// uni.navigateTo({ // uni.navigateTo({
// url: '/pagesHome/MemberRecharge/list' // url: '/pagesHome/PaymentResults/PaymentResults'
// }) // })
})
}, },
goback() { goback() {
uni.navigateBack() uni.navigateBack()