focu
This commit is contained in:
@@ -47,6 +47,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<!-- <button class="submit-button" @tap="handleTest">Test</button> -->
|
||||
<button class="submit-button" :class="{'btn-disabled': !val1}" :disabled="disabled1" @tap="_stoutConfirm">出库确认</button>
|
||||
<button class="submit-button" @tap="_stivtDtlQuery">查询</button>
|
||||
</view>
|
||||
@@ -89,23 +90,35 @@
|
||||
url: '/pages/WarehouseManage/ProdDeliveryDtl?boxno=' + code + '&billcode=' + this.billCode
|
||||
})
|
||||
},
|
||||
// handleTest () {
|
||||
// this.focusedStatus = false
|
||||
// this.val1 = ''
|
||||
// setTimeout(()=>{
|
||||
// uni.showToast({
|
||||
// title: 'toast',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// this.focusedStatus = true
|
||||
// },3000)
|
||||
// },
|
||||
/** 初始化查询 */
|
||||
async _stivtDtlQuery () {
|
||||
let res = await stivtDtlQuery(this.val1, this.billCode)
|
||||
this.dataList = [...res.data]
|
||||
},
|
||||
async _stoutConfirm () {
|
||||
this.focusedStatus = false
|
||||
this.disabled1 = true
|
||||
try {
|
||||
let res = await stoutConfirm(this.val1)
|
||||
this.disabled1 = false
|
||||
this.val1 = ''
|
||||
this.focusedStatus = true
|
||||
this._stivtDtlQuery()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.focusedStatus = true
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
|
||||
@@ -109,6 +109,7 @@
|
||||
this.net_weight_num = res.net_weight_num
|
||||
},
|
||||
async _virtualoutConfirm () {
|
||||
this.focusedStatus = false
|
||||
if (!this.dataList.length) {
|
||||
return
|
||||
}
|
||||
@@ -118,12 +119,12 @@
|
||||
this.disabled1 = false
|
||||
this.val1 = ''
|
||||
this.val2 = ''
|
||||
this.focusedStatus = true
|
||||
this._virtualivtQuery()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
this.focusedStatus = true
|
||||
} catch (e) {
|
||||
this.disabled1 = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user