{
+
let discount = {type:"",discount:0,oilName:item.oilName,gunName:item.gunName}
if (item.type == "汽油") {
if (response.data.fixingLevel){
@@ -3100,6 +3101,7 @@
// this.getCoupon();
// }
// }
+ await this.getGrade(this.member.id,this.member.gradeId)
if (this.balance>0 && this.oilAmount>0 && !this.isOilStorageCard){
this.checkAll4 = true
if (this.goodsOrder.length==0){
@@ -3107,7 +3109,6 @@
}
this.countAmountFull()
}
- await this.getGrade(this.member.id,this.member.gradeId)
if (!this.isFixingLevel && !this.isOilStorageCard){
await this.getOilCoupon()
}
@@ -3611,7 +3612,7 @@
async getOilOrder(){
this.dialogVisibleamount = false
this.form.oilType = this.oilNameID;
- // this.form.type = this.type;
+ this.form.type = this.type;
let amount = this.form.amount || 0;
// 计算油的升数
if (this.select == "元"){
@@ -3622,6 +3623,7 @@
this.form.amount = (this.form.oilPrice * amount).toFixed(2)
}
+ if (this.form.tankId)
// 校验油罐内油是否足够
await getOilTank(this.form.tankId).then(async res => {
if (res.data.storedQuantity-this.form.liters<0){
@@ -3791,6 +3793,10 @@
// 根据手机号查询会员信息
getUser(){
if(this.select1=="会员手机号"){
+ if (!this.userNo) {
+ this.$message.error("请先输入手机号")
+ return;
+ }
getUserInfoMobile({mobile:this.userNo}).then( response => {
if (response.data!=null){
this.member = response.data