From 94705af0ef4b7596c07a746622a3828211595d2a Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Thu, 24 Aug 2023 08:49:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BC=E5=8F=AB=E7=A9=BA=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/getData2.js | 8 ++++++-- src/pages/modules/clean/cleaning-cutting.vue | 2 +- src/pages/modules/semifinished/semi-finished-instore.vue | 7 ++++++- 3 files changed, 13 insertions(+), 4 deletions(-) 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) {