扫码异常
This commit is contained in:
@@ -30,12 +30,12 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="search-item_2">
|
||||
<button class="confirm-button" @tap="toSearch">查询</button>
|
||||
<button class="confirm-button" :class="{'confirm-button_disabled': !pkId || !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
<!-- <button class="confirm-button" @tap="toSearch">查询</button> -->
|
||||
<button class="confirm-button" :class="{'confirm-button_disabled': !index2 || !val1 || !index3}" :disabled="disabled" @tap="toSure">确认</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="grid-wrap">
|
||||
<!-- <view class="grid-wrap">
|
||||
<table class="grid-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -56,7 +56,7 @@
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -112,20 +112,20 @@
|
||||
let res = await getCacheLine(id)
|
||||
this.options2 = [...res]
|
||||
},
|
||||
async _inOutExceptionInstQuery () {
|
||||
let res = await inOutExceptionInstQuery(this.index2)
|
||||
this.dataList = [...res]
|
||||
},
|
||||
// async _inOutExceptionInstQuery () {
|
||||
// let res = await inOutExceptionInstQuery(this.index2)
|
||||
// this.dataList = [...res]
|
||||
// },
|
||||
async toSure () {
|
||||
this.disabled = true
|
||||
if (!this.pkId) {
|
||||
uni.showToast({
|
||||
title: '请选择',
|
||||
icon: 'none'
|
||||
})
|
||||
this.disabled = false
|
||||
return
|
||||
}
|
||||
// if (!this.pkId) {
|
||||
// uni.showToast({
|
||||
// title: '请选择',
|
||||
// icon: 'none'
|
||||
// })
|
||||
// this.disabled = false
|
||||
// return
|
||||
// }
|
||||
if (!this.index2) {
|
||||
uni.showToast({
|
||||
title: '请选择缓存线',
|
||||
@@ -151,9 +151,8 @@
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await inOutExceptionInstConfirm(this.index2, this.val1, this.pkId, this.index3)
|
||||
let res = await inOutExceptionInstConfirm(this.index2, this.val1, this.index3)
|
||||
this.disabled = false
|
||||
this.toSearch()
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
|
||||
Reference in New Issue
Block a user