This commit is contained in:
cun-nan 2024-10-18 10:37:53 +08:00
parent 48e0da0a92
commit 900b460852
2 changed files with 42 additions and 28 deletions

View File

@ -525,8 +525,8 @@ public class CardValueRecordServiceImpl extends ServiceImpl<CardValueRecordMappe
if (ObjectUtils.isEmpty(selectCard.getChooseStaff()) || selectCard.getChooseStaff() == 0) { if (ObjectUtils.isEmpty(selectCard.getChooseStaff()) || selectCard.getChooseStaff() == 0) {
cardValueRecordDTO.setMtStaffId(nowAccountInfo.getStaffId()); cardValueRecordDTO.setMtStaffId(nowAccountInfo.getStaffId());
cardValueRecordDTO.setRealName(nowAccountInfo.getRealName()); cardValueRecordDTO.setRealName(nowAccountInfo.getRealName());
LJUserVo ljUserVo1 = ljUserMapper.selectUserById(nowAccountInfo.getId()); LJStaff staff = mtStaffService.getById(nowAccountInfo.getStaffId());
cardValueRecordDTO.setStaffMobile(ljUserVo1.getMobile()); cardValueRecordDTO.setStaffMobile(staff.getMobile());
}else { }else {
LJStaff staff = mtStaffService.getById(selectCard.getChooseStaff()); LJStaff staff = mtStaffService.getById(selectCard.getChooseStaff());
cardValueRecordDTO.setRealName(staff.getRealName()); cardValueRecordDTO.setRealName(staff.getRealName());
@ -575,8 +575,8 @@ public class CardValueRecordServiceImpl extends ServiceImpl<CardValueRecordMappe
if (ObjectUtils.isEmpty(selectCard.getChooseStaff()) || selectCard.getChooseStaff() == 0) { if (ObjectUtils.isEmpty(selectCard.getChooseStaff()) || selectCard.getChooseStaff() == 0) {
cardFuelRecordDTO.setMtStaffId(nowAccountInfo.getStaffId()); cardFuelRecordDTO.setMtStaffId(nowAccountInfo.getStaffId());
cardFuelRecordDTO.setRealName(nowAccountInfo.getRealName()); cardFuelRecordDTO.setRealName(nowAccountInfo.getRealName());
LJUserVo ljUserVo1 = ljUserMapper.selectUserById(nowAccountInfo.getId()); LJStaff staff = mtStaffService.getById(nowAccountInfo.getStaffId());
cardFuelRecordDTO.setStaffMobile(ljUserVo1.getMobile()); cardFuelRecordDTO.setStaffMobile(staff.getMobile());
}else { }else {
LJStaff staff = mtStaffService.getById(selectCard.getChooseStaff()); LJStaff staff = mtStaffService.getById(selectCard.getChooseStaff());
cardFuelRecordDTO.setRealName(staff.getRealName()); cardFuelRecordDTO.setRealName(staff.getRealName());

View File

@ -16,10 +16,15 @@
trigger="hover"> trigger="hover">
<div> 储值卡{{ chooseVipUser.cardBalance || 0 }}</div> <div> 储值卡{{ chooseVipUser.cardBalance || 0 }}</div>
<div v-if="chooseVipUser.userFuels"> <div v-if="chooseVipUser.userFuels">
<div v-for="(item,index) in chooseVipUser.userFuels" :key="index"> 囤油卡{{ item.fuelAmount }}</div> <div v-for="(item,index) in chooseVipUser.userFuels" :key="index"> 囤油卡{{
item.fuelAmount
}}
</div>
</div> </div>
<div v-if="chooseVipUser.fleetInfoUniVos"> <div v-if="chooseVipUser.fleetInfoUniVos">
<div v-for="(item,index) in chooseVipUser.fleetInfoUniVos" :key="index"> 车队卡{{ item.totalBalance }}</div> <div v-for="(item,index) in chooseVipUser.fleetInfoUniVos" :key="index">
车队卡{{ item.totalBalance }}
</div>
</div> </div>
<img slot="reference" src="./imgs/kbao.png" style="width: 24px;height: 24px;margin-right: 10px"> <img slot="reference" src="./imgs/kbao.png" style="width: 24px;height: 24px;margin-right: 10px">
@ -1141,17 +1146,21 @@ export default {
}, },
// //
oilOrderReport() { oilOrderReport() {
console.log(this.goodsOrder,this.goodsList,1095)
// //
let oilOrderR = [ let oilOrderR = []
{ if (this.oilGunClearing && this.oilGunClearing.amount>0){
oilName: this.oilGunClearing.name, oilOrderR = [
amount: this.oilGunClearing.amount + '', {
} oilName: this.oilGunClearing.oilType + this.oilGunClearing.oilName,
] amount: this.oilGunClearing.amount + '',
}
]
}
let goodsOrderR = [] let goodsOrderR = []
if (this.goodsOrder && this.goodsOrder.length > 0) { if (this.goodsList && this.goodsList.length > 0) {
this.goodsOrder.forEach(order => { this.goodsList.forEach(order => {
let o = { let o = {
oilName: order.name, oilName: order.name,
unit: order.num + order.unit, unit: order.num + order.unit,
@ -1168,9 +1177,10 @@ export default {
'WECHAT': '微信', 'WECHAT': '微信',
'ALIPAY': '支付宝', 'ALIPAY': '支付宝',
'UNIONPAY': '银联二维码', 'UNIONPAY': '银联二维码',
'credit': '挂账', 'after_pay': '挂账',
'oilCard': '囤油卡', 'fule_card': '囤油卡',
'balance': '储值卡' 'card_value': '储值卡',
'car_card_value': '车队卡',
}; };
let payTypeText = payTypeMap[this.payType] || '小程序码'; let payTypeText = payTypeMap[this.payType] || '小程序码';
@ -1181,26 +1191,28 @@ export default {
unitName: "", // unitName: "", //
// consumeAmount:this.consumeAmount, // consumeAmount:this.consumeAmount,
creditAmount: (this.oilAmount + (+this.goodsAmount)).toFixed(2),// creditAmount: this.realAmount,//
// //
discount: (this.oilDiscount + this.goodsDiscount + this.fullReduction + this.couponAmount).toFixed(2), // discount: this.disTotal, //
// //
consumeAmount: this.consumeAmount, consumeAmount: this.realAmount,
// //
consumeRefuelMoney: this.consumeRefuelMoney ? this.consumeRefuelMoney.toFixed(2) : 0, consumeRefuelMoney: this.realAmount,
// //
actualPay: ((+this.oilActualPay) + (+this.goodsActualPay)).toFixed(2), actualPay: this.realAmount,
// //
seekZero: this.seekZero ? this.seekZero.toFixed(2) : 0, seekZero: this.seekZero ? this.seekZero.toFixed(2) : 0,
} }
if (this.form1 && this.form1.unitName) f.unitName = this.form1.unitName if (this.credit && this.credit.unitName) f.unitName = this.credit.unitName
printOilOrderReport(f).then(res => { printOilOrderReport(f).then(res => {
console.log(res, 1121) console.log(res, 1121)
}) })
}, },
// //
resetting1() { resetting1() {
this.realAmount = 0.00
//
this.disTotal = 0.00
// //
this.userMobile = null this.userMobile = null
// //
@ -1211,6 +1223,8 @@ export default {
this.userInfo = false this.userInfo = false
// //
this.payType = "ALIPAY" this.payType = "ALIPAY"
this.loading = false;
}, },
// //
queryPayStatus() { queryPayStatus() {
@ -1393,8 +1407,8 @@ export default {
// id // id
// id // id
// //
console.log(this.oilGunClearing)
if (this.oilGunClearing) { if (this.oilGunClearing && this.oilGunClearing.amount>0) {
this.payForm.oilOrder = JSON.stringify({ this.payForm.oilOrder = JSON.stringify({
oilPrice: this.oilGunClearing.oilPrice, oilPrice: this.oilGunClearing.oilPrice,
oils: this.oilGunClearing.oilNameId, oils: this.oilGunClearing.oilNameId,
@ -1993,8 +2007,8 @@ export default {
} }
this.accountPending = true this.accountPending = true
} }
if (value == 'car_card_value'){ if (value == 'car_card_value') {
if (!this.userInfo){ if (!this.userInfo) {
this.$message.error("请先选择会员") this.$message.error("请先选择会员")
return return
} }