Commit f307dad5 by 胡悦

提交群发

1 parent 096837e8
...@@ -148,7 +148,7 @@ ...@@ -148,7 +148,7 @@
v-model="basicForm.sendTime" v-model="basicForm.sendTime"
size="small" size="small"
type="date" type="date"
value-format="yyyy-MM-DD" value-format="yyyy-MM-dd"
placeholder="选择日期" placeholder="选择日期"
></el-date-picker>- ></el-date-picker>-
<el-time-picker <el-time-picker
...@@ -343,7 +343,7 @@ export default { ...@@ -343,7 +343,7 @@ export default {
// } // }
// }) // })
if (params.sendType == 2) { if (params.sendType == 2) {
params.sendTime = this.basicForm.sendTime + ' ' + this.basicForm.sendDate params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate
} }
console.log(params) console.log(params)
this.$apis.customerTransform this.$apis.customerTransform
...@@ -432,31 +432,10 @@ export default { ...@@ -432,31 +432,10 @@ export default {
return return
} }
const params = this.getSiftMembers() const params = this.getSiftMembers()
// const params = {
// selectType: this.basicForm.selectType,
// condition: {
// sex: this.basicForm.condition.sex,
// chatId: this.basicForm.condition.chatId
// }
// }
// if (this.basicForm.condition.date) {
// params.condition.startTime = dayjs(this.basicForm.condition.date[0]).format('YYYY-MM-DD')
// params.condition.endTime = dayjs(this.basicForm.condition.date[1]).format('YYYY-MM-DD')
// }
// params.userList = this.basicForm.userList.map(item => {
// return {
// staffId: item.staffId,
// staffName: item.staffName
// }
// })
console.log(params) console.log(params)
this.$apis.customerTransform.customerCount(params).then(res => { this.$apis.customerTransform.customerCount(params).then(res => {
console.log(res) console.log(res)
if (res) { this.groupNumber = res
this.groupNumber = res
} else {
this.groupNumber = '-'
}
this.isUpdate = false this.isUpdate = false
}) })
} }
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
v-model="basicForm.sendTime" v-model="basicForm.sendTime"
size="small" size="small"
type="date" type="date"
value-format="yyyy-MM-DD" value-format="yyyy-MM-dd"
placeholder="选择日期" placeholder="选择日期"
></el-date-picker>- ></el-date-picker>-
<el-time-picker <el-time-picker
...@@ -222,7 +222,7 @@ export default { ...@@ -222,7 +222,7 @@ export default {
} }
}) })
if (params.sendType == 2) { if (params.sendType == 2) {
params.sendTime = this.basicForm.sendTime + ' ' + this.basicForm.sendDate params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate
} }
console.log(params) console.log(params)
this.$apis.customerTransform this.$apis.customerTransform
......
...@@ -11,10 +11,10 @@ ...@@ -11,10 +11,10 @@
mode="horizontal" mode="horizontal"
@select="handleSelect" @select="handleSelect"
> >
<el-menu-item index="0">全部</el-menu-item> <el-menu-item index>全部</el-menu-item>
<el-menu-item index="1">已发送员工</el-menu-item> <el-menu-item index="1">已发送员工</el-menu-item>
<el-menu-item index="2">未发送员工</el-menu-item> <el-menu-item index="0">未发送员工</el-menu-item>
<el-menu-item index="3">员工发送失败</el-menu-item> <el-menu-item index="2">员工发送失败</el-menu-item>
</el-menu> </el-menu>
<div class="detail-total">共 {{ employeelist.length || 0 }} 人</div> <div class="detail-total">共 {{ employeelist.length || 0 }} 人</div>
<div v-if="employeelist.length != 0" class="info-list"> <div v-if="employeelist.length != 0" class="info-list">
...@@ -25,8 +25,8 @@ ...@@ -25,8 +25,8 @@
<div class="info-name"> <div class="info-name">
{{ item.staffName }} {{ item.staffName }}
<span <span
:class="[item.status == 1 ? 'unsend' : 'send']" :class="[item.status == 0 ? 'unsend' : 'send']"
>{{ item.status == 1 ? '未' : '已' }}发送</span> >{{ item.status == 0 ? '未' : '已' }}发送</span>
</div> </div>
<div class="info-num">共{{ item.customerCount }}个客户</div> <div class="info-num">共{{ item.customerCount }}个客户</div>
</div> </div>
...@@ -54,10 +54,10 @@ ...@@ -54,10 +54,10 @@
mode="horizontal" mode="horizontal"
@select="handleCustomSelect" @select="handleCustomSelect"
> >
<el-menu-item index="0">全部</el-menu-item> <el-menu-item index>全部</el-menu-item>
<el-menu-item index="1">已发送客户</el-menu-item> <el-menu-item index="1">已发送客户</el-menu-item>
<el-menu-item index="2">未发送客户</el-menu-item> <el-menu-item index="0">未发送客户</el-menu-item>
<el-menu-item index="3">客户接受失败</el-menu-item> <el-menu-item index="2">客户接受失败</el-menu-item>
</el-menu> </el-menu>
<div class="detail-total">共 {{ customerlist.length || 0 }} 人</div> <div class="detail-total">共 {{ customerlist.length || 0 }} 人</div>
<div v-if="customerlist.length != 0" class="info-list"> <div v-if="customerlist.length != 0" class="info-list">
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
{{ item.customerName }} {{ item.customerName }}
<div <div
:class="[item.status == 0 ? 'unsend' : 'send']" :class="[item.status == 0 ? 'unsend' : 'send']"
>{{ item.status == 0 ? '未' : '已' }}发送</div> >{{ item.status == 0 ? '未' : '已' }}送达</div>
</div> </div>
</div> </div>
<div class="info-right"> <div class="info-right">
...@@ -104,8 +104,8 @@ export default { ...@@ -104,8 +104,8 @@ export default {
}, },
data() { data() {
return { return {
activeIndex: '0', activeIndex: '',
customIndex: '0', customIndex: '',
employeelist: [], employeelist: [],
customerlist: [], customerlist: [],
basicInfo: {}, basicInfo: {},
...@@ -159,14 +159,14 @@ export default { ...@@ -159,14 +159,14 @@ export default {
const id = this.$route.params.id const id = this.$route.params.id
this.$apis.customerTransform.staffList({ id, status }).then(res => { this.$apis.customerTransform.staffList({ id, status }).then(res => {
console.log(res) console.log(res)
this.employeelist = res this.employeelist = res ? res : []
}) })
}, },
getCustomerList(status = 0) { getCustomerList(status = 0) {
const id = this.$route.params.id const id = this.$route.params.id
this.$apis.customerTransform.customerDetailList({ id, status }).then(res => { this.$apis.customerTransform.customerDetailList({ id, status }).then(res => {
console.log(res) console.log(res)
this.customerlist = res this.customerlist = res ? res : []
}) })
}, },
remindUserGroup() { remindUserGroup() {
......
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
</div> </div>
</template> </template>
<script> <script>
import * as dayjs from 'dayjs'
export default { export default {
name: 'SendAssistant', name: 'SendAssistant',
data() { data() {
...@@ -113,7 +114,14 @@ export default { ...@@ -113,7 +114,14 @@ export default {
{ {
label: '发送时间', label: '发送时间',
prop: 'sendTime', prop: 'sendTime',
line: 2 line: 2,
formatter: cellValue => {
if (cellValue.sendTime) {
return dayjs(cellValue.sendTime).format('YYYY-MM-DD HH:mm:ss')
} else {
return ''
}
}
}, },
{ {
label: '已发送员工', label: '已发送员工',
......
<template> <template>
<div class="report-home"> <div class="marketing-home">
HOME <div class="title">
<GLButton type="danger" @click="test()" class="test555" id="1-1-1-1" mode="link">权限按钮测试</GLButton> 营销效果概览页
<GLButton type="success" size="small" @click="test()" id="1-1-1-1" class="test">权限按钮测试2</GLButton> <span class="title-tips">根据门店日常的营销运营情况,可查看优惠券、秒杀活动营销,微店以及会员类的数据效果。</span>
<el-button class="test" @click="test()">东方网分</el-button> </div>
<div class="home-top">
<!-- 概览+客户分群 -->
<div class="home-left">
<div class="marketing">
<div class="marketing-item border" v-for="(item, index) in list" :key="index">
<div class="marketing-title">
<div>
{{item.title}}
<img class="marketing-icon" src="@/assets/edit.png" alt />
</div>
<img class="marketing-img" src="@/assets/memberCard.png" alt />
</div>
<div class="marketing-content">{{item.content}}</div>
<div class="marketing-btn">
<el-button type="primary" size="small">{{item.linkName}}</el-button>
</div>
</div>
</div>
<!-- 客户分群 -->
<div>
<div class="title">客户分群</div>
<div>
<!-- 券类营销 -->
<div></div>
<!-- 秒杀活动 -->
<div></div>
</div>
</div>
</div>
<!-- 会员数据 -->
<div class="home-right"></div>
</div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'home', name: 'home',
methods: { data() {
test() { return {
console.log('点击了按钮') list: [
this.$messenger.send({ message: { from: 11, message: '11111' } }) {
title: '日常关怀',
content: '可把通知、祝福、活动等消息批量发送给客户,员工可对客户进行后续的服务。',
linkName: '群发关怀信息'
},
{
title: '活动促销',
content: '门店做营销活动时,可通过优惠卡券、门店商品秒杀的形式配置活动内容。',
linkName: '设置营销活动'
},
{
title: '商品销售',
content: '管理上下架门店自有的商品,可配置带货商品活动商品销售分润。',
linkName: '上架商品'
}
]
} }
} },
methods: {}
} }
</script> </script>
<style lang="scss" scope>
.border {
padding: 20px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
}
.marketing-home {
.title {
font-size: 20px;
font-weight: 500;
color: #333;
line-height: 20px;
vertical-align: middle;
margin-bottom: 20px;
.title-tips {
margin-left: 10px;
color: #565656;
font-size: 14px;
}
}
.home-top {
display: flex;
background-color: #ccc;
.home-left {
// display: flex;
.marketing {
display: flex;
&-item {
width: 275px;
box-sizing: border-box;
margin-right: 20px;
&:last-child {
margin-right: 0;
}
}
&-title {
display: flex;
justify-content: space-between;
font-size: 20px;
color: #333;
margin-bottom: 15px;
}
&-icon {
width: 16px;
height: 16px;
margin-left: 10px;
}
&-img {
width: 101px;
height: 57px;
}
&-content {
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 20px;
margin-bottom: 20px;
}
&-btn {
text-align: center;
margin-bottom: 10px;
}
}
}
.home-right {
flex: 1;
// width: 275px;
height: 540px;
background-color: #fff;
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!