Commit a3b2702e by chenwq

sop,跟进员工

1 parent 2e9d616b
...@@ -119,7 +119,7 @@ const getCrowdTreeListApi = params => { ...@@ -119,7 +119,7 @@ const getCrowdTreeListApi = params => {
// 跟进员工类型 // 跟进员工类型
const getStaffTypeListApi = params => { const getStaffTypeListApi = params => {
params.method = 'entmicro.api.staff.findStaffByMerchantId' params.method = 'entmicro.api.staff.listEntBusinessType'
return http({ return http({
url: '/rop-scrm-entmicro/router', url: '/rop-scrm-entmicro/router',
method: 'POST', method: 'POST',
......
...@@ -4,7 +4,6 @@ const defaultPath = 'scrm.api.coupon.' ...@@ -4,7 +4,6 @@ const defaultPath = 'scrm.api.coupon.'
//优惠券列表 //优惠券列表
const getCouponListApi = params => { const getCouponListApi = params => {
// params.method = `${defaultPath}list.merchant`
params.method = 'scrm.backstage.coupon.list.merchant' params.method = 'scrm.backstage.coupon.list.merchant'
return http({ return http({
url: 'rop-scrm-coupon/router', url: 'rop-scrm-coupon/router',
......
...@@ -173,7 +173,7 @@ export default { ...@@ -173,7 +173,7 @@ export default {
eventContent: [{ required: true, message: '请输入营销内容', trigger: 'change' }], eventContent: [{ required: true, message: '请输入营销内容', trigger: 'change' }],
repeatFlag: [{ required: true, message: '请选择是否重复', trigger: 'change' }], repeatFlag: [{ required: true, message: '请选择是否重复', trigger: 'change' }],
pushChannelType: [{ required: true, message: '请选择营销渠道', trigger: 'change' }], pushChannelType: [{ required: true, message: '请选择营销渠道', trigger: 'change' }],
// followerTypeId: [{ required: true, message: '请选择跟进员工类型', trigger: 'change' }], followerTypeId: [{ required: true, message: '请选择跟进员工类型', trigger: 'change' }],
reachesType: [{ required: true, message: '请选择参与次数', trigger: 'change' }], reachesType: [{ required: true, message: '请选择参与次数', trigger: 'change' }],
reachesTypeSet: [{ required: true, message: '请输入参与次数', trigger: 'change' }] reachesTypeSet: [{ required: true, message: '请输入参与次数', trigger: 'change' }]
}, },
...@@ -341,8 +341,8 @@ export default { ...@@ -341,8 +341,8 @@ export default {
tips: '系统优先按照跟进员工类型匹配营销对象的跟进员工', tips: '系统优先按照跟进员工类型匹配营销对象的跟进员工',
type: 'select', type: 'select',
optionList: [], optionList: [],
optionId: 'userOneid', optionId: 'id',
optionLabel: 'staffName', optionLabel: 'businessName',
optionsName: 'staffTypeList' optionsName: 'staffTypeList'
}, },
{ {
...@@ -480,7 +480,7 @@ export default { ...@@ -480,7 +480,7 @@ export default {
}, },
getStaffTypeList() { getStaffTypeList() {
this.$apis.common.getStaffTypeListApi({}).then(res => { this.$apis.common.getStaffTypeListApi({ flag: 0 }).then(res => {
this.baseData.staffTypeList = res this.baseData.staffTypeList = res
this.getOptionsList('editFormDataChannel', false, 'followerTypeId') this.getOptionsList('editFormDataChannel', false, 'followerTypeId')
}) })
......
...@@ -47,8 +47,13 @@ ...@@ -47,8 +47,13 @@
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="completeListRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun"> <GLTable ref="completeListRef" :getListApi="getListApi" :noDataImg="url" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<template slot="finishEventCount" slot-scope="scope">
<el-popover placement="bottom-end" width="200" trigger="click" content="因企微、短信等限制无法正常执行的事件">
<span class="cursor-pointer" slot="reference">{{ scope.scope.eventStatistics ? scope.scope.eventStatistics.finishEventCount : '-' }}</span>
</el-popover>
</template>
<template slot="failEventCount" slot-scope="scope"> <template slot="failEventCount" slot-scope="scope">
<el-popover placement="bottom-end" width="200" trigger="hover" content="因企微、短信等限制无法正常执行的事件"> <el-popover placement="bottom-end" width="200" trigger="click" content="因企微、短信等限制无法正常执行的事件">
<span class="cursor-pointer" slot="reference">{{ scope.scope.eventStatistics ? scope.scope.eventStatistics.failEventCount : '-' }}</span> <span class="cursor-pointer" slot="reference">{{ scope.scope.eventStatistics ? scope.scope.eventStatistics.failEventCount : '-' }}</span>
</el-popover> </el-popover>
</template> </template>
...@@ -129,20 +134,18 @@ export default { ...@@ -129,20 +134,18 @@ export default {
}, },
{ {
label: '已完成事件数', label: '已完成事件数',
prop: 'eventStatistics', prop: 'finishEventCount',
width: '140', width: '140',
formatter: cellValue => { addHtml: 'finishEventCount'
return cellValue.eventStatistics ? cellValue.eventStatistics.finishEventCount : '-' // formatter: cellValue => {
} // return cellValue.eventStatistics ? cellValue.eventStatistics.finishEventCount : '-'
// }
}, },
{ {
label: '失败事件数', label: '失败事件数',
prop: 'failEventCount', prop: 'failEventCount',
width: '140', width: '140',
addHtml: 'failEventCount' addHtml: 'failEventCount'
// formatter: cellValue => {
// return cellValue.eventStatistics ? cellValue.eventStatistics.finishEventCount : '-'
// }
} }
] ]
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!