|
@@ -82,7 +82,10 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<div class="flex-textarea">
|
|
|
- <el-input type="textarea" maxlength="300" show-word-limit v-model="form.costPayWayInput"></el-input>
|
|
|
+ <el-form-item prop="costPayWayInput" style="width:100%">
|
|
|
+ <el-input type="textarea" maxlength="300" show-word-limit v-model="form.costPayWayInput"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex-input-tare flex-header">
|
|
@@ -91,17 +94,7 @@
|
|
|
</el-form-item>
|
|
|
</div>
|
|
|
<div class="flex-header" style="justify-content: space-between;">
|
|
|
- <!-- <el-form-item label="活动性质">
|
|
|
- <el-checkbox-group v-model="form.type">
|
|
|
- <el-checkbox
|
|
|
- label="美食/餐厅线上活动"
|
|
|
- name="type"
|
|
|
- ></el-checkbox>
|
|
|
- <el-checkbox label="地推活动" name="type"></el-checkbox>
|
|
|
- <el-checkbox label="线下主题活动" name="type"></el-checkbox>
|
|
|
- <el-checkbox label="单纯品牌曝光" name="type"></el-checkbox>
|
|
|
- </el-checkbox-group>
|
|
|
- </el-form-item> -->
|
|
|
+
|
|
|
<el-form-item label="提醒短信:" prop="remindMmsg" label-width="220px" style="width: 33%;">
|
|
|
<el-checkbox-group v-model="remindMmsg" style="display:flex">
|
|
|
<el-checkbox label="无" name="remindMmsg" :disabled="checkBoxNone"></el-checkbox>
|
|
@@ -113,25 +106,7 @@
|
|
|
<el-checkbox label="用尽失效" name="remindMmsg" :disabled="checkBoxStatus"></el-checkbox>
|
|
|
</el-checkbox-group>
|
|
|
</el-form-item>
|
|
|
- <!-- <el-form-item
|
|
|
- label="提醒短信:"
|
|
|
- prop="remindMmsg"
|
|
|
- label-width="220px"
|
|
|
- >
|
|
|
- <el-select v-model="form.remindMsg" placeholder="请选择">
|
|
|
- <el-option label="无" value="无"></el-option>
|
|
|
- <el-option label="办理成功" value="办理成功"></el-option>
|
|
|
- <el-option label="退订成功" value="退订成功"></el-option>
|
|
|
- <el-option label="到期提醒" value="到期提醒"></el-option>
|
|
|
- <el-option label="限速提醒" value="限速提醒"></el-option>
|
|
|
- <el-option label="余额提醒" value="余额提醒"></el-option>
|
|
|
- <el-option label="用尽失效" value="用尽失效"></el-option>
|
|
|
- <el-option
|
|
|
- label="优惠到期提醒"
|
|
|
- value="优惠到期提醒"
|
|
|
- ></el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item> -->
|
|
|
+
|
|
|
<div class="flex-textarea" style="margin-right:5%;width:60%">
|
|
|
<el-input type="textarea" maxlength="300" show-word-limit v-model="form.remindMsgInput"></el-input>
|
|
|
</div>
|
|
@@ -144,7 +119,10 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<div class="flex-textarea">
|
|
|
- <el-input type="textarea" maxlength="300" show-word-limit v-model="form.gratuityInput"></el-input>
|
|
|
+ <el-form-item prop="gratuityInput" style="width:100%">
|
|
|
+ <el-input type="textarea" maxlength="300" show-word-limit v-model="form.gratuityInput"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex-header">
|
|
@@ -155,7 +133,10 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<div class="flex-textarea">
|
|
|
- <el-input type="textarea" maxlength="300" show-word-limit v-model="form.reportFormInput"></el-input>
|
|
|
+ <el-form-item prop="reportFormInput" style="width:100%">
|
|
|
+ <el-input type="textarea" maxlength="300" show-word-limit v-model="form.reportFormInput"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="flex-input-tare flex-header">
|
|
@@ -201,6 +182,21 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ costPayWayInputRule: {
|
|
|
+ costPayWayInput: [
|
|
|
+ { required: true, message: "请填写", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ gratuityInputRule: {
|
|
|
+ gratuityInput: [
|
|
|
+ { required: true, message: "请填写", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ reportFormInputRule: {
|
|
|
+ reportFormInput: [
|
|
|
+ { required: true, message: "请填写", trigger: "blur" },
|
|
|
+ ],
|
|
|
+ },
|
|
|
checkBoxNone: false,
|
|
|
checkBoxStatus: false,
|
|
|
fileInfo: {
|
|
@@ -260,6 +256,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.form = this.list;
|
|
|
+ this.copyRule = this.rule;
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
@@ -398,7 +395,40 @@ export default {
|
|
|
})
|
|
|
|
|
|
}
|
|
|
+ },
|
|
|
+ "form.costPayWay": {
|
|
|
+ handler(newVal) {
|
|
|
+ console.log(newVal);
|
|
|
+ if (newVal === '其他') {
|
|
|
+ this.rule = { ...this.rule, ...this.costPayWayInputRule }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.rule = this.copyRule
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "form.gratuity": {
|
|
|
+ handler(newVal) {
|
|
|
+ console.log(newVal);
|
|
|
+ if (newVal === '有') {
|
|
|
+ this.rule = { ...this.rule, ...this.gratuityInputRule }
|
|
|
+ console.log(this.rule);
|
|
|
+ } else {
|
|
|
+ this.rule = this.copyRule
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ "form.reportForm": {
|
|
|
+ handler(newVal) {
|
|
|
+ if (newVal === '有') {
|
|
|
+ this.rule = { ...this.rule, ...this.reportFormInputRule }
|
|
|
+
|
|
|
+ } else {
|
|
|
+ this.rule = this.copyRule
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
};
|
|
|
</script>
|