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

修改销售拣货提交

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