Commit 23eb6d7b authored by youjie's avatar youjie

自动发放

parent 9c34f36d
......@@ -8086,5 +8086,11 @@ export const obj = {
caistpccjsfoot: '彩色(图片尺寸:128x107)',
},
//#endregion
//#region ending v1.0.2
v102:{
tianjzdfffa: '添加自动发放方案',
chufasj: '触发事件',
},
//#endregion
}
export default obj;
<template>
<div class="page_fnDm page_RecPayQuery">
<div class="query-box" style="margin-bottom: 0px;">
<ul class="clearfix">
<li class="hight_query">
<button class="hollowFixedBtn" @click="getDateList()">{{$t('pub.searchBtn')}}</button>
<button class="normalBtn" @click="addRecharge">{{$t('objFill.v102.tianjzdfffa')}}</button>
</li>
</ul>
</div>
<div class="_fnDm_content" v-loading='loading' style="padding-top: 20px;">
<el-table
:data="tableData"
style="width: 100%;"
border
v-loading="loading"
>
<el-table-column
prop="ID"
label="ID" width="100">
</el-table-column>
<el-table-column
prop="TriggerTypeStr"
label="触发事件">
</el-table-column>
<el-table-column
prop="DiscountCouponName"
label="优惠券">
</el-table-column>
<el-table-column
prop="GrantNum"
label="发放次数限制">
<template slot-scope="scope">
<div v-if="scope.row.GrantNum==0">
无限制
</div>
<div v-if="scope.row.GrantNum>0">
{{scope.row.GrantNum}}
</div>
</template>
</el-table-column>
<el-table-column
fixed="right"
label="操作" width="100"
>
<template slot-scope="scope">
<el-tooltip class="item" effect="dark" content="编辑" placement="top" >
<img src="../../assets/img/setup/edit.png" alt="" class="imgstyle" @click="Edit(scope.row)">
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top" >
<img src="../../assets/img/setup/del.png" alt="" class="imgstyle" @click="delete_b(scope.row)">
</el-tooltip>
</template>
</el-table-column>
</el-table>
</div>
<el-pagination style="text-align:right"
background
@current-change="handleCurrentChange"
:page-size="msg.pageSize"
layout="prev, pager, next"
:total="count">
</el-pagination>
<addAutorelease v-if="addAutoreleaseShow"
:infoData="infoData"
@Success="infoData=null,addAutoreleaseShow=false,getDateList()"
@close="infoData=null,addAutoreleaseShow=false"/>
</div>
</template>
<script>
import addAutorelease from "./components/addAutorelease";
export default {
name: "autorelease",
components: {addAutorelease},
data(){
return{
msg:{
pageIndex:1,
pageSize:20,
BranchId: -1,
TriggerType: -1
},
tableData:[],
count:0,
loading:false,
addAutoreleaseShow: false,
infoData: null,
options: [],
}
},
created(){
this.getDateList();
},
methods:{
getrigger(){
this.apipost("coupon_post_GetTriggerTypeEnumList",{}, res => {
if (res.data.resultCode == 1) {
this.options = res.data.data;
this.options.unshift({
Name: '不限',
Id: -1
})
} else {
this.Info(res.data.message);
}
})
},
getDateList(){
this.loading=true;
this.apipost("coupon_post_GetSelfMotionPageLis", this.msg, res => {
this.loading=false;
if(res.data.resultCode==1){
this.tableData = res.data.data.pageData;
this.count = res.data.data.count;
}else {
this.Info(res.data.message);
}
})
},
addRecharge(){
this.addAutoreleaseShow = true
},
Edit(row){
this.infoData = row
this.addAutoreleaseShow = true
},
delete_b(row){
let that=this;
that.Confirm("是否删除?", function () {
that.apipost(
"coupon_post_DelDiscountSelfMotion",
{Id:row.ID},
res => {
if (res.data.resultCode == 1) {
that.Success(res.data.message);
that.getDateList();
} else {
that.Error(res.data.message);
}
},
);
});
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.getDateList();
},
}
}
</script>
<style scoped>
/deep/.el-table th.el-table__cell {
background-color: #E6E6E6;
}
.el-form-item{
margin-bottom:5px;
}
</style>
\ No newline at end of file
This diff is collapsed.
......@@ -5699,6 +5699,14 @@ export default {
meta: {
title: '抽奖列表'
}
},
{
path: '/autorelease',
name: 'autorelease',
component: resolve => require(['@/components/activity/autorelease'], resolve),
meta: {
title: '自动发放'
}
}, {
path: '/awardList',
name: 'awardList',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment