虚拟库
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="submit-bar">
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId}" :disabled="disabled" @tap="_outconfirmInstor">确认出库</button>
|
||||
<button class="submit-button" :class="{'btn-disabled': !pkId || !val1}" :disabled="disabled" @tap="_outconfirmInstor">确认出库</button>
|
||||
<button class="submit-button" @tap="_outcoolIOQuery">查询</button>
|
||||
</view>
|
||||
</view>
|
||||
@@ -104,18 +104,18 @@
|
||||
},
|
||||
/** 初始化查询 */
|
||||
async _outcoolIOQuery () {
|
||||
let res = await outcoolIOQuery(this.val2, this.index, this.val1)
|
||||
let res = await outcoolIOQuery(this.val2, this.index)
|
||||
this.dataList = [...res.data]
|
||||
},
|
||||
/** 确认 */
|
||||
async _outconfirmInstor () {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
if (!this.pkId || !this.val1) {
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await outconfirmInstor(this.pkObj)
|
||||
let res = await outconfirmInstor(this.pkObj, this.val1)
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
|
||||
Reference in New Issue
Block a user