diff --git a/src/config/getData2.js b/src/config/getData2.js index d159644..1069dd1 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -137,7 +137,9 @@ export const getMaterial = (code, page, size) => post('api/pda/bcp/in/getMateria // 1.4入库点下拉框 export const getPoint = () => post('api/pda/bcp/in/getPoint', {}) // 1.5呼叫空载具(按钮) -export const callVehicle = () => post('api/pda/bcp/in/callVehicle', {}) +export const callVehicle = (point) => post('api/pda/bcp/in/callVehicle', { + point: point +}) // 1.6确认入库(按钮) export const createIn = (from) => post('api/pda/bcp/in/createIn', { from: from @@ -355,7 +357,9 @@ export const washWashQzFinish = (id, wegiht, code) => post('api/pda/wash/washQzF vechile_code: code }) // 1.5呼叫空框 -export const bcpInCallVehicle = () => post('api/pda/bcp/in/callVehicle', {}) +export const bcpInCallVehicle = (point) => post('api/pda/bcp/in/callVehicle', { + point: point +}) /** * 刻字工序 diff --git a/src/pages/modules/clean/cleaning-cutting.vue b/src/pages/modules/clean/cleaning-cutting.vue index 4b9359c..b277418 100644 --- a/src/pages/modules/clean/cleaning-cutting.vue +++ b/src/pages/modules/clean/cleaning-cutting.vue @@ -256,7 +256,7 @@ export default { async _bcpInCallVehicle () { this.disabled5 = true try { - let res = await bcpInCallVehicle() + let res = await bcpInCallVehicle('A1-CPQXJ_01_X') if (res.code === 200) { this.toast(res.msg) } diff --git a/src/pages/modules/semifinished/semi-finished-instore.vue b/src/pages/modules/semifinished/semi-finished-instore.vue index 94ab021..dd7ce18 100644 --- a/src/pages/modules/semifinished/semi-finished-instore.vue +++ b/src/pages/modules/semifinished/semi-finished-instore.vue @@ -173,8 +173,13 @@ export default { // 呼叫空载具 async _callVehicle () { this.disabled1 = true + if (this.value3 === '') { + this.toast('请选择入库点') + this.disabled1 = false + return + } try { - let res = await callVehicle() + let res = await callVehicle(this.value3) this.toast(res.msg) this.disabled1 = false } catch (e) {