扫码
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user