[new feature] Sku: Add custom settings in stepper stock (#2839)

This commit is contained in:
Jackie Zhang 2019-02-25 16:35:43 +08:00 committed by neverland
parent e4de9221e3
commit 6fff26caa1

View File

@ -43,6 +43,10 @@ export default sfc({
computed: {
stock() {
const { stockNum } = this.customStepperConfig;
if (stockNum !== undefined) {
return stockNum;
}
if (this.selectedSkuComb) {
return this.selectedSkuComb.stock_num;
}