Commit 2a516883 by 前端

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

2 parents 3ee750f4 dd679619
...@@ -17,30 +17,24 @@ ...@@ -17,30 +17,24 @@
</div> </div>
</div> </div>
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" class="show-search" labelWidth="110px" :formObj="searchForm" <GLCombiForm ref="showSearch" class="show-search" labelWidth="110px" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset">
:formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset">
<div slot="searchdate"> <div slot="searchdate">
<el-date-picker v-model="searchForm.searchdate" type="date" placeholder="选择日期" <el-date-picker v-model="searchForm.searchdate" type="date" placeholder="选择日期" :picker-options="rangePickerOptions"></el-date-picker>
:picker-options="rangePickerOptions"></el-date-picker>
</div> </div>
<!-- 质检评分 --> <!-- 质检评分 -->
<div slot="score"> <div slot="score">
<el-input-range start-placeholder="请输入" end-placeholder="请输入" <el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.qualityTestScore"></el-input-range>
:displayValue="searchForm.qualityTestScore"></el-input-range>
</div> </div>
<!-- 当日到店量 --> <!-- 当日到店量 -->
<div slot="toStoreCount"> <div slot="toStoreCount">
<el-input-range start-placeholder="请输入" end-placeholder="请输入" <el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.toStoreCount"></el-input-range>
:displayValue="searchForm.toStoreCount"></el-input-range>
</div> </div>
<div slot="AbnormalProportion"> <div slot="AbnormalProportion">
<el-input-range start-placeholder="请输入" end-placeholder="请输入" <el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.AbnormalProportion"></el-input-range>
:displayValue="searchForm.AbnormalProportion"></el-input-range>
</div> </div>
</GLCombiForm> </GLCombiForm>
<GLTable ref="qualityTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" <GLTable ref="qualityTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="pageConf" :noDataImg="url" @setTableFinishFun="setTableFinishFun">
:beforeSearchFn="beforeSearchFn" :pageConf="pageConf" :noDataImg="url" @setTableFinishFun="setTableFinishFun">
<div slot="store" slot-scope="scope"> <div slot="store" slot-scope="scope">
<template v-if="scope.scope.storeList && scope.scope.storeList.length > 1"> <template v-if="scope.scope.storeList && scope.scope.storeList.length > 1">
<span>{{ scope.scope.storeList.slice(0, 1).join('') }}</span> <span>{{ scope.scope.storeList.slice(0, 1).join('') }}</span>
...@@ -90,8 +84,7 @@ ...@@ -90,8 +84,7 @@
<template v-else>统计中</template> <template v-else>统计中</template>
</div> </div>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="recepDetail(scope.scope)" <el-button type="text" @click="recepDetail(scope.scope)" :disabled="!scope.scope.score && scope.scope.score != 0">接待明细</el-button>
:disabled="!scope.scope.score && scope.scope.score != 0">接待明细</el-button>
</div> </div>
</GLTable> </GLTable>
</div> </div>
...@@ -132,16 +125,13 @@ export default { ...@@ -132,16 +125,13 @@ export default {
} }
}, },
{ {
icon: "score", icon: 'score',
text: "话术平均质检评分", text: '话术平均质检评分',
formatter: (data) => { formatter: data => {
let strHtml = 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>`
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 return strHtml
}, },
tooltip: "统计当日所有员工的质检平均分,分值越高整体表现越好" tooltip: '统计当日所有员工的质检平均分,分值越高整体表现越好'
} }
], ],
statistics: { statistics: {
...@@ -304,7 +294,7 @@ export default { ...@@ -304,7 +294,7 @@ export default {
{ {
label: '异常占比', label: '异常占比',
prop: 'abnormalProportion', prop: 'abnormalProportion',
addHtml: "abnormalProportionHtml", addHtml: 'abnormalProportionHtml',
width: '150px', width: '150px',
renderHeader: createElement => { renderHeader: createElement => {
return createElement('div', { style: 'margin-left:-10px' }, [ return createElement('div', { style: 'margin-left:-10px' }, [
...@@ -383,7 +373,8 @@ export default { ...@@ -383,7 +373,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
...@@ -483,7 +474,7 @@ export default { ...@@ -483,7 +474,7 @@ export default {
} }
} }
</script> </script>
<style scoped lang='scss'> <style scoped lang="scss">
.quality-control { .quality-control {
.header { .header {
height: 136px; height: 136px;
......
...@@ -91,7 +91,7 @@ export default { ...@@ -91,7 +91,7 @@ export default {
name: 'recepTime', name: 'recepTime',
// addHtml:'recepTime', // addHtml:'recepTime',
isClear: true, isClear: true,
pickerOptions: 'rangePickerOptions' pickerOptions: 'afterRangePickerOptions'
}, },
{ {
label: '质检评分', label: '质检评分',
...@@ -114,8 +114,8 @@ export default { ...@@ -114,8 +114,8 @@ export default {
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: "接待批次", label: '接待批次',
prop: "key" prop: 'key'
}, },
{ {
label: '开始接待时间', label: '开始接待时间',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!