前端
This commit is contained in:
parent
cc3441506b
commit
7e1bdf8818
@ -1,11 +1,11 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询会员等级列表
|
||||
export function listUserGrade(query) {
|
||||
export function listUserGrade() {
|
||||
return request({
|
||||
url: '/business/userManager/userGrade/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -52,23 +52,44 @@
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="活动名称" align="center" prop="name" />
|
||||
<el-table-column label="适用油品" align="center" prop="adaptOil" >
|
||||
<template slot-scope="scope">
|
||||
<span v-for="item in scope.row.adaptOil">{{ item }}, </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="满足金额" align="center" prop="participationConditionMoney" >
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.participationConditionMoney }} 元</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="适用会员类型" align="center" prop="adaptUserType" >
|
||||
<el-table-column label="适用用户" align="center" prop="adaptUserType" >
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.adaptUserType == 0">全部用户</span>
|
||||
<span v-if="scope.row.adaptUserType == 1">全部会员</span>
|
||||
<span v-if="scope.row.adaptUserType == 2">等级会员</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="会员等级" align="center" prop="dieselUserLevel" >
|
||||
<template slot-scope="scope">
|
||||
<span v-for="(item,index) in scope.row.dieselUserLevel "> {{item}} </span>
|
||||
</template>
|
||||
<el-table-column label="赠券数量" align="center" prop="adaptUserType" >
|
||||
<template slot-scope="scope">
|
||||
<span >优惠券:{{scope.row.youhuiTotal || 0}}/兑换券:{{scope.row.duihuanTotal || 0}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="核销统计" align="center" prop="adaptUserType" >
|
||||
<template slot-scope="scope">
|
||||
<span >优惠券:{{scope.row.youhuiTotaled || 0}}/兑换券:{{scope.row.duihuanTotaled || 0}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="活动时间" align="center" prop="adaptUserType" >
|
||||
<template slot-scope="scope">
|
||||
<span >{{scope.row.activeStartTime || 0}}-{{scope.row.activeEndTime || 0}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="会员等级" align="center" prop="dieselUserLevel" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span v-for="(item,index) in scope.row.dieselUserLevel "> {{item}} </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<el-table-column label="活动状态" align="center" prop="status" >
|
||||
<template slot-scope="scope">
|
||||
|
||||
@ -77,6 +98,21 @@
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="活动时间" align="center" prop="adaptUserType" >
|
||||
<template slot-scope="scope">
|
||||
<span >{{scope.row.activeStartTime || 0}}-{{scope.row.activeEndTime || 0}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="活动更新时间" align="center" prop="updateTime" >
|
||||
<template slot-scope="scope">
|
||||
<span >{{scope.row.updateTime || '暂无更新'}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作员" align="center" prop="updateTime" >
|
||||
<template slot-scope="scope">
|
||||
<span >{{scope.row.createBy || ''}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
@ -113,6 +149,18 @@
|
||||
<el-form-item label="活动名称" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入活动名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="满足金额" prop="moneyType">
|
||||
|
||||
<el-select v-model="form.moneyType" placeholder="请选择满足金额" @change="change" >
|
||||
<el-option
|
||||
v-for="dict in moneyList"
|
||||
:key="dict.id.toString()"
|
||||
:label="dict.name"
|
||||
:value="dict.id">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="满足金额" prop="participationConditionMoney">
|
||||
<el-input-number :min="0.01" v-model="form.participationConditionMoney" placeholder="请输入满足金额" />
|
||||
</el-form-item>
|
||||
@ -523,6 +571,10 @@ export default {
|
||||
name: "ActiveConsumption",
|
||||
data() {
|
||||
return {
|
||||
moneyList:[
|
||||
{name:'订单金额',id:'1'},
|
||||
{name:'实付金额',id:'2'}
|
||||
],
|
||||
labelPosition:'left',
|
||||
userGradeList:[],
|
||||
pdidlist:[],//判断优惠券id
|
||||
@ -625,6 +677,9 @@ export default {
|
||||
adaptOil: [
|
||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
||||
],
|
||||
moneyType:[
|
||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
||||
],
|
||||
name: [
|
||||
{ required: true, message: '必填项不能为空', trigger: 'blur' },
|
||||
],
|
||||
|
@ -51,11 +51,32 @@
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="活动编号" align="center" prop="id" />-->
|
||||
<el-table-column label="活动名称" align="center" prop="name" />
|
||||
<el-table-column label="会员等级" align="center" prop="dieselUserLevel" >
|
||||
<el-table-column label="适用油品" align="center" prop="adaptOil" >
|
||||
<template slot-scope="scope">
|
||||
<span > {{ scope.row.adaptOilss}} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="适用用户" align="center" prop="adaptOil" >
|
||||
<template slot-scope="scope">
|
||||
<span v-for="(item,index) in scope.row.dieselUserLevel "> {{item}} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="满足金额(元)" align="center" prop="adaptOil" >
|
||||
<template slot-scope="scope">
|
||||
<span> {{scope.row.activeDiscountChildList[0].amount}} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="折扣金额(元)" align="center" prop="adaptOil" >
|
||||
<template slot-scope="scope">
|
||||
<span> {{scope.row.activeDiscountChildList[0].discount}} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<!-- <el-table-column label="会员等级" align="center" prop="dieselUserLevel" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span v-for="(item,index) in scope.row.dieselUserLevel "> {{item}} </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
|
||||
|
||||
<el-table-column label="活动状态 " align="center" prop="status" >
|
||||
@ -65,6 +86,22 @@
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="活动时间" align="center" prop="adaptUserType" >
|
||||
<template slot-scope="scope">
|
||||
<span >{{scope.row.activeStartTime || 0}}-{{scope.row.activeEndTime || 0}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="活动更新时间" align="center" prop="updateTime" >
|
||||
<template slot-scope="scope">
|
||||
<span >{{scope.row.updateTime || '暂无更新'}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作员" align="center" prop="updateTime" >
|
||||
<template slot-scope="scope">
|
||||
<span >{{scope.row.createBy || ''}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@ -100,23 +137,21 @@
|
||||
<el-input v-model="form.name" placeholder="请输入活动名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="满减规则" prop="activeDiscountChildList">
|
||||
<div v-for="(item,index) in form.activeDiscountChildList" :key="index" style="width: 100%; display: flex;align-items: center; margin-bottom: 10px ">
|
||||
<div style="width: 100%; display: flex;align-items: center; margin-bottom: 10px ">
|
||||
<div style="width: 25%;display: flex; align-items: center;margin-right: 20px " >
|
||||
<span>满</span> <el-input-number v-model="item.amount" :min="0" :max="99999" label="0"></el-input-number> <span>元</span>
|
||||
<span>满</span> <el-input-number v-model="activeDiscountChildList[0].amount" :min="0" :max="99999" label="0"></el-input-number> <span>元</span>
|
||||
</div>
|
||||
<div style="width: 25%;display: flex; align-items: center;">
|
||||
<span>打</span> <el-input-number v-model="item.discount" :min="0" :max="9.9" placeholder="1 ~ 9.9" label=""></el-input-number> <span>折</span>
|
||||
<span>打</span> <el-input-number v-model="activeDiscountChildList[0].discount" :min="0" :max="9.9" placeholder="1 ~ 9.9" label=""></el-input-number> <span>折</span>
|
||||
|
||||
</div>
|
||||
<div @click="deleteactiveDiscountChildList(index)">
|
||||
<el-button type="danger" icon="el-icon-delete" circle style="margin-left: 8px" ></el-button>
|
||||
</div>
|
||||
|
||||
<!-- <div @click="deleteactiveDiscountChildList(index)">-->
|
||||
<!-- <el-button type="danger" icon="el-icon-delete" circle style="margin-left: 8px" ></el-button>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<div >
|
||||
<el-button type="primary" icon="el-icon-plus" @click="addactiveDiscountChildList">新增</el-button>
|
||||
</div>
|
||||
|
||||
<!-- <div >-->
|
||||
<!-- <el-button type="primary" icon="el-icon-plus" @click="addactiveDiscountChildList">新增</el-button>-->
|
||||
<!-- </div>-->
|
||||
</el-form-item>
|
||||
|
||||
<el-row :gutter="20">
|
||||
@ -202,6 +237,10 @@ export default {
|
||||
labelPosition:'left',
|
||||
discount:'',
|
||||
amount:'',
|
||||
activeDiscountChildList:[
|
||||
{amount:'',discount:''},
|
||||
|
||||
],
|
||||
userGradeList:[],
|
||||
oillist:['92#','95#','98#','0#','-10#','LNG','CNG','京92#','京95#','京0#'],
|
||||
// 遮罩层
|
||||
@ -245,7 +284,11 @@ export default {
|
||||
isonline: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
form: {
|
||||
|
||||
|
||||
|
||||
},
|
||||
// 表单校验
|
||||
rules: {
|
||||
name: [
|
||||
@ -285,9 +328,16 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
console.log('dsbuaidhbiasuigbduaibduui')
|
||||
listUserGrade().then(res=>{
|
||||
console.log('1233333333333333333333' ,res)
|
||||
this.userGradeList = res.data.records
|
||||
|
||||
})
|
||||
//
|
||||
this.getList();
|
||||
this.getoilName();
|
||||
this.listUserGrade()
|
||||
|
||||
},
|
||||
methods: {
|
||||
/** 查询折扣营销列表 */
|
||||
@ -309,12 +359,7 @@ export default {
|
||||
|
||||
},
|
||||
listUserGrade(){
|
||||
listUserGrade().then(res=>{
|
||||
if(res.code == 200){
|
||||
this.userGradeList = res.data.records
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
// 新增
|
||||
addactiveDiscountChildList(){
|
||||
@ -445,6 +490,7 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.form.activeDiscountChildList = this.activeDiscountChildList
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
|
@ -51,11 +51,26 @@
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="活动编号" align="center" prop="id" />-->
|
||||
<el-table-column label="活动名称" align="center" prop="name" />
|
||||
<el-table-column label="会员等级" align="center" prop="dieselUserLevel" >
|
||||
<el-table-column label="适用油品" align="center" prop="adaptOil" >
|
||||
<template slot-scope="scope">
|
||||
<span > {{ scope.row.adaptOilss}} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="适用用户" align="center" prop="adaptOil" >
|
||||
<template slot-scope="scope">
|
||||
<span v-for="(item,index) in scope.row.dieselUserLevel "> {{item}} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="满足金额(元)" align="center" prop="adaptOil" >
|
||||
<template slot-scope="scope">
|
||||
<span> {{scope.row.activeDiscountChildList[0].amount}} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="减去金额(元)" align="center" prop="adaptOil" >
|
||||
<template slot-scope="scope">
|
||||
<span> {{scope.row.activeDiscountChildList[0].deductionAmount}} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
|
||||
|
||||
<el-table-column label="活动状态 " align="center" prop="status" >
|
||||
@ -64,6 +79,21 @@
|
||||
<span style="cursor: pointer;" @click="jinyong(scope.row)" v-if="scope.row.status == 1"> <el-tag type="danger">禁用</el-tag> </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="活动时间" align="center" prop="adaptUserType" >
|
||||
<template slot-scope="scope">
|
||||
<span >{{scope.row.activeStartTime || 0}}-{{scope.row.activeEndTime || 0}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="活动更新时间" align="center" prop="updateTime" >
|
||||
<template slot-scope="scope">
|
||||
<span >{{scope.row.updateTime || '暂无更新'}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作员" align="center" prop="updateTime" >
|
||||
<template slot-scope="scope">
|
||||
<span >{{scope.row.createBy || ''}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@ -80,13 +110,7 @@
|
||||
@click="handleDeletexia(scope.row)"
|
||||
v-if="scope.row.isonline == 0"
|
||||
>下线</el-button>
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- @click="handleDelete(scope.row)"-->
|
||||
<!-- -->
|
||||
<!-- >下线</el-button>-->
|
||||
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -106,24 +130,23 @@
|
||||
<el-form-item label="活动名称" prop="name">
|
||||
<el-input v-model="form.name" placeholder="请输入活动名称" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="满减规则" prop="activeDiscountChildList">
|
||||
<div v-for="(item,index) in form.activeDiscountChildList" :key="index" style="width: 100%; display: flex;align-items: center; margin-bottom: 10px ">
|
||||
<div style="width: 100%; display: flex;align-items: center; margin-bottom: 10px ">
|
||||
<div style="width: 25%;display: flex; align-items: center;margin-right: 20px " >
|
||||
<span>满</span> <el-input-number v-model="item.amount" :min="0" :max="9999" label="0"></el-input-number> <span>元</span>
|
||||
<span>满</span> <el-input-number v-model="activeDiscountChildList[0].amount" :min="0" :max="99999" label="0"></el-input-number> <span>元</span>
|
||||
</div>
|
||||
<div style="width: 25%;display: flex; align-items: center;">
|
||||
<span>减</span> <el-input-number v-model="item.deductionAmount" :min="0" :max="9999" label="0"></el-input-number> <span>元</span>
|
||||
<span>减</span> <el-input-number v-model="activeDiscountChildList[0].deductionAmount" :min="0" :max="9.9" placeholder="1 ~ 9.9" label=""></el-input-number> <span>元</span>
|
||||
|
||||
</div>
|
||||
<div @click="deleteactiveDiscountChildList(index)">
|
||||
<el-button type="danger" icon="el-icon-delete" circle style="margin-left: 8px" ></el-button>
|
||||
</div>
|
||||
|
||||
<!-- <div @click="deleteactiveDiscountChildList(index)">-->
|
||||
<!-- <el-button type="danger" icon="el-icon-delete" circle style="margin-left: 8px" ></el-button>-->
|
||||
<!-- </div>-->
|
||||
</div>
|
||||
<div>
|
||||
<el-button type="primary" icon="el-icon-plus" @click="addactiveDiscountChildList">新增</el-button>
|
||||
</div>
|
||||
|
||||
<!-- <div >-->
|
||||
<!-- <el-button type="primary" icon="el-icon-plus" @click="addactiveDiscountChildList">新增</el-button>-->
|
||||
<!-- </div>-->
|
||||
</el-form-item>
|
||||
|
||||
<el-row :gutter="20">
|
||||
@ -204,6 +227,10 @@ export default {
|
||||
name: "ActiveFullminus",
|
||||
data() {
|
||||
return {
|
||||
activeDiscountChildList:[
|
||||
{amount:'',deductionAmount:''},
|
||||
|
||||
],
|
||||
labelPosition:'left',
|
||||
oillist:['92#','95#','98#','0#','-10#','LNG','CNG','京92#','京95#','京0#'],
|
||||
userGradeList: [],
|
||||
@ -444,6 +471,7 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.form.activeDiscountChildList = this.activeDiscountChildList
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
|
@ -180,270 +180,83 @@
|
||||
</div>
|
||||
|
||||
</el-card>
|
||||
<el-card>
|
||||
<!-- <el-table v-loading="loading" :data="activeFullminusList" @selection-change="handleSelectionChange">-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- type="index"-->
|
||||
<!-- align="center"-->
|
||||
<!-- label="序号"-->
|
||||
<!-- >-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <!– <el-table-column label="活动编号" align="center" prop="id" />–>-->
|
||||
<!-- <el-table-column label="活动名称" align="center" prop="name" />-->
|
||||
<!-- <el-table-column label="适用油品" align="center" prop="adaptOil" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span > {{ scope.row.adaptOilss}} </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="适用用户" align="center" prop="adaptOil" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span v-for="(item,index) in scope.row.dieselUserLevel "> {{item}} </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="满足金额(元)" align="center" prop="adaptOil" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span> {{scope.row.activeDiscountChildList[0].amount}} </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="减去金额(元)" align="center" prop="adaptOil" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span> {{scope.row.activeDiscountChildList[0].deductionAmount}} </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
|
||||
<!-- <el-card style="margin-bottom: 20px">-->
|
||||
<!-- <el-row :gutter="10" class="mb8">-->
|
||||
<!-- <el-col :span="1.5">-->
|
||||
<!-- <el-button-->
|
||||
<!-- type="primary"-->
|
||||
<!-- plain-->
|
||||
<!-- icon="el-icon-plus"-->
|
||||
<!-- size="mini"-->
|
||||
<!-- @click="handleAdd"-->
|
||||
|
||||
<!-- >新增</el-button>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- </el-row>-->
|
||||
<!-- <el-table-column label="活动状态 " align="center" prop="status" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span style="cursor: pointer;" @click="qiyong(scope.row)" v-if="scope.row.status == 0"> <el-tag>启用</el-tag > </span>-->
|
||||
<!-- <span style="cursor: pointer;" @click="jinyong(scope.row)" v-if="scope.row.status == 1"> <el-tag type="danger">禁用</el-tag> </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="活动时间" align="center" prop="adaptUserType" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span >{{scope.row.activeStartTime || 0}}-{{scope.row.activeEndTime || 0}}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="活动更新时间" align="center" prop="updateTime" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span >{{scope.row.updateTime || '暂无更新'}}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="操作员" align="center" prop="updateTime" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span >{{scope.row.createBy || ''}}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- @click="handleUpdate(scope.row)"-->
|
||||
|
||||
<!-- <el-table v-loading="loading" :data="activeNewlywedsList" :label-position="labelPosition" @selection-change="handleSelectionChange">-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- type="index"-->
|
||||
<!-- align="center"-->
|
||||
<!-- label="排序"-->
|
||||
<!-- >-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="活动编号" align="center" prop="id" />-->
|
||||
<!-- <el-table-column label="活动名称" align="center" prop="name" />-->
|
||||
<!-- <el-table-column label="活动开始时间" align="center" prop="activeStartTime" width="180">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{scope.row.activeStartTime}}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="活动结束时间" align="center" prop="activeEndTime" width="180">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{scope.row.activeEndTime}}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="有礼奖励" align="center" prop="courtesyReward" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <div v-for="(item,index) in scope.row.courtesyReward ">-->
|
||||
<!-- <div v-if="item == 0" >优惠券</div>-->
|
||||
<!-- <div v-if="item == 1">兑换券</div>-->
|
||||
<!-- </div>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="活动码" align="center" prop="activeCode" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <div style="cursor: pointer" @click="qrcodelook(scope.row.activeCode)">-->
|
||||
<!-- <i class="el-icon-picture" ></i>-->
|
||||
<!-- </div>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="活动状态" align="center" prop="status" >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span v-if="scope.row.status == 0"> <el-tag>进行中</el-tag> </span>-->
|
||||
<!-- <span v-if="scope.row.status == 1"> <el-tag type="success">待生效</el-tag> </span>-->
|
||||
<!-- <span v-if="scope.row.status == 2"> <el-tag type="danger">已结束</el-tag> </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column label="操作" align="center" class-name="small-padding fixed-width">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-edit"-->
|
||||
<!-- @click="handleUpdate(scope.row)"-->
|
||||
<!-- >修改</el-button>-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- @click="handleDeletexia(scope.row)"-->
|
||||
<!-- v-if="scope.row.isonline == 0"-->
|
||||
<!-- >下线</el-button>-->
|
||||
<!-- >修改</el-button>-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- icon="el-icon-delete"-->
|
||||
<!-- @click="handleDeletexia(scope.row)"-->
|
||||
<!-- v-if="scope.row.isonline == 0"-->
|
||||
<!-- >下线</el-button>-->
|
||||
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- </el-table>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- </el-table>-->
|
||||
|
||||
<!-- <pagination-->
|
||||
<!-- v-show="total>0"-->
|
||||
<!-- :total="total"-->
|
||||
<!-- :page.sync="queryParams.pageNum"-->
|
||||
<!-- :limit.sync="queryParams.pageSize"-->
|
||||
<!-- @pagination="getList"-->
|
||||
<!-- />-->
|
||||
<!-- </el-card>-->
|
||||
</el-card>
|
||||
|
||||
<!-- 添加或修改新人有礼活动对话框 -->
|
||||
<!-- <el-dialog :title="title" :visible.sync="open" width="45%" append-to-body>-->
|
||||
<!-- <el-form ref="form" :model="form" :rules="rules" :label-position="labelPosition" label-width="110px">-->
|
||||
<!-- <el-form-item label="活动名称" prop="name">-->
|
||||
<!-- <el-input v-model="form.name" placeholder="请输入活动名称" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-row :gutter="20">-->
|
||||
<!-- <el-col :span="12">-->
|
||||
<!-- <el-form-item label="活动开始时间" prop="activeStartTime">-->
|
||||
<!-- <el-date-picker clearable-->
|
||||
<!-- v-model="form.activeStartTime"-->
|
||||
<!-- type="datetime"-->
|
||||
<!-- value-format="yyyy-MM-dd HH:mm:ss"-->
|
||||
<!-- placeholder="请选择活动开始时间">-->
|
||||
<!-- </el-date-picker>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- <el-col :span="12">-->
|
||||
<!-- <el-form-item label="活动结束时间" prop="activeEndTime">-->
|
||||
<!-- <el-date-picker clearable-->
|
||||
<!-- v-model="form.activeEndTime"-->
|
||||
<!-- type="datetime"-->
|
||||
<!-- value-format="yyyy-MM-dd HH:mm:ss"-->
|
||||
<!-- placeholder="请选择活动结束时间">-->
|
||||
<!-- </el-date-picker>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-col>-->
|
||||
<!-- </el-row>-->
|
||||
<!-- <el-form-item label="有礼奖励" prop="courtesyReward" >-->
|
||||
<!-- <el-checkbox-group v-model="form.courtesyReward">-->
|
||||
|
||||
<!-- <el-checkbox label="1" >赠送优惠券</el-checkbox>-->
|
||||
<!-- <el-checkbox label="2" >赠送兑换券</el-checkbox>-->
|
||||
|
||||
<!-- </el-checkbox-group>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <!– 选择优惠券–>-->
|
||||
<!-- <div class="xh-box" v-if="form.courtesyReward && form.courtesyReward.indexOf('1')>-1 " >-->
|
||||
<!-- <div class="box-bt"> <div >赠送卡券</div> <el-button type="primary" icon="el-icon-plus" @click="getlistFavorable()" >新增</el-button> </div>-->
|
||||
<!-- <div style="margin: 10px 0px">-->
|
||||
<!-- <el-table-->
|
||||
<!-- :data="form.tableDatas"-->
|
||||
<!-- border-->
|
||||
<!-- style="width: 100%">-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="giftCardName"-->
|
||||
<!-- label="卡券名称"-->
|
||||
<!-- width="0">-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="giftCardType"-->
|
||||
<!-- label="券类型"-->
|
||||
<!-- width="80">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span v-if="scope.row.giftCardType == 0" >油品券</span>-->
|
||||
<!-- <span v-if="scope.row.giftCardType == 1" >商品券</span>-->
|
||||
<!-- <span v-if="scope.row.giftCardType == 2" >通用券</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="date"-->
|
||||
<!-- label="券详情"-->
|
||||
<!-- width="80">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{scope.row.giftCardDetail}}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="date"-->
|
||||
<!-- label="有效期(天)"-->
|
||||
<!-- width="240">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span v-if="scope.row.timeType == 0" > <el-input-number v-model="scope.row.validityZero" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>-->
|
||||
<!-- <span v-if="scope.row.timeType == 1" > <el-input-number v-model="scope.row.validityOne" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>-->
|
||||
<!-- <span v-if="scope.row.timeType == 2" > <el-input-number v-model="scope.row.validityTwo" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="date"-->
|
||||
<!-- label="数量"-->
|
||||
<!-- width="240">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-input-number v-model="scope.row.giftCardTotal" controls-position="right" :min="1" :max="9999"></el-input-number>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="address"-->
|
||||
<!-- label="操作">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- @click="deletedata(scope.row)"-->
|
||||
<!-- >删除</el-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- </el-table>-->
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <!– 选择兑换券–>-->
|
||||
<!-- <div class="xh-box" v-if="form.courtesyReward && form.courtesyReward.indexOf('2')>-1 " >-->
|
||||
<!-- <div class="box-bt"> <div >选择兑换券</div> <el-button type="primary" icon="el-icon-plus" @click="getlistExchange()" >新增</el-button> </div>-->
|
||||
<!-- <div style="margin: 10px 0px">-->
|
||||
|
||||
<!-- <el-table-->
|
||||
<!-- :data="tableDatas"-->
|
||||
<!-- border-->
|
||||
<!-- style="width: 100%">-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="giftCardName"-->
|
||||
<!-- label="卡券名称"-->
|
||||
<!-- width="80">-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="date"-->
|
||||
<!-- label="券类型"-->
|
||||
<!-- width="80">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span v-if="scope.row.giftCardType == 0" >油品券</span>-->
|
||||
<!-- <span v-if="scope.row.giftCardType == 1" >商品券</span>-->
|
||||
<!-- <span v-if="scope.row.giftCardType == 2" >通用券</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="date"-->
|
||||
<!-- label="券详情"-->
|
||||
<!-- width="80">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span>{{scope.row.giftCardDetail}}</span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="date"-->
|
||||
<!-- label="有效期(天)"-->
|
||||
<!-- width="240">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <span > <el-input-number v-model="scope.row.giftCardTime" controls-position="right" :min="1" :max="9999"></el-input-number>天 </span>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="date"-->
|
||||
<!-- label="数量"-->
|
||||
<!-- width="240">-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-input-number v-model="scope.row.giftCardTotal" controls-position="right" :min="1" :max="9999"></el-input-number>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- <el-table-column-->
|
||||
<!-- prop="address"-->
|
||||
<!-- label="操作"-->
|
||||
<!-- >-->
|
||||
<!-- <template slot-scope="scope">-->
|
||||
<!-- <el-button-->
|
||||
<!-- size="mini"-->
|
||||
<!-- type="text"-->
|
||||
<!-- @click="deletedhdata(scope.row)"-->
|
||||
<!-- >删除</el-button>-->
|
||||
<!-- </template>-->
|
||||
<!-- </el-table-column>-->
|
||||
<!-- </el-table>-->
|
||||
|
||||
<!-- </div>-->
|
||||
<!-- </div>-->
|
||||
<!-- <el-form-item label="赠送积分" prop="points">-->
|
||||
<!-- <el-input-number v-model="form.points" controls-position="right" :min="1" :max="99999"></el-input-number>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="赠送成长值" prop="growthValue">-->
|
||||
<!-- <el-input-number v-model="form.growthValue" controls-position="right" :min="1" :max="9999999"></el-input-number>-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- <el-form-item label="自定义规则" prop="remark">-->
|
||||
<!-- <el-input v-model="form.remark" placeholder="请输入自定义规则" />-->
|
||||
<!-- </el-form-item>-->
|
||||
<!-- </el-form>-->
|
||||
|
||||
<!-- <div slot="footer" class="dialog-footer">-->
|
||||
<!-- <el-button type="primary" @click="">确 定</el-button>-->
|
||||
<!-- <el-button @click="cancel">取 消</el-button>-->
|
||||
<!-- </div>-->
|
||||
<!-- </el-dialog>-->
|
||||
|
||||
|
||||
<!-- 优惠券列表-->
|
||||
@ -695,7 +508,7 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.handleUpdate();
|
||||
// this.handleUpdate();
|
||||
},
|
||||
methods: {
|
||||
/** 查询新人有礼活动列表 */
|
||||
|
Loading…
Reference in New Issue
Block a user