|
@@ -415,6 +415,10 @@ 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;
|
|
|
// });
|
|
@@ -496,11 +500,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (this.form.type != "offline" && this.goodsList.length < 1) {
|
|
|
- this.$message.error("关联商品不能为空");
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
let data = {
|
|
|
...this.form,
|
|
|
facePrice: accMul(this.form.facePrice, 100),
|