Commit 517fabae by 王志慧

Merge branch 'SAAS+V4.37.0' into 'SAAS+V4.37.0_0326'

Saas+v4.37.0

See merge request !4
2 parents de06ccdc 81874781
......@@ -35,10 +35,12 @@ const conversationPage = params => {
sign: true
})
}
/** 获取园区店列表 - 园区店 */
const listShop4sByRef = params => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.scenemerchantref.listShop4sByRef`
params.routerMethod = `dj.api.scenemerchantref.queryShopRefByPartnerShopPage`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
......
......@@ -100,3 +100,7 @@ html {
.el-tooltip__popper[x-placement^='top'] .popper__arrow:after {
border-bottom-color: #e4e7ed !important;
}
.el-popover{
max-height:300px;
overflow: scroll;
}
\ No newline at end of file
......@@ -2,6 +2,7 @@
<div class="dialogue">
<div class="record">
<audio id="audio1">
<!-- <source src="https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/file.mp3" type="audio/mpeg" /> -->
<source :src="detailObj.fileUrl" type="audio/mpeg" />
<source :src="detailObj.fileUrl" type="audio/ogg" />
您的浏览器不支持 audio 标签。
......@@ -25,8 +26,8 @@
<div class="record-info">
<div class="dialog">
<template v-for="item in dialogList">
<div class="dialog-detail" :key="item.id">
<div class="name">{{ item.role }}</div>
<div :class="{ 'dialog-detail': true, 'nth-child': item.role % 2 === 1 }" :key="item.id">
<div class="name">角色{{ (item.role % 2) + 1 }}</div>
<div class="dig-content" @click="currentDialog(item)">
{{ item.content }}
</div>
......@@ -135,7 +136,6 @@ export default {
pageSize: 9999
})
.then(res => {
console.log(res)
this.dialogList = res.list
})
}
......@@ -250,7 +250,7 @@ export default {
text-align: left;
}
}
:nth-child(2n) {
.nth-child {
text-align: right;
.dig-content {
display: inline-block;
......
......@@ -17,10 +17,9 @@
<el-input
v-model="userInput[0]"
:placeholder="startPlaceholder"
@blur="handleBlur"
@blur="handleBlur(0)"
@input="handleStartInput"
class="el-range-input"
@keydown="handleKeydown"
></el-input>
<span class="el-range-separator">至</span>
<el-input
......@@ -28,9 +27,8 @@
:placeholder="endPlaceholder"
@input="handleEndInput"
@focus="handleFocus"
@blur="handleBlur"
@blur="handleBlur(1)"
class="el-range-input"
@keydown="handleKeydown"
></el-input>
<i
......@@ -67,24 +65,25 @@ export default {
},
methods: {
handleStartInput(event) {
console.log(event)
if (this.userInput) {
this.userInput = [event, this.userInput[1]]
} else {
this.userInput = [event, null]
let isNumber = /^\d+$/.test(event)
if (!isNumber) {
event = null
}
if (event > 100) event = 100
this.userInput[0] = event
},
handleEndInput(event) {
if (this.userInput) {
this.userInput = [this.userInput[0], event]
} else {
this.userInput = [null, event]
let isNumber = /^\d+$/.test(event)
if (!isNumber) {
event = null
}
if (event > 100) event = 100
this.userInput[1] = event
},
handleClickIcon(event) {
this.userInput[0]=null
this.userInput[1]=null
this.userInput[0] = null
this.userInput[1] = null
},
valueIsEmpty() {
const val = this.userInput
......@@ -113,16 +112,16 @@ export default {
this.$emit("focus", this)
}
},
handleBlur() {
handleBlur(index) {
this.pickerVisible = false
this.contrastValue()
},
contrastValue() {
let val = this.userInput
if (Array.isArray(val)) {
if (val[0] > val[1]) {
val[1] =null
console.log(val)
val[1] = null
}
}
}
......
......@@ -6,7 +6,7 @@
<img :src="require(`@/assets/${i.icon}.png`)" />
</div>
<div class="info">
<div style="position: relative">
<div>
{{ i.text }}
<el-tooltip effect="dark" :content="i.tooltip" placement="top" v-if="i.tooltip">
<img class="mark" src="@/assets/mark.png" />
......@@ -34,7 +34,7 @@
</div>
</GLCombiForm>
<GLTable ref="qualityTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="pageConf" :noDataImg="url">
<GLTable ref="qualityTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="pageConf" :noDataImg="url" @setTableFinishFun="setTableFinishFun">
<div slot="store" slot-scope="scope">
<template v-if="scope.scope.storeList && scope.scope.storeList.length > 1">
<span>{{ scope.scope.storeList.slice(0, 1).join('') }}</span>
......@@ -50,6 +50,12 @@
<span v-else>{{ scope.scope.storeList.join('') }}</span>
</template>
</div>
<div slot="seconds" slot-scope="scope">
<template v-if="scope.scope.seconds">
{{(scope.scope.seconds/60).toFixed(1)}}
</template>
<template v-else>--</template>
</div>
<div slot="service" slot-scope="scope">
<template v-if="scope.scope.serviceList && scope.scope.serviceList.length > 1">
<span>{{ scope.scope.serviceList.slice(0, 1).join('') }}</span>
......@@ -65,8 +71,14 @@
<span v-else>{{ scope.scope.serviceList.join('') }}</span>
</template>
</div>
<div slot="scoreHtml" slot-scope="scope">
<template v-if="scope.scope.score || scope.scope.score === 0">
{{ scope.scope.score }}
</template>
<template v-else>统计中</template>
</div>
<div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="recepDetail(scope.scope)" :disabled="scope.scope.score==0">接待明细</el-button>
<el-button type="text" @click="recepDetail(scope.scope)" :disabled="!scope.scope.score && scope.scope.score != 0">接待明细</el-button>
</div>
</GLTable>
</div>
......@@ -107,12 +119,16 @@ export default {
}
},
{
icon: 'score',
text: '话术平均质检评分',
formatter: data => {
return `<span style="font-weight:700;font-size:26px;">${data.averagQualityTestScore ? data.averagQualityTestScore : '0'}</span>分`
icon: "score",
text: "话术平均质检评分",
formatter: (data) => {
let strHtml =
data.averageQualityTestScore || data.averageQualityTestScore == 0
? `<span style="font-weight:700;font-size:26px;">${data.averageQualityTestScore}</span>分`
: `<span style="font-weight:700;font-size:22px;">统计中</span>`
return strHtml
},
tooltip: '统计当日所有员工的质检平均分,分值越高整体表现越好'
tooltip: "统计当日所有员工的质检平均分,分值越高整体表现越好"
}
],
statistics: {
......@@ -159,6 +175,7 @@ export default {
{
label: '手机号',
name: 'phoneNumber',
placeholder: '请输入手机号(至少4位)',
type: 'input',
maxlength: '20',
isClear: true
......@@ -193,7 +210,8 @@ export default {
tableColumns: [
{
label: '录音日期',
prop: 'searchdate'
prop: 'searchdate',
width: '120px'
},
{
label: '员工',
......@@ -212,7 +230,7 @@ export default {
},
{
label: '归属服务商',
addHtml: 'service',
// addHtml: 'service',
width: '180px',
prop: 'serviceMerchantNo'
},
......@@ -224,6 +242,7 @@ export default {
{
label: '录音时长/分钟',
prop: 'seconds',
addHtml: 'seconds',
width: '150px'
},
{
......@@ -238,7 +257,7 @@ export default {
{
attrs: {
effect: 'dark',
content: '异常占比 = (预计接待批次 - 当日到店量)/ 预计接待批次数,建议重点关注异常占比超过20%的员工',
content: 'AI对当日提交的营销录音进行分析得出的接待批次',
placement: 'top'
}
},
......@@ -259,7 +278,7 @@ export default {
{
attrs: {
effect: 'dark',
content: '异常占比 = (预计接待批次 - 当日到店量)/ 预计接待批次数,建议重点关注异常占比超过20%的员工',
content: '员工通过日报提报的当日触客数',
placement: 'top'
}
},
......@@ -280,7 +299,7 @@ export default {
{
attrs: {
effect: 'dark',
content: '异常占比 = (预计接待批次 - 当日到店量)/ 预计接待批次数,建议重点关注异常占比超过20%的员工',
content: '异常占比= (预计接待批次 - 当日到店量)/ 预计接待批次数,建议重点关注异常占比超过20%的员工',
placement: 'top'
}
},
......@@ -292,6 +311,7 @@ export default {
{
label: '话术质检评分/分',
prop: 'score',
addHtml: 'scoreHtml',
width: '170px',
renderHeader: createElement => {
return createElement('div', { style: 'margin-left:-10px' }, [
......@@ -301,7 +321,7 @@ export default {
{
attrs: {
effect: 'dark',
content: '异常占比 = (预计接待批次 - 当日到店量)/ 预计接待批次数,建议重点关注异常占比超过20%的员工',
content: 'AI通过分析营销录音对驻店人员当日表现进行整体打分。',
placement: 'top'
}
},
......@@ -325,26 +345,27 @@ export default {
watch: {
'searchForm.searchdate'(newVal) {
this.statisticsEmployeeBadge(newVal)
this.$refs.qualityTable.refreshTable(true, true)
}
},
mounted() {
this.getServiceStore()
this.getServiceStore()
},
methods: {
getServiceStore() {
this.$apis.quality
. listShop4sByRef({
scene: 0
}).then(res => {
this.baseData.storeIdList = res || []
this.getOptionsList()
})
.listShop4sByRef({
currentPage:1,
pageSize:99999,
partnerMerchantId: this.$globalState.session.merchantId
})
.then(res => {
this.baseData.storeIdList = res.list || []
this.getOptionsList()
})
},
statisticsEmployeeBadge(val) {
let searchdate = Util.dateFormate(
val,
"YYYY-MM-DD"
)
let searchdate = Util.dateFormate(val, 'YYYY-MM-DD')
this.$apis.quality
.statisticsEmployeeBadge({
searchdate
......@@ -354,11 +375,11 @@ export default {
})
},
recepDetail(row) {
if (row.score == 0) {
this.$confirm("质检分析中,请耐心等待", '提示', {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning"
if (!row.score && row.score != 0) {
this.$confirm('质检分析中,请耐心等待', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
return
}
......@@ -369,21 +390,27 @@ export default {
}
})
},
toMinutesAndSeconds(hourse) {
const h = Math.floor(hourse / 60)
const m = parseInt(hourse % 60)
toMinutesAndSeconds(time) {
const h = Math.floor(time / 3600)
const m = parseInt((time % 3600) / 60)
return {
h,
m
}
},
setTableFinishFun(data) {
for (let i = 0; i < data.length; i++) {
data[i].serviceMerchantNo = this.$globalState.session.merchantName
}
},
beforeSearchFn() {
return new Promise(resolve => {
this.searchFormSearch = deepClone(this.searchForm)
if (this.searchForm.searchdate) {
this.searchFormSearch.searchdate = Util.dateFormate(this.searchForm.searchdate, 'YYYY-MM-DD')
}
console.log(this.$global)
this.searchFormSearch.serviceMerchantNo = this.$globalState.session.merchantId
if (this.searchFormSearch.qualityTestScore) {
this.searchFormSearch.qualityTestScoreBegin = this.searchFormSearch.qualityTestScore[0]
this.searchFormSearch.qualityTestScoreEnd = this.searchFormSearch.qualityTestScore[1]
......@@ -417,6 +444,9 @@ export default {
})
},
handleSearch() {
if (this.searchForm.phoneNumber && this.searchForm.phoneNumber.length < 4) {
return
}
this.$refs.qualityTable.refreshTable(true, true)
// this.stockMonthReportCount()
},
......@@ -483,10 +513,7 @@ export default {
width: 16px;
height: 16px;
display: inline-block;
position: absolute;
right: 0x;
top: 0;
z-index: 999;
vertical-align: middle;
}
img {
width: 100%;
......@@ -511,13 +538,4 @@ export default {
cursor: pointer;
}
}
.mark {
width: 16px;
height: 16px;
display: inline-block;
position: absolute;
right: 0x;
top: 0;
z-index: 999;
}
</style>
\ No newline at end of file
......@@ -26,7 +26,7 @@
<el-radio-group v-model="searchForm.hitResult">
<el-radio-button label="">全部</el-radio-button>
<el-radio-button label="1">命中</el-radio-button>
<el-radio-button label="2">未命中</el-radio-button>
<el-radio-button label="0">未命中</el-radio-button>
</el-radio-group>
</div>
<GLTable ref="analyseTable" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" :pageConf="pageConf" :noDataImg="url">
......@@ -59,14 +59,14 @@ export default {
{
text: '话术评分',
formatter: data => {
console.log(data)
return `<span style="font-weight:700;font-size:26px;">${data.averageQualityTestScore ? data.score : '0'}</span>分`
console.log(data,11111111111)
return `<span style="font-weight:700;font-size:26px;">${data.score ? data.score : '0'}</span>分`
}
},
{
text: '预计营销结果',
formatter: data => {
return `<span style="font-weight:700;font-size:22px;">${data.estimatedResult ? data.estimatedResult : '--'}</span>`
return `<span style="font-weight:700;font-size:20px;">${data.estimatedResult ? data.estimatedResult : '--'}</span>`
}
},
{
......@@ -172,7 +172,7 @@ export default {
getPointCategory() {
this.classifyMap = new Map()
this.$apis.quality.getPointCategory().then(res => {
console.log(res)
// console.log(res)
this.baseData.firstClassifyList = Object.keys(res)
for (let item in res) {
this.classifyMap.set(item, res[item])
......@@ -218,6 +218,7 @@ export default {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom:20px;
.s-item {
flex: 1;
// min-width: 248px;
......
<!-- 关联活动订单弹窗 -->
<template>
<GLDialog big-title="质检详情" mode="big" :visible.sync="isQualityVisible" class="qualityDailog" width="80%" :close-on-click-modal="false" @onOk="handleClose" @onCancel="handleClose">
<GLDialog big-title="质检详情" mode="big" :visible.sync="isQualityVisible" class="qualityDailog" width="80%" :close-on-click-modal="false" @onOk="handleClose" @onCancel="handleClose" @close="handleClose" >
<div>
<el-tabs v-model="activeName" @tab-click="handleReset">
<el-tab-pane label="质检分析" name="analyse">
......
......@@ -9,11 +9,21 @@
</div>
<div class="info-item flex">
<label>门店:</label>
<span>{{ queryData.storeList && queryData.storeList.join('、') }}</span>
<template v-if="queryData.storeList">
<el-tooltip effect="dark" :content="queryData.storeList.join('、')" placement="top-start">
<span>{{ queryData.storeList.join('、') }}</span>
</el-tooltip>
</template>
<span v-else>-</span>
</div>
<div class="info-item flex">
<label>服务商:</label>
<span>{{ queryData.serviceList && queryData.serviceList.join('、') }}</span>
<template v-if="queryData.serviceList">
<el-tooltip effect="dark" :content="queryData.serviceList.join('、')" placement="top-start">
<span>{{queryData.serviceList.join('、') }}</span>
</el-tooltip>
</template>
<span v-else>-</span>
</div>
<div class="info-item flex">
<label>质检日期:</label>
......@@ -31,7 +41,7 @@
<el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.qualityTestScore"></el-input-range>
</template>
</GLCombiForm>
<GLTable ref="recepDetail" :get-list-api="getListApi" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" :pageConf="pageConf">
<GLTable ref="recepDetail" :get-list-api="getListApi" :hasNum="false" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" :pageConf="pageConf">
<template slot="auth-button" slot-scope="scope">
<el-button type="text" @click="qualitDetail(scope.scope)">质检详情</el-button>
</template>
......@@ -86,6 +96,10 @@ export default {
listName: 'list',
tableOption: true,
tableColumns: [
{
label: "接待批次",
prop: "key"
},
{
label: '开始接待时间',
prop: 'startTime'
......@@ -168,7 +182,7 @@ export default {
this.searchFormSearch.endTime = Util.dateFormate(this.searchFormSearch.recepTime[1], 'YYYY-MM-DD') + ' 23:59:59'
}
if (this.searchFormSearch.estimatedResult) {
if (this.searchFormSearch.estimatedResultId) {
this.searchFormSearch.estimatedResult = this.baseData.estimatedResultList.find(item => item.confId == this.searchFormSearch.estimatedResultId).confLabel
}
......@@ -179,6 +193,11 @@ export default {
resolve()
})
},
setTableFinishFun(data) {
for (let i = 0; i < data.length; i++) {
data[i].key = i + 1
}
},
getOptionsList() {
this.showFormData.forEach((item, index) => {
if (item.type === 'select') {
......@@ -232,6 +251,7 @@ export default {
font-size: 14px;
color: #1d1d1d;
display: inline-block;
cursor: pointer;
max-width: 300px;
overflow: hidden;
/* 防止文本换行 */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!