Commit e1bff8d9 by wuwx

sop分析列表

1 parent 98c9152b
...@@ -56,31 +56,63 @@ export default { ...@@ -56,31 +56,63 @@ export default {
}, },
searchForm: {}, searchForm: {},
// 表格 // 表格
getListApi: this.$apis.sop.getListApi, getListApi: this.$apis.sop.getEventListApi,
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableColumns: [ tableColumns: [
{ {
label: '营销事件', label: '营销事件',
prop: 'sopName' prop: 'sopName',
formatter: cellValue => {
var repeatTxt = ''
var weekToTxt = {
1: '一',
2: '二',
3: '三',
4: '四',
5: '五',
6: '六',
7: '日'
}
switch(cellValue.repeatMode) {
case 1:
repeatTxt = ' 每天重复推送至'
break
case 2:
repeatTxt = ' 每周' + weekToTxt[cellValue.repeatTime] + '重复推送至'
break
case 3:
repeatTxt = ' 每月' + cellValue.repeatTime + '重复推送至'
break
}
return cellValue.eventStartDate + ' ' + cellValue.eventTime + (cellValue.repeatFlag == 'Y' ? repeatTxt : ' 单次')+ (cellValue.repeatFlag == 'Y' ? ' ' + cellValue.eventEndDate : '')
}
}, },
{ {
label: '营销渠道', label: '营销渠道',
prop: 'remarkName', prop: 'pushChannelType',
width: '200' width: '100',
formatter: cellValue => {
var pushChannelTypeList = {
1: '企业微信',
2: '短信',
3: '微信朋友圈'
}
return pushChannelTypeList[cellValue.pushChannelType]
}
}, },
{ {
label: '营销事件总数', label: '营销事件总数',
prop: 'anticipatedCost', prop: 'eventStatistics',
formatter: cellValue => { formatter: cellValue => {
return (cellValue.anticipatedCost / 100).toFixed(2) return cellValue.eventStatistics ? cellValue.eventStatistics.eventCount : '-'
} }
}, },
{ {
label: '已完成事件数', label: '已完成事件数',
prop: 'staffList', prop: 'eventStatistics',
formatter: cellValue => { formatter: cellValue => {
return cellValue.staffList.map(item => item.staffName).join(',') return cellValue.eventStatistics ? cellValue.eventStatistics.finishEventCount : '-'
} }
} }
] ]
......
...@@ -62,25 +62,21 @@ export default { ...@@ -62,25 +62,21 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '员工名称', label: '员工名称',
prop: 'name' prop: 'userName'
}, },
{ {
label: '已完成任务数', label: '已完成任务数',
prop: 'remarkName', prop: 'finishTaskCount'
width: '200'
}, },
{ {
label: '已下发任务数', label: '已下发任务数',
prop: 'anticipatedCost', prop: 'issuedTaskCount'
formatter: cellValue => {
return (cellValue.anticipatedCost / 100).toFixed(2)
}
}, },
{ {
label: '个人完成率', label: '个人完成率',
prop: 'staffList', prop: 'percent',
formatter: cellValue => { formatter: cellValue => {
return cellValue.staffList.map(item => item.staffName).join(',') return cellValue.issuedTaskCount ? ((cellValue.finishTaskCount - cellValue.issuedTaskCount) / 100).toFixed(2) + '%' : '0%'
} }
} }
] ]
......
...@@ -92,26 +92,27 @@ export default { ...@@ -92,26 +92,27 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: '客户名称', label: '客户名称',
prop: 'name' prop: 'customerName'
}, },
{ {
label: '客户手机号', label: '客户手机号',
prop: 'remarkName', prop: 'customerPhone',
width: '200' width: '110'
}, },
{ {
label: '初次查看事件', label: '初次查看事件',
prop: 'anticipatedCost', prop: 'firstViewDate',
formatter: cellValue => { formatter: cellValue => {
return (cellValue.anticipatedCost / 100).toFixed(2) return cellValue.firstViewDate || '未查看'
} }
}, },
{ {
label: '营销事件总数', label: '查看次数',
prop: 'staffList', prop: 'viewCount'
formatter: cellValue => { },
return cellValue.staffList.map(item => item.staffName).join(',') {
} label: '查看总时长',
prop: ''
} }
] ]
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!