From 84c05bb8e27f3f80e0f2122a2e5a873bd71695c8 Mon Sep 17 00:00:00 2001 From: xiangxy Date: Thu, 8 Sep 2022 17:38:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config/getData1.js | 54 +++++++------ src/pages/proj/CallEmptyPallet.vue | 125 +++++++++++++++-------------- src/pages/proj/EquipCallMater.vue | 85 +++++++++++--------- src/pages/proj/SendEmptyPallet.vue | 112 +++++++++++++------------- src/pages/proj/SendMater.vue | 14 ++-- src/router/index.js | 2 +- 6 files changed, 202 insertions(+), 190 deletions(-) diff --git a/src/config/getData1.js b/src/config/getData1.js index 3efc4b3..6a41fe8 100644 --- a/src/config/getData1.js +++ b/src/config/getData1.js @@ -28,43 +28,47 @@ export const taskOperation = (uuid, type) => post2('api/hand/taskoperation', { }) // 送料 -// 1.1查询工序设备点位 +// 1.1查询区域点位 export const sendMaterialqueryPoint = () => post('api/pda/sendMaterial/queryPoint', {}) -// 1.2压制叫料确定 -export const sendMaterialconfirm = (wid, did, pid, pcode, qty, vcode, isfull) => post('api/pda/sendMaterial/confirm', { - workprocedure_id: wid, - device_id: did, +// 1.2送料确定 +export const sendMaterialconfirm = (rid, pid, pcode, qty) => post('api/pda/sendMaterial/confirm', { + region_id: rid, point_id: pid, point_code: pcode, - qty: qty, - vehicle_code: vcode, - is_full: isfull + qty: qty }) -// 压制叫料 -// 1.1查询点位 +// 叫料 +// 1.1查询区域点位 export const callMaterialqueryPoint = () => post('api/pda/callMaterial/queryPoint', {}) -// 1.2压制叫料确定 -export const callMaterialconfirm = (pid, pcode, pname, isfull) => post('api/pda/callMaterial/confirm', { +// 1.2叫料确定 +export const callMaterialconfirm = (rid, pid, pcode) => post('api/pda/callMaterial/confirm', { + region_id: rid, point_id: pid, - point_code: pcode, - point_name: pname, - is_full: isfull + point_code: pcode }) // 送空托盘 -// 1.1查询区域 -export const sendEmptyqueryArea = () => post('api/pda/sendEmpty/queryArea', {}) -// 1.2根据区域查询点位 -export const sendEmptyqueryPointByArea = (acode) => post('api/pda/sendEmpty/queryPointByArea', { - area_code: acode -}) -// 1.3 送空托盘确定 -export const sendEmptyconfirm = (pid, pcode, pname, vcode) => post('api/pda/sendEmpty/confirm', { +// 1.1查询区域点位 +export const sendEmptyqueryPoint = () => post('api/pda/sendEmpty/queryPoint', {}) +// 1.2送托盘确认 +export const sendEmptyconfirm = (rid, pid, pcode, vcode, qty) => post('api/pda/sendEmpty/confirm', { + region_id: rid, point_id: pid, point_code: pcode, - point_name: pname, - vehicle_code: vcode + vehicle_code: vcode, + qty: qty +}) + +// 呼叫空托盘 +// 1.1查询区域点位 +export const callEmptyqueryPoint = () => post('api/pda/callEmpty/queryPoint', {}) +// 1.2送料确定 +export const callEmptyconfirm = (rid, pid, pcode, qty) => post('api/pda/callEmpty/confirm', { + region_id: rid, + point_id: pid, + point_code: pcode, + qty: qty }) // 组盘-托盘数量绑定 diff --git a/src/pages/proj/CallEmptyPallet.vue b/src/pages/proj/CallEmptyPallet.vue index 1c64db6..37122a6 100644 --- a/src/pages/proj/CallEmptyPallet.vue +++ b/src/pages/proj/CallEmptyPallet.vue @@ -1,22 +1,10 @@