Commit 9ddcadd0 by 王志慧

Merge branch 'SAAS+V4.46-1031' of http://192.168.3.233:8090/saas_plus/dj-car-lif…

…e-system into SAAS+V4.46-1031
2 parents 78e6c15a 2fe7425f
...@@ -215,4 +215,32 @@ export function addCustomerLabel (data) { ...@@ -215,4 +215,32 @@ export function addCustomerLabel (data) {
export function updateCustomerLabel (data) { export function updateCustomerLabel (data) {
data.method = `dj.api.material.customer.label.update` data.method = `dj.api.material.customer.label.update`
return request(data, "post") return request(data, "post")
}
\ No newline at end of file \ No newline at end of file
}
/**分页查询客户档案信息(管理后台) */
export function getCustomerFilePage (data) {
data.method = `dj.api.mindworkplate.customervisit.customerInfoListPage`
return request(data, "post")
}
/**客户档案信息(管理后台)导出 */
export function exportCustomerFile (data) {
data.method = `dj.api.mindworkplate.customervisit.customerInfoListExport`
return request(data, "post")
}
/** 客户档案统计信息(管理后台) */
export function getCustomerFileStatic (data) {
data.method = `dj.api.mindworkplate.customervisit.customerInfoListStatic`
return request(data, "post")
}
/** 客户档案话术浏览记录 */
export function getCustomerVisitScriptsListPage (data) {
data.method = `dj.api.mindworkplate.customervisit.CustomerVisitScriptsListPage`
return request(data, "post")
}
/**客户档案标签 */
export function getCustomerInfoDetail (data) {
data.method = `dj.api.mindworkplate.customervisit.getCustomerInfoDetail`
return request(data, "post")
}
...@@ -8,6 +8,16 @@ export function getReclistWithPage(data) { ...@@ -8,6 +8,16 @@ export function getReclistWithPage(data) {
data.method = `${path}badge.employeeBadgeReclistWithPage` data.method = `${path}badge.employeeBadgeReclistWithPage`
return request(data, "post") return request(data, "post")
} }
// 质检统计
export function receptionStaffStatic(data) {
data.method = `${path}badge.receptionStaffStatic`
return request(data, "post")
}
// 安心包明细
export function findAxbByBatchId(data) {
data.method = `${path2}inspection.defence.findAxbByBatchId`
return request(data, "post")
}
// 分页查询接待批次列表 // 分页查询接待批次列表
export function conversationPage(data) { export function conversationPage(data) {
......
...@@ -331,4 +331,16 @@ export const routerName = { ...@@ -331,4 +331,16 @@ export const routerName = {
auth: [], auth: [],
component: _import("contentManager/customerFile/index") component: _import("contentManager/customerFile/index")
}, },
9131701:{
path: "/contentDetails",
name: "contentDetails",
meta: {
title: "话术管理",
authId: "9131701",
parentId: "91317",
cache: false
},
auth: [],
component: _import("contentManager/customerFile/contentDetails")
}
} }
...@@ -278,12 +278,12 @@ export default { ...@@ -278,12 +278,12 @@ export default {
tableColumns: [ tableColumns: [
{ {
label: "标题", label: "标题",
prop: "title" prop: "title",
minWidth:120
}, },
{ {
label: "类型", label: "类型",
prop: "type", prop: "type",
width: "100px",
formatter: (cellValue) => { formatter: (cellValue) => {
return { return {
0: "图片", 0: "图片",
...@@ -322,7 +322,7 @@ export default { ...@@ -322,7 +322,7 @@ export default {
{ {
label: "客户标签", label: "客户标签",
prop: "customerLabelInfoList", prop: "customerLabelInfoList",
width: "120px", minWidth: "300px",
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.customerLabelInfoList && cellValue.customerLabelInfoList.length > 0 ? cellValue.customerLabelInfoList.map(item => item.labelName).join(",") : '-' return cellValue.customerLabelInfoList && cellValue.customerLabelInfoList.length > 0 ? cellValue.customerLabelInfoList.map(item => item.labelName).join(",") : '-'
} }
...@@ -346,14 +346,12 @@ export default { ...@@ -346,14 +346,12 @@ export default {
{ {
label: "可见门店", label: "可见门店",
prop: "showMerchant", prop: "showMerchant",
width: "120px",
type: "slot", type: "slot",
addHtml: "merchantSlot" addHtml: "merchantSlot"
}, },
{ {
label: "浏览次数", label: "浏览次数",
prop: "browseCount", prop: "browseCount",
width: "120px",
formatter: (cell) => { formatter: (cell) => {
return cell.browseCount || 0 return cell.browseCount || 0
} }
......
...@@ -98,10 +98,11 @@ ...@@ -98,10 +98,11 @@
:width="tableParams.tableOption.width || 'auto'" :width="tableParams.tableOption.width || 'auto'"
> >
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="showStatusBtn(scope.row)"> <template v-if="showBtn(scope.row)">
<el-button <el-button
type="text" type="text"
@click="changeStatus(scope.row)" @click="changeStatus(scope.row,scope)"
v-if="showStatusBtn(scope.row)"
> >
{{scope.row.status == 0 ?'停用':'启用'}} {{scope.row.status == 0 ?'停用':'启用'}}
</el-button> </el-button>
...@@ -182,6 +183,7 @@ export default { ...@@ -182,6 +183,7 @@ export default {
name: 'labelName', name: 'labelName',
type: 'input', type: 'input',
isClear: true, isClear: true,
maxlength: 30
}, { }, {
label: '业务类型', label: '业务类型',
name: 'scene', name: 'scene',
...@@ -193,7 +195,7 @@ export default { ...@@ -193,7 +195,7 @@ export default {
optionId: "id", optionId: "id",
optionLabel: "label" optionLabel: "label"
}, { }, {
label: '是否生效', label: '是否启用',
name: 'status', name: 'status',
type: 'select', type: 'select',
optionList: [ optionList: [
...@@ -221,7 +223,6 @@ export default { ...@@ -221,7 +223,6 @@ export default {
tableData: [], tableData: [],
// 表格参数 // 表格参数
tableParams: { tableParams: {
listName: 'list',
tableOption: { tableOption: {
width: '170' width: '170'
}, },
...@@ -235,12 +236,12 @@ export default { ...@@ -235,12 +236,12 @@ export default {
}, { }, {
label: '一级分类', label: '一级分类',
addHtml: 'labelName', addHtml: 'labelName',
minwidth: 220, minWidth: 220,
maxlength: 30, maxlength: 30,
placeholder: '请输入' placeholder: '请输入'
}, { }, {
label: '业务类型', label: '业务类型',
minwidth: 220, minWidth: 220,
formatter: (cellValue) => { formatter: (cellValue) => {
return SCENE_OPTIONS.find(e => e.id == cellValue.scene)?.label || '-' return SCENE_OPTIONS.find(e => e.id == cellValue.scene)?.label || '-'
}, },
...@@ -249,13 +250,13 @@ export default { ...@@ -249,13 +250,13 @@ export default {
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.updatedDate ? Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') : '-' return cellValue.updatedDate ? Util.dateFormate(cellValue.updatedDate, 'YYYY-MM-DD HH:mm:ss') : '-'
}, },
minwidth: 220 minWidth: 220
}, { }, {
label: '生效时间', label: '生效时间',
formatter: (cellValue) => { formatter: (cellValue) => {
return cellValue.status == -1 ? '-' : cellValue.effectiveTime ? Util.dateFormate(cellValue.effectiveTime, 'YYYY-MM-DD HH:mm:ss') : '-' return cellValue.status == -1 ? '-' : cellValue.effectiveTime ? Util.dateFormate(cellValue.effectiveTime, 'YYYY-MM-DD HH:mm:ss') : '-'
}, },
minwidth: 220 minWidth: 220
} }
] ]
}, },
...@@ -284,9 +285,9 @@ export default { ...@@ -284,9 +285,9 @@ export default {
...this.searchForm ...this.searchForm
}) })
console.log(list) console.log(list)
list.map((e, index) => e.num = this.indexNum(index)) list?.map((e, index) => e.num = this.indexNum(index))
this.tableTotal = total this.tableTotal = total || 0
this.tableData = list this.tableData = list || []
} catch (error) { } catch (error) {
if (error) this.$message.error(error) if (error) this.$message.error(error)
} }
...@@ -359,11 +360,17 @@ export default { ...@@ -359,11 +360,17 @@ export default {
this.$message.error(error) this.$message.error(error)
} }
}, },
showStatusBtn (row) { showBtn (row) {
let show = true let show = true
if (row.level != 1 && row.isEdit) show = false if (row.level != 1 && row.isEdit) show = false
return show return show
}, },
showStatusBtn (row) {
let { tableData } = this,
show = true
if (row.level == 2) show = tableData.find(e => e.id == row.parentId).status == 0
return show
},
cancel (row) { cancel (row) {
let index = this.tableData.findIndex(i => i.id == row.parentId), let index = this.tableData.findIndex(i => i.id == row.parentId),
item = this.tableData[index], item = this.tableData[index],
......
...@@ -36,7 +36,9 @@ ...@@ -36,7 +36,9 @@
class="el-icon-question" class="el-icon-question"
slot="reference" slot="reference"
></i> </el-popover ></i> </el-popover
><span class="tab-header-link" @click="handleLook()" ><span
class="tab-header-link"
@click="handleLook(sIndex == 3 ? 2 : 0)"
>查看示例</span >查看示例</span
> >
<span <span
...@@ -52,7 +54,7 @@ ...@@ -52,7 +54,7 @@
>恢复门店上架此专区</span >恢复门店上架此专区</span
> >
</div> </div>
<div class="child-tab"> <div class="child-tab" v-if="sIndex != 3">
<div class="add-tab" v-if="sItem.length != 20"> <div class="add-tab" v-if="sItem.length != 20">
<el-button <el-button
size="small" size="small"
...@@ -95,18 +97,25 @@ ...@@ -95,18 +97,25 @@
> >
<tr> <tr>
<th>序号</th> <th>序号</th>
<th v-if="isShowBand(sIndex, sub)"> <template v-if="sIndex != 3">
<span class="required">*</span>品牌 <th v-if="isShowBand(sIndex, sub)">
<i <span class="required">*</span>品牌
class="el-icon-edit-outline" <i
v-if="configType == 0" class="el-icon-edit-outline"
@click="handleEditBrand(sub.infoList)" v-if="configType == 0"
></i> @click="handleEditBrand(sub.infoList)"
</th> ></i>
<th><span class="required">*</span>车型展示图</th> </th>
<th><span class="required">*</span>选购卡名称</th> <th><span class="required">*</span>车型展示图</th>
<th><span class="required">*</span>选购卡描述</th> <th><span class="required">*</span>选购卡名称</th>
<th><span class="required">*</span>详图</th> <th><span class="required">*</span>选购卡描述</th>
<th><span class="required">*</span>详图</th>
</template>
<template v-else>
<th><span class="required">*</span>产品名称</th>
<th><span class="required">*</span>质保</th>
<th><span class="required">*</span>售价</th>
</template>
<th>操作</th> <th>操作</th>
</tr> </tr>
<tr v-for="(pItem, pindex) in sub.infoList"> <tr v-for="(pItem, pindex) in sub.infoList">
...@@ -206,6 +215,66 @@ ...@@ -206,6 +215,66 @@
</Tab-pane> </Tab-pane>
</Tabs> </Tabs>
</div> </div>
<div class="child-tab" v-else>
<table
cellspacing="0"
cellpadding="0"
border="0"
class="table-box"
>
<tr>
<th>序号</th>
<th><span class="required">*</span>产品名称</th>
<th><span class="required">*</span>质保</th>
<th><span class="required">*</span>售价</th>
<th>操作</th>
</tr>
<tr v-for="(pItem, pindex) in sItem">
<td>{{ pindex + 1 }}</td>
<td>
<el-input
v-model="pItem.name"
maxlength="50"
placeholder="请输入产品名称"
></el-input>
</td>
<td>
<el-input
v-model="pItem.price"
maxlength="50"
placeholder="请输入质保"
></el-input>
</td>
<td>
<el-input
v-model="pItem.warranty"
maxlength="50"
placeholder="请输入售价"
></el-input>
</td>
<td>
<el-button
type="text"
v-if="
pindex == sItem.length - 1 &&
pindex < PACKAGE[sIndex + 1].maxNum - 1
"
@click="handleAdd(sItem, pindex)"
>
新增一行
</el-button>
<el-button
:disabled="getDisabled(sIndex)"
type="text"
v-if="sItem.length != 1"
@click="handleDel(sItem, pindex)"
>
删除此项
</el-button>
</td>
</tr>
</table>
</div>
</div> </div>
<div class="tab-content"> <div class="tab-content">
<div class="tab-header"> <div class="tab-header">
...@@ -424,11 +493,17 @@ const PACKAGE = { ...@@ -424,11 +493,17 @@ const PACKAGE = {
tips: "每个类目最大支持上传20个产品", tips: "每个类目最大支持上传20个产品",
name: "精品专区", name: "精品专区",
maxNum: 20 maxNum: 20
},
4: {
tips: "最大新增20个",
name: "选装清单",
maxNum: 20
} }
} }
const imgSrc = [ const imgSrc = [
"https://img02.glsx.com.cn/weapp/resource/saas/app/material/case.jpg", "https://img02.glsx.com.cn/weapp/resource/saas/app/material/case.jpg",
"https://img02.glsx.com.cn/weapp/resource/saas/app/material/case-2.jpg" "https://img02.glsx.com.cn/weapp/resource/saas/app/material/case-2.jpg",
"https://img02.glsx.com.cn/weapp/resource/saas/app/material/case-3.png"
] ]
export default { export default {
components: { components: {
...@@ -644,7 +719,12 @@ export default { ...@@ -644,7 +719,12 @@ export default {
this.configInfo = res.materials this.configInfo = res.materials
this.caseInfo = res.cases this.caseInfo = res.cases
this.configInfo.forEach((item) => { this.configInfo.forEach((item) => {
this.$set(item, "subItem", [item.packages, item.films, item.products]) this.$set(item, "subItem", [
item.packages,
item.films,
item.products,
item.optionals
])
}) })
this.caseName = this.caseInfo[0].category this.caseName = this.caseInfo[0].category
this.packageName = this.configInfo[0].carModelName this.packageName = this.configInfo[0].carModelName
...@@ -825,7 +905,8 @@ export default { ...@@ -825,7 +905,8 @@ export default {
let packageList = { let packageList = {
packageInfoList: [], packageInfoList: [],
filmInfoList: [], filmInfoList: [],
productInfoList: [] productInfoList: [],
optionalInfoList: []
} }
/** /**
* infoList[]转为packageInfoList:[],productInfoList:[],filmInfoList:[] * infoList[]转为packageInfoList:[],productInfoList:[],filmInfoList:[]
...@@ -833,7 +914,16 @@ export default { ...@@ -833,7 +914,16 @@ export default {
const keys = Object.keys(packageList) const keys = Object.keys(packageList)
this.configInfo.forEach((i) => { this.configInfo.forEach((i) => {
i.subItem.forEach((sub, k) => { i.subItem.forEach((sub, k) => {
sub.forEach((info) => { console.log(sub)
if (!sub) return
sub.forEach((info, i) => {
if (k == 3) {
if (!this.validateForm(sub, i)) {
throw new Error("请完善信息")
}
console.log(sub, "info.infoList")
return
}
info.infoList.forEach((d, dIndex) => { info.infoList.forEach((d, dIndex) => {
if (k == 0 && !this.isUpStatus) { if (k == 0 && !this.isUpStatus) {
} else { } else {
...@@ -846,8 +936,12 @@ export default { ...@@ -846,8 +936,12 @@ export default {
}) })
packageList[keys[k]].push(...info.infoList) packageList[keys[k]].push(...info.infoList)
}) })
if (k == 3) {
packageList[keys[k]].push(...sub)
}
}) })
}) })
console.log(packageList)
const { merchantId, merchantName, id } = this.$route.query const { merchantId, merchantName, id } = this.$route.query
return { return {
id, id,
...@@ -871,15 +965,24 @@ export default { ...@@ -871,15 +965,24 @@ export default {
}) })
}, },
validateForm(item, i, type = 0) { validateForm(item, i, type = 0) {
const validateList = { const keys = Object.keys(item[i])
let validateList = {
modelDisplayPicurl: "请上传车型展示图", modelDisplayPicurl: "请上传车型展示图",
name: ["请输入选购卡名称", "请输入素材名称"], name: ["请输入选购卡名称", "请输入素材名称"],
description: "请输入选购卡描述", description: "请输入选购卡描述",
detailPicurl: "请上传详图", detailPicurl: "请上传详图",
thumbnailUrl: "请上传缩略图", thumbnailUrl: "请上传缩略图",
materialUrl: "请上传视频或者图片" price: "请输入价格",
materialUrl: "请上传视频或者图片",
warranty: "请输入质保价"
}
if (keys.includes("warranty")) {
validateList = {
name: "请输入名称",
price: "请输入价格",
warranty: "请输入质保价"
}
} }
const keys = Object.keys(item[i])
const { carModelId, carModelName, category } = item[i] const { carModelId, carModelName, category } = item[i]
let obj = { let obj = {
category category
......
<template> <template>
<div class="analyse" v-loading="loading"> <div class="analyse" v-loading="loading">
<el-tabs v-model="activeName" > <el-tabs v-model="activeName">
<el-tab-pane label="质检明细" name="first"></el-tab-pane> <el-tab-pane label="质检明细" name="first"></el-tab-pane>
<el-tab-pane label="攻防明细" name="second"></el-tab-pane> <el-tab-pane label="攻防明细" name="second"></el-tab-pane>
<el-tab-pane label="开口明细" name="third"></el-tab-pane>
</el-tabs> </el-tabs>
<template v-if="activeName === 'first'"> <template v-if="activeName === 'first'">
<d2-search <d2-search
...@@ -65,7 +66,7 @@ ...@@ -65,7 +66,7 @@
</el-radio-group> </el-radio-group>
</div> </div>
<d2-table <d2-table
class="table-wrap" class="table-wrap"
ref="analyseTable" ref="analyseTable"
:search-form="searchFormSearch" :search-form="searchFormSearch"
:table-params="tableParams" :table-params="tableParams"
...@@ -117,15 +118,47 @@ ...@@ -117,15 +118,47 @@
</template> </template>
</d2-table> </d2-table>
</template> </template>
<template v-else> <template v-else-if="activeName === 'second'">
<attack-detail :detailObj="detailObj" /> <attack-detail :detailObj="detailObj" />
</template> </template>
<template v-else>
<d2-table
class="table-wrap"
ref="analyseTable"
:table-params="openTableParams"
:hasPage="false"
:table-data="analyseOpen"
noDataText="暂无开口明细"
:noDataImg="noDataImg"
height="100%"
>
<div slot="mentionedTime" class="open-time" slot-scope="scope">
{{ scope.scope.mentionedTime }}
<img src="@/assets/open-time.png" />
</div>
<template slot="mentionedContext" slot-scope="scope">
<el-tooltip
v-if="scope.scope.mentionedContext"
effect="light"
placement="top"
>
<div slot="content">{{ scope.scope.mentionedContext }}</div>
<div class="one-line">{{ scope.scope.mentionedContext }}</div>
</el-tooltip>
<div v-else>--</div>
</template>
</d2-table>
</template>
</div> </div>
</template> </template>
<script> <script>
import ElInputRange from "../el-input-range" import ElInputRange from "../el-input-range"
import { Util, deepClone } from "@/common/util" import { Util, deepClone } from "@/common/util"
import { conversationCheckList, getPointCategory } from "@api/resident" import {
conversationCheckList,
getPointCategory,
findAxbByBatchId
} from "@api/resident"
import noDataImg from "@/assets/empty-2.png" import noDataImg from "@/assets/empty-2.png"
import AttackDetail from "./attackDetail" import AttackDetail from "./attackDetail"
export default { export default {
...@@ -144,6 +177,7 @@ export default { ...@@ -144,6 +177,7 @@ export default {
activeName: "first", activeName: "first",
noDataImg, noDataImg,
analyseList: [], analyseList: [],
analyseOpen: [],
spanArr1: [], spanArr1: [],
spanIndex1: 0, spanIndex1: 0,
searchForm: { searchForm: {
...@@ -212,6 +246,25 @@ export default { ...@@ -212,6 +246,25 @@ export default {
} }
] ]
}, },
openTableParams: {
tableOption: false,
tableColumns: [
{
label: "开口时间",
prop: "mentionedTime",
addHtml: "mentionedTime"
},
{
label: "开口类型",
prop: "mentionedType"
},
{
label: "开口内容",
prop: "mentionedContext",
addHtml: "mentionedContext"
}
]
},
baseData: { baseData: {
firstClassifyList: [], firstClassifyList: [],
secondClassifyList: [] secondClassifyList: []
...@@ -228,8 +281,14 @@ export default { ...@@ -228,8 +281,14 @@ export default {
this.$refs.analyseTable.tableHeightValues = "100%" this.$refs.analyseTable.tableHeightValues = "100%"
// this.getPointCategory() // this.getPointCategory()
this.getList() this.getList()
this.findAxbByBatchId()
}, },
methods: { methods: {
findAxbByBatchId() {
findAxbByBatchId({ batchId: this.detailObj.id }).then((res) => {
this.analyseOpen = res || []
})
},
async getList() { async getList() {
this.loading = true this.loading = true
try { try {
...@@ -398,8 +457,8 @@ export default { ...@@ -398,8 +457,8 @@ export default {
font-weight: 600; font-weight: 600;
} }
} }
.table-wrap{ .table-wrap {
height:calc(100% - 150px); height: calc(100% - 150px);
// overflow-y: auto; // overflow-y: auto;
} }
.up-btns { .up-btns {
...@@ -435,4 +494,16 @@ export default { ...@@ -435,4 +494,16 @@ export default {
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
} }
</style>
\ No newline at end of file \ No newline at end of file
.open-time {
img {
width: 16px;
height: 16px;
vertical-align: middle;
}
}
.one-line {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
</style>
...@@ -39,6 +39,14 @@ ...@@ -39,6 +39,14 @@
</div> </div>
</div> </div>
<div class="d2-container-content"> <div class="d2-container-content">
<div class="view-panel">
<div class="view-item" v-for="(item, index) in viewList" :key="index">
<div class="view-item-label">{{ item.label }}</div>
<div class="view-item-value" :style="{ color: item.color }">
{{ staffStatic[item.value] || "-" }}
</div>
</div>
</div>
<div class="d2-container-title"> <div class="d2-container-title">
质检管理 质检管理
<div class="btns"> <div class="btns">
...@@ -164,7 +172,11 @@ import ElInputRange from "../el-input-range" ...@@ -164,7 +172,11 @@ import ElInputRange from "../el-input-range"
import { listShop4sByRef } from "@api/merchant" import { listShop4sByRef } from "@api/merchant"
import { getList } from "@api/serviceManage" import { getList } from "@api/serviceManage"
import { getReclistWithPage, exportReclistList } from "@api/resident" import {
getReclistWithPage,
exportReclistList,
receptionStaffStatic
} from "@api/resident"
import VoiceDialog from "./VoiceDialog" import VoiceDialog from "./VoiceDialog"
import dayjs from "dayjs" import dayjs from "dayjs"
export default { export default {
...@@ -174,6 +186,58 @@ export default { ...@@ -174,6 +186,58 @@ export default {
}, },
data() { data() {
return { return {
viewList: [
{
label: "接待数",
color: "#185EFE",
value: "totalVisits"
},
{
label: "成交数",
color: "#27CD5A",
value: "successfulConversions"
},
{
label: "转化率",
color: "#F47F13",
value: "conversionRate"
},
{
label: "转化率(非企业)",
color: "#F47F13",
value: "nonCorporateConversionRate"
},
{
label: "转化率(企业)",
color: "#F47F13",
value: "corporateConversionRate"
},
{
label: "安心包开口数",
color: "#185EFE",
value: "mentionedPackages"
},
{
label: "安心包开口率",
color: "#27CD5A",
value: "packageMentionRate"
},
{
label: "安心包成交率",
color: "#F47F13",
value: "packageConversionRate"
},
{
label: "安心包成交率(非企业)",
color: "#F47F13",
value: "nonCorporatePackageConversionRate"
},
{
label: "安心包成交率(企业)",
color: "#F47F13",
value: "corporatePackageConversionRate"
}
],
showFormData: [ showFormData: [
{ {
label: "接待日期", label: "接待日期",
...@@ -267,6 +331,40 @@ export default { ...@@ -267,6 +331,40 @@ export default {
prop: "num", prop: "num",
width: "50px" width: "50px"
}, },
{ label: "成交数", name: "successfulConversions", width: "80px" },
{
label: "转化率",
name: "conversionRate",
width: "80px"
},
{
label: "转化率(非企业)",
name: "nonCorporateConversionRate",
width: "120px"
},
{
label: "转化率(企业)",
name: "corporateConversionRate",
width: "120px"
},
{ label: "安心包开口数", name: "mentionedPackages", width: "120px" },
{ label: "安心包开口率", name: "packageMentionRate", width: "120px" },
{
label: "安心包成交率",
name: "packageConversionRate",
width: "120px"
},
{
label: "安心包成交率(非企业)",
name: "nonCorporatePackageConversionRate",
width: "160px"
},
{
label: "安心包成交率(企业)",
name: "corporatePackageConversionRate",
width: "150px"
},
{ {
label: "接待日期", label: "接待日期",
prop: "searchdate", prop: "searchdate",
...@@ -470,6 +568,7 @@ export default { ...@@ -470,6 +568,7 @@ export default {
} }
] ]
}, },
staffStatic: {},
voiceVisible: false, voiceVisible: false,
spanArr1: [], spanArr1: [],
spanIndex1: 0, spanIndex1: 0,
...@@ -488,6 +587,7 @@ export default { ...@@ -488,6 +587,7 @@ export default {
this.getOptionsList() this.getOptionsList()
this.getServiceStore() this.getServiceStore()
this.getSaasList() this.getSaasList()
this.receptionStaffStatic()
}, },
methods: { methods: {
getSaasList() { getSaasList() {
...@@ -496,7 +596,7 @@ export default { ...@@ -496,7 +596,7 @@ export default {
currentPage: 1 currentPage: 1
}).then((res) => { }).then((res) => {
this.baseData.parkServiceList = res.list this.baseData.parkServiceList = res.list
this.getOptionsList(true,'parkServiceList') this.getOptionsList(true, "parkServiceList")
}) })
}, },
getServiceStore(merchantId) { getServiceStore(merchantId) {
...@@ -504,7 +604,12 @@ export default { ...@@ -504,7 +604,12 @@ export default {
yqMerchantId: merchantId yqMerchantId: merchantId
}).then((res) => { }).then((res) => {
this.baseData.storeIdList = res || [] this.baseData.storeIdList = res || []
this.getOptionsList(true,'storeIdList') this.getOptionsList(true, "storeIdList")
})
},
receptionStaffStatic() {
receptionStaffStatic(this.searchFormSearch).then((res) => {
this.staffStatic = res
}) })
}, },
recepDetail(row) { recepDetail(row) {
...@@ -579,10 +684,10 @@ export default { ...@@ -579,10 +684,10 @@ export default {
resolve() resolve()
}) })
}, },
getOptionsList(isAll,optionsName) { getOptionsList(isAll, optionsName) {
this.showFormData.forEach((item, index) => { this.showFormData.forEach((item, index) => {
if (item.type === "select") { if (item.type === "select") {
if (isAll&&item.optionsName==optionsName) { if (isAll && item.optionsName == optionsName) {
if ( if (
this.baseData[item.optionsName]?.length && this.baseData[item.optionsName]?.length &&
this.baseData[item.optionsName][0][ this.baseData[item.optionsName][0][
...@@ -603,7 +708,6 @@ export default { ...@@ -603,7 +708,6 @@ export default {
) )
} }
}) })
}, },
handleSearch() { handleSearch() {
if ( if (
...@@ -618,6 +722,7 @@ export default { ...@@ -618,6 +722,7 @@ export default {
} }
this.$refs.qualityTable.page.currentPage = 1 this.$refs.qualityTable.page.currentPage = 1
this.getTableList() this.getTableList()
this.receptionStaffStatic()
}, },
handleReset() { handleReset() {
this.searchForm = this.$options.data.call(this).searchForm this.searchForm = this.$options.data.call(this).searchForm
...@@ -788,6 +893,26 @@ export default { ...@@ -788,6 +893,26 @@ export default {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100%; height: 100%;
.view-panel {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 16px 12px;
margin-bottom: 20px;
.view-item {
padding: 16px 20px;
background: #f8faff;
border-radius: 5px;
&-label {
font-size: 14px;
color: #333333;
}
&-value {
line-height: 36px;
font-size: 24px;
font-weight: 700;
}
}
}
::v-deep.d2-container-full { ::v-deep.d2-container-full {
left: 16px !important; left: 16px !important;
right: 0 !important; right: 0 !important;
......
...@@ -97,10 +97,7 @@ ...@@ -97,10 +97,7 @@
</template> </template>
<template v-else>-</template> <template v-else>-</template>
</div> </div>
<div <div slot="estimatedResult" slot-scope="scope">
slot="estimatedResult"
slot-scope="scope"
>
<div <div
v-if="scope.scope.bussinessType != 2" v-if="scope.scope.bussinessType != 2"
:class="['tag', setTagColor(scope.scope.estimatedResult)]" :class="['tag', setTagColor(scope.scope.estimatedResult)]"
...@@ -264,13 +261,27 @@ export default { ...@@ -264,13 +261,27 @@ export default {
addHtml: "durationHtml" addHtml: "durationHtml"
}, },
{ {
label: "安心包是否开口",
prop: "axbOpenFlag",
formatter(row) {
return row.axbOpenFlag ? "是" : "否"
}
},
{
label: "安心包是否成交",
prop: "isFinishFlag",
formatter(row) {
return row.finishFlag ? "是" : "否"
}
},
{
label: "开始接待时间", label: "开始接待时间",
prop: "startTime" prop: "startTime"
}, },
{ {
label: "结束接待时间", label: "结束接待时间",
prop: "endTime" prop: "endTime"
} }
] ]
}, },
baseData: { baseData: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!