解决单据bug:零售退货和选择商品的时候库存的展示
This commit is contained in:
@@ -316,21 +316,24 @@ export const BillModalMixin = {
|
|||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
//单个条码
|
//单个条码
|
||||||
let mArr = []
|
findStockByDepotAndBarCode({ depotId: row.depotId, barCode: row.barCode }).then((res) => {
|
||||||
for (let i = 0; i < mList.length; i++) {
|
if (res && res.code === 200) {
|
||||||
let mInfo = mList[i]
|
let mArr = []
|
||||||
this.changeColumnShow(mInfo)
|
let mInfo = mList[0]
|
||||||
let mObj = {
|
this.changeColumnShow(mInfo)
|
||||||
rowKey: row.id,
|
let mInfoEx = this.parseInfoToObj(mInfo)
|
||||||
values: 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() {
|
onSearchLinkNumber() {
|
||||||
this.$refs.linkBillList.show('出库', '零售', '会员', "0")
|
this.$refs.linkBillList.show('出库', '零售', '会员', "1")
|
||||||
this.$refs.linkBillList.title = "选择零售出库"
|
this.$refs.linkBillList.title = "选择零售出库"
|
||||||
},
|
},
|
||||||
linkBillListOk(selectBillRows) {
|
linkBillListOk(selectBillRows) {
|
||||||
|
|||||||
Reference in New Issue
Block a user