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

bug 修改

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