mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-20 06:06:44 +08:00
[FIX] 修改开门红数据报表明细
This commit is contained in:
@@ -31,20 +31,20 @@
|
|||||||
<div class="all">
|
<div class="all">
|
||||||
<table class="move-table" cellspacing="0" cellpadding="0" border="0">
|
<table class="move-table" cellspacing="0" cellpadding="0" border="0">
|
||||||
<tr>
|
<tr>
|
||||||
<th>险种</th>
|
<th>{{this.title || filterTitle}}</th>
|
||||||
<th>当日预收件数</th>
|
<th>当日预收件数</th>
|
||||||
<th>当日预收规模保费(万元)</th>
|
<th>当日预收规模保费(万元)</th>
|
||||||
<th>当日承保件数</th>
|
<th>当日承保件数</th>
|
||||||
<th>当日承保规模保费(万元)</th>
|
<th>当日承保规模保费(万元)</th>
|
||||||
<th>当日承保标准保费(万元)</th>
|
<th>当日承保标准保费(万元)</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-for="(item,index) in reportDetail" :key="index">
|
<tr v-for="(item,index) in reportList" :key="index">
|
||||||
<td>{{item.name}}</td>
|
<td>{{item.sellTypeName}}</td>
|
||||||
<td>{{item.Advance}}</td>
|
<td>{{item.preItems}}</td>
|
||||||
<td>{{item.premium}}</td>
|
<td>{{item.prePrem}}</td>
|
||||||
<td>{{item.InsuranceNumber}}</td>
|
<td>{{item.items}}</td>
|
||||||
<td>{{item.dataPremium}}</td>
|
<td>{{item.prem}}</td>
|
||||||
<td>{{item.standardPremium}}</td>
|
<td>{{item.standPrem}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@@ -52,10 +52,10 @@
|
|||||||
<div class="l">
|
<div class="l">
|
||||||
<table border="0" cellspacing="0" cellpadding="0" class="fixed-l">
|
<table border="0" cellspacing="0" cellpadding="0" class="fixed-l">
|
||||||
<tr>
|
<tr>
|
||||||
<th>险种</th>
|
<th>{{this.title || filterTitle}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-for="(item,index) in reportDetail" :key="index">
|
<tr v-for="(item,index) in reportList" :key="index">
|
||||||
<td>{{item.name}}</td>
|
<td>{{item.sellTypeName}}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
@@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { List, Tab, Tabs, Tag, Row, Col, Dialog, Sticky } from 'vant'
|
import { List, Tab, Tabs, Tag, Row, Col, Dialog, Sticky } from 'vant'
|
||||||
// import { progress } from '@/api/ebiz/claims/claims'
|
import { reportList } from '@/api/ebiz/report/report'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'reportDetail',
|
name: 'reportDetail',
|
||||||
@@ -80,100 +80,40 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
reportDetail: [
|
reportList: []
|
||||||
{
|
|
||||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
|
||||||
Advance: 7,
|
|
||||||
premium: 1.63,
|
|
||||||
InsuranceNumber: 1454,
|
|
||||||
dataPremium: 350.84,
|
|
||||||
standardPremium: 2119
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
|
||||||
Advance: 7,
|
|
||||||
premium: 1.63,
|
|
||||||
InsuranceNumber: 1454,
|
|
||||||
dataPremium: 350.84,
|
|
||||||
standardPremium: 2119
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
|
||||||
Advance: 7,
|
|
||||||
premium: 1.63,
|
|
||||||
InsuranceNumber: 1454,
|
|
||||||
dataPremium: 350.84,
|
|
||||||
standardPremium: 2119
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
|
||||||
Advance: 7,
|
|
||||||
premium: 1.63,
|
|
||||||
InsuranceNumber: 1454,
|
|
||||||
dataPremium: 350.84,
|
|
||||||
standardPremium: 2119
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
|
||||||
Advance: 7,
|
|
||||||
premium: 1.63,
|
|
||||||
InsuranceNumber: 1454,
|
|
||||||
dataPremium: 350.84,
|
|
||||||
standardPremium: 2119
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
|
||||||
Advance: 7,
|
|
||||||
premium: 1.63,
|
|
||||||
InsuranceNumber: 1454,
|
|
||||||
dataPremium: 350.84,
|
|
||||||
standardPremium: 2119
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
|
||||||
Advance: 7,
|
|
||||||
premium: 1.63,
|
|
||||||
InsuranceNumber: 1454,
|
|
||||||
dataPremium: 350.84,
|
|
||||||
standardPremium: 2119
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
|
||||||
Advance: 7,
|
|
||||||
premium: 1.63,
|
|
||||||
InsuranceNumber: 1454,
|
|
||||||
dataPremium: 350.84,
|
|
||||||
standardPremium: 2119
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
|
||||||
Advance: 7,
|
|
||||||
premium: 1.63,
|
|
||||||
InsuranceNumber: 1454,
|
|
||||||
dataPremium: 350.84,
|
|
||||||
standardPremium: 2119
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
|
||||||
Advance: 7,
|
|
||||||
premium: 1.63,
|
|
||||||
InsuranceNumber: 1454,
|
|
||||||
dataPremium: 350.84,
|
|
||||||
standardPremium: 2119
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: '国富人寿八桂无忧重大疾病保险(B款)',
|
|
||||||
Advance: 7,
|
|
||||||
premium: 1.63,
|
|
||||||
InsuranceNumber: 1454,
|
|
||||||
dataPremium: 350.84,
|
|
||||||
standardPremium: 2119
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {},
|
created(){
|
||||||
filters: {}
|
this.reportList = JSON.parse(localStorage.reportList)
|
||||||
|
console.log(this.reportList[0].salechnlName)
|
||||||
|
this.title = this.reportList[0].salechnlName
|
||||||
|
},
|
||||||
|
filters: {
|
||||||
|
filterTitle: function(title) {
|
||||||
|
let text
|
||||||
|
switch (title) {
|
||||||
|
case '个险':
|
||||||
|
text = '险种'
|
||||||
|
break
|
||||||
|
// case '3':
|
||||||
|
// text = '已提交核心'
|
||||||
|
// break
|
||||||
|
// case '40':
|
||||||
|
// text = '已申请'
|
||||||
|
// break
|
||||||
|
// case '50':
|
||||||
|
// text = '已立案'
|
||||||
|
// break
|
||||||
|
// case '60':
|
||||||
|
// text = '已结案'
|
||||||
|
// break
|
||||||
|
// case 'Y':
|
||||||
|
// text = '已支付'
|
||||||
|
// break
|
||||||
|
}
|
||||||
|
return text
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@@ -207,17 +147,17 @@ export default {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.all .move-table,
|
.all .move-table,
|
||||||
.fixed-l{
|
.fixed-l {
|
||||||
background-color: #F0F8FA;
|
background-color: #f0f8fa;
|
||||||
width:100px;
|
width: 100px;
|
||||||
}
|
}
|
||||||
.fixed-l th:nth-child(1),
|
.fixed-l th:nth-child(1),
|
||||||
.all .move-table th:nth-child(1),
|
.all .move-table th:nth-child(1),
|
||||||
.fixed-l td:nth-child(1),
|
.fixed-l td:nth-child(1),
|
||||||
.all .move-table td:nth-child(1){
|
.all .move-table td:nth-child(1) {
|
||||||
width: 180px;
|
width: 180px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 1px solid #D8E0E2;
|
border: 1px solid #d8e0e2;
|
||||||
min-width: 180px;
|
min-width: 180px;
|
||||||
max-width: 180px;
|
max-width: 180px;
|
||||||
}
|
}
|
||||||
@@ -227,15 +167,17 @@ export default {
|
|||||||
.all .move-table td {
|
.all .move-table td {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
border: 1px solid #D8E0E2;
|
border: 1px solid #d8e0e2;
|
||||||
min-width: 200px;
|
min-width: 200px;
|
||||||
max-width: 200px;
|
max-width: 200px;
|
||||||
}
|
}
|
||||||
.all .move-table th,.fixed-l th{
|
.all .move-table th,
|
||||||
height: 80px;
|
.fixed-l th {
|
||||||
|
height: 80px;
|
||||||
}
|
}
|
||||||
.all .move-table td,.fixed-l td{
|
.all .move-table td,
|
||||||
height: 60px;
|
.fixed-l td {
|
||||||
|
height: 60px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.l {
|
.l {
|
||||||
|
|||||||
@@ -9,33 +9,33 @@
|
|||||||
:swipe-threshold="5"
|
:swipe-threshold="5"
|
||||||
title-active-color="#E3372F"
|
title-active-color="#E3372F"
|
||||||
>
|
>
|
||||||
<van-tab name="personalInsurance" title="个险"></van-tab>
|
<van-tab name="0" title="个险"></van-tab>
|
||||||
<van-tab name="intermediary" title="中介"></van-tab>
|
<van-tab name="1" title="中介"></van-tab>
|
||||||
<van-tab name="healthInsurance" title="健康险"></van-tab>
|
<van-tab name="2" title="健康险"></van-tab>
|
||||||
<van-tab name="networkSale" title="网销"></van-tab>
|
<van-tab name="3" title="网销"></van-tab>
|
||||||
<van-tab name="bancassurance" title="银保"></van-tab>
|
<van-tab name="4" title="银保"></van-tab>
|
||||||
</van-tabs>
|
</van-tabs>
|
||||||
</van-sticky>
|
</van-sticky>
|
||||||
<van-row class="list mt50">
|
<van-row class="list mt50">
|
||||||
<van-row class="flex justify-content-s align-items-c mh-auto">
|
<van-row class="flex justify-content-s align-items-c mh-auto">
|
||||||
<van-col class="c-gray-darker fwb ml10">当日预收件数</van-col>
|
<van-col class="c-gray-darker fwb ml10">当日预收件数</van-col>
|
||||||
<van-col class="text-center mr10 red fwb">1000</van-col>
|
<van-col class="text-center mr10 red fwb">{{list.preItems}}</van-col>
|
||||||
</van-row>
|
</van-row>
|
||||||
<van-row class="flex justify-content-s align-items-c mh-auto">
|
<van-row class="flex justify-content-s align-items-c mh-auto">
|
||||||
<van-col class="c-gray-darker fwb ml10">当日承保件数</van-col>
|
<van-col class="c-gray-darker fwb ml10">当日承保件数</van-col>
|
||||||
<van-col class="text-center mr10 red fwb">1000</van-col>
|
<van-col class="text-center mr10 red fwb">{{list.items}}</van-col>
|
||||||
</van-row>
|
</van-row>
|
||||||
<van-row class="flex justify-content-s align-items-c mh-auto">
|
<van-row class="flex justify-content-s align-items-c mh-auto">
|
||||||
<van-col class="c-gray-darker fwb ml10">当日预收规模保费(万元)</van-col>
|
<van-col class="c-gray-darker fwb ml10">当日预收规模保费(万元)</van-col>
|
||||||
<van-col class="text-center mr10 red fwb">1000</van-col>
|
<van-col class="text-center mr10 red fwb">{{list.prePrem}}</van-col>
|
||||||
</van-row>
|
</van-row>
|
||||||
<van-row class="flex justify-content-s align-items-c mh-auto">
|
<van-row class="flex justify-content-s align-items-c mh-auto">
|
||||||
<van-col class="c-gray-darker fwb ml10">当日承保规模保费(万元)</van-col>
|
<van-col class="c-gray-darker fwb ml10">当日承保规模保费(万元)</van-col>
|
||||||
<van-col class="text-center mr10 red fwb">1000</van-col>
|
<van-col class="text-center mr10 red fwb">{{list.prem}}</van-col>
|
||||||
</van-row>
|
</van-row>
|
||||||
<van-row class="flex justify-content-s align-items-c mh-auto">
|
<van-row class="flex justify-content-s align-items-c mh-auto">
|
||||||
<van-col class="c-gray-darker fwb ml10">当日承保标准保费(万元)</van-col>
|
<van-col class="c-gray-darker fwb ml10">当日承保标准保费(万元)</van-col>
|
||||||
<van-col class="text-center mr10 red fwb">1000</van-col>
|
<van-col class="text-center mr10 red fwb">{{list.standPrem}}</van-col>
|
||||||
</van-row>
|
</van-row>
|
||||||
</van-row>
|
</van-row>
|
||||||
<van-button type="danger" class="bottom-btn" @click="goDetail" v-no-more-click="1000">查看明细</van-button>
|
<van-button type="danger" class="bottom-btn" @click="goDetail" v-no-more-click="1000">查看明细</van-button>
|
||||||
@@ -60,9 +60,10 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
active: 'personalInsurance', //intermediary 中介 healthInsurance 健康险 networkSale 网销 bancassurance 银保
|
active: '0',
|
||||||
|
title: '个险',
|
||||||
reportList: [], //接口数据
|
reportList: [], //接口数据
|
||||||
list:[],//用于展示每一项的数据
|
list: [] //用于展示每一项的数据
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@@ -87,35 +88,62 @@ export default {
|
|||||||
resultsName: '',
|
resultsName: '',
|
||||||
resultsType: '0'
|
resultsType: '0'
|
||||||
}
|
}
|
||||||
this.$toast.loading({
|
this.$toast.loading({
|
||||||
duration: 0, // 持续展示 toast
|
duration: 0, // 持续展示 toast
|
||||||
forbidClick: true, // 禁用背景点击
|
forbidClick: true, // 禁用背景点击
|
||||||
loadingType: 'spinner',
|
loadingType: 'spinner',
|
||||||
message: '加载中……'
|
message: '加载中……'
|
||||||
})
|
})
|
||||||
reportList(data).then(res => {
|
reportList(data).then(res => {
|
||||||
this.$toast.clear()
|
this.$toast.clear()
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
this.reportList = res.content
|
this.reportList = res.content
|
||||||
this.list = res.content[0]
|
this.list = res.content[this.active]
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
tabChange(name, title) {
|
tabChange(name, title) {
|
||||||
this.active = name
|
this.active = name
|
||||||
|
this.title = title
|
||||||
|
this.list = this.reportList[this.active]
|
||||||
},
|
},
|
||||||
goDetail() {
|
goDetail() {
|
||||||
this.$jump({
|
this.$jump({
|
||||||
flag: 'h5',
|
flag: 'navigation',
|
||||||
extra: {
|
extra: {
|
||||||
url: location.origin + '/#/report/reportDetail',
|
title: this.title,
|
||||||
forbidSwipeBack: '1'
|
hiddenRight: '1'
|
||||||
},
|
}
|
||||||
routerInfo: {
|
})
|
||||||
path: '/report/reportDetail'
|
let data = {
|
||||||
|
resultsName: this.title,
|
||||||
|
resultsType: '1'
|
||||||
|
}
|
||||||
|
this.$toast.loading({
|
||||||
|
duration: 0, // 持续展示 toast
|
||||||
|
forbidClick: true, // 禁用背景点击
|
||||||
|
loadingType: 'spinner',
|
||||||
|
message: '加载中……'
|
||||||
|
})
|
||||||
|
reportList(data).then(res => {
|
||||||
|
this.$toast.clear()
|
||||||
|
if (res.result == '0') {
|
||||||
|
localStorage.reportList = JSON.stringify(res.content)
|
||||||
|
this.$jump({
|
||||||
|
flag: 'h5',
|
||||||
|
extra: {
|
||||||
|
url: location.origin + '/#/report/reportDetail',
|
||||||
|
forbidSwipeBack: '1'
|
||||||
|
},
|
||||||
|
routerInfo: {
|
||||||
|
path: '/report/reportDetail'
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user