Commit 8cc457fc by 张立顺

fix 回显bug修复

1 parent 517fabae
......@@ -17,24 +17,30 @@
</div>
</div>
<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">
<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 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 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 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>
</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">
<template v-if="scope.scope.storeList && scope.scope.storeList.length > 1">
<span>{{ scope.scope.storeList.slice(0, 1).join('') }}</span>
......@@ -52,7 +58,7 @@
</div>
<div slot="seconds" slot-scope="scope">
<template v-if="scope.scope.seconds">
{{(scope.scope.seconds/60).toFixed(1)}}
{{ (scope.scope.seconds / 60).toFixed(1) }}
</template>
<template v-else>--</template>
</div>
......@@ -71,6 +77,12 @@
<span v-else>{{ scope.scope.serviceList.join('') }}</span>
</template>
</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">
<template v-if="scope.scope.score || scope.scope.score === 0">
{{ scope.scope.score }}
......@@ -78,7 +90,8 @@
<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 && 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>
......@@ -290,6 +303,7 @@ export default {
{
label: '异常占比',
prop: 'abnormalProportion',
addHtml: "abnormalProportionHtml",
width: '150px',
renderHeader: createElement => {
return createElement('div', { style: 'margin-left:-10px' }, [
......@@ -355,8 +369,8 @@ export default {
getServiceStore() {
this.$apis.quality
.listShop4sByRef({
currentPage:1,
pageSize:99999,
currentPage: 1,
pageSize: 99999,
partnerMerchantId: this.$globalState.session.merchantId
})
.then(res => {
......@@ -477,6 +491,7 @@ export default {
background: #ffffff;
padding: 16px 20px;
border-bottom: 16px solid #f0f1f7;
.item {
width: 274px;
height: 104px;
......@@ -487,21 +502,26 @@ export default {
margin-right: 16px;
background: #f7f9fa;
border-radius: 4px;
.icon {
width: 40px;
height: 40px;
margin-right: 20px;
img {
width: 100%;
height: 100%;
}
}
.info {
font-size: 14px;
color: #333333;
.time {
color: #333333;
margin-top: 12px;
.fw {
font-weight: 700;
font-size: 26px;
......@@ -509,16 +529,19 @@ export default {
}
}
}
.mark {
width: 16px;
height: 16px;
display: inline-block;
vertical-align: middle;
}
img {
width: 100%;
}
}
.el-range-input {
appearance: none;
border: none;
......@@ -532,6 +555,7 @@ export default {
font-size: 14px;
color: #606266;
}
.more-info {
white-space: nowrap;
color: #5850ff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!