解决单据bug:零售退货和选择商品的时候库存的展示
This commit is contained in:
@@ -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')
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -323,7 +323,7 @@
|
||||
});
|
||||
},
|
||||
onSearchLinkNumber() {
|
||||
this.$refs.linkBillList.show('出库', '零售', '会员', "0")
|
||||
this.$refs.linkBillList.show('出库', '零售', '会员', "1")
|
||||
this.$refs.linkBillList.title = "选择零售出库"
|
||||
},
|
||||
linkBillListOk(selectBillRows) {
|
||||
|
||||
Reference in New Issue
Block a user