解决单据bug:零售退货和选择商品的时候库存的展示

This commit is contained in:
季圣华
2021-11-12 00:05:01 +08:00
parent b46c081628
commit 4754f59e9d
2 changed files with 18 additions and 15 deletions

View File

@@ -316,21 +316,24 @@ export const BillModalMixin = {
})
} else {
//单个条码
let mArr = []
for (let i = 0; i < mList.length; i++) {
let mInfo = mList[i]
this.changeColumnShow(mInfo)
let mObj = {
rowKey: row.id,
values: this.parseInfoToObj(mInfo)
findStockByDepotAndBarCode({ depotId: row.depotId, barCode: row.barCode }).then((res) => {
if (res && res.code === 200) {
let mArr = []
let mInfo = mList[0]
this.changeColumnShow(mInfo)
let mInfoEx = this.parseInfoToObj(mInfo)
mInfoEx.stock = res.data.stock
let mObj = {
rowKey: row.id,
values: mInfoEx
}
mArr.push(mObj)
target.setValues(mArr);
target.recalcAllStatisticsColumns()
that.autoChangePrice(target)
target.autoSelectBySpecialKey('operNumber')
}
mArr.push(mObj)
}
target.setValues(mArr);
that.getStockByDepotBarCode(row, target)
target.recalcAllStatisticsColumns()
that.autoChangePrice(target)
target.autoSelectBySpecialKey('operNumber')
})
}
}
});

View File

@@ -323,7 +323,7 @@
});
},
onSearchLinkNumber() {
this.$refs.linkBillList.show('出库', '零售', '会员', "0")
this.$refs.linkBillList.show('出库', '零售', '会员', "1")
this.$refs.linkBillList.title = "选择零售出库"
},
linkBillListOk(selectBillRows) {