增加业绩快报中介险种明细接口, 修改详情页面渲染取值

This commit is contained in:
mengxiaolong
2020-07-31 17:26:06 +08:00
parent 2486d624ae
commit a7942dbfc3
2 changed files with 30 additions and 32 deletions

View File

@@ -3,22 +3,22 @@
<div class="all">
<table class="move-table" cellspacing="0" cellpadding="0" border="0">
<tr>
<th>{{this.title | filterTitle}}</th>
<th>{{ this.title | filterTitle }}</th>
<th>当日预收件数</th>
<th>当日预收规模保费万元</th>
<th>当日承保件数</th>
<th>当日承保规模保费万元</th>
<th>当日承保标准保费万元</th>
</tr>
<tr v-for="(item,index) in reportList" :key="index">
<td v-if="item.manageComName != null">{{item.manageComName}}</td>
<td v-else-if="item.riskName !=null">{{item.riskName}}</td>
<td v-else>{{item.sellTypeName}}</td>
<td>{{item.preItems}}</td>
<td>{{item.prePrem}}</td>
<td>{{item.items}}</td>
<td>{{item.prem}}</td>
<td>{{item.standPrem}}</td>
<tr v-for="(item, index) in reportList" :key="index">
<td v-if="item.manageComName != null">{{ item.manageComName }}</td>
<td v-else-if="item.riskName != null">{{ item.riskName }}</td>
<td v-else>{{ item.sellTypeName }}</td>
<td>{{ item.preItems }}</td>
<td>{{ item.prePrem }}</td>
<td>{{ item.items }}</td>
<td>{{ item.prem }}</td>
<td>{{ item.standPrem }}</td>
</tr>
</table>
</div>
@@ -26,19 +26,18 @@
<div class="l">
<table border="0" cellspacing="0" cellpadding="0" class="fixed-l">
<tr>
<th>{{this.title | filterTitle}}</th>
<th>{{ this.title | filterTitle }}</th>
</tr>
<tr v-for="(item,index) in reportList" :key="index">
<td v-if="item.manageComName != null">{{item.manageComName}}</td>
<td v-else-if="item.riskName !=null">{{item.riskName}}</td>
<td v-else>{{item.sellTypeName}}</td>
<tr v-for="(item, index) in reportList" :key="index">
<td v-if="item.manageComName != null">{{ item.manageComName }}</td>
<td v-else-if="item.riskName != null">{{ item.riskName }}</td>
<td v-else>{{ item.sellTypeName }}</td>
</tr>
</table>
</div>
</div>
</template>
<script>
import { List, Tab, Tabs, Tag, Row, Col, Dialog, Sticky } from 'vant'
import { reportList } from '@/api/ebiz/report/report'
@@ -70,17 +69,17 @@ export default {
if (localStorage.title == '团险') {
this.title = '健康险'
} else if (localStorage.title == '银代') {
if(localStorage.name){
if (localStorage.name) {
this.title = localStorage.name
document.title='银保渠道'
document.title = '银保渠道'
return
}else{
this.title = '银保'
} else {
this.title = '银保'
}
} else if (localStorage.title == '个险') {
if (localStorage.name) {
this.title = localStorage.name
document.title='个险渠道'
document.title = '个险渠道'
return
} else {
this.title = '个险'
@@ -92,11 +91,11 @@ export default {
if (item.sellTypeName == null) {
item.sellTypeName = '其他'
}
if (localStorage.name) {
if (item.manageComName == null) {
item.manageComName = '其他'
}
}
// if (localStorage.name) {
// if (item.manageComName == null) {
// item.manageComName = '其他'
// }
// }
})
// 筛选按钮的点击事件
document.title = this.title + '渠道'
@@ -144,7 +143,6 @@ export default {
.fixed-l {
background-color: #ffffff;
width: 100px;
}
.fixed-l th:nth-child(1),
.fixed-l th:nth-child(2),

View File

@@ -54,7 +54,7 @@
<van-button class="bottom0 left0" type="danger" @click="goDetail('1')" v-no-more-click="1000" size="large">银行明细</van-button>
</div>
<div class="flex justify-content-s bottom-btn bg-white" v-show="this.active == '1'">
<van-button class="bottom0 left0" type="danger" size="large" v-no-more-click="1000">险种明细</van-button>
<van-button class="bottom0 left0" type="danger" size="large" @click="goDetail('2')" v-no-more-click="1000">险种明细</van-button>
<van-button class="bottom0 left0" type="danger" @click="goDetail('1')" v-no-more-click="1000" size="large">机构明细</van-button>
</div>
</div>
@@ -106,10 +106,10 @@ export default {
console.log(res)
this.reportList = res.content
this.list = res.content[this.active]
if (this.list.insertDate == null && this.list.insertTime == null) {
if (this.list.insertTime == null) {
this.time = '--'
} else {
this.time = this.list.insertDate + ' ' + this.list.insertTime
this.time = this.list.insertTime
}
} else {
this.$toast(res.resultMessage)
@@ -126,10 +126,10 @@ export default {
this.title = title
}
this.list = this.reportList[this.active]
if (this.list.insertDate == null && this.list.insertTime == null) {
if (this.list.insertTime == null) {
this.time = '--'
} else {
this.time = this.list.insertDate + ' ' + this.list.insertTime
this.time = this.list.insertTime
}
},
goDetail(val) {