Commit c7b82cf6 by xinlaa

增加客户流失提醒功能等

1 parent af7013f5
......@@ -12,6 +12,7 @@ const service = window.CONFIG.services.wecom + '/customer'
"tagIds": "标签id,多个标签,id使用逗号隔开",
"beginTime": "开始时间",
"endTime": "结束时间"
status: 0 客户状态 0正常 1删除
}
*/
export function getList(params) {
......@@ -105,3 +106,23 @@ export function getDetail(externalUserid) {
url: service + '/getCustomersByUserId/' + externalUserid,
})
}
/**
* 客户流失通知开关
* @param {*} status [string] 是 客户流失通知开关 0:关闭 1:开启
*/
export function lossRemind(status) {
return request({
url:
window.CONFIG.services.wecom +
'/corp/startCustomerChurnNoticeSwitch/' +
status,
method: 'PUT',
})
}
export function getLossRemindStatus(status) {
return request({
url: window.CONFIG.services.wecom + '/corp/getCustomerChurnNoticeSwitch/',
})
}
......@@ -104,4 +104,7 @@ export default {
}
}
}
.el-avatar {
flex: none;
}
</style>
......@@ -136,8 +136,10 @@ export default {
type: 'query',
}
this.dialogVisible = true
this.$refs.selectTag.$forceUpdate()
},
makeTag(type) {
debugger
this.selectedTag = []
if (!this.multipleSelection.length) {
this.msgInfo('请选择一位客户')
......@@ -173,6 +175,7 @@ export default {
}
this.removeTag = this.selectedTag.slice()
this.dialogVisible = true
this.$refs.selectTag.$forceUpdate()
},
sync() {
const loading = this.$loading({
......@@ -447,6 +450,7 @@ export default {
<!-- 选择标签弹窗 -->
<SelectTag
ref="selectTag"
:visible.sync="dialogVisible"
:title="tagDialogType.title"
:selected="selectedTag"
......
......@@ -7,7 +7,7 @@ export default {
return {
datePickerVisible: false,
customer: {
weFlowerCustomerRels: [],
weFlowerCustomerRels: [{}],
},
birthday: '',
}
......@@ -84,9 +84,21 @@ export default {
<el-card shadow="never" :body-style="{ width: '400px' }">
<div>
<!-- <el-button class="fr" type="danger" plain size="mini"
>该员工已被客户删除</el-button
> -->
<el-row :gutter="10">
<el-col :span="10">备注名:</el-col>
<el-col :span="12">{{ customer.name }}</el-col>
<el-col :span="10">
<el-tooltip
class="item"
effect="dark"
:content="customer.name"
placement="top-start"
>
<div class="toe">{{ customer.name }}</div>
</el-tooltip>
</el-col>
</el-row>
<el-row :gutter="10">
<el-col :span="10">标签:</el-col>
......
......@@ -273,11 +273,7 @@ export default {
:message="form.welcomeMsg || '请输入欢迎语'"
:isOther="!!materialSelected"
>
<el-image
style="width: 100px; height: 100px; cursor: pointer;border-radius: 6px;"
:src="materialSelected"
fit="fit"
>
<el-image style="border-radius: 6px;" :src="materialSelected" fit="fit">
</el-image>
</PhoneDialog>
<div class="tip">欢迎语样式</div>
......
......@@ -136,11 +136,7 @@ export default {
:message="form.welcomeMsg || '请输入欢迎语'"
:isOther="!!form.materialUrl"
>
<el-image
style="width: 100px; height: 100px; cursor: pointer;border-radius: 6px;"
:src="form.materialUrl"
fit="fit"
>
<el-image style="border-radius: 6px;" :src="form.materialUrl" fit="fit">
</el-image
></PhoneDialog>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!