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

换标

parent 7132b2f8
...@@ -170,8 +170,11 @@ export default { ...@@ -170,8 +170,11 @@ export default {
console.log(params, this.goodsList); console.log(params, this.goodsList);
// return // return
const list = params.reduce((acc, cur) => {
this.$u.api.sapApi.sapMigoCS(params).then((res) => { acc.push(...(cur.ZPLDT || []))
return acc
}, [])
this.$u.api.sapApi.sapMigoCS(list).then((res) => {
this.loading = false; this.loading = false;
if (!Array.isArray(res)) { if (!Array.isArray(res)) {
return; return;
...@@ -258,7 +261,6 @@ export default { ...@@ -258,7 +261,6 @@ export default {
}); });
}, },
setSalesBoundPL(pls) { setSalesBoundPL(pls) {
console.log(pls, "pls");
// 循环BLPL合并相同的物料号和size // 循环BLPL合并相同的物料号和size
pls.forEach((ele) => { pls.forEach((ele) => {
if (!this.pls.includes(ele.PLNR) || !this.pls.includes(ele.ZCODE)) { if (!this.pls.includes(ele.PLNR) || !this.pls.includes(ele.ZCODE)) {
...@@ -269,8 +271,13 @@ export default { ...@@ -269,8 +271,13 @@ export default {
const item = this.goodsList.find( const item = this.goodsList.find(
(v) => v.ZSIZE == ele.ZSIZE && ele.MATNR == v.MATNR (v) => v.ZSIZE == ele.ZSIZE && ele.MATNR == v.MATNR
); );
console.log('itemitem', item)
ele.POSNR = item.POSNR 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 (item) {
if (Reflect.has(item, "ZPLDT")) { if (Reflect.has(item, "ZPLDT")) {
item.ZPLDT.push(ele); 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