Commit 8cc457fc by 张立顺

fix 回显bug修复

1 parent 517fabae
...@@ -17,24 +17,30 @@ ...@@ -17,24 +17,30 @@
</div> </div>
</div> </div>
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" class="show-search" labelWidth="110px" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"> <GLCombiForm ref="showSearch" class="show-search" labelWidth="110px" :formObj="searchForm"
:formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset">
<div slot="searchdate"> <div slot="searchdate">
<el-date-picker v-model="searchForm.searchdate" type="date" placeholder="选择日期" :picker-options="rangePickerOptions"></el-date-picker> <el-date-picker v-model="searchForm.searchdate" type="date" placeholder="选择日期"
:picker-options="rangePickerOptions"></el-date-picker>
</div> </div>
<!-- 质检评分 --> <!-- 质检评分 -->
<div slot="score"> <div 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>
</div> </div>
<!-- 当日到店量 --> <!-- 当日到店量 -->
<div slot="toStoreCount"> <div slot="toStoreCount">
<el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.toStoreCount"></el-input-range> <el-input-range start-placeholder="请输入" end-placeholder="请输入"
:displayValue="searchForm.toStoreCount"></el-input-range>
</div> </div>
<div slot="AbnormalProportion"> <div slot="AbnormalProportion">
<el-input-range start-placeholder="请输入" end-placeholder="请输入" :displayValue="searchForm.AbnormalProportion"></el-input-range> <el-input-range start-placeholder="请输入" end-placeholder="请输入"
:displayValue="searchForm.AbnormalProportion"></el-input-range>
</div> </div>
</GLCombiForm> </GLCombiForm>
<GLTable ref="qualityTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams" :beforeSearchFn="beforeSearchFn" :pageConf="pageConf" :noDataImg="url" @setTableFinishFun="setTableFinishFun"> <GLTable ref="qualityTable" :getListApi="getListApi" :searchForm="searchFormSearch" :tableParams="tableParams"
: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>
...@@ -52,7 +58,7 @@ ...@@ -52,7 +58,7 @@
</div> </div>
<div slot="seconds" slot-scope="scope"> <div slot="seconds" slot-scope="scope">
<template v-if="scope.scope.seconds"> <template v-if="scope.scope.seconds">
{{(scope.scope.seconds/60).toFixed(1)}} {{ (scope.scope.seconds / 60).toFixed(1) }}
</template> </template>
<template v-else>--</template> <template v-else>--</template>
</div> </div>
...@@ -71,6 +77,12 @@ ...@@ -71,6 +77,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 }}
...@@ -78,7 +90,8 @@ ...@@ -78,7 +90,8 @@
<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)" :disabled="!scope.scope.score && 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> </div>
</GLTable> </GLTable>
</div> </div>
...@@ -290,6 +303,7 @@ export default { ...@@ -290,6 +303,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' }, [
...@@ -355,8 +369,8 @@ export default { ...@@ -355,8 +369,8 @@ export default {
getServiceStore() { getServiceStore() {
this.$apis.quality this.$apis.quality
.listShop4sByRef({ .listShop4sByRef({
currentPage:1, currentPage: 1,
pageSize:99999, pageSize: 99999,
partnerMerchantId: this.$globalState.session.merchantId partnerMerchantId: this.$globalState.session.merchantId
}) })
.then(res => { .then(res => {
...@@ -477,6 +491,7 @@ export default { ...@@ -477,6 +491,7 @@ export default {
background: #ffffff; background: #ffffff;
padding: 16px 20px; padding: 16px 20px;
border-bottom: 16px solid #f0f1f7; border-bottom: 16px solid #f0f1f7;
.item { .item {
width: 274px; width: 274px;
height: 104px; height: 104px;
...@@ -487,21 +502,26 @@ export default { ...@@ -487,21 +502,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;
...@@ -509,16 +529,19 @@ export default { ...@@ -509,16 +529,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;
...@@ -532,6 +555,7 @@ export default { ...@@ -532,6 +555,7 @@ 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;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!