Commit c1f2bd71 by 杨明

Merge branch 'v2.8.0' of http://192.168.3.233:8090/saas/scrm-micro-marketing into yangm_v2.8.0

2 parents 108f3535 04f32535
......@@ -378,6 +378,28 @@ const getMaterialListApi = params => {
sign: true
})
}
// 更新客户群发客户列表
const renewDetailList = params => {
params.method = `${path}update.merchant`
return http({
url: URL,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
// 客户群发统计
const renewStatistic = params => {
params.method = `${path}update.group.detail`
return http({
url: URL,
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default {
customerList,
......@@ -416,5 +438,7 @@ export default {
queryCrowdtree,
followerEcho,
getGroupListApi,
getMaterialListApi
getMaterialListApi,
renewDetailList,
renewStatistic
}
......@@ -91,6 +91,16 @@ const getMaterialListApi = params => {
sign: true
})
}
// 众筹模式活动
const crowdfundingActivity = params => {
params.method = 'scrm.api.shopmall.crowdfunding.activity.page'
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true
})
}
//模板列表
const templatePage = params => {
params.method = `${path}template.page.search`
......@@ -144,5 +154,6 @@ export default {
templatePage,
createdNameList,
templateUpdate,
templateSave
templateSave,
crowdfundingActivity
}
......@@ -273,6 +273,16 @@ export default {
params: {
merchantId: this.$globalState.session.merchantId
}
},
{
itemName: '众筹活动',
itemValue: 7,
itemType: 'crowdfunding',
getInterfaceApi: this.$apis.welcomeword.crowdfundingActivity,
params: {
currentPage: 1,
activityStatus: 2
}
}
]
},
......@@ -477,11 +487,14 @@ export default {
})
item.attContent = replaceImg.substring(0, 600)
} else if (item.attType == 7) {
if (item.attContent.title) {
item.attType = 4
params.crowdFunding = true
}
item.attContent = JSON.stringify(item.attContent)
}
return item
})
console.log(params)
params.attachmentList = attachmentList
if (params.sendType == 2) {
params.sendTimeStr = this.basicForm.sendTime + ' ' + this.basicForm.sendDate
......@@ -502,7 +515,7 @@ export default {
type: 'success',
message: '操作成功!'
})
this.$tracker.track(Object.assign({},{pageName:'群发助手',name:'新建客户群发',params}))
this.$tracker.track(Object.assign({}, { pageName: '群发助手', name: '新建客户群发', params }))
} else {
this.$message({
type: 'error',
......
......@@ -121,7 +121,14 @@
</div>
</div>
</div>
<div class="title">数据统计</div>
<div class="data">
<div class="titles">数据统计</div>
<div style="cursor:pointer;" @click="refreshData">
<i class="el-icon-refresh-right"></i>
<span style="margin-right: 8px;">更新数据</span>
</div>
<span style="color: #999;" v-if="time">更新于 {{time}}</span>
</div>
<div class="statistics-info">
<div class="statistics-ul">
<div class="statistics-li statistics-border">
......@@ -201,7 +208,9 @@ export default {
condition: {}
},
statistic: {},
limitUserList: []
limitUserList: [],
time: '',
timeId: Function
}
},
watch: {
......@@ -216,6 +225,7 @@ export default {
mounted() {
this.getCustomerDetail(this.id)
this.getStatistic()
this.refreshData()
// console.log(this.basicInfo.condition, '----')
},
computed: {
......@@ -242,6 +252,20 @@ export default {
this.eventBus.$emit('update', previewList)
})
},
refreshData() {
clearTimeout(this.timeId)
this.timeId = setTimeout(() => {
const { id } = this
this.$apis.customerTransform.renewStatistic({ id }).then(res => {
if (res.code == 0) {
this.getStatistic()
this.time = res.data.createdTime
this.$emit('handleSelect')
this.$emit('handleCustomSelect')
}
})
}, 1500)
},
getStatistic() {
const { id, form } = this
if (form == 'customer') {
......@@ -418,4 +442,18 @@ export default {
overflow: hidden;
white-space: nowrap;
}
.titles {
font-size: 16px;
font-weight: 600;
color: #333;
margin-right: 10px;
}
.data {
padding: 20px 0 17px 20px;
border-bottom: 1px solid #d8d8d8;
display: flex;
align-items: center;
font-size: 14px;
color: #5850FF
}
</style>
......@@ -10,10 +10,11 @@
<template v-else-if="item.attType == 7">
<div class="preview-activity">
<div class="activity-name">{{ item.attContent.marketingName }}</div>
<img v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6" class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt />
<img v-if="item.attContent.marketingType != 5 && item.attContent.marketingType != 6 && item.attContent.marketingType != 7" class="activity-logo" src="@/assets/guestCustom/activity-logo.png" alt />
<img v-if="item.attContent.marketingType == 5" class="activity-logo" src="@/assets/guestCustom/activity-spike.png" alt />
<img v-if="item.attContent.marketingType == 6" class="activity-logo" src="@/assets/guestCustom/activity-service.png" alt />
<div class="activity-footer">
<img v-if="item.attContent.marketingType == 7" class="link-logo" src="@/assets/guestCustom/link.png" alt />
<div class="activity-footer" v-if="item.attContent.marketingType != 7">
<img src="@/assets/guestCustom/applet-footer.png" alt />
</div>
</div>
......@@ -248,4 +249,10 @@ export default {
}
}
}
.link-logo {
width: 30px;
height: 30px;
margin-left: 131px;
margin-bottom: 5px;
}
</style>
......@@ -246,7 +246,7 @@ export default {
}
.member-left {
width: 800px;
width: calc(100% - 286px);
.member-content {
border: 1px solid #eee;
......
......@@ -249,7 +249,7 @@ export default {
}
}
.member-left {
width: 800px;
width: calc(100% - 286px);
.member-content {
border: 1px solid #eee;
......
......@@ -16,6 +16,21 @@
<el-form-item label="姓名" style="margin-bottom: 0;">
<el-input :size="size" v-model.trim="searchForm.name" @keyup.enter.native="search" clearable placeholder="请输入姓名搜索"></el-input>
</el-form-item>
<el-form-item label="跟进专员类型">
<el-select
v-model="searchForm.status"
clearable
:size="size"
placeholder="全部"
>
<el-option
v-for="item in state"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item>
<!-- <el-form-item>
<el-checkbox v-model="searchForm.checked">仅看跟进专员</el-checkbox>
</el-form-item>-->
......@@ -58,6 +73,8 @@ export default {
props: ['selectData'],
data() {
return {
state: [],
stateList: [],
url: url,
searchForm: {},
checked: '',
......@@ -125,6 +142,18 @@ export default {
onHidePopover() {
this.popoverVisible = false
},
unique(arr) {
let res = new Set()
return arr.filter((item) => {
let id = JSON.stringify(item)
if (res.has(id)) {
return false
} else {
res.add(id)
return true
}
})
},
listDepartmentTree(isFollowerStaff) {
const params = { addChildrensFlag: true }
this.loading = true
......@@ -145,6 +174,10 @@ export default {
})
this.selectData = []
}
res[0].entmicroStaffResponses.forEach(e => {
this.state.push({value: e.followerTypeId, label: e.followerName})
})
this.state = this.unique(this.state)
} else {
this.treeData = []
}
......@@ -176,6 +209,7 @@ export default {
this.tableEmpData = []
const data = this.currentTreeData
const keyword = this.searchForm.name
const status = this.searchForm.status
let arr = []
// this.loading = true
console.log(keyword, data, this.tableEmpData)
......@@ -224,6 +258,17 @@ export default {
})
}
}
this.stateList = this.tableEmpData
if (status) {
this.tableEmpData = []
this.stateList.forEach(i => {
if (String(i.followerTypeId).indexOf(status) != -1) {
this.tableEmpData.push(i)
}
})
} else {
this.tableEmpData = this.stateList
}
},
remove(item) {
// var idx = this.innerTags.findIndex(k => k.id == item.id)
......@@ -289,7 +334,7 @@ export default {
}
}
.member-left {
width: 800px;
width: calc(100% - 286px);
.member-content {
border: 1px solid #eee;
......
<template>
<div>
<BasicInof :eventBus="eventBus" :id="$route.params.id" :form="'customer'"></BasicInof>
<BasicInof :eventBus="eventBus" :id="$route.params.id" :form="'customer'" @handleSelect="handleSelect" @handleCustomSelect="handleCustomSelect"></BasicInof>
<div class="detail-container">
<div class="detail-modular">
<div class="title">员工详情</div>
......
......@@ -14,6 +14,13 @@
>新建群发</el-button>-->
<GLButton type="primary" :size="size" icon="el-icon-plus" fn="新建客户群发" @click="btnClick('create', 1)">新建群发</GLButton>
<div class="text">企业统一选择要发送的客户,由添加客户的成员确认后发送给客户,消息内容仅管理员和负责人可创建。</div>
<div class="renew">
<div style="cursor:pointer;" @click="refreshData('1')">
<i class="el-icon-refresh-right"></i>
<span style="margin-right: 8px;">更新数据</span>
</div>
<span style="color: #999;" v-if="time">更新于 {{time}}</span>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable :key="key" ref="customer" :getListApi="customerList" :tableParams="gueastTableParams" :pageConf="gueastPageConf">
......@@ -46,6 +53,13 @@
>新建群发</el-button>-->
<GLButton type="primary" :size="size" fn="新建客户群群发" icon="el-icon-plus" @click="btnClick('create', 2)">新建群发</GLButton>
<div class="text">管理员或负责人统一创建内容,群主收到通知后,可选择他管理的客户群并群发。</div>
<div class="renews">
<div style="cursor:pointer;" @click="refreshData('2')">
<i class="el-icon-refresh-right"></i>
<span style="margin-right: 8px;">更新数据</span>
</div>
<span style="color: #999;" v-if="times">更新于 {{times}}</span>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable :key="groupKey" ref="customerGroup" :getListApi="customerGroupList" :tableParams="gueastGroupTableParams" :pageConf="gueastPageConf">
......@@ -82,6 +96,9 @@ export default {
5: '链接'
}
return {
timeId: Function,
time:'',
times:'',
ATT_TYPE,
activeIndex: 1,
// 表格按钮
......@@ -314,20 +331,39 @@ export default {
},
mounted() {
// this.wxTips()
this.refreshData('1')
},
beforeDestroy() {
this.$message.closeAll()
},
methods: {
refreshData(type) {
clearTimeout(this.timeId)
this.timeId = setTimeout(() => {
this.$apis.customerTransform.renewDetailList({}).then(res => {
if(res.code == '0'){
if(type == 1) {
this.time = res.data.createdTime
this.$refs.customer.refreshTable()
} else if(type == 2) {
this.times = res.data.createdTime
this.$refs.customerGroup.refreshTable()
}
}
})
}, 1500)
},
switchMenu(val) {
this.$nextTick(() => {
this.activeIndex = val
if (val == 1) {
this.key = new Date()
if (this.$refs.customer) this.$refs.customer.refreshTable()
this.refreshData('1')
} else {
this.groupKey = new Date()
if (this.$refs.customerGroup) this.$refs.customerGroup.refreshTable()
this.refreshData('2')
}
})
},
......@@ -448,6 +484,13 @@ export default {
color: #999;
margin-left: 20px;
}
.renew,.renews {
display: flex;
position: absolute;
right: 44px;
font-size: 14px;
color: #5850FF
}
}
}
}
......
......@@ -147,7 +147,7 @@
</el-radio>
<el-button v-show="!baseData.consultantList.length" type="text"></el-button>
<p style="color: #5850ff;margin-left: 22px;" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
<el-radio v-model="editForm.customerServerType" v-if="showGh" :label="2">
<el-radio v-model="editForm.customerServerType" :label="2">
<el-input style="width: 320px" placeholder="请输入链接" :disabled="editForm.customerServerType == 1" v-model="editForm.customerServerUrl" clearable></el-input>
</el-radio>
</div>
......@@ -230,7 +230,6 @@ export default {
userInfo: {},
// 查看大图
isImgVisible: false,
showGh: false,
state: '',
dialogObj: {
url: '',
......@@ -451,8 +450,6 @@ export default {
this.externalFormList[idx].editFormData[idxx].isHide = true
this.externalFormList[idxxx].editFormData[idxxxx].isHide = true
}
let href = window.location.host
this.showGh = href.indexOf('cgacar') != -1
},
methods: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!