diff --git a/pages/management/inscanerror.vue b/pages/management/inscanerror.vue index 553cbe2..e62b2c5 100644 --- a/pages/management/inscanerror.vue +++ b/pages/management/inscanerror.vue @@ -15,6 +15,12 @@ + + + + + + @@ -23,15 +29,15 @@ /> - + + + + + - @@ -48,9 +54,9 @@ - + - +
{{e.cacheLine_code}}{{e.cacheline_code}} {{e.position_code}}{{vehicle_code}}{{e.vehicle_code}}
@@ -73,6 +79,8 @@ index1: 'A1', options2: [], index2: '', + options3: [{text: '对接位', value: '1'}, {text: '准备位', value: '2'}], + index3: '1', val1: '', dataList: [], pkId: '', @@ -95,6 +103,10 @@ selectChange2(e) { this.index2 = e }, + /** 选择器3 */ + selectChange3(e) { + this.index3 = e + }, toSearch () { this.dataList = [] this.pkId = '' @@ -126,6 +138,14 @@ this.disabled = false return } + if (!this.index3) { + uni.showToast({ + title: '请选择位置类型', + icon: 'none' + }) + this.disabled = false + return + } if (!this.val1) { uni.showToast({ title: '请扫满箱码', @@ -135,7 +155,7 @@ return } try { - let res = await inOutExceptionInstConfirm(this.index2, this.val1, this.pkId) + let res = await inOutExceptionInstConfirm(this.index2, this.val1, this.pkId, this.index3) this.disabled = false this.toSearch() uni.showToast({ @@ -152,3 +172,8 @@ } } + + \ No newline at end of file diff --git a/utils/getData2.js b/utils/getData2.js index f4ea97d..e41dd0d 100644 --- a/utils/getData2.js +++ b/utils/getData2.js @@ -37,12 +37,13 @@ export const inOutExceptionInstQuery = (wcode) => request({ } }) // 1.3确认 -export const inOutExceptionInstConfirm = (wcode, vcode, pcode) => request({ +export const inOutExceptionInstConfirm = (wcode, vcode, pcode, type) => request({ url:'api/cacheLineHand/inOutExceptionInstConfirm', data: { wcsdevice_code: wcode, vehicle_code: vcode, - position_code: pcode + position_code: pcode, + type: type } })