Commit 1d7afeb1 authored by 何远江's avatar 何远江

bug 修改

parent 41c71ed6
This diff is collapsed.
...@@ -116,21 +116,16 @@ export default { ...@@ -116,21 +116,16 @@ export default {
return this.vuex_sales_outbound[this.vbeln] || null; return this.vuex_sales_outbound[this.vbeln] || null;
}, },
plslen() { plslen() {
return this.goodsList.reduce((acc, cur) => { const codes = [];
return ( this.goodsList.forEach((cur) => {
acc + cur?.ZPLDT?.forEach((c) => {
(cur?.ZPLDT?.reduce((a, c) => { const code = c.ZCODE || c.PLNR;
if (c.ZCODE == "" && c.PLNR) { if (!codes.includes(code)) {
a.push(c.PLNR); codes.push(code);
} else if (c.PLNR && c.ZCODE) { }
if (!a.includes(c.ZCODE)) { });
a.push(c.ZCODE); });
} return codes.length;
}
return a;
}, []).length || 0)
);
}, 0);
}, },
saleInfo() { saleInfo() {
return this.goodsList[0] || {}; return this.goodsList[0] || {};
...@@ -305,8 +300,8 @@ export default { ...@@ -305,8 +300,8 @@ export default {
} }
}); });
} else { } else {
item.ZPLDT.splice(idx, 1) item.ZPLDT.splice(idx, 1);
} }
}, },
// 加载更多 // 加载更多
onReachBottom() { onReachBottom() {
......
...@@ -282,7 +282,6 @@ page { ...@@ -282,7 +282,6 @@ page {
margin: 20rpx; margin: 20rpx;
} }
.cardbox { .cardbox {
max-height: calc(100vh - 105px - 60rpx - 140rpx);
padding: 0rpx 20rpx; padding: 0rpx 20rpx;
margin-top: 20rpx; margin-top: 20rpx;
} }
......
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