diff --git a/src/config/getData2.js b/src/config/getData2.js index bb15705..52522d1 100644 --- a/src/config/getData2.js +++ b/src/config/getData2.js @@ -16,47 +16,55 @@ export const updatePass = (Rfold, Rfnew) => post('api/pda/updatePass', { }) /** - * 点位绑定确认 + * 点位管理 */ -// 1.1查询区域点位 -export const queryPoint = () => post('api/pda/sendMaterial/queryPoint', {}) -// export const queryPoint = () => { +// 1.1查询区域 +export const queryRegion = () => post('api/pda/sendMaterial/queryRegion', {}) +// export const queryRegion = () => { // let res = { // code: '1', // result: [{ // region_id: '1', -// region_code: '1', -// region_name: 'A001', -// pointArr: [{ -// point_id: '1', -// point_code: '1', -// point_name: 'A001-001' -// }, { -// point_id: '2', -// point_code: '2', -// point_name: 'A001-002' -// }] +// region_name: 'a' // }, { // region_id: '2', -// region_code: '2', -// region_name: 'A002', -// pointArr: [{ -// point_id: '1', -// point_code: '1', -// point_name: 'A002-001' -// }, { -// point_id: '2', -// point_code: '2', -// point_name: 'A002-002' -// }] +// region_name: 'aa' +// }] +// } +// return res +// } +// 1.2查询区域点位 +export const queryPoint = (id) => post('api/pda/sendMaterial/queryPoint', { + region_id: id +}) +// export const queryPoint = () => { +// let res = { +// code: '1', +// pointArr: [{ +// point_id: '1', +// point_code: '1', +// point_name: 'A001-001', +// point_status: '00', +// quality_scode: '' +// }, { +// point_id: '2', +// point_code: '2', +// point_name: 'A001-002', +// point_status: '02', +// quality_scode: '00', +// product_code: 'gdff', +// batch_code: '01', +// product_specifications: '133', +// weight: '100', +// time: '2020-10-10' // }] // } // return res // } // 1.2点位绑定确认 -export const emptyAndQtyConfirm = (id, status, scode) => post('api/pda/emptyAndQty/confirm', { +export const emptyAndQtyConfirm = (id, type, scode) => post('api/pda/emptyAndQty/confirm', { point_id: id, - point_status: status, + type: type, quality_scode: scode }) diff --git a/src/pages/login/Home.vue b/src/pages/login/Home.vue index 645f2e2..9e67105 100644 --- a/src/pages/login/Home.vue +++ b/src/pages/login/Home.vue @@ -16,7 +16,7 @@