Commit 3f139983 authored by 何远江's avatar 何远江

修改销售拣货提交

parent eb73a2ed
......@@ -17,7 +17,7 @@
:disabled="isDisabled"
v-model="wxparams"
:focus="isFocus"
placeholder="请扫描产品包装条码/外箱码"
placeholder="请扫描产品包装条码/外箱码"
@confirm="handleConfirm"
></uni-easyinput>
</view>
......@@ -151,7 +151,7 @@ export default {
if (index == 0) {
acc.push(JSON.parse(JSON.stringify(cur)));
} else {
const item = acc.find((v) => v.POSNR === cur.POSNR);
const item = acc.find((v) => v.POSNR === cur.POSNR && v.ZSIZE == cur.ZSIZE);
if (item) {
item.ZPLDT.push(...cur.ZPLDT);
} else {
......@@ -161,6 +161,10 @@ export default {
return acc;
}, []);
console.log(params, this.goodsList);
// return
this.$u.api.sapApi.sapPickingDn(params).then((res) => {
this.loading = false;
if (!Array.isArray(res)) {
......@@ -258,6 +262,7 @@ export default {
const item = this.goodsList.find(
(v) => v.ZSIZE == ele.ZSIZE && ele.MATNR == v.MATNR
);
ele.POSNR = item.POSNR
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