This commit is contained in:
cun-nan 2024-01-22 09:08:20 +08:00
parent f580ad2646
commit b2c17babe9

View File

@ -391,9 +391,21 @@
}, },
// //
submitAmount(){ submitAmount(){
//
request({
url: "business/petrolStationManagement/oilTank/" + uni.getStorageSync('tankId'),
method: 'get',
}).then((res)=>{
if (res.data.storedQuantity-this.liters<0){
uni.showToast({
title:"所加油的升数大于油罐内的升数,请重新选择加油升数",
icon:"none"
})
return;
}else {
if (this.value!="" && this.qindex!=null){ if (this.value!="" && this.qindex!=null){
this.show = false this.show = false
if (uni.getStorageSync("inviteStaffId")!=null && uni.getStorageSync("inviteStaffId")!="" && uni.getStorageSync("inviteStaffId")!=undefined){ if (uni.getStorageSync("inviteStaffId")){
this.toPayment(uni.getStorageSync("inviteStaffId")) this.toPayment(uni.getStorageSync("inviteStaffId"))
}else{ }else{
this.$refs.popup.open('bottom') this.$refs.popup.open('bottom')
@ -411,6 +423,10 @@
}) })
} }
} }
}
})
}, },
changeVal(val) { changeVal(val) {
this.value = val; this.value = val;