Commit b233e740 by zhangxw

套餐管理bug修复

1 parent c7aaf91f
...@@ -407,6 +407,8 @@ export default { ...@@ -407,6 +407,8 @@ export default {
voucherList: fileArr, voucherList: fileArr,
merchantGoodsInfoList: merchantGoodsInfoList merchantGoodsInfoList: merchantGoodsInfoList
} }
// 套餐至少包含两个以上商品
if (merchantGoodsInfoList?.length < 2) return this.$message.error('套餐至少需包含两个商品')
if (data?.goodsType == 1 && data?.sceneType != 1) return this.$message.error('太阳膜类商品仅支持上架至精品升级场景') if (data?.goodsType == 1 && data?.sceneType != 1) return this.$message.error('太阳膜类商品仅支持上架至精品升级场景')
if (this.extendedPosiType.includes(data.goodsType) && data?.sceneType != 0) return this.$message.error('延保类商品仅支持上架至会员/权益升级场景') if (this.extendedPosiType.includes(data.goodsType) && data?.sceneType != 0) return this.$message.error('延保类商品仅支持上架至会员/权益升级场景')
this.editData = data this.editData = data
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!