Merge branch 'main' of http://122.51.230.86:3000/dianliang/oil-station
This commit is contained in:
commit
5af9a9092c
@ -650,7 +650,7 @@ export default {
|
|||||||
resetForm(formName) {
|
resetForm(formName) {
|
||||||
this.$refs[formName].resetFields();
|
this.$refs[formName].resetFields();
|
||||||
// this.getInfo()
|
// this.getInfo()
|
||||||
this.$router.push({path: "/EventMarketing/center/index"})
|
this.$router.push({path: "/EventMarketing/center/index",query: {activeId:this.activeId}})
|
||||||
},
|
},
|
||||||
indexMethod(index) {
|
indexMethod(index) {
|
||||||
return index * 2;
|
return index * 2;
|
||||||
|
@ -328,7 +328,7 @@ export default {
|
|||||||
this.$refs[formName].resetFields();
|
this.$refs[formName].resetFields();
|
||||||
this.ifWrite = true
|
this.ifWrite = true
|
||||||
// this.getInfo()
|
// this.getInfo()
|
||||||
this.$router.push({path: "/EventMarketing/center/index"})
|
this.$router.push({path: "/EventMarketing/center/index",query: {activeId:this.activeId}})
|
||||||
},
|
},
|
||||||
/** 查询新人有礼活动列表 */
|
/** 查询新人有礼活动列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
@ -473,6 +473,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.getList();
|
this.getList();
|
||||||
}
|
}
|
||||||
|
if (this.$route.query.activeId){
|
||||||
|
this.tabindex = 1
|
||||||
|
}
|
||||||
|
|
||||||
this.getOldList()
|
this.getOldList()
|
||||||
},
|
},
|
||||||
|
@ -608,7 +608,7 @@ export default {
|
|||||||
resetForm(formName) {
|
resetForm(formName) {
|
||||||
this.$refs[formName].resetFields();
|
this.$refs[formName].resetFields();
|
||||||
// this.getInfo()
|
// this.getInfo()
|
||||||
this.$router.push({path:"/EventMarketing/center/index"})
|
this.$router.push({path:"/EventMarketing/center/index",query: {activeId:this.activeId}})
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -95,13 +95,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
|
||||||
v-show="total>0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="queryParams.page"
|
|
||||||
:limit.sync="queryParams.pageSize"
|
|
||||||
@pagination="getList"
|
|
||||||
/>
|
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<div class="d-b" style="margin-bottom: 15px;margin-top: 20px">
|
<div class="d-b" style="margin-bottom: 15px;margin-top: 20px">
|
||||||
<div class="d-s">
|
<div class="d-s">
|
||||||
@ -314,7 +307,7 @@
|
|||||||
<div style="display: flex;width: 100%;margin: 20px 0;">
|
<div style="display: flex;width: 100%;margin: 20px 0;">
|
||||||
<div style="width: 50%">
|
<div style="width: 50%">
|
||||||
<el-form-item label="限时优惠名称" prop="activeId">
|
<el-form-item label="限时优惠名称" prop="activeId">
|
||||||
<el-select v-model="ruleForm1.activeId" placeholder="请选择优惠名称">
|
<el-select v-model="ruleForm1.activeId" placeholder="请选择优惠名称" style="width: 100%">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item,index) in timeShareList"
|
v-for="(item,index) in timeShareList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@ -333,7 +326,7 @@
|
|||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label=" 会员标签" prop="babelIds">
|
<el-form-item label=" 会员标签" prop="babelIds">
|
||||||
<el-select v-model="ruleForm1.babelIds" multiple placeholder="请选择会员标签">
|
<el-select v-model="ruleForm1.babelIds" multiple placeholder="请选择会员标签" style="width: 100%">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in userLabelList"
|
v-for="item in userLabelList"
|
||||||
:key="item.id+''"
|
:key="item.id+''"
|
||||||
@ -341,36 +334,73 @@
|
|||||||
:value="item.id+''"></el-option>
|
:value="item.id+''"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="适用实收金额" required>
|
<el-form-item label="消费条件" required>
|
||||||
<el-col :span="11">
|
<div v-if="ruleForm1.consumeType!=1">
|
||||||
|
<el-col :span="7">
|
||||||
|
<el-select v-model="ruleForm1.consumeType" style="width: 90%">
|
||||||
|
<el-option label="实收金额" value="0"></el-option>
|
||||||
|
<el-option label="加油升数" value="1"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="7">
|
||||||
<el-form-item prop="moneyMin">
|
<el-form-item prop="moneyMin">
|
||||||
<el-input v-model="ruleForm1.moneyMin"></el-input>
|
<el-input v-model="ruleForm1.moneyMin">
|
||||||
|
<template slot="append">元</template>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
<div style="margin-left: 5px">到</div>
|
<div style="margin-left: 10px">到</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="11">
|
<el-col :span="7">
|
||||||
<el-form-item prop="moneyMax">
|
<el-form-item prop="moneyMax">
|
||||||
<el-input v-model="ruleForm1.moneyMax"></el-input>
|
<el-input v-model="ruleForm1.moneyMax">
|
||||||
|
<template slot="append">元</template>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-form-item>
|
</div>
|
||||||
<el-form-item label="适用加油升数" required>
|
<div v-if="ruleForm1.consumeType==1">
|
||||||
<el-col :span="11">
|
<el-col :span="7">
|
||||||
<el-form-item prop="literMin">
|
<el-select v-model="ruleForm1.consumeType" style="width: 90%">
|
||||||
<el-input v-model="ruleForm1.literMin"></el-input>
|
<el-option label="实收金额" value="0"></el-option>
|
||||||
|
<el-option label="加油升数" value="1"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="7">
|
||||||
|
<el-form-item prop="moneyMin">
|
||||||
|
<el-input v-model="ruleForm1.literMin">
|
||||||
|
<template slot="append">L</template>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
<div style="margin-left: 5px">到</div>
|
<div style="margin-left: 10px">到</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="11">
|
<el-col :span="7">
|
||||||
<el-form-item prop="literMax">
|
<el-form-item prop="moneyMax">
|
||||||
<el-input v-model="ruleForm1.literMax"></el-input>
|
<el-input v-model="ruleForm1.literMax">
|
||||||
|
<template slot="append">L</template>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="适用加油升数" required>-->
|
||||||
|
<!-- <el-col :span="11">-->
|
||||||
|
<!-- <el-form-item prop="literMin">-->
|
||||||
|
<!-- <el-input v-model="ruleForm1.literMin"></el-input>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- </el-col>-->
|
||||||
|
<!-- <el-col :span="2">-->
|
||||||
|
<!-- <div style="margin-left: 5px">到</div>-->
|
||||||
|
<!-- </el-col>-->
|
||||||
|
<!-- <el-col :span="11">-->
|
||||||
|
<!-- <el-form-item prop="literMax">-->
|
||||||
|
<!-- <el-input v-model="ruleForm1.literMax"></el-input>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- </el-col>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
<el-form-item label="最大优惠金额" prop="disMax">
|
<el-form-item label="最大优惠金额" prop="disMax">
|
||||||
<el-input v-model="ruleForm1.disMax"></el-input>
|
<el-input v-model="ruleForm1.disMax"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -383,7 +413,7 @@
|
|||||||
<el-input v-model="ruleForm1.ruleName"></el-input>
|
<el-input v-model="ruleForm1.ruleName"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="适用会员等级" prop="levelId">
|
<el-form-item label="适用会员等级" prop="levelId">
|
||||||
<el-select v-model="ruleForm1.levelId" clearable placeholder="请选择会员等级">
|
<el-select v-model="ruleForm1.levelId" clearable placeholder="请选择会员等级" style="width: 100%">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item,index) in userGradeList"
|
v-for="(item,index) in userGradeList"
|
||||||
:label="item.name"
|
:label="item.name"
|
||||||
@ -416,13 +446,13 @@
|
|||||||
<el-form-item label="适用时间段" prop="timeType">
|
<el-form-item label="适用时间段" prop="timeType">
|
||||||
<div>
|
<div>
|
||||||
<div class="icon-type" v-for="(item,index) in weekMonthTypeList" :key="index"
|
<div class="icon-type" v-for="(item,index) in weekMonthTypeList" :key="index"
|
||||||
:class="{ 'acvtive' : index === tindex3 }" @click="Typeindex3(index)">
|
:class="{ 'acvtive' : index === tindex3 }" @click="Typeindex3(index)" style="margin-bottom: 20px">
|
||||||
<img src="@/assets/images/wx.png" style="width: 20px;height: 20px" v-if="index != tindex3">
|
<img src="@/assets/images/wx.png" style="width: 20px;height: 20px" v-if="index != tindex3">
|
||||||
<img src="@/assets/images/xz.png" style="width: 20px;height: 20px" v-if="index == tindex3">
|
<img src="@/assets/images/xz.png" style="width: 20px;height: 20px" v-if="index == tindex3">
|
||||||
{{ item }}
|
{{ item }}
|
||||||
<el-select v-model="weekDay" v-if="item=='每周'" placeholder="请选择每月固定日期" multiple
|
<el-select v-model="weekDay" v-if="item=='每周'" placeholder="请选择每月固定日期" multiple
|
||||||
:disabled="tindex3!=0"
|
:disabled="tindex3!=0"
|
||||||
style="margin-left: 20px;margin-bottom: 20px">
|
style="margin-left: 20px;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item,index) in weekList"
|
v-for="(item,index) in weekList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@ -443,7 +473,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-top: 20px">
|
<div style="margin-top: 20px">
|
||||||
<el-form-item label="时间段" prop="timeApplyStart">
|
<el-form-item label="时间段" prop="timeApplyStart" label-width="60px">
|
||||||
<el-time-picker
|
<el-time-picker
|
||||||
v-model="ruleForm1.dayStartTime"
|
v-model="ruleForm1.dayStartTime"
|
||||||
format="HH:mm"
|
format="HH:mm"
|
||||||
@ -499,7 +529,7 @@ export default {
|
|||||||
// 限时
|
// 限时
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 5,
|
pageSize: 1000,
|
||||||
activeType: 2
|
activeType: 2
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
@ -576,6 +606,7 @@ export default {
|
|||||||
ruleForm1: {
|
ruleForm1: {
|
||||||
activeType: 2,
|
activeType: 2,
|
||||||
timeType: 0,
|
timeType: 0,
|
||||||
|
consumeType:'',
|
||||||
paymentType: []
|
paymentType: []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -666,7 +697,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查询限时优惠列表信息
|
// 查询限时优惠列表信息
|
||||||
getTimeShareList() {
|
getTimeShareList() {
|
||||||
getRequestList({pageNo: 1, pageSize: 10000}).then(res => {
|
getRequestList({pageNo: 1, pageSize: 10000,activeType:2}).then(res => {
|
||||||
this.timeShareList = res.data.records
|
this.timeShareList = res.data.records
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -352,7 +352,7 @@ export default {
|
|||||||
this.$refs[formName].resetFields();
|
this.$refs[formName].resetFields();
|
||||||
this.ifWrite = true
|
this.ifWrite = true
|
||||||
// this.getInfo()
|
// this.getInfo()
|
||||||
this.$router.push({path: "/EventMarketing/center/index"})
|
this.$router.push({path: "/EventMarketing/center/index",query: {activeId:this.activeId}})
|
||||||
},
|
},
|
||||||
/** 查询新人有礼活动列表 */
|
/** 查询新人有礼活动列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
@ -327,7 +327,7 @@ export default {
|
|||||||
this.$refs[formName].resetFields();
|
this.$refs[formName].resetFields();
|
||||||
this.ifWrite = true
|
this.ifWrite = true
|
||||||
// this.getInfo()
|
// this.getInfo()
|
||||||
this.$router.push({path: "/EventMarketing/center/index"})
|
this.$router.push({path: "/EventMarketing/center/index",query: {activeId:this.activeId}})
|
||||||
},
|
},
|
||||||
/** 查询新人有礼活动列表 */
|
/** 查询新人有礼活动列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
@ -411,7 +411,7 @@ export default {
|
|||||||
this.$refs[formName].resetFields();
|
this.$refs[formName].resetFields();
|
||||||
this.ifWrite = true
|
this.ifWrite = true
|
||||||
// this.getInfo()
|
// this.getInfo()
|
||||||
this.$router.push({path: "/EventMarketing/center/index"})
|
this.$router.push({path: "/EventMarketing/center/index",query: {activeId:this.activeId}})
|
||||||
},
|
},
|
||||||
/** 查询新人有礼活动列表 */
|
/** 查询新人有礼活动列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
@ -95,13 +95,6 @@
|
|||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
<pagination
|
|
||||||
v-show="total>0"
|
|
||||||
:total="total"
|
|
||||||
:page.sync="queryParams.page"
|
|
||||||
:limit.sync="queryParams.pageSize"
|
|
||||||
@pagination="getList"
|
|
||||||
/>
|
|
||||||
<!-- -->
|
<!-- -->
|
||||||
<div class="d-b" style="margin-bottom: 15px;margin-top: 20px">
|
<div class="d-b" style="margin-bottom: 15px;margin-top: 20px">
|
||||||
<div class="d-s">
|
<div class="d-s">
|
||||||
@ -342,41 +335,72 @@
|
|||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="消费条件" required>
|
<el-form-item label="消费条件" required>
|
||||||
|
<div v-if="ruleForm1.consumeType!=1">
|
||||||
<el-col :span="7">
|
<el-col :span="7">
|
||||||
<el-select v-model="ruleForm1.consumeType" multiple style="width: 90%">
|
<el-select v-model="ruleForm1.consumeType" style="width: 90%">
|
||||||
<el-option label="实收金额" value="0"></el-option>
|
<el-option label="实收金额" value="0"></el-option>
|
||||||
<el-option label="加油升数" value="1"></el-option>
|
<el-option label="加油升数" value="1"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="7">
|
<el-col :span="7">
|
||||||
<el-form-item prop="moneyMin">
|
<el-form-item prop="moneyMin">
|
||||||
<el-input v-model="ruleForm1.moneyMin"></el-input>
|
<el-input v-model="ruleForm1.moneyMin">
|
||||||
|
<template slot="append">元</template>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="3">
|
<el-col :span="2">
|
||||||
<div style="margin-left: 10px">到</div>
|
<div style="margin-left: 10px">到</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="7">
|
<el-col :span="7">
|
||||||
<el-form-item prop="moneyMax">
|
<el-form-item prop="moneyMax">
|
||||||
<el-input v-model="ruleForm1.moneyMax"></el-input>
|
<el-input v-model="ruleForm1.moneyMax">
|
||||||
|
<template slot="append">元</template>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-form-item>
|
</div>
|
||||||
<el-form-item label="适用加油升数" required>
|
<div v-if="ruleForm1.consumeType==1">
|
||||||
<el-col :span="11">
|
<el-col :span="7">
|
||||||
<el-form-item prop="literMin">
|
<el-select v-model="ruleForm1.consumeType" style="width: 90%">
|
||||||
<el-input v-model="ruleForm1.literMin"></el-input>
|
<el-option label="实收金额" value="0"></el-option>
|
||||||
|
<el-option label="加油升数" value="1"></el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="7">
|
||||||
|
<el-form-item prop="moneyMin">
|
||||||
|
<el-input v-model="ruleForm1.literMin">
|
||||||
|
<template slot="append">L</template>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="2">
|
<el-col :span="2">
|
||||||
<div style="margin-left: 5px">到</div>
|
<div style="margin-left: 10px">到</div>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="11">
|
<el-col :span="7">
|
||||||
<el-form-item prop="literMax">
|
<el-form-item prop="moneyMax">
|
||||||
<el-input v-model="ruleForm1.literMax"></el-input>
|
<el-input v-model="ruleForm1.literMax">
|
||||||
|
<template slot="append">L</template>
|
||||||
|
</el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
</div>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="适用加油升数" required>-->
|
||||||
|
<!-- <el-col :span="11">-->
|
||||||
|
<!-- <el-form-item prop="literMin">-->
|
||||||
|
<!-- <el-input v-model="ruleForm1.literMin"></el-input>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- </el-col>-->
|
||||||
|
<!-- <el-col :span="2">-->
|
||||||
|
<!-- <div style="margin-left: 5px">到</div>-->
|
||||||
|
<!-- </el-col>-->
|
||||||
|
<!-- <el-col :span="11">-->
|
||||||
|
<!-- <el-form-item prop="literMax">-->
|
||||||
|
<!-- <el-input v-model="ruleForm1.literMax"></el-input>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
|
<!-- </el-col>-->
|
||||||
|
<!-- </el-form-item>-->
|
||||||
<el-form-item label="最大优惠金额" prop="disMax">
|
<el-form-item label="最大优惠金额" prop="disMax">
|
||||||
<el-input v-model="ruleForm1.disMax"></el-input>
|
<el-input v-model="ruleForm1.disMax"></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -502,7 +526,7 @@ export default {
|
|||||||
// 分时
|
// 分时
|
||||||
queryParams: {
|
queryParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 5,
|
pageSize: 10000,
|
||||||
activeType: 1
|
activeType: 1
|
||||||
},
|
},
|
||||||
total: 0,
|
total: 0,
|
||||||
@ -579,6 +603,7 @@ export default {
|
|||||||
ruleForm1: {
|
ruleForm1: {
|
||||||
activeType: 1,
|
activeType: 1,
|
||||||
timeType: 0,
|
timeType: 0,
|
||||||
|
consumeType:'',
|
||||||
paymentType: []
|
paymentType: []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -592,6 +617,7 @@ export default {
|
|||||||
resetRule() {
|
resetRule() {
|
||||||
this.ruleForm1 = {
|
this.ruleForm1 = {
|
||||||
activeType: 1,
|
activeType: 1,
|
||||||
|
consumeType:'',
|
||||||
timeType: 0,
|
timeType: 0,
|
||||||
paymentType: []
|
paymentType: []
|
||||||
}
|
}
|
||||||
@ -669,7 +695,7 @@ export default {
|
|||||||
},
|
},
|
||||||
// 查询分时优惠列表信息
|
// 查询分时优惠列表信息
|
||||||
getTimeShareList() {
|
getTimeShareList() {
|
||||||
getRequestList({pageNo: 1, pageSize: 10000}).then(res => {
|
getRequestList({pageNo: 1, pageSize: 10000,activeType:1}).then(res => {
|
||||||
this.timeShareList = res.data.records
|
this.timeShareList = res.data.records
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -410,7 +410,7 @@ export default {
|
|||||||
this.$refs[formName].resetFields();
|
this.$refs[formName].resetFields();
|
||||||
this.ifWrite = true
|
this.ifWrite = true
|
||||||
// this.getInfo()
|
// this.getInfo()
|
||||||
this.$router.push({path: "/EventMarketing/center/index"})
|
this.$router.push({path: "/EventMarketing/center/index",query: {activeId:this.activeId}})
|
||||||
},
|
},
|
||||||
/** 查询新人有礼活动列表 */
|
/** 查询新人有礼活动列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
@ -357,7 +357,7 @@ export default {
|
|||||||
this.$refs[formName].resetFields();
|
this.$refs[formName].resetFields();
|
||||||
this.ifWrite = true
|
this.ifWrite = true
|
||||||
// this.getInfo()
|
// this.getInfo()
|
||||||
this.$router.push({path: "/EventMarketing/center/index"})
|
this.$router.push({path: "/EventMarketing/center/index",query: {activeId:this.activeId}})
|
||||||
},
|
},
|
||||||
/** 查询新人有礼活动列表 */
|
/** 查询新人有礼活动列表 */
|
||||||
getList() {
|
getList() {
|
||||||
|
@ -106,12 +106,12 @@
|
|||||||
<el-form :model="form" label-width="120px" >
|
<el-form :model="form" label-width="120px" >
|
||||||
<!-- 通知名称 -->
|
<!-- 通知名称 -->
|
||||||
<el-form-item label="通知名称" :required="true">
|
<el-form-item label="通知名称" :required="true">
|
||||||
<el-input v-model="form.notificationName" placeholder="请输入通知名称" style="width: 474px"></el-input>
|
<el-input v-model="form.notificationName" placeholder="请输入通知名称" ></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
|
|
||||||
<!-- 通知类型 -->
|
<!-- 通知类型 -->
|
||||||
<el-form-item label="通知类型" :required="true">
|
<el-form-item label="通知类型" :required="true">
|
||||||
<el-select v-model="form.notificationType" placeholder="请选择通知类型" style="width: 474px">
|
<el-select v-model="form.notificationType" placeholder="请选择通知类型" style="width: 100%">
|
||||||
<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>
|
||||||
@ -122,7 +122,7 @@
|
|||||||
<!-- 通知模板 -->
|
<!-- 通知模板 -->
|
||||||
<el-form-item label="通知模板" :required="true">
|
<el-form-item label="通知模板" :required="true">
|
||||||
<el-input type="textarea" v-model="form.templateContent" :rows="3" placeholder="请输入通知内容"
|
<el-input type="textarea" v-model="form.templateContent" :rows="3" placeholder="请输入通知内容"
|
||||||
:maxlength="200" show-word-limit style="width: 474px"></el-input>
|
:maxlength="200" show-word-limit ></el-input>
|
||||||
<div>
|
<div>
|
||||||
<span @click="insertText('{油罐名称}')">{油罐名称}</span>
|
<span @click="insertText('{油罐名称}')">{油罐名称}</span>
|
||||||
<span @click="insertText('{商品名称}')">{商品名称}</span>
|
<span @click="insertText('{商品名称}')">{商品名称}</span>
|
||||||
@ -134,7 +134,7 @@
|
|||||||
|
|
||||||
<!-- 接收角色 -->
|
<!-- 接收角色 -->
|
||||||
<el-form-item label="接收角色" :required="true">
|
<el-form-item label="接收角色" :required="true">
|
||||||
<el-select v-model="form.recipientRoles" multiple placeholder="请选择角色" style="width: 474px">
|
<el-select v-model="form.recipientRoles" multiple placeholder="请选择角色" style="width: 100%">
|
||||||
<el-option v-for="item in dutyList1" :label="item.dutyName" :value="item.dutyId"></el-option>
|
<el-option v-for="item in dutyList1" :label="item.dutyName" :value="item.dutyId"></el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -148,20 +148,20 @@
|
|||||||
<el-form-item label="发送条件" style="margin-bottom: 10px" :required="true">
|
<el-form-item label="发送条件" style="margin-bottom: 10px" :required="true">
|
||||||
<div v-for="(condition, index) in form.conditions" :key="index" class="condition-group"
|
<div v-for="(condition, index) in form.conditions" :key="index" class="condition-group"
|
||||||
style="margin-bottom: 10px">
|
style="margin-bottom: 10px">
|
||||||
<el-select v-model="condition.field" placeholder="请选择条件" style="width: 150px;margin-right: 10px"
|
<el-select v-model="condition.field" placeholder="请选择条件" style="width: 35%;margin-right: 10px"
|
||||||
@change="changeField(index)">
|
@change="changeField(index)">
|
||||||
<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-select>
|
||||||
<el-select v-model="condition.operator" placeholder="请选择" style="width: 100px;margin-right: 10px">
|
<el-select v-model="condition.operator" placeholder="请选择" style="width: 15%;margin-right: 10px">
|
||||||
<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-select>
|
||||||
<el-input v-model="condition.value" placeholder="请输入" style="width: 200px;margin-right: 10px">
|
<el-input v-model="condition.value" placeholder="请输入" style="width: 35%;margin-right: 10px">
|
||||||
<template slot="append">{{ condition.field != '商品库存量' ? '元' : '件' }}</template>
|
<template slot="append">{{ condition.field != '商品库存量' ? '元' : '件' }}</template>
|
||||||
</el-input>
|
</el-input>
|
||||||
<el-button @click="removeCondition(index)" type="danger" icon="el-icon-delete" circle></el-button>
|
<el-button @click="removeCondition(index)" type="danger" icon="el-icon-delete" circle></el-button>
|
||||||
|
Loading…
Reference in New Issue
Block a user