diff --git a/pages/entry/mater-group2.vue b/pages/entry/mater-group2.vue index 8720698..0c78ddc 100644 --- a/pages/entry/mater-group2.vue +++ b/pages/entry/mater-group2.vue @@ -135,7 +135,14 @@ } try { this.currentData.stor_code = this.index - let res = await groupPlate(this.currentData.material_id, this.currentData.pcsn, this.currentData.qty, this.val2, this.val1, this.val3) + let arr = [ + { + material_id: this.currentData.material_id, + qty: this.currentData.qty, + pcsn: this.currentData.pcsn, + } + ] + let res = await groupPlate(arr, this.val2, this.val1, this.val3) uni.showToast({ title: res.message, icon: 'none' diff --git a/utils/getData3.js b/utils/getData3.js index 9048a7c..617e4c7 100644 --- a/utils/getData3.js +++ b/utils/getData3.js @@ -40,9 +40,9 @@ export const getMaterialList = (search, page, size) => request({ // 入库管理 // 物料组盘确认 -export const groupPlate = (mid, pcsn, qty, vcode, ecode, siteCode) => request({ +export const groupPlate = (arr, vcode, ecode, siteCode) => request({ url:'api/pda/iosIn/groupPlate', - data: {material_id: mid, pcsn: pcsn, qty: qty, vehicle_code: vcode, ext_code: ecode, siteCode} + data: {data: arr, vehicle_code: vcode, ext_code: ecode, siteCode: siteCode} }) // 组盘入库确认 export const confirmIn = (vcode, sitecode, sid) => request({