Commit 99ed5a9e by caoyanzhi

update: 会员通调整

parent 38b068d1
......@@ -2,16 +2,8 @@
<div class="wechat-point-details">
<div class="search-top mBottom20">
<div class="left-search-wrap">
<searchinput
stylelink="width: 280px"
prefix-icon="el-icon-search"
placeholder="请输入会员姓名/昵称/手机"
v-model="searchStr"
@handleSearch="handleSearch"
></searchinput>
<el-select
v-model="intervalInOut"
style="margin:0 6px;"
placeholder="所有日志"
@change="handleSearch"
>
......@@ -48,6 +40,10 @@
:value="item.dictCode"
></el-option>
</el-select>
<el-select v-model="sourceType" placeholder="所有来源渠道" @change="handleSearch">
<el-option label="所有来源渠道" :value=-1></el-option>
<el-option v-for="item in sourceTypeList" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</div>
<el-button
v-if="getCodeAuth('memberAdjustIntegral')"
......@@ -65,6 +61,7 @@
<el-table-column
prop="callBeginTime"
label="时间"
min-width="155px"
>
<template slot-scope="scope">
{{ scope.row.createTime | formatTime }}
......@@ -73,6 +70,7 @@
<el-table-column
prop="intervalInout"
label="日志类型"
min-width="80px"
>
<template slot-scope="scope">
<span v-if="scope.row.intervalInout == 1">积分获取</span>
......@@ -82,6 +80,7 @@
<el-table-column
prop="intervalHistory"
label="日志详情"
min-width="80px"
>
<template slot-scope="scope">
<span :style="{color: scope.row.intervalHistory > 0 ? 'green' : 'red'}">{{ scope.row.intervalHistory }}</span>
......@@ -90,22 +89,28 @@
<el-table-column
prop="memberIntegralName"
label="事由"
min-width="80px"
></el-table-column>
<el-table-column prop="sourceType" label="来源渠道" min-width="80px" :formatter="formatSourceType"></el-table-column>
<el-table-column
prop="remark"
label="备注"
min-width="160px"
></el-table-column>
<el-table-column
prop="mainStoreName"
label="服务门店"
min-width="160px"
></el-table-column>
<el-table-column
prop="openStoreName"
label="开卡门店"
min-width="160px"
></el-table-column>
<el-table-column
prop="intervalEffect"
label="积分成本主体"
min-width="110px"
>
<template slot-scope="scope">
<span v-if="scope.row.intervalInout == 0">--</span>
......@@ -220,34 +225,23 @@ export default {
loseVisible: false,
loseData: [],
memberId: this.$route.query.memberId || "",
navpath: [
{
name: "首页",
path: "/"
},
{
name: "客户列表",
path: "/allCustomers"
},
{
name: "客户详情",
path:"/customerDetail?memberId=" + this.$route.query.memberId || ""
},
{
name: "会员积分明细",
path: ""
}
],
page: {
currentPage: 1,
pageSize: 20,
totalCount: 0
},
sourceTypeList: [
{ label: 'GIC计算', value: 1 },
{ label: 'ERP同步', value: 2 },
{ label: 'API同步', value: 3 },
{ label: '批处理导入', value: 4 },
{ label: '天猫会员通', value: 5 }
],
memberData: [],
intervalInOut: -1,
dictCode: -1,
searchStr: "",
searchType: 1,
sourceType: -1,
beginTime: "",
endTime: "",
storeName: "",
......@@ -260,6 +254,10 @@ export default {
},
mixins: [authMethods],
methods: {
formatSourceType(row, col, val) {
const type = this.sourceTypeList.find(el => el.value == val) || {};
return type.label || '--';
},
linkRoute(route) {
this.$router.push({ path: route, query: { memberId: this.memberId } });
},
......@@ -303,8 +301,8 @@ export default {
currentPage: this.page.currentPage,
intervalInOut: this.intervalInOut,
dictCode: this.dictCode,
searchStr: this.searchStr,
searchType: this.searchType,
sourceType: this.sourceType,
beginTime: this.beginTime,
endTime: this.endTime,
storeName: this.storeName
......
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