This commit is contained in:
zhaohengkun 2024-10-12 09:01:34 +08:00
parent 9e6ca618aa
commit 7121aaccf0

View File

@ -915,6 +915,11 @@ export default {
} }
}, },
async collection1() { async collection1() {
if (this.flag==3){
console.log(919)
this.collection()
return
}
let makeChange = 0 let makeChange = 0
if (!this.payForm.authCode && this.payForm.paymentType !== "CASH") { if (!this.payForm.authCode && this.payForm.paymentType !== "CASH") {
this.$message.error('请先扫码'); this.$message.error('请先扫码');
@ -1077,7 +1082,7 @@ export default {
let isPaySuccess = false; let isPaySuccess = false;
await addLJGoods(_this.map).then( async response => { await addLJGoods(_this.payForm).then( async response => {
_this.orderNo = response.data.orderNo; _this.orderNo = response.data.orderNo;
if (response.data.oilOrder != null) { if (response.data.oilOrder != null) {
if (response.data.oilOrder.orderStatus == "paid") { if (response.data.oilOrder.orderStatus == "paid") {
@ -1136,16 +1141,17 @@ export default {
// id // id
// id // id
// //
this.payForm.oilOrder = {
oilsPrice: this.oilGunClearing.oilPrice, this.payForm.oilOrder =JSON.stringify({
oilPrice: this.oilGunClearing.oilPrice,
oils: this.oilGunClearing.oilNameId, oils: this.oilGunClearing.oilNameId,
oilGunNum: this.oilGunClearing.id, oilGunNum: this.oilGunClearing.id,
tankId: this.oilGunClearing.tankId, tankId: this.oilGunClearing.tankId,
activeId: null, activeId: null,
activeType: null, activeType: null,
} })
// //
this.payForm.goodsOrder = this.goodsList this.payForm.goodsOrder = JSON.stringify(this.goodsList)
// //
this.payForm.payType = this.payType this.payForm.payType = this.payType
// //
@ -1159,15 +1165,21 @@ export default {
//id //id
this.payForm.oilGunId = this.oilGunClearing.id this.payForm.oilGunId = this.oilGunClearing.id
// //
console.log("哈哈哈活动", this.chooseAct);
this.payForm.activeAmount = this.chooseAct.disAmount this.payForm.activeAmount = this.chooseAct.disAmount
// //
this.payForm.couponType = this.chooseCoupon.type this.payForm.couponType = this.chooseCoupon.type
// //
this.payForm.payUser = this.chooseVipUser this.payForm.payUser = JSON.stringify(this.chooseVipUser)
// //
this.payForm.oilDiscount = null; this.payForm.oilDiscount = 0;
// //
this.payForm.goodsDiscount = null; this.payForm.goodsDiscount = 0;
// this.payForm.usePoint=0;
// this.payForm.pointAmount=0;
// this.payForm.balanceAmount=0;
// this.payForm.oilCardAmount=0;
// //id // //id
// this.payForm.staffId = this.$store.getters.userId; // this.payForm.staffId = this.$store.getters.userId;
// () // ()