Commit b0900716 by liuchenxi

update: 实物礼品判断

parent 899d04da
......@@ -1962,7 +1962,7 @@ export default {
}
}
//校验规格明细
if(this.$store.state.product.erpGoodsFlag && !this.giftProStandardJson.length) {
if(this.giftType == 1 && this.$store.state.product.erpGoodsFlag && !this.giftProStandardJson.length) {
this.$message.error('您已开启商品兑换库存同步接口,商品sku必填');
return false;
}
......@@ -2003,7 +2003,7 @@ export default {
this.$message.error('请填写现金');
return false;
}
if(this.$store.state.product.erpGoodsFlag && !item.giftProSkuStandCode) {
if(this.giftType == 1 && this.$store.state.product.erpGoodsFlag && !item.giftProSkuStandCode) {
this.$message.error('您已开启商品兑换库存同步接口,规格编码必填');
return false;
}
......
Markdown is supported
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