Commit dba082a3 by 王志慧

Merge branch 'SAAS+V4.37.0' of http://192.168.3.233:8090/saas/scrm-micro-quality into SAAS+V4.37.0

2 parents 8dd54a5a 2a516883
...@@ -72,6 +72,12 @@ ...@@ -72,6 +72,12 @@
<span v-else>{{ scope.scope.serviceList.join('') }}</span> <span v-else>{{ scope.scope.serviceList.join('') }}</span>
</template> </template>
</div> </div>
<div slot="abnormalProportionHtml" slot-scope="scope">
<template v-if="scope.scope.abnormalProportion">
{{ scope.scope.abnormalProportion + '%' }}
</template>
<template v-else>统计中</template>
</div>
<div slot="scoreHtml" slot-scope="scope"> <div slot="scoreHtml" slot-scope="scope">
<template v-if="scope.scope.score || scope.scope.score === 0"> <template v-if="scope.scope.score || scope.scope.score === 0">
{{ scope.scope.score }} {{ scope.scope.score }}
...@@ -266,7 +272,8 @@ export default { ...@@ -266,7 +272,8 @@ export default {
}, },
{ {
label: '当日到店量/人', label: '当日到店量/人',
prop: 'toStoreCount', // prop: 'toStoreCount',
prop: 'enterReceptionBatch',
width: '150px', width: '150px',
renderHeader: createElement => { renderHeader: createElement => {
return createElement('div', { style: 'margin-left:-10px' }, [ return createElement('div', { style: 'margin-left:-10px' }, [
...@@ -288,6 +295,7 @@ export default { ...@@ -288,6 +295,7 @@ export default {
{ {
label: '异常占比', label: '异常占比',
prop: 'abnormalProportion', prop: 'abnormalProportion',
addHtml: 'abnormalProportionHtml',
width: '150px', width: '150px',
renderHeader: createElement => { renderHeader: createElement => {
return createElement('div', { style: 'margin-left:-10px' }, [ return createElement('div', { style: 'margin-left:-10px' }, [
...@@ -366,7 +374,8 @@ export default { ...@@ -366,7 +374,8 @@ export default {
let searchdate = Util.dateFormate(val, 'YYYY-MM-DD') let searchdate = Util.dateFormate(val, 'YYYY-MM-DD')
this.$apis.quality this.$apis.quality
.statisticsEmployeeBadge({ .statisticsEmployeeBadge({
searchdate searchdate,
serviceMerchantNo: this.$globalState.session.merchantId
}) })
.then(res => { .then(res => {
this.statistics = res this.statistics = res
...@@ -466,7 +475,7 @@ export default { ...@@ -466,7 +475,7 @@ export default {
} }
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.quality-control { .quality-control {
.header { .header {
display: flex; display: flex;
...@@ -475,6 +484,7 @@ export default { ...@@ -475,6 +484,7 @@ export default {
padding: 16px 20px; padding: 16px 20px;
box-sizing: border-box; box-sizing: border-box;
border-bottom: 16px solid #f0f1f7; border-bottom: 16px solid #f0f1f7;
.item { .item {
width: 274px; width: 274px;
height: 104px; height: 104px;
...@@ -485,21 +495,26 @@ export default { ...@@ -485,21 +495,26 @@ export default {
margin-right: 16px; margin-right: 16px;
background: #f7f9fa; background: #f7f9fa;
border-radius: 4px; border-radius: 4px;
.icon { .icon {
width: 40px; width: 40px;
height: 40px; height: 40px;
margin-right: 20px; margin-right: 20px;
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
} }
.info { .info {
font-size: 14px; font-size: 14px;
color: #333333; color: #333333;
.time { .time {
color: #333333; color: #333333;
margin-top: 12px; margin-top: 12px;
.fw { .fw {
font-weight: 700; font-weight: 700;
font-size: 26px; font-size: 26px;
...@@ -507,16 +522,19 @@ export default { ...@@ -507,16 +522,19 @@ export default {
} }
} }
} }
.mark { .mark {
width: 16px; width: 16px;
height: 16px; height: 16px;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
} }
img { img {
width: 100%; width: 100%;
} }
} }
.el-range-input { .el-range-input {
appearance: none; appearance: none;
border: none; border: none;
...@@ -530,10 +548,11 @@ export default { ...@@ -530,10 +548,11 @@ export default {
font-size: 14px; font-size: 14px;
color: #606266; color: #606266;
} }
.more-info { .more-info {
white-space: nowrap; white-space: nowrap;
color: #5850ff; color: #5850ff;
cursor: pointer; cursor: pointer;
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -36,18 +36,35 @@ ...@@ -36,18 +36,35 @@
</div> </div>
</div> </div>
<div class="content"> <div class="content">
<GLCombiForm ref="showSearch" class="show-search" labelWidth="110px" :formObj="searchForm" :form-data="showFormData" @handleOk="handleSearch" @handleRest="handleReset"> <GLCombiForm ref="showSearch" class="show-search" labelWidth="110px" :formObj="searchForm"
:form-data="showFormData" @handleOk="handleSearch" @handleRest="handleReset">
<template slot="score"> <template slot="score">
<el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.qualityTestScore"></el-input-range> <el-input-range start-placeholder="请输入" end-placeholder="请输入"
:displayValue="searchForm.qualityTestScore"></el-input-range>
</template> </template>
</GLCombiForm> </GLCombiForm>
<GLTable ref="recepDetail" :get-list-api="getListApi" :hasNum="false" :search-form="searchFormSearch" :table-params="tableParams" :before-search-fn="beforeSearchFn" @setTableFinishFun="setTableFinishFun" :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">
<div slot="durationHtml" slot-scope="scope">
<template v-if="scope.scope.duration">
{{ (parseInt(scope.scope.duration) / 60000).toFixed(1) }}
</template>
<template v-else>--</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>
<template slot="auth-button" slot-scope="scope"> <template slot="auth-button" slot-scope="scope">
<el-button type="text" @click="qualitDetail(scope.scope)">质检详情</el-button> <el-button type="text" @click="qualitDetail(scope.scope)">质检详情</el-button>
</template> </template>
</GLTable> </GLTable>
</div> </div>
<quality-detail :isQualityVisible="isQualityVisible" v-if="isQualityVisible" :detailObj="detailObj" @closeDialog="closeDialog"></quality-detail> <quality-detail :isQualityVisible="isQualityVisible" v-if="isQualityVisible" :detailObj="detailObj"
@closeDialog="closeDialog"></quality-detail>
</div> </div>
</template> </template>
<script> <script>
...@@ -74,7 +91,7 @@ export default { ...@@ -74,7 +91,7 @@ export default {
name: 'recepTime', name: 'recepTime',
// addHtml:'recepTime', // addHtml:'recepTime',
isClear: true, isClear: true,
pickerOptions: 'rangePickerOptions' pickerOptions: 'afterRangePickerOptions'
}, },
{ {
label: '质检评分', label: '质检评分',
...@@ -110,7 +127,8 @@ export default { ...@@ -110,7 +127,8 @@ export default {
}, },
{ {
label: '录音时长/分钟', label: '录音时长/分钟',
prop: 'duration' prop: 'duration',
addHtml: 'durationHtml'
}, },
{ {
label: '预计营销结果', label: '预计营销结果',
...@@ -118,7 +136,8 @@ export default { ...@@ -118,7 +136,8 @@ export default {
}, },
{ {
label: '话术质检评分/分', label: '话术质检评分/分',
prop: 'score' prop: 'score',
addHtml: 'scoreHtml'
} }
] ]
}, },
...@@ -217,9 +236,11 @@ export default { ...@@ -217,9 +236,11 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.recep-wrap { .recep-wrap {
margin: 0 16px; margin: 0 16px;
.header { .header {
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
h2 { h2 {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
...@@ -231,15 +252,18 @@ export default { ...@@ -231,15 +252,18 @@ export default {
padding-left: 20px; padding-left: 20px;
box-sizing: border-box; box-sizing: border-box;
} }
.info-wrap { .info-wrap {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
padding: 32px 20px 12px 20px; padding: 32px 20px 12px 20px;
.info-item { .info-item {
width: 50%; width: 50%;
margin-bottom: 20px; margin-bottom: 20px;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
label { label {
width: 154px; width: 154px;
text-align: right; text-align: right;
...@@ -247,6 +271,7 @@ export default { ...@@ -247,6 +271,7 @@ export default {
color: #666666; color: #666666;
display: inline-block; display: inline-block;
} }
span { span {
font-size: 14px; font-size: 14px;
color: #1d1d1d; color: #1d1d1d;
...@@ -263,6 +288,7 @@ export default { ...@@ -263,6 +288,7 @@ export default {
} }
} }
} }
.content { .content {
background: #ffffff; background: #ffffff;
padding: 20px; padding: 20px;
...@@ -272,4 +298,4 @@ export default { ...@@ -272,4 +298,4 @@ export default {
height: auto; height: auto;
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!