Commit 6aca036e by cwq0219
2 parents 9e02e7ad 3dbf2410
...@@ -182,6 +182,24 @@ const getCard = params => { ...@@ -182,6 +182,24 @@ const getCard = params => {
sign: true sign: true
}) })
} }
const getCoupon = params => {
params.method = 'scrm.api.boutiquecoupon.coupon.page'
return http({
url: '/rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
const getPackage = params => {
params.method = 'scrm.api.equity.package.info.list.with.page'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
customerList, customerList,
customerGroupList, customerGroupList,
...@@ -200,5 +218,7 @@ export default { ...@@ -200,5 +218,7 @@ export default {
customerDetailList, customerDetailList,
groupDetailList, groupDetailList,
getMerchant, getMerchant,
getCard getCard,
getCoupon,
getPackage
} }
...@@ -181,7 +181,9 @@ export default { ...@@ -181,7 +181,9 @@ export default {
}, },
timeOptions: { timeOptions: {
selectableRange: '00:00:00 - 23:59:59' selectableRange: '00:00:00 - 23:59:59'
} },
footerLeft: 0,
footerWidth: 0
} }
}, },
mounted() { mounted() {
......
...@@ -5,8 +5,10 @@ ...@@ -5,8 +5,10 @@
<div class="model-panel-tab"> <div class="model-panel-tab">
<label>活动类型:</label> <label>活动类型:</label>
<el-tabs v-model="activeName" @tab-click="handleClick" type="card"> <el-tabs v-model="activeName" @tab-click="handleClick" type="card">
<el-tab-pane label="券营销" name="1"></el-tab-pane> <el-tab-pane label="精品券" name="1"></el-tab-pane>
<el-tab-pane label="权益卡" name="2"></el-tab-pane> <el-tab-pane label="商城券" name="2"></el-tab-pane>
<el-tab-pane label="权益卡试用" name="3"></el-tab-pane>
<el-tab-pane label="权益套餐" name="4"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
<div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading"> <div class="model-item-panel" v-if="modelList.length > 0" v-loading="loading">
...@@ -17,36 +19,71 @@ ...@@ -17,36 +19,71 @@
:key="index" :key="index"
@click="handleSelectItem(item)" @click="handleSelectItem(item)"
> >
<div class="model-item-title" v-show="activeName == 2">{{ item.cardClassName }}</div>
<div class="model-item-title" v-show="activeName == 1">{{ item.couponName }}</div>
<div class="model-item-content" v-show="activeName == 1">数量:{{ item.residueAmount }}</div>
<div class="model-item-content" v-show="activeName == 2">价格:{{ item.price }}</div>
<div <div
class="model-item-content" class="model-item-title"
v-show="activeName == 2 && item.effectiveType == 2" :title="item.cardClassName"
>有效期:{{ item.effectiveNum }}天</div> v-show="activeName == 3"
>{{ item.cardClassName }}</div>
<div
class="model-item-title"
:title="item.couponName"
v-show="activeName == 2"
>{{ item.couponName }}</div>
<div
class="model-item-title"
:title="item.cardClassName"
v-show="activeName == 1"
>{{ item.couponName }}</div>
<div
class="model-item-title"
:title="item.packageName"
v-show="activeName == 4"
>{{ item.packageName }}</div>
<div class="model-item-content" v-show="activeName == 1 || activeName == 4"></div>
<div class="model-item-content" v-show="activeName == 2">剩余数量:{{ item.residueAmount }}</div>
<div class="model-item-content" v-show="activeName == 1">剩余数量:{{ item.remainAmount }}</div>
<div class="model-item-content" v-show="activeName == 3">价格:{{ item.price }}元</div>
<div class="model-item-content" v-show="activeName == 4">价格:{{ item.packagePrice }}元</div>
<div <div
class="model-item-content" class="model-item-content"
v-show="activeName == 2 && item.effectiveType == 1" v-show="activeName == 2 && item.effectiveType == 1"
>有效期:{{ item.effectiveDays }}天</div>
<div
class="model-item-content"
v-show="activeName == 2 && item.effectiveType == 3"
>有效期:无限制</div> >有效期:无限制</div>
<div <div
class="model-item-content" class="model-item-content"
v-show="activeName == 1 && item.effectiveType == 2" v-show="activeName == 2 && item.effectiveType == 2"
>有效期:{{ item.effectiveStartTime }}~{{ item.effectiveEndTime }}</div> >有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div <div
class="model-item-content" class="model-item-content"
v-show="activeName == 1 && item.effectiveType == 1" v-show="activeName == 3 && item.effectiveType == 3"
>有效期:{{ item.effectiveDays }}天</div> >有效期:{{ item.effectiveStartTime ? item.effectiveStartTime.split(' ')[0] : '' }}~{{ item.effectiveEndTime ? item.effectiveEndTime.split(' ')[0] : '' }}</div>
<div <div
class="model-item-content" class="model-item-content"
v-show="activeName == 1 && item.effectiveType == 3" v-show="activeName == 3 && item.effectiveType == 1"
>有效期:无限制</div> >有效期:无限制</div>
<div <div
class="model-item-content" class="model-item-content"
v-show="activeName == 1" v-show="activeName == 3 && item.effectiveType == 2"
>类型:{{ item.discountType == 1 ? '满减劵' : item.discountType == 2 ? '折扣券' : item.discountType == 3 ? '代金券' : item.discountType == 4 ? '实物券' : item.discountType == 5 ? '购车代金券' : item.discountType == 6 ? '商品折扣券' : item.discountType == 7 ? '会员服务' : '' }}</div> >有效期:{{ item.effectiveNum}}天</div>
<div class="model-item-content" v-show="activeName == 2">类型:权益卡</div> <div class="model-item-content" v-show="activeName == 2">
类型:
<span>{{ item.discountType == 2 ? '折扣券' : item.discountType == 3 ? '代金券' : item.discountType == 4 ? '兑换券': ''}}</span>
</div>
<div class="model-item-content" v-show="activeName == 1">
类型:
<span>精品券</span>
</div>
<div class="model-item-content" v-show="activeName == 3">
类型:
<span>权益卡</span>
</div>
<div class="model-item-content" v-show="activeName == 4">
类型:
<span>权益套餐</span>
</div>
</div> </div>
</div> </div>
<div class="model-item-empty" v-else v-loading="loading"> <div class="model-item-empty" v-else v-loading="loading">
...@@ -57,7 +94,7 @@ ...@@ -57,7 +94,7 @@
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="pageNum" :current-page="pageNum"
:page-sizes="[10, 20, 30, 40]" :page-sizes="[12, 24, 36, 48]"
:page-size="pageSize" :page-size="pageSize"
:total="tableTotal" :total="tableTotal"
layout="total, sizes, prev, pager, next, jumper" layout="total, sizes, prev, pager, next, jumper"
...@@ -81,7 +118,7 @@ export default { ...@@ -81,7 +118,7 @@ export default {
activeName: '1', activeName: '1',
modelList: [], modelList: [],
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 12,
tableTotal: 0, tableTotal: 0,
selectItem: {} selectItem: {}
} }
...@@ -99,7 +136,7 @@ export default { ...@@ -99,7 +136,7 @@ export default {
return return
} }
this.dialogVisible = false this.dialogVisible = false
this.$emit('selectActivity', { marketingId: this.selectItem.id, marketingType: this.activeName == 1 ? 2 : 3, marketingName: this.activeName == 2 ? this.selectItem.cardClassName : this.selectItem.couponName }) this.$emit('selectActivity', { marketingId: this.selectItem.id, marketingType: this.activeName, marketingName: this.activeName == 3 ? this.selectItem.cardClassName : this.activeName == 4 ? this.selectItem.packageName : this.selectItem.couponName })
}, },
handleSizeChange(val) { handleSizeChange(val) {
this.pageSize = val this.pageSize = val
...@@ -115,16 +152,29 @@ export default { ...@@ -115,16 +152,29 @@ export default {
let market = '' let market = ''
switch (this.activeName) { switch (this.activeName) {
case '1': case '1':
market = 'getMerchant' market = 'getCoupon'
break break
case '2': case '2':
market = 'getMerchant'
break
case '3':
market = 'getCard' market = 'getCard'
break break
case '4':
market = 'getPackage'
break
} }
let params = { let params = {
pageSize: this.pageSize, pageSize: this.pageSize,
pageNum: this.pageNum pageNum: this.pageNum
} }
if (this.activeName == 3) {
params.tryAble = 1
params.merchantId = this.$globalState.session.merchantId
}
if (this.activeName == 2) {
params.discountTypes = [2, 3, 4]
}
this.$apis.customerTransform[market](params).then(res => { this.$apis.customerTransform[market](params).then(res => {
this.modelList = res.list ? res.list : res.data this.modelList = res.list ? res.list : res.data
this.tableTotal = res.total this.tableTotal = res.total
...@@ -178,6 +228,7 @@ export default { ...@@ -178,6 +228,7 @@ export default {
.el-tabs__item.is-active { .el-tabs__item.is-active {
background-color: #fff; background-color: #fff;
border-radius: 4px; border-radius: 4px;
font-weight: 600;
} }
} }
} }
...@@ -201,8 +252,10 @@ export default { ...@@ -201,8 +252,10 @@ export default {
display: grid; display: grid;
grid-template-columns: repeat(4, 25%); grid-template-columns: repeat(4, 25%);
grid-row-gap: 10px; grid-row-gap: 10px;
height: 40vh; height: 38vh;
padding: 10px;
overflow: auto; overflow: auto;
text-align: center;
.model-item { .model-item {
position: relative; position: relative;
height: 128px; height: 128px;
...@@ -245,6 +298,9 @@ export default { ...@@ -245,6 +298,9 @@ export default {
text-overflow: ellipsis; text-overflow: ellipsis;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
span {
color: #5850ff;
}
} }
} }
} }
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<el-form-item label="请选择成员"> <el-form-item label="请选择成员">
<div class="sale-select"> <div class="sale-select">
<div class="el-input-tag input-tag-wrapper" @click="foucusTagInput"> <div class="el-input-tag input-tag-wrapper" @click="foucusTagInput">
<div class="tag-box">
<el-tag <el-tag
v-for="(tag, idx) in innerTags" v-for="(tag, idx) in innerTags"
:key="idx" :key="idx"
...@@ -11,6 +12,8 @@ ...@@ -11,6 +12,8 @@
:disable-transitions="false" :disable-transitions="false"
@close="remove(tag)" @close="remove(tag)"
>{{ tag.staffName }}</el-tag> >{{ tag.staffName }}</el-tag>
</div>
<el-input <el-input
size="small" size="small"
v-model.trim="newTag" v-model.trim="newTag"
...@@ -158,6 +161,10 @@ export default { ...@@ -158,6 +161,10 @@ export default {
} }
} }
} }
.tag-box {
max-height: 66px;
overflow: auto;
}
.input-tag-wrapper { .input-tag-wrapper {
position: relative; position: relative;
font-size: 14px; font-size: 14px;
...@@ -169,7 +176,7 @@ export default { ...@@ -169,7 +176,7 @@ export default {
color: #606266; color: #606266;
display: inline-block; display: inline-block;
outline: none; outline: none;
padding: 0 10px 0 5px; padding: 0 0 0 5px;
flex-wrap: wrap; flex-wrap: wrap;
line-height: 32px; line-height: 32px;
transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1); transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
...@@ -214,4 +221,15 @@ export default { ...@@ -214,4 +221,15 @@ export default {
height: 32px; height: 32px;
line-height: 32px; line-height: 32px;
} }
::-webkit-scrollbar {
/*滚动条整体样式*/
width: 6px;
height: 4px;
}
::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/
border-radius: 4px;
background-color: rgba(144, 147, 153, 0.3);
}
</style> </style>
...@@ -145,7 +145,9 @@ export default { ...@@ -145,7 +145,9 @@ export default {
] ]
}, },
pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' }, pageConf: { pageSize: 'pageSize', pageNum: 'currentPage', totalCount: 'total' },
getListApi: this.$apis.customerTransform.groupDetailList getListApi: this.$apis.customerTransform.groupDetailList,
footerLeft: 0,
footerWidth: 0
} }
}, },
mounted() { mounted() {
......
...@@ -14,12 +14,18 @@ export default { ...@@ -14,12 +14,18 @@ export default {
myChart: {}, myChart: {},
option: { option: {
xAxis: { xAxis: {
max: 'dataMax' max: 'dataMax',
splitLine: {
show: false
}
}, },
yAxis: { yAxis: {
type: 'category', type: 'category',
data: [], data: [],
inverse: true, inverse: true,
splitLine: {
show: false
},
animationDuration: 300, animationDuration: 300,
animationDurationUpdate: 300, animationDurationUpdate: 300,
max: 4 // only the largest 3 bars will be displayed max: 4 // only the largest 3 bars will be displayed
...@@ -98,9 +104,9 @@ export default { ...@@ -98,9 +104,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.chart-box { .chart-box {
width: 100%; width: 100%;
height: 207px; height: 240px;
} }
.chart-bar { .chart-bar {
height: 207px; height: 240px;
} }
</style> </style>
...@@ -44,9 +44,9 @@ export default { ...@@ -44,9 +44,9 @@ export default {
// }, // },
grid: { grid: {
x: 80, x: 80,
y: 50, y: 20,
x2: 50, x2: 30,
y2: 50 y2: 40
}, },
series: [ series: [
{ {
...@@ -87,10 +87,10 @@ export default { ...@@ -87,10 +87,10 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.chart-box { .chart-box {
height: 260px; height: 196px;
width: 100%; width: 100%;
} }
.chart-line { .chart-line {
height: 260px; height: 196px;
} }
</style> </style>
...@@ -440,6 +440,9 @@ export default { ...@@ -440,6 +440,9 @@ export default {
background: #ffffff; background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1); box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
} }
.orange {
color: #fe9c1c;
}
.data { .data {
&-item { &-item {
display: flex; display: flex;
...@@ -525,9 +528,6 @@ export default { ...@@ -525,9 +528,6 @@ export default {
border-style: solid dashed dashed dashed; border-style: solid dashed dashed dashed;
border-color: #2cca74 transparent transparent transparent; border-color: #2cca74 transparent transparent transparent;
} }
.orange {
color: #fe9c1c;
}
} }
.marketing-home { .marketing-home {
.title { .title {
...@@ -645,8 +645,8 @@ export default { ...@@ -645,8 +645,8 @@ export default {
justify-content: space-between; justify-content: space-between;
font-size: 14px; font-size: 14px;
color: #666; color: #666;
margin-top: 27px; margin-top: 20px;
margin-bottom: 0; margin-bottom: 18px;
.sold-num { .sold-num {
font-size: 22px; font-size: 22px;
color: #333; color: #333;
...@@ -678,12 +678,14 @@ export default { ...@@ -678,12 +678,14 @@ export default {
display: flex; display: flex;
} }
&-right { &-right {
margin-top: 10px;
width: 240px; width: 240px;
&-item { &-item {
font-size: 16px; font-size: 16px;
color: #333; color: #333;
margin-bottom: 21px; margin-bottom: 21px;
&:last-child { &:last-child {
margin-top: 50px;
margin-bottom: 0; margin-bottom: 0;
} }
.item-content { .item-content {
...@@ -741,13 +743,13 @@ export default { ...@@ -741,13 +743,13 @@ export default {
} }
.line-box { .line-box {
position: relative; position: relative;
height: 260px; height: 196px;
width: 77%; width: 76.7%;
} }
.bar-box { .bar-box {
position: relative; position: relative;
width: 100%; width: 100%;
height: 207px; height: 240px;
} }
.pie-box { .pie-box {
position: relative; position: relative;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!