虚拟库

This commit is contained in:
2022-10-28 10:28:13 +08:00
parent bf48ed3991
commit e9ee7922f6
6 changed files with 87 additions and 20 deletions

View File

@@ -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'