This commit is contained in:
2022-11-30 12:28:31 +08:00
parent fbaab6b342
commit f5d78a980a
3 changed files with 26 additions and 27 deletions

View File

@@ -54,7 +54,7 @@
</view>
<view class="submit-bar">
<button class="submit-button" :class="{'btn-disabled': !val1}" :disabled="disabled2" @tap="_customerPrint">打印</button>
<button class="submit-button" :class="{'btn-disabled': !val1}" :disabled="disabled1" @tap="_customerInfo(val1)">查询</button>
<button class="submit-button" @tap="_customerInfo(val1)">查询</button>
</view>
</view>
</template>
@@ -82,22 +82,15 @@
},
/** 查询 */
async _customerInfo (e) {
this.disabled1 = true
if (!this.val1) {
uni.showToast({
title: '请扫木箱码',
icon: 'none'
})
this.disabled1 = false
return
}
try {
let res = await customerInfo(e)
this.dataList = [...res.data]
this.disabled1 = false
} catch (e) {
this.disabled1 = false
}
let res = await customerInfo(e)
this.dataList = [...res.data]
},
/** 打印 */
async _customerPrint () {