Commit ca10137d authored by 沈翠玲's avatar 沈翠玲

换标

parent 7132b2f8
......@@ -170,8 +170,11 @@ export default {
console.log(params, this.goodsList);
// return
this.$u.api.sapApi.sapMigoCS(params).then((res) => {
const list = params.reduce((acc, cur) => {
acc.push(...(cur.ZPLDT || []))
return acc
}, [])
this.$u.api.sapApi.sapMigoCS(list).then((res) => {
this.loading = false;
if (!Array.isArray(res)) {
return;
......@@ -258,7 +261,6 @@ export default {
});
},
setSalesBoundPL(pls) {
console.log(pls, "pls");
// 循环BLPL合并相同的物料号和size
pls.forEach((ele) => {
if (!this.pls.includes(ele.PLNR) || !this.pls.includes(ele.ZCODE)) {
......@@ -269,8 +271,13 @@ export default {
const item = this.goodsList.find(
(v) => v.ZSIZE == ele.ZSIZE && ele.MATNR == v.MATNR
);
console.log('itemitem', item)
ele.POSNR = item.POSNR
ele.VBELN = item.VBELN
ele.MAKTX = item.MAKTX
ele.LFIMG = item.LFIMG
ele.KUNNR = item.KUNNR
ele.WADAT = item.WADAT
ele.XSNUM = item.XSNUM
if (item) {
if (Reflect.has(item, "ZPLDT")) {
item.ZPLDT.push(ele);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment