Commit 4754f59e authored by 季圣华's avatar 季圣华
Browse files

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

parent b46c0816
......@@ -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) {
......
Supports Markdown
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