Commit 35dd62f9 by caoyanzhi

update: 积分策略

parent 85e301b9
......@@ -15,8 +15,8 @@
</div>
<div class="fr btn-r-wrap"><el-button :disabled="tpnEditBool" type="primary" @click="handleAdd('point')">新增策略</el-button></div>
<el-table class="table-no-line-wrap" :data="achieveTableData" style="width: 100%">
<el-table-column prop="strategyName" label="策略名称" :show-overflow-tooltip="true" min-width="126"> </el-table-column>
<el-table-column prop="" label="线下渠道">
<el-table-column prop="strategyName" label="策略名称" :show-overflow-tooltip="true" min-width="140px"> </el-table-column>
<el-table-column prop="" label="线下渠道" min-width="80px">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" v-show="item.channelType == 3" :key="index">
<span v-if="item.openStatus == 0">关闭</span>
......@@ -27,7 +27,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="" label="达摩微商城">
<el-table-column prop="" label="达摩微商城" min-width="90px">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" v-show="item.channelType == 1" :key="index">
<span v-if="item.openStatus == 0">关闭</span>
......@@ -38,7 +38,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="" label="微盟渠道">
<el-table-column prop="" label="微盟渠道" min-width="80px">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" v-show="item.channelType == 9" :key="index">
<span v-if="item.openStatus == 0">关闭</span>
......@@ -49,7 +49,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="" label="天猫渠道">
<el-table-column prop="" label="天猫渠道" min-width="80px">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" v-show="item.channelType == 8" :key="index">
<span v-if="item.openStatus == 0">关闭</span>
......@@ -60,7 +60,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="" label="抖音渠道">
<el-table-column prop="" label="抖音渠道" min-width="80px">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" v-show="item.channelType == 11" :key="index">
<span v-if="item.openStatus == 0">关闭</span>
......@@ -71,7 +71,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="" label="其他渠道">
<el-table-column prop="" label="其他渠道" min-width="80px">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" v-show="item.channelType == 10" :key="index">
<span v-if="item.openStatus == 0">关闭</span>
......@@ -82,18 +82,18 @@
</span>
</template>
</el-table-column>
<el-table-column prop="" label="适用对象" min-width="70px">
<el-table-column prop="" label="适用对象" min-width="80px">
<template slot-scope="scope">
{{ scope.row.useCrowd == 1 ? '所有会员' : '自定义人群' }}
</template>
</el-table-column>
<el-table-column prop="getRule" label="获取规则">
<el-table-column prop="getRule" label="获取规则" min-width="80px">
<template slot-scope="scope">
<span v-if="scope.row.integralGetStatus == 0">无积分</span>
<span v-if="scope.row.integralGetStatus != 0"> {{ scope.row.integralGet.fee / 10 }} : {{ scope.row.integralGet.integral / 10 }} </span>
</template>
</el-table-column>
<el-table-column prop="" label="有效期" min-width="114">
<el-table-column prop="" label="有效期" width="150px">
<template slot-scope="scope">
<div v-if="scope.row.perpetualFlag === 0">
<p>
......@@ -108,12 +108,12 @@
</div>
</template>
</el-table-column>
<el-table-column prop="" label="状态">
<el-table-column prop="" label="状态" min-width="80px">
<template slot-scope="scope">
{{ scope.row.perpetualFlag | normalizeStatus(scope.row.endValidTime) }}
</template>
</el-table-column>
<el-table-column label="操作">
<el-table-column label="操作" min-width="100px">
<template slot-scope="scope">
<el-button @click="handleEditClick(scope.row, 'edit')" type="text">编辑</el-button>
<delete-tip @confirm="handleDelClick(scope.$index, scope.row, achieveTableData)" tips="确认删除吗?">
......@@ -141,7 +141,7 @@
<div class="fr btn-r-wrap"><el-button :disabled="tpnEditBool" type="primary" @click="handleAdd('integ')">新增策略</el-button></div>
<!-- table -->
<el-table :data="exchangeTableData" style="width: 100%">
<el-table-column prop="strategyName" label="策略名称" :show-overflow-tooltip="true" min-width="126"> </el-table-column>
<el-table-column prop="strategyName" label="策略名称" :show-overflow-tooltip="true" min-width="140px"> </el-table-column>
<!-- <el-table-column prop="" label="线下渠道">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" v-show="item.channelType == 3" :key="index">
......@@ -153,7 +153,7 @@
</span>
</template>
</el-table-column> -->
<el-table-column prop="" label="达摩微商城">
<el-table-column prop="" label="达摩微商城" min-width="90px">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" v-show="item.channelType == 1" :key="index">
<span v-if="item.openStatus == 0">关闭</span>
......@@ -164,7 +164,7 @@
</span>
</template>
</el-table-column>
<el-table-column prop="" label="微盟渠道">
<el-table-column prop="" label="微盟渠道" min-width="80px">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" v-show="item.channelType == 9" :key="index">
<span v-if="item.openStatus == 0">关闭</span>
......@@ -175,38 +175,38 @@
</span>
</template>
</el-table-column>
<el-table-column prop="useCrowd" label="适用对象">
<el-table-column prop="useCrowd" label="适用对象" min-width="80px">
<template slot-scope="scope">
{{ scope.row.useCrowd == 1 ? '所有会员' : '自定义人群' }}
</template>
</el-table-column>
<el-table-column prop="" label="适用商品">
<el-table-column prop="" label="适用商品" min-width="80px">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" :key="index">
<span v-if="item.channelType == 1">{{item.channelRelationProType == 1&&item.integralUseDiscountControl==1? "所有商品" : "自定义配置" }}</span>
</span>
</template>
</el-table-column>
<el-table-column prop="" label="折扣控制">
<el-table-column prop="" label="折扣控制" min-width="80px">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" :key="index">
<span v-if="item.channelType == 1">{{item.integralUseDiscountControl==1? "不限制" : (item.integralUseDiscountControlLower+' : '+item.integralUseDiscountControlUpper) }}</span>
</span>
</template>
</el-table-column>
<el-table-column prop="getRule" label="抵现规则">
<el-table-column prop="getRule" label="抵现规则" min-width="80px">
<template slot-scope="scope">
<span>
{{ scope.row.integralUseStatus == 0 ? '无积分' : scope.row.integralUse.integral + ':' + scope.row.integralUse.fee }}
</span>
</template>
</el-table-column>
<el-table-column prop="" label="比例限制">
<el-table-column prop="" label="比例限制" min-width="80px">
<template slot-scope="scope">
<span v-for="(item, index) in scope.row.channelList" :key="index"><span v-if="item.channelType == 1">{{item.useProportionalRestriction}}%</span></span>
</template>
</el-table-column>
<el-table-column prop="" label="有效期" min-width="110">
<el-table-column prop="" label="有效期" width="150px">
<template slot-scope="scope">
<div v-if="scope.row.perpetualFlag === 0">
<p>
......@@ -221,12 +221,12 @@
</div>
</template>
</el-table-column>
<el-table-column prop="" label="状态">
<el-table-column prop="" label="状态" min-width="80px">
<template slot-scope="scope">
{{ scope.row.perpetualFlag | normalizeStatus(scope.row.endValidTime) }}
</template>
</el-table-column>
<el-table-column label="操作">
<el-table-column label="操作" min-width="100px">
<template slot-scope="scope">
<el-button @click="handleEditClick2(scope.row)" type="text">编辑</el-button>
<delete-tip @confirm="handleDelClick(scope.$index, scope.row, exchangeTableData)" tips="确认删除吗?">
......
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