Commit fc463b11 by wangzhihui

优秀话术

1 parent d8e5a0ca
......@@ -1240,7 +1240,8 @@ export const channelTypeList = [
// 预警管理 所属业务
export const businessSceneOpt = [
{ confId: 0, confValue: "延保/权益" },
{ confId: 0, confValue: "延保" },
{ confId: 2, confValue: "权益" },
{ confId: 1, confValue: "精品" }
]
export const checkStautsOpt = [
......
......@@ -31,7 +31,24 @@
<performance-status :detailInfo="detailInfo"></performance-status>
<!-- 谈客能力-->
<div class="header">谈客能力</div>
<div class="presentation"></div>
<div class="presentation">
<div
v-for="(item, index) in capacityList"
:key="index"
class="capacity-line"
>
<div class="title">{{ item.title }}</div>
<div class="capacity">
<div
class="capacity-item"
v-for="(child, seconds) in item.children"
:key="seconds"
>
{{ child.title }}
</div>
</div>
</div>
</div>
<!-- 学习情况 -->
<learning-situation></learning-situation>
</div>
......@@ -76,7 +93,7 @@ export default {
],
capacityList: [
{
title: "弱项",
title: "弱项:",
children: [
{
title: "身份介绍:差",
......@@ -102,6 +119,10 @@ export default {
{
title: "话题介入:一般",
key: "weakItem"
},
{
title: "攻防能力:一般",
key: "weakItem"
}
]
}
......@@ -158,5 +179,33 @@ export default {
}
}
}
.presentation {
margin: 20px;
.capacity-line {
display: flex;
align-items: center;
margin-bottom: 16px;
.title {
color: #666666;
font-size: 14px;
font-weight: 400;
width: 138px;
text-align: right;
}
.capacity {
display: flex;
flex-wrap: wrap;
align-items: center;
.capacity-item {
padding: 6px 12px;
background: #f2f3f5;
color: #eb4e4e;
font-size: 14px;
font-weight: 400;
margin-left: 8px;
}
}
}
}
}
</style>
......@@ -98,7 +98,7 @@ export default {
return {
tab: [],
dropdownList: [],
windowId: -2,
windowId: -1,
tabboxWidth: 0
}
},
......
......@@ -130,7 +130,7 @@ export default {
},
{
label: "品牌",
prop: "sceneLabelName",
prop: "sonBrand",
width: "80"
},
{
......@@ -243,7 +243,7 @@ export default {
},
{
label: "品牌",
name: "storeBrandId",
name: "sonBrandId",
type: "select",
// multiple: true,
isClear: true,
......
......@@ -117,7 +117,7 @@ export default {
},
{
label: "品牌",
name: "storeBrandId",
name: "sonBrandId",
type: "select",
// multiple: true,
isClear: true,
......
......@@ -115,7 +115,7 @@ export default {
},
{
label: "品牌",
prop: "sceneLabelName",
prop: "sonBrand",
width: "80"
},
{
......@@ -161,7 +161,7 @@ export default {
},
{
label: "品牌",
name: "storeBrandId",
name: "sonBrandId",
type: "select",
// multiple: true,
isClear: true,
......
......@@ -125,7 +125,7 @@ export default {
},
{
label: "品牌",
prop: "sceneLabelName",
prop: "sonBrand",
width: "80"
},
{
......@@ -179,7 +179,7 @@ export default {
},
{
label: "品牌",
name: "storeBrandId",
name: "sonBrandId",
type: "select",
// multiple: true,
isClear: true,
......
......@@ -7,17 +7,10 @@
>
<div class="detail-content">
<div class="form_div">
<el-form
class="edit-sub-block"
label-width="110px"
:inline="true"
>
<el-form class="edit-sub-block" label-width="110px" :inline="true">
<el-row :gutter="20">
<template v-for="(item, index) in configData">
<el-col
:span="item.col ? item.col : 12"
:key="index"
>
<el-col :span="item.col ? item.col : 12" :key="index">
<el-form-item :label="item.title">
<slot
v-if="item.addHtml"
......@@ -31,17 +24,15 @@
></div>
{{ detailInfo[item.key] ? detailInfo[item.key] : "-" }}
</div>
</el-form-item></el-col>
</el-form-item></el-col
>
</template>
</el-row>
</el-form>
</div>
<div class="operate-wrap">
<div class="title">操作记录</div>
<div
class="operate-list"
v-if="operateData.length > 0"
>
<div class="operate-list" v-if="operateData.length > 0">
<div
v-for="(item, index) in operateData"
:key="index"
......@@ -54,18 +45,17 @@
}}</span>
<span class="result">通过</span>
</div>
<div :class="[
<div
:class="[
'content',
operateData.length == index + 1 ? 'last' : ''
]">
]"
>
{{ item.staffName }}<span>{{ item.createdTime }}</span>
</div>
</div>
</div>
<div
v-else
class="empty"
>暂无记录</div>
<div v-else class="empty">暂无记录</div>
</div>
</div>
</baseDialog>
......@@ -88,24 +78,24 @@ export default {
},
computed: {
dialogShow: {
get () {
get() {
return this.visible
},
set (val) {
set(val) {
this.$emit("update:visible", val)
}
}
},
watch: {
id (val) {
id(val) {
if (val) this.getDetail()
}
},
mounted () {
mounted() {
this.getDetail()
this.getOperateList()
},
data () {
data() {
return {
operateData: [],
configData: [
......@@ -173,13 +163,13 @@ export default {
}
},
methods: {
handleDetailClose () {
handleDetailClose() {
this.dialogShow = false
},
getDetail () {
getDetail() {
getRecordDetail({ id: this.id }).then((res) => {
if (res) {
res.scene = res.scene == 1 ? "精品" : "延保"
res.scene = res.scene == 1 ? "精品" : res.scene == 2 ? "权益" : "延保"
res.pushStatusName = res.pushStatus == 1 ? "已推送" : "未推送"
res.pushTime = res.pushTime
? Util.dateFormate(res.pushTime, "YYYY/MM/DD HH:mm:ss")
......@@ -192,7 +182,7 @@ export default {
}
})
},
getOperateList () {
getOperateList() {
getOperateList({ id: this.id }).then((res) => {
if (res) {
this.operateData = res
......
<template>
<baseDialog :is-show.sync="dialogShow" :config="dialogConfig.setting" :dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose">
<baseDialog
:is-show.sync="dialogShow"
:config="dialogConfig.setting"
:dialog-config="dialogConfig.config"
@closeDialog="handleDetailClose"
>
<div class="detail-content">
<div class="form_div">
<el-form class="edit-sub-block" label-width="110px" :inline="true">
......@@ -8,12 +12,20 @@
<template v-for="(item, index) in configData">
<el-col :span="item.col ? item.col : 12" :key="index">
<el-form-item :label="item.title">
<slot v-if="item.addHtml" :name="item.addHtml" :scope="scope.row" />
<slot
v-if="item.addHtml"
:name="item.addHtml"
:scope="scope.row"
/>
<div v-else>
<div v-if="item.className" :class="[item.className(detailInfo)]"></div>
<div
v-if="item.className"
:class="[item.className(detailInfo)]"
></div>
{{ detailInfo[item.key] ? detailInfo[item.key] : "-" }}
</div>
</el-form-item></el-col>
</el-form-item></el-col
>
</template>
</el-row>
</el-form>
......@@ -21,18 +33,26 @@
<div class="operate-wrap">
<div class="title">操作记录</div>
<div class="operate-list" v-if="operateData.length > 0">
<div v-for="(item, index) in operateData" :key="index" class="operate-item">
<div
v-for="(item, index) in operateData"
:key="index"
class="operate-item"
>
<div class="header">
<span class="icon"></span>
<span class="type">{{
item.type == 1 ? "标注分类" : "二次确认"
}}</span>
<span :class="['result', check_class[item.checkStatus]]">{{ check_status[item.checkStatus] }}</span>
}}</span>
<span :class="['result', check_class[item.checkStatus]]">{{
check_status[item.checkStatus]
}}</span>
</div>
<div :class="[
'content',
operateData.length == index + 1 ? 'last' : ''
]">
<div
:class="[
'content',
operateData.length == index + 1 ? 'last' : ''
]"
>
{{ item.staffName }}<span>{{ item.createdTime }}</span>
</div>
</div>
......@@ -45,16 +65,16 @@
<script>
const check_status = {
1: '通过',
2: '通过',
3: '驳回',
4: '驳回'
1: "通过",
2: "通过",
3: "驳回",
4: "驳回"
}
const check_class = {
1: 'green',
2: 'green',
3: 'red',
4: 'red'
1: "green",
2: "green",
3: "red",
4: "red"
}
import { Util, deepClone } from "@/common/util"
import { getRecordDetail, getOperateList } from "@api/verbal"
......@@ -84,61 +104,91 @@ export default {
}
},
configData() {
// 定义字段顺序模板
const fieldOrder = [
'className', 'scene', 'staffName', 'sceneLabelName', 'labelName',
'scriptTime', 'checkStatusName', 'firstChecker', 'updatedTime',
'pushTime', 'sourceContent', 'polishContent'
];
// 定义字段顺序模板
const fieldOrder = [
"className",
"scene",
"staffName",
"sceneLabelName",
"labelName",
"scriptTime",
"checkStatusName",
"firstChecker",
"updatedTime",
"pushTime",
"sourceContent",
"polishContent"
]
// 定义字段元数据映射
const fieldMetadata = {
className: { title: "分类名:" },
scene: { title: "业务场景:" },
staffName: { title: "话术来源:" },
sceneLabelName: { title: "场景标签:" },
labelName: { title: "优秀标签:" },
scriptTime: { title: "萃取时间:" },
checkStatusName: {
title: "状态:",
className: (cellValue) => {
return {
1: "yellowSpot",
2: "greenSpot",
3: "redSpot",
4: "redSpot",
0: "yellowSpot"
}[cellValue.checkStatus];
// 定义字段元数据映射
const fieldMetadata = {
className: { title: "分类名:" },
scene: { title: "业务场景:" },
staffName: { title: "话术来源:" },
sceneLabelName: { title: "场景标签:" },
labelName: { title: "优秀标签:" },
scriptTime: { title: "萃取时间:" },
checkStatusName: {
title: "状态:",
className: (cellValue) => {
return {
1: "yellowSpot",
2: "greenSpot",
3: "redSpot",
4: "redSpot",
0: "yellowSpot"
}[cellValue.checkStatus]
}
},
firstChecker: { title: "确认人:" },
updatedTime: { title: "更新时间:" },
pushTime: { title: "推送时间:" },
sourceContent: { title: "原文内容:", col: 24 },
polishContent: { title: "话术内容:", col: 24 }
}
},
firstChecker: { title: "确认人:" },
updatedTime: { title: "更新时间:" },
pushTime: { title: "推送时间:" },
sourceContent: { title: "原文内容:", col: 24 },
polishContent: { title: "话术内容:", col: 24 }
};
// 定义不同来源包含的字段
const sourceFields = {
approval: [
'className', 'scene', 'staffName', 'sceneLabelName', 'labelName',
'scriptTime', 'checkStatusName', 'firstChecker', 'sourceContent', 'polishContent'
],
pushed: [
'className', 'scene', 'sceneLabelName', 'labelName',
'updatedTime', 'pushTime', 'sourceContent', 'polishContent'
],
nopushed: [
'className', 'scene', 'sceneLabelName', 'labelName',
'updatedTime', 'sourceContent', 'polishContent'
]
};
// 定义不同来源包含的字段
const sourceFields = {
approval: [
"className",
"scene",
"staffName",
"sceneLabelName",
"labelName",
"scriptTime",
"checkStatusName",
"firstChecker",
"sourceContent",
"polishContent"
],
pushed: [
"className",
"scene",
"sceneLabelName",
"labelName",
"updatedTime",
"pushTime",
"sourceContent",
"polishContent"
],
nopushed: [
"className",
"scene",
"sceneLabelName",
"labelName",
"updatedTime",
"sourceContent",
"polishContent"
]
}
// 根据模板顺序过滤并构建配置
return fieldOrder
.filter(fieldKey => (sourceFields[this.source] || []).includes(fieldKey))
.map(fieldKey => ({ key: fieldKey, ...fieldMetadata[fieldKey] }));
}
// 根据模板顺序过滤并构建配置
return fieldOrder
.filter((fieldKey) =>
(sourceFields[this.source] || []).includes(fieldKey)
)
.map((fieldKey) => ({ key: fieldKey, ...fieldMetadata[fieldKey] }))
}
},
watch: {
id(val) {
......@@ -176,7 +226,7 @@ export default {
getDetail() {
getRecordDetail({ id: this.id }).then((res) => {
if (res) {
res.scene = res.scene == 1 ? "精品" : "延保/权益"
res.scene = res.scene == 1 ? "精品" : res.scene == 2 ? "权益" : "延保"
// res.pushStatusName = res.pushStatus == 1 ? "已推送" : "未推送"
res.checkStatusName = {
1: "待核验",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!