Commit c23f798d by xinlaa

增加客户流失提醒功能等

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