Commit b869cb89 by 李伟康

commit 提交

1 parent e02b5fb9
...@@ -106,8 +106,16 @@ const syncBadge=(params = {}) =>{ ...@@ -106,8 +106,16 @@ const syncBadge=(params = {}) =>{
}) })
} }
/**导出 */
const exportReclistList = (params = {}) =>{
params.method = 'scrm.api.mindworkplate.badge.employeeBadgeReclistExport'
return http({
url: 'rop-scrm-partner/router',
method: 'POST',
data: params,
sign: true
})
}
export default { export default {
getReclistWithPage, getReclistWithPage,
...@@ -117,5 +125,6 @@ export default { ...@@ -117,5 +125,6 @@ export default {
getPointCategory, getPointCategory,
conversationCheckList, conversationCheckList,
conversationDetailPage, conversationDetailPage,
syncBadge syncBadge,
exportReclistList
} }

2.2 KB | W: | H:

5.12 KB | W: | H:

src/assets/role-one.png
src/assets/role-one.png
src/assets/role-one.png
src/assets/role-one.png
  • 2-up
  • Swipe
  • Onion skin

2.16 KB | W: | H:

5.06 KB | W: | H:

src/assets/role-two.png
src/assets/role-two.png
src/assets/role-two.png
src/assets/role-two.png
  • 2-up
  • Swipe
  • Onion skin
<!-- 关联活动订单弹窗 --> <!-- 关联活动订单弹窗 -->
<template> <template>
<GLDialog big-title="质检详情" mode="big" :visible.sync="isQualityVisible" class="qualityDailog" width="80%" :close-on-click-modal="false" @onOk="handleClose" @onCancel="handleClose" @close="handleClose" > <div class="quality-box">
<div> <template v-if="qualityDetailList.length">
<el-tabs v-model="activeName" @tab-click="handleReset"> <div class="overview">
<el-tab-pane label="质检分析" name="analyse"> <template v-for="(i,index) in overviewObject">
<quality-analyse v-if="activeName == 'analyse'" v-bind="$attrs" ref="analyseList" /> <div
</el-tab-pane> :key="index"
<el-tab-pane label="对话详情" name="dialogue"> class="overview-item"
<dialogue-detail v-if="activeName == 'dialogue'" ref="dialogueDetail" v-bind="$attrs" /> >
</el-tab-pane> <div class="label">{{i.label}}</div>
</el-tabs> <div class="value">
<template v-if="i.formatter">
<div v-html="i.formatter(qualityDetailList[currentNum])">
</div>
</template>
<template v-else>
{{qualityDetailList[currentNum][i.key] || '-'}}
</template>
</div>
</div>
</template>
</div>
<div class="content" :key="currentNum">
<div class="dialogue-box">
<dialogue-detail :detailObj="qualityDetailList[currentNum]" />
</div>
<div class="analyse-box">
<quality-analyse :detailObj="qualityDetailList[currentNum]" />
</div>
</div>
</template>
<div class="footer-box">
<el-button
size="small"
:class="{opacity:currentNum == 0}"
@click="jump(-1)"
>上一条</el-button>
<div class="text">{{currentNum + 1}}/{{qualityDetailList.length}}</div>
<el-button
type="primary"
size="small"
:class="{opacity:currentNum == qualityDetailList.length - 1}"
@click="jump(1)"
>下一条</el-button>
</div> </div>
</GLDialog> </div>
</template> </template>
<script> <script>
import QualityAnalyse from './qualityAnalyse' import QualityAnalyse from './qualityAnalyse'
import DialogueDetail from './dialogueDetail' import DialogueDetail from './dialogueDetail'
const toMinutesAndSeconds = (seconds) => {
seconds = Math.floor(seconds / 1000)
let formattedTime = ''
if (seconds < 60) {
return seconds + '<span class="unit">秒</span>'
} else if (seconds > 3600) {
let hours = Math.floor(seconds / 3600),
minutes = Math.floor((seconds % 3600) / 60)
if (hours > 0) formattedTime += hours + '<span class="unit">小时</span>'
if (minutes > 0 || hours > 0) formattedTime += minutes + '<span class="unit">分钟</span>'
return formattedTime
} else {
let hours = Math.floor(seconds / 3600),
minutes = Math.floor((seconds % 3600) / 60),
remainingSeconds = seconds % 60
if (hours > 0) formattedTime += hours + '<span class="unit">小时</span>'
if (minutes > 0 || hours > 0) formattedTime += minutes + '<span class="unit">分钟</span>'
if (remainingSeconds > 0) formattedTime += remainingSeconds + '<span class="unit">秒</span>'
return formattedTime
}
}
export default { export default {
name: 'RelatActivityOrderDialog', name: '',
components: { components: {
QualityAnalyse, QualityAnalyse,
DialogueDetail DialogueDetail
}, },
data() { data () {
return { return {
overviewObject: [
{
label: '客户姓名',
key: 'customerName',
},
{
label: '车型',
key: 'carModel',
},
{
label: 'APP接待结果',
formatter (row) {
const val = {
1: '成交',
0: '战败'
}[row.receptionStatus],
color = {
1: '#2CCA74',
0: '#EB4E4E'
}[row.receptionStatus]
return `<span style="font-size:22px;color:${color}">${val || '-'}</span>`
}
},
{
label: '预计营销结果',
formatter (row) {
const color = {
'成交': '#2CCA74',
'战败': '#EB4E4E'
}[row.estimatedResult] || '#999999'
return `<span style="font-size:22px;color:${color}">${row.estimatedResult}</span>`
}
},
{
label: '话术评分',
formatter (row) {
return `<div class="num">${row.score}<span class="unit">分</span></div>`
}
},
{
label: '接待时长',
formatter (row) {
return `<div class="num">${toMinutesAndSeconds(row.duration)}</div>`
}
}
],
activeName: 'analyse', activeName: 'analyse',
currentNum: 0,
qualityDetailList: []
} }
}, },
props: {
isQualityVisible: {
type: Boolean,
default: false
}
},
computed: {},
mounted() {
mounted () {
const quality_detail_object = JSON.parse(localStorage.getItem('quality_detail_object') || {})
this.currentNum = quality_detail_object.currentNum || 0
this.qualityDetailList = quality_detail_object.list || []
}, },
methods: { methods: {
handleReset() {}, jump (num) {
handleClose() { try {
this.$emit('closeDialog', false) const { qualityDetailList, currentNum } = this,
max = qualityDetailList.length - 1
if ((currentNum == 0 && num == -1) || (currentNum == max && num == 1)) throw '无更多接待记录'
this.currentNum += num
} catch (error) {
if(error) this.$message.error(error)
}
} }
} }
} }
</script> </script>
<style scoped> <style scoped lang='scss'>
.el-tabs{ .quality-box {
margin-top:-10px; .overview {
display: flex;
align-items: center;
background: #ffffff;
padding: 20px;
justify-content: space-between;
&-item {
width: calc((100% - 40px) / 6);
background: #f7f9fa;
border-radius: 4px;
box-sizing: border-box;
height: 92px;
padding: 16px;
font-size: 14px;
color: #333333;
.label {
line-height: 20px;
}
.value {
font-weight: 600;
font-size: 20px;
color: #333333;
margin-top: 8px;
line-height: 32px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
/deep/.num {
font-weight: 700;
font-size: 26px;
.unit {
font-weight: 400;
font-size: 14px;
color: #333333;
}
}
}
}
}
.content {
display: flex;
margin-top: 16px;
height: calc(100vh - 276px);
overflow: hidden;
.dialogue-box {
width: 40%;
}
.analyse-box {
width: calc(60% - 16px);
margin-left: auto;
}
}
.footer-box {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
height: 64px;
font-size: 14px;
color: #666666;
display: flex;
align-items: center;
justify-content: center;
.text {
margin: 0 16px;
}
.opacity{
opacity: .5;
}
} }
}
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!