|
@@ -39,7 +39,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-row :gutter="20">
|
|
|
- <el-col style="width: 395px">
|
|
|
+ <!-- <el-col style="width: 395px">
|
|
|
<el-form-item
|
|
|
label="优惠券类型"
|
|
|
prop="type"
|
|
@@ -62,7 +62,7 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
<el-col style="width: 395px" v-if="form.type == 'FULL_REDUCTION'">
|
|
|
<el-form-item
|
|
|
label="面值"
|
|
@@ -264,7 +264,7 @@ export default {
|
|
|
form: {
|
|
|
name: "",
|
|
|
description: "",
|
|
|
- type: "",
|
|
|
+ type: "FULL_REDUCTION",
|
|
|
faceValue: "",
|
|
|
fullAmount: "",
|
|
|
effectiveType: "",
|
|
@@ -283,6 +283,9 @@ export default {
|
|
|
if (this.$route.query.row) {
|
|
|
this.activeRow = JSON.parse(this.$route.query.row);
|
|
|
this.form = { ...this.activeRow };
|
|
|
+ // 优惠券只能时满减
|
|
|
+ this.form.type = 'FULL_REDUCTION'
|
|
|
+
|
|
|
let effectiveStartTime = this.activeRow.effectiveStartTime;
|
|
|
let effectiveExpireTime = this.activeRow.effectiveExpireTime;
|
|
|
let startDate = this.activeRow.startDate;
|