Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
15f571f44f
@ -3196,53 +3196,55 @@
|
|||||||
_this.paymentActive.oilId = item.oilName
|
_this.paymentActive.oilId = item.oilName
|
||||||
_this.paymentActive.storeId = item.storeId
|
_this.paymentActive.storeId = item.storeId
|
||||||
|
|
||||||
getPaymentActive(_this.paymentActive).then(res => {
|
getPaymentActive(_this.paymentActive).then(async res => {
|
||||||
item.activeId = res.data.activeId
|
item.activeId = res.data.activeId
|
||||||
item.type = res.data.type
|
item.type = res.data.type
|
||||||
let discount = {type:"",discount:0,oilName:item.oilName,gunName:item.gunName}
|
let discount = { type: "", discount: 0, oilName: item.oilName, gunName: item.gunName }
|
||||||
let oilData = {oilName:item.oilName,oilPreferential: {}}
|
let oilData = { oilName: item.oilName, oilPreferential: {} }
|
||||||
// this.preferentialData1 = res.data
|
// this.preferentialData1 = res.data
|
||||||
oilData.oilPreferential = res.data
|
oilData.oilPreferential = res.data
|
||||||
_this.oilPreferentialData.push(oilData)
|
_this.oilPreferentialData.push(oilData)
|
||||||
// if (_this.consumeRefuelMoney==0){
|
// if (_this.consumeRefuelMoney==0){
|
||||||
if (res.data.memberFavorableAmount){
|
if (res.data.memberFavorableAmount) {
|
||||||
discount.discount = res.data.memberFavorableAmount
|
discount.discount = res.data.memberFavorableAmount
|
||||||
_this.gradeDiscount.push(discount)
|
_this.gradeDiscount.push(discount)
|
||||||
if(!this.isOilStorageCard) {
|
if (!this.isOilStorageCard) {
|
||||||
_this.oilDiscount = res.data.memberFavorableAmount
|
_this.oilDiscount = res.data.memberFavorableAmount
|
||||||
_this.checkAll2 = true
|
_this.checkAll2 = true
|
||||||
this.checkedCities2.push(discount.gunName)
|
this.checkedCities2.push(discount.gunName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (res.data.cardFavorableAmount){
|
if (res.data.cardFavorableAmount) {
|
||||||
discount.discount = res.data.cardFavorableAmount
|
discount.discount = res.data.cardFavorableAmount
|
||||||
_this.couponDiscount.push(discount)
|
_this.couponDiscount.push(discount)
|
||||||
if(!this.isOilStorageCard) {
|
if (!this.isOilStorageCard) {
|
||||||
_this.cardFavorableId = res.data.cardFavorableId
|
_this.cardFavorableId = res.data.cardFavorableId
|
||||||
_this.recordId = res.data.recordId
|
_this.recordId = res.data.recordId
|
||||||
_this.couponAmount = res.data.cardFavorableAmount
|
_this.couponAmount = res.data.cardFavorableAmount
|
||||||
_this.checkAll5 = true
|
_this.checkAll5 = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (res.data.activeFavorableAmount){
|
if (res.data.activeFavorableAmount) {
|
||||||
discount.discount = res.data.activeFavorableAmount
|
discount.discount = res.data.activeFavorableAmount
|
||||||
discount.type = res.data.type
|
discount.type = res.data.type
|
||||||
_this.fullReduceDiscount.push(discount)
|
_this.fullReduceDiscount.push(discount)
|
||||||
if(!this.isOilStorageCard) {
|
if (!this.isOilStorageCard) {
|
||||||
_this.fullReduction = res.data.activeFavorableAmount
|
_this.fullReduction = res.data.activeFavorableAmount
|
||||||
_this.checkAll1 = true
|
_this.checkAll1 = true
|
||||||
this.checkedCities1.push(discount.gunName)
|
this.checkedCities1.push(discount.gunName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
if(this.isOilStorageCard){
|
console.log(_this.oilDiscount, 111)
|
||||||
this.countAmountFull()
|
this.countAmountFull()
|
||||||
|
if (this.isOilStorageCard) {
|
||||||
|
await this.countAmountFull()
|
||||||
}
|
}
|
||||||
if (type==1){
|
if (type == 1) {
|
||||||
this.countAmountUnBalance()
|
await this.countAmountUnBalance()
|
||||||
}
|
}
|
||||||
if (type==0){
|
if (type == 0) {
|
||||||
this.countAmountFull()
|
await this.countAmountFull()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -3377,7 +3379,7 @@
|
|||||||
}else {
|
}else {
|
||||||
this.oilActualPay = this.oilAmount.toFixed(2)
|
this.oilActualPay = this.oilAmount.toFixed(2)
|
||||||
}
|
}
|
||||||
console.log("不使用囤油卡",this.oilAmount, this.oilDiscount,this.couponAmount,this.fullReduction,this.oilCardAmount)
|
console.log("不使用囤油卡", this.consumeAmount ,this.oilAmount, this.oilDiscount,this.couponAmount,this.fullReduction,this.oilCardAmount)
|
||||||
},
|
},
|
||||||
// 不使用储值卡
|
// 不使用储值卡
|
||||||
countAmountUnBalance(){
|
countAmountUnBalance(){
|
||||||
@ -3893,7 +3895,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
// oilCardAmount
|
// oilCardAmount
|
||||||
if (flag) amount = item.oilPrice * item.liters
|
if (flag) amount = item.amount
|
||||||
oilAmount += amount
|
oilAmount += amount
|
||||||
})
|
})
|
||||||
if (oilAmount>0) this.oilCardAmount = this.oilAmount - oilAmount
|
if (oilAmount>0) this.oilCardAmount = this.oilAmount - oilAmount
|
||||||
|
@ -553,7 +553,7 @@
|
|||||||
getspearIndex(num, data) {
|
getspearIndex(num, data) {
|
||||||
this.spearIndex = num
|
this.spearIndex = num
|
||||||
this.oilGunNum = data.id
|
this.oilGunNum = data.id
|
||||||
this.oils = data.oilName
|
this.oilName = data.oilName
|
||||||
this.tankId = data.tankId
|
this.tankId = data.tankId
|
||||||
this.oilPrice = data.oilPrice
|
this.oilPrice = data.oilPrice
|
||||||
this.getPaymentPreferential()
|
this.getPaymentPreferential()
|
||||||
|
Loading…
Reference in New Issue
Block a user