子卷
This commit is contained in:
@@ -98,7 +98,7 @@
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': checkArr.length === 0 || checkArr.length > 1}" :disabled="disabled1" @tap="_needVehicle">呼叫载具</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1 || !val2}" :disabled="disabled4" @tap="_shippingCheck">配送校验</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !checkArr.length}" :disabled="disabled2" @tap="_shippingConfirm">配送确认</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !checkArr.length || !val3}" :disabled="disabled2" @tap="_shippingConfirm">配送确认</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !val3}" :disabled="disabled3" @tap="_returnVehicle">载具送回</button>
|
||||
<button class="submit-button" @tap="_queryMaterialInfo">查询</button>
|
||||
</view>
|
||||
@@ -121,6 +121,8 @@
|
||||
val3: '',
|
||||
options1: [],
|
||||
index1: '',
|
||||
options2: [],
|
||||
index2: '',
|
||||
qty: '',
|
||||
dataList: [],
|
||||
disabled1: false,
|
||||
@@ -138,7 +140,11 @@
|
||||
/** 选择器1 */
|
||||
selectChange1(e) {
|
||||
this.index1 = e
|
||||
this._queryDeviceByarea(e)
|
||||
if (e) {
|
||||
this._queryDeviceByarea(e)
|
||||
} else {
|
||||
this.index2 = ''
|
||||
}
|
||||
},
|
||||
/** 生产区域下拉框查询 */
|
||||
async _queryProductArea () {
|
||||
@@ -192,7 +198,7 @@
|
||||
/** 确认 */
|
||||
async _shippingConfirm () {
|
||||
this.disabled2 = true
|
||||
if (!this.checkArr.length) {
|
||||
if (!this.checkArr.length || !this.val3) {
|
||||
this.disabled2 = false
|
||||
return
|
||||
}
|
||||
@@ -200,6 +206,9 @@
|
||||
let res = await shippingConfirm(this.checkArr, this.val3, this.val1)
|
||||
this.disabled2 = false
|
||||
this.checkArr = []
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this._queryMaterialInfo()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
@@ -222,11 +231,15 @@
|
||||
}
|
||||
try {
|
||||
let res = await returnVehicle(this.val3, this.val1)
|
||||
this.disabled3 = false
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.val3 = ''
|
||||
this._queryMaterialInfo()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled3 = false
|
||||
} catch (e) {
|
||||
this.disabled3 = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user