解决采购订单和销售订单只会计算默认仓库的库存的bug

This commit is contained in:
季圣华
2022-10-02 16:02:29 +08:00
parent db4121aad0
commit 1ed99c8ee1
8 changed files with 23 additions and 24 deletions

View File

@@ -386,7 +386,8 @@ export const BillModalMixin = {
})
} else {
//单个条码
findStockByDepotAndBarCode({ depotId: row.depotId, barCode: row.barCode }).then((res) => {
let depotIdSelected = this.prefixNo !== 'CGDD' && this.prefixNo !== 'XSDD'? row.depotId: ''
findStockByDepotAndBarCode({ depotId: depotIdSelected, barCode: row.barCode }).then((res) => {
if (res && res.code === 200) {
let mArr = []
let mInfo = mList[0]