|
|
@@ -64,8 +64,8 @@
|
|
|
:biRiskInfoVo="biRiskInfoVo" :costs="costs" :policy="policy" :scoreVo="scoreVo"
|
|
|
:accidentalDrivings="accidentalDrivings" :kindInfoVo="kindInfoVo"
|
|
|
:vehicleAndVesselTaxVo="vehicleAndVesselTaxVo" :insFeeOrders="insFeeOrders"
|
|
|
- :car_tax_codeoptions="car_tax_codeoptions" @updateDiscount="updateDiscountShow=true"
|
|
|
- @customerRightsDetail="customerRightsDetail">
|
|
|
+ :costRatio="costRatio" :car_tax_codeoptions="car_tax_codeoptions"
|
|
|
+ @updateDiscount="updateDiscountShow=true" @customerRightsDetail="customerRightsDetail">
|
|
|
</insuranceInfoVue>
|
|
|
<template v-if="current==2">
|
|
|
<imageDataVue @previewImage="previewImage" @delCheckImage="delCheckImage"
|
|
|
@@ -269,8 +269,14 @@
|
|
|
<previewImage ref="previewImage" :opacity="0.8" :circular="true" :imgs="previewImgs"></previewImage>
|
|
|
<u-loading-page :loading="loading" style="z-index: 999999;" loading-text="核保中" bg-color="rgb(0 ,0 ,0 ,0.4)"
|
|
|
color="#fff"></u-loading-page>
|
|
|
+ <!-- 自定义加载动画 -->
|
|
|
+ <u-overlay :show="loadingShow" style="background-color: rgba(255, 255, 255, 0.6);">
|
|
|
+ <view class="dis f-c a-c j-c " style="height: 100%;">
|
|
|
+ <u-loading-icon></u-loading-icon>
|
|
|
+ <text style="color: #909399;" class="mt-1">{{loadingText}}</text>
|
|
|
+ </view>
|
|
|
+ </u-overlay>
|
|
|
</view>
|
|
|
-
|
|
|
</template>
|
|
|
<script>
|
|
|
import store from '@/store';
|
|
|
@@ -297,6 +303,8 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ loadingShow: false,
|
|
|
+ loadingText: '加载中', //加载提示文字
|
|
|
loading: false,
|
|
|
insCompanyVo: {}, //保险公司信息
|
|
|
vvTaxDetailsShow: false, //车船税详情弹窗
|
|
|
@@ -339,6 +347,7 @@
|
|
|
insuredPersonInfo: {}, //被保人信息
|
|
|
scoreVo: {}, //保费因素
|
|
|
insFeeOrders: {}, //费用信息
|
|
|
+ costRatio: {}, //费用比例信息
|
|
|
insOrderRightsInfoVo: {}, //权益信息
|
|
|
order: {},
|
|
|
detailbackimg: "", //背景图
|
|
|
@@ -432,72 +441,82 @@
|
|
|
}
|
|
|
},
|
|
|
async onLoad(options) {
|
|
|
- if (options) {
|
|
|
- await this.getDicType("car_tax_code"); //车船税类型
|
|
|
- await this.getDicType("taxpayerIdentifier"); //纳税人证件类型
|
|
|
- await this.getDicType("car_tax_reason_code"); //减免税原因代码
|
|
|
- await this.getDicType("car_nature_code"); //使用性质
|
|
|
- await this.getDicType("vehicle_use_code", "01"); //营业
|
|
|
- await this.getDicType("vehicle_use_code", "02"); //非营业
|
|
|
- await this.getDicType("car_kind_code"); //车辆种类
|
|
|
- await this.getDicType("energy_type_code"); //能源类型
|
|
|
- await this.getDicType("car_type_code"); //车辆类型
|
|
|
- let res = await this.$http.get('/supplementOrder/getOrderDetail?ordersNo=' + options.ordersNo);
|
|
|
- if (res.code == 200) {
|
|
|
- this.insCompanyVo = res.data.insCompanyVo[0]; //保险公司信息
|
|
|
- this.orderStatus = res.data.order.orderStatus; //订单状态
|
|
|
- this.companyName = res.data.order.companyName; //保险公司简称
|
|
|
- this.ordersNo = res.data.order.ordersNo; //订单号
|
|
|
- this.quoteNo = res.data.order.quoteNo; //报价号
|
|
|
- this.ciRiskInfoVo = res.data.ciRiskInfoVo; //交强大类
|
|
|
- this.biRiskInfoVo = res.data.biRiskInfoVo; //商业大类
|
|
|
- this.costs = res.data.costs; //报价金额信息
|
|
|
- this.policy = res.data.policy; //保单号信息
|
|
|
- this.kindInfoVo = res.data.kindInfoVo; //商业险险别
|
|
|
- this.accidentalDrivings = res.data.accidentalDrivings; //驾意险
|
|
|
- this.carInfoVo = res.data.carInfoVo; //车辆信息
|
|
|
- this.ownersInfo = res.data.ownersInfo; //车主信息
|
|
|
- this.policyHolderInfo = res.data.policyHolderInfo; //投保人信息
|
|
|
- this.insuredPersonInfo = res.data.insuredPersonInfo; //被保人信息
|
|
|
- this.scoreVo = res.data.scoreVo; //保费因素
|
|
|
- this.insFeeOrders = res.data.insFeeOrders; //费用信息
|
|
|
- this.insOrderRightsInfoVo = res.data.insOrderRightsInfoVo; //权益信息
|
|
|
- this.vehicleAndVesselTaxVo = res.data.vehicleAndVesselTaxVo; //车船税信息
|
|
|
- this.order = res.data.order;
|
|
|
- this.carInfoVo1.carNatureCode = dictionaryMatch(this.car_nature_codeoptions, res
|
|
|
- .data.carInfoVo
|
|
|
- .carNatureCode)
|
|
|
- if (res.data.carInfoVo.carNatureCode == '01') {
|
|
|
- this.carInfoVo1.vehicleUseCode = dictionaryMatch(this
|
|
|
- .vehicle_use_code01options,
|
|
|
- res.data
|
|
|
+ this.loadingShow = true;
|
|
|
+ try {
|
|
|
+ if (options) {
|
|
|
+ await this.getDicType("car_tax_code"); //车船税类型
|
|
|
+ await this.getDicType("taxpayerIdentifier"); //纳税人证件类型
|
|
|
+ await this.getDicType("car_tax_reason_code"); //减免税原因代码
|
|
|
+ await this.getDicType("car_nature_code"); //使用性质
|
|
|
+ await this.getDicType("vehicle_use_code", "01"); //营业
|
|
|
+ await this.getDicType("vehicle_use_code", "02"); //非营业
|
|
|
+ await this.getDicType("car_kind_code"); //车辆种类
|
|
|
+ await this.getDicType("energy_type_code"); //能源类型
|
|
|
+ await this.getDicType("car_type_code"); //车辆类型
|
|
|
+ let res = await this.$http.get('/supplementOrder/getOrderDetail?ordersNo=' + options.ordersNo);
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.insCompanyVo = res.data.insCompanyVo[0]; //保险公司信息
|
|
|
+ this.orderStatus = res.data.order.orderStatus; //订单状态
|
|
|
+ this.companyName = res.data.order.companyName; //保险公司简称
|
|
|
+ this.ordersNo = res.data.order.ordersNo; //订单号
|
|
|
+ this.quoteNo = res.data.order.quoteNo; //报价号
|
|
|
+ this.ciRiskInfoVo = res.data.ciRiskInfoVo; //交强大类
|
|
|
+ this.biRiskInfoVo = res.data.biRiskInfoVo; //商业大类
|
|
|
+ this.costs = res.data.costs; //报价金额信息
|
|
|
+ this.policy = res.data.policy; //保单号信息
|
|
|
+ this.kindInfoVo = res.data.kindInfoVo; //商业险险别
|
|
|
+ this.accidentalDrivings = res.data.accidentalDrivings; //驾意险
|
|
|
+ this.carInfoVo = res.data.carInfoVo; //车辆信息
|
|
|
+ this.ownersInfo = res.data.ownersInfo; //车主信息
|
|
|
+ this.policyHolderInfo = res.data.policyHolderInfo; //投保人信息
|
|
|
+ this.insuredPersonInfo = res.data.insuredPersonInfo; //被保人信息
|
|
|
+ this.scoreVo = res.data.scoreVo; //保费因素
|
|
|
+ this.insFeeOrders = res.data.insFeeOrders; //费用信息
|
|
|
+ this.costRatio = res.data.costRatio; //比例信息
|
|
|
+ this.insOrderRightsInfoVo = res.data.insOrderRightsInfoVo; //权益信息
|
|
|
+ this.vehicleAndVesselTaxVo = res.data.vehicleAndVesselTaxVo; //车船税信息
|
|
|
+ this.order = res.data.order;
|
|
|
+ // 去掉this.kindInfoVo中的交强险
|
|
|
+ this.kindInfoVo = this.kindInfoVo.filter(item => item.kindCode != 'J1')
|
|
|
+ this.carInfoVo1.carNatureCode = dictionaryMatch(this.car_nature_codeoptions, res
|
|
|
+ .data.carInfoVo
|
|
|
+ .carNatureCode)
|
|
|
+ if (res.data.carInfoVo.carNatureCode == '01') {
|
|
|
+ this.carInfoVo1.vehicleUseCode = dictionaryMatch(this
|
|
|
+ .vehicle_use_code01options,
|
|
|
+ res.data
|
|
|
+ .carInfoVo
|
|
|
+ .vehicleUseCode)
|
|
|
+ } else {
|
|
|
+ this.carInfoVo1.vehicleUseCode = dictionaryMatch(this
|
|
|
+ .vehicle_use_code02options,
|
|
|
+ res.data
|
|
|
+ .carInfoVo
|
|
|
+ .vehicleUseCode)
|
|
|
+ }
|
|
|
+ this.carInfoVo1.carTypeCode = dictionaryMatch(this.car_type_codeoptions, res.data
|
|
|
.carInfoVo
|
|
|
- .vehicleUseCode)
|
|
|
- } else {
|
|
|
- this.carInfoVo1.vehicleUseCode = dictionaryMatch(this
|
|
|
- .vehicle_use_code02options,
|
|
|
- res.data
|
|
|
+ .carTypeCode)
|
|
|
+ this.carInfoVo1.carKindCode = dictionaryMatch(this.car_kind_codeoptions, res.data
|
|
|
.carInfoVo
|
|
|
- .vehicleUseCode)
|
|
|
- }
|
|
|
- this.carInfoVo1.carTypeCode = dictionaryMatch(this.car_type_codeoptions, res.data
|
|
|
- .carInfoVo
|
|
|
- .carTypeCode)
|
|
|
- this.carInfoVo1.carKindCode = dictionaryMatch(this.car_kind_codeoptions, res.data
|
|
|
- .carInfoVo
|
|
|
- .carKindCode)
|
|
|
- this.carInfoVo1.energyTypeCode = dictionaryMatch(this.energy_type_codeoptions, res
|
|
|
- .data
|
|
|
- .carInfoVo
|
|
|
- .energyTypeCode)
|
|
|
+ .carKindCode)
|
|
|
+ this.carInfoVo1.energyTypeCode = dictionaryMatch(this.energy_type_codeoptions, res
|
|
|
+ .data
|
|
|
+ .carInfoVo
|
|
|
+ .energyTypeCode)
|
|
|
|
|
|
- if (this.quoteNo) {
|
|
|
- this.imageEcho(this.quoteNo) // 影像获取完毕
|
|
|
+ if (this.quoteNo) {
|
|
|
+ this.imageEcho(this.quoteNo) // 影像获取完毕
|
|
|
+ }
|
|
|
}
|
|
|
+ this.loadingShow = false;
|
|
|
}
|
|
|
+ } catch (error) {
|
|
|
+ this.loadingShow = false;
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
},
|
|
|
async mounted() {
|
|
|
this.detailbackimg = await turnBase64Image('/static/image/detailback.png');
|