扫码异常

This commit is contained in:
2023-05-22 19:37:57 +08:00
parent ff05ff9383
commit c578c8267a
3 changed files with 21 additions and 23 deletions

View File

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

View File

@@ -67,12 +67,11 @@ export const inOutExceptionInstQuery = (wcode) => request({
} }
}) })
// 1.3确认 // 1.3确认
export const inOutExceptionInstConfirm = (wcode, vcode, pcode, type) => request({ export const inOutExceptionInstConfirm = (wcode, vcode, type) => request({
url:'api/cacheLineHand/inOutExceptionInstConfirm', url:'api/cacheLineHand/inOutExceptionInstConfirm',
data: { data: {
wcsdevice_code: wcode, wcsdevice_code: wcode,
vehicle_code: vcode, vehicle_code: vcode,
position_code: pcode,
type: type type: type
} }
}) })

View File

@@ -65,9 +65,9 @@ const request = (params) => {
showCancel: false showCancel: false
}) })
store.dispatch('delUserInfo') store.dispatch('delUserInfo')
uni.redirectTo({ // uni.redirectTo({
url: '/pages/login/login' // url: '/pages/login/login'
}) // })
} else if (res[1] && res[1].statusCode === 200) { } else if (res[1] && res[1].statusCode === 200) {
let { let {
data: dataType data: dataType