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