|
@@ -415,10 +415,7 @@ export default {
|
|
|
const subForm = this.$refs["form"];
|
|
|
subForm.validate((valid) => {
|
|
|
if (valid) {
|
|
|
- if (this.form.type != "offline" && this.goodsList.length < 1) {
|
|
|
- this.$message.error("关联商品不能为空");
|
|
|
- return
|
|
|
- }
|
|
|
+
|
|
|
// let prizeIndex = this.awardsList.findIndex((item) => {
|
|
|
// return !item.prizeList.length;
|
|
|
// });
|
|
@@ -499,6 +496,10 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if (this.form.type != "offline" && this.goodsList.length < 1) {
|
|
|
+ this.$message.error("关联商品不能为空");
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
let data = {
|
|
|
...this.form,
|