bug
This commit is contained in:
parent
f580ad2646
commit
b2c17babe9
@ -391,26 +391,42 @@
|
|||||||
},
|
},
|
||||||
// 数字键盘确定按钮
|
// 数字键盘确定按钮
|
||||||
submitAmount(){
|
submitAmount(){
|
||||||
if (this.value!="" && this.qindex!=null){
|
// 校验油罐内油量是否足够
|
||||||
this.show = false
|
request({
|
||||||
if (uni.getStorageSync("inviteStaffId")!=null && uni.getStorageSync("inviteStaffId")!="" && uni.getStorageSync("inviteStaffId")!=undefined){
|
url: "business/petrolStationManagement/oilTank/" + uni.getStorageSync('tankId'),
|
||||||
this.toPayment(uni.getStorageSync("inviteStaffId"))
|
method: 'get',
|
||||||
}else{
|
}).then((res)=>{
|
||||||
this.$refs.popup.open('bottom')
|
if (res.data.storedQuantity-this.liters<0){
|
||||||
}
|
|
||||||
}else{
|
|
||||||
if (this.value=="") {
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title:"请输入加油金额",
|
title:"所加油的升数大于油罐内的升数,请重新选择加油升数",
|
||||||
icon:"error"
|
icon:"none"
|
||||||
})
|
|
||||||
}else{
|
|
||||||
uni.showToast({
|
|
||||||
title:"请选择油枪号",
|
|
||||||
icon:"error"
|
|
||||||
})
|
})
|
||||||
|
return;
|
||||||
|
}else {
|
||||||
|
if (this.value!="" && this.qindex!=null){
|
||||||
|
this.show = false
|
||||||
|
if (uni.getStorageSync("inviteStaffId")){
|
||||||
|
this.toPayment(uni.getStorageSync("inviteStaffId"))
|
||||||
|
}else{
|
||||||
|
this.$refs.popup.open('bottom')
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if (this.value=="") {
|
||||||
|
uni.showToast({
|
||||||
|
title:"请输入加油金额",
|
||||||
|
icon:"error"
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
uni.showToast({
|
||||||
|
title:"请选择油枪号",
|
||||||
|
icon:"error"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
|
|
||||||
|
|
||||||
},
|
},
|
||||||
changeVal(val) {
|
changeVal(val) {
|
||||||
this.value = val;
|
this.value = val;
|
||||||
|
Loading…
Reference in New Issue
Block a user