This commit is contained in:
2025-08-06 14:21:31 +08:00
parent f20f72c81d
commit f11679a5a0
2 changed files with 10 additions and 3 deletions

View File

@@ -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'

View File

@@ -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({