This commit is contained in:
cun-nan 2024-01-16 14:42:20 +08:00
parent c52b006879
commit 4cddc769d1

View File

@ -2339,7 +2339,8 @@
//
getOilTank(this.form.tankId).then(res => {
if (res.data.tankVolume-this.form.liters<0){
console.log(res)
if (res.data.storedQuantity-this.form.liters<0){
this.$modal.msgError("所加油的升数大于油罐内的升数,请重新选择加油升数")
return;
}else {
@ -2725,8 +2726,8 @@
_this.isQuery = true;
}
if (response.data.status == "paid"){
_this.isPaySuccess = true;
_this.isPay = true;
_this.isPaySuccess = true;
_this.isQuery = false;
_this.amount = 0
@ -2735,7 +2736,7 @@
}
if (response.data.status == "payFail"){
_this.isPaySuccess = false;
_this.isPay = true;
// _this.isPay = true;
_this.isQuery = false;
_this.loading = false;