|
|
@@ -1,4430 +0,0 @@
|
|
|
-<template>
|
|
|
- <view class="page">
|
|
|
- <public-module></public-module>
|
|
|
- <!-- 头部 -->
|
|
|
- <view class="car-header dis a-c">
|
|
|
- <image src="/static/image/car-insure/Group.png" mode="" style="width: 40px;height: 40px;"></image>
|
|
|
- <view class="dis f-c head-name">
|
|
|
- <text>{{this.carInfo.licenseNo}}</text>
|
|
|
- <view class="name1">
|
|
|
- <text>{{this.carInfo.modelcname}}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="carJump" @tap="toCarInfo">修改信息</view>
|
|
|
- </view>
|
|
|
- <!-- 报价方案 -->
|
|
|
- <view class="pageContent mt-3">
|
|
|
- <view class="header dis a-c j-s">
|
|
|
- <text class="title ">报价方案</text>
|
|
|
- <text class="color" @tap="toInsureItems">修改险种</text>
|
|
|
- </view>
|
|
|
- <view class="quotePlan ">
|
|
|
- <view class="body">
|
|
|
- <view class="qunimade dis a-c j-s">
|
|
|
- <text>交强险</text>
|
|
|
- <u-switch v-model="jqchecked" active-color="#0052FF" inactive-color="#eee" size='30'
|
|
|
- @change="jqImmediate"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=" qunimade dis a-c j-start" @click="jqstartShow = true" v-if="jqchecked">
|
|
|
- <text>{{jqstartDate}}</text>
|
|
|
- <text class="mx-2">-</text>
|
|
|
- <text>{{jqendDate}}</text>
|
|
|
- <u-picker v-model="jqstartShow" mode="time" :params="params"
|
|
|
- @confirm="jqstartconfirm"></u-picker>
|
|
|
- </view>
|
|
|
- <view class=" qunimade dis a-c j-s">
|
|
|
- <text>商业险</text>
|
|
|
- <u-switch v-model="sychecked" active-color="#0052FF" inactive-color="#eee" size='30'
|
|
|
- @change="syImmediate"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=" qunimade dis a-c j-start" @click="systartShow = true" v-if="systartDate">
|
|
|
- <text>{{systartDate}}</text>
|
|
|
- <text class="mx-2">-</text>
|
|
|
- <text>{{syendDate}}</text>
|
|
|
- <u-picker v-model="systartShow" mode="time" :params="params"
|
|
|
- @confirm="systartconfirm"></u-picker>
|
|
|
- </view>
|
|
|
- <view class="insurance">
|
|
|
- <template v-if="systartDate">
|
|
|
- <block v-for="(item,index) in insureList" :key="index">
|
|
|
- <template v-if="item.amount!=0">
|
|
|
- <view class=" j-sb d-flex a-center">
|
|
|
- <view>{{item.kindName}}</view>
|
|
|
- <text
|
|
|
- v-if="['TY2','TY3','TY4'].includes(item.kindCode)">{{item.amountDesc}}</text>
|
|
|
- <block v-else v-for="(item2,index2) in item.amtList" :key="index2">
|
|
|
- <template v-if="item2.value == item.amount">
|
|
|
- <view>{{item2.label}}</view>
|
|
|
- </template>
|
|
|
- </block>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </block>
|
|
|
- </template>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="header dis a-c j-s mt-3">
|
|
|
- <text class="title " style="color:#FF5600;">投保注意:</text>
|
|
|
- <view class="dis a-c f-wrap">
|
|
|
- <view class="status-data" :class="carInfo.transferFlag? 'active1':''"
|
|
|
- @tap="immediatelyClick('transferFlag')">
|
|
|
- 过户车
|
|
|
- </view>
|
|
|
- <view class="status-data" :class="carInfo.transferFlagBi? 'active1':''"
|
|
|
- @tap="immediatelyClick('transferFlagBi')">
|
|
|
- 商业险过户
|
|
|
- </view>
|
|
|
- <view class="status-data" :class="carInfo.outOfInsurance? 'active1':''"
|
|
|
- @tap="immediatelyClick('outOfInsurance')">
|
|
|
- 脱保
|
|
|
- </view>
|
|
|
- <view class="status-data" :class="carInfo.usedCar? 'active1':''" @tap="immediatelyClick('usedCar')">
|
|
|
- 二手车
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="quotePlan dis a-c j-s " style="padding: 5px 10px;" v-if="carInfo.transferFlag">
|
|
|
- <view>转移登记日期:</view>
|
|
|
- <u-input type="select" :select-open="transferDateShow" :custom-style="{textAlign:'right'}"
|
|
|
- v-model="carInfo.transferDate" @click="transferDateShow = true" style="width: 100px;"></u-input>
|
|
|
- <u-picker v-model="transferDateShow" mode="time" :params="params1"
|
|
|
- @confirm="transferconfirm"></u-picker>
|
|
|
- </view>
|
|
|
- <view class="quoteCompany mt-3">
|
|
|
- <view class="header dis a-c">
|
|
|
- <view class="title d-flex">保险公司</view>
|
|
|
- <!-- <view class="">
|
|
|
- <u-checkbox v-model="Selectchecked" @change="SelectAll($event)"
|
|
|
- active-color="rgb(250, 53, 52)">全选</u-checkbox>
|
|
|
- </view> -->
|
|
|
- </view>
|
|
|
- <block v-for="(totalitem,totalindex) in totalCompanyList" :key="totalindex">
|
|
|
- <template>
|
|
|
- <view class="quoteCompanyItem dis f-c j-s" :class="totalitem.checked? 'quoteactive':''">
|
|
|
- <view class="top dis f-c">
|
|
|
- <view class="companyIcon dis j-s a-c"
|
|
|
- @tap="checkboxChange(totalitem.id,totalitem.cnName, totalindex)">
|
|
|
- <view class="dis a-c">
|
|
|
- <view class="" @click.stop>
|
|
|
- <u-checkbox @change="priceComparisonChange(totalindex,totalitem)"
|
|
|
- v-if="totalitem.isComparableshowHide"
|
|
|
- v-model="totalitem.isComparableShow" active-color="#23C1CB"
|
|
|
- :disabled='totalitem.isComparableDisabled'></u-checkbox>
|
|
|
- </view>
|
|
|
- <image :src="totalitem.logo"></image>
|
|
|
- <view class="companyName">{{totalitem.namesimple}}</view>
|
|
|
- </view>
|
|
|
- <ls-loading v-show="totalitem.quoteCode==1" text="掌柜正在为您报价,请稍等......"
|
|
|
- :animation="animation" fontSize="22" />
|
|
|
- <!-- 价格 -->
|
|
|
- <view class="dis a-c" v-if="totalitem.quoteCode==200">
|
|
|
- <view class="dis a-c" style="margin-right: 10px;"
|
|
|
- v-if="totalitem.result.feeDisplay">
|
|
|
- <text style="color: #FF4D4D;font-size: 12px;"
|
|
|
- v-if="totalitem.result.sumExportFee">{{totalitem.result.feeView?'掌柜科技币':'优惠金额¥'}}{{totalitem.result.sumExportFee}}</text>
|
|
|
- </view>
|
|
|
- <text class="sum">¥{{totalitem.result.sumPermium}}</text>
|
|
|
- </view>
|
|
|
- <text
|
|
|
- v-show="(totalitem.quoteCode != '200') && (totalitem.quoteCode != '0') && (totalitem.quoteCode != '1')"
|
|
|
- class="sum" style="color: #999;font-size: 12px;"
|
|
|
- @tap.stop.prevent="ErrorMsg(totalitem.msg,totalitem.namesimple)">报价失败,请点击查看</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view class="dis content f-c" v-if="totalitem.checked">
|
|
|
- <u-form-item label="报价协议选择" v-if="totalitem.isTaxSource!=1" size="mini"
|
|
|
- :prop="totalitem.agreementId" label-width="200" :border-bottom='false'
|
|
|
- style="padding: 0;">
|
|
|
- <u-input type="select" :select-open="totalitem.selectShow"
|
|
|
- :custom-style="{textAlign:'right'}" v-model="totalitem.agreementName"
|
|
|
- placeholder="请选择协议" @click="totalitem.selectShow = true"></u-input>
|
|
|
- <u-select mode="single-column" :list="totalitem.agreement" value-name="id"
|
|
|
- label-name="businessDescription" v-model="totalitem.selectShow"
|
|
|
- @confirm="val=>selectConfirm(val,totalindex)"></u-select>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="商业险折扣" v-if="totalitem.namesimple == '中国人寿'" placeholder="请输入数字"
|
|
|
- label-width="200" :border-bottom='false' style="padding: 0;">
|
|
|
- <u-input type="number" v-model="totalitem.syAdjustRate"
|
|
|
- :custom-style="{textAlign:'right'}"></u-input>
|
|
|
- </u-form-item>
|
|
|
- <u-form-item label="自主定价系数" v-if="['紫金财险','诚泰财险'].includes(totalitem.namesimple)"
|
|
|
- placeholder="请输入数字" label-width="200" :border-bottom='false'
|
|
|
- style="padding: 0;">
|
|
|
- <u-input type="number" v-model="totalitem.coefficient"
|
|
|
- :custom-style="{textAlign:'right'}"></u-input>
|
|
|
- </u-form-item>
|
|
|
- <template v-if="totalitem.namesimple == '诚泰财险'">
|
|
|
- <u-form-item label="商业险折扣" placeholder="请输入" label-width="200"
|
|
|
- :border-bottom='false' style="padding: 0;">
|
|
|
- <u-input type="number" v-model="totalitem.discount"
|
|
|
- :custom-style="{textAlign:'right'}"></u-input>
|
|
|
- </u-form-item>
|
|
|
- <view class="dis j-s a-c mt-1">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">是否验车</text>
|
|
|
- <u-switch v-model="totalitem.isInspect" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'></u-switch>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <text
|
|
|
- style="color: #ff9000;font-weight: bold;">{{totalitem.underwritingDescription}}</text>
|
|
|
- </view>
|
|
|
- <view v-if="totalitem.namesimple == '国任财险' && totalitem.checked"
|
|
|
- style="padding: 0 8px;">
|
|
|
- <text style="color: #FF5600;font-size: 14px"
|
|
|
- @click="guoRencontributing(totalitem.agreementId)">特约选择</text>
|
|
|
- <view class="contributing dis f-c"
|
|
|
- v-for="(guoRenitem,guoRenindex) in guoRenSpecialAgreementVo" :key="guoRenindex">
|
|
|
- <text>{{guoRenitem.clauses}}</text>
|
|
|
- <text>{{guoRenitem.clausesContext}}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <template class=""
|
|
|
- v-if="totalitem.namesimple == '中国人寿' && totalitem.checked && totalitem.agreementId ">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="renshouaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="renshouPopupshow=true">
|
|
|
- <text>{{renshouaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <view class="">
|
|
|
- <text>保费:</text>
|
|
|
- <text
|
|
|
- style="color: #ee7000;">¥{{renshouaccidentalDrivingVo.sumPremium*renshouaccidentalDrivingVo.quantity}}.00起</text>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="renshouaccidentalDrivingVo.quantity" :min="1"
|
|
|
- :max="1" :disabled-input="true" :input-width="70"
|
|
|
- :input-height="44" size="26" :long-press="false"></u-number-box>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '中煤财险' && totalitem.checked && totalitem.agreementId ">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="zhongmeiaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="zhongmeiPopupshow=true">
|
|
|
- <text>{{zhongmeiaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <view class="">
|
|
|
- <text>保费:</text>
|
|
|
- <text
|
|
|
- style="color: #ee7000;">¥{{zhongmeiaccidentalDrivingVo.sumPremium*zhongmeiaccidentalDrivingVo.quantity}}</text>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="zhongmeiaccidentalDrivingVo.quantity"
|
|
|
- :min="1" :max="10" :disabled-input="true" :input-width="70"
|
|
|
- :input-height="44" :long-press="false" size="26"></u-number-box>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '紫金财险' && totalitem.checked && totalitem.agreementId ">
|
|
|
- <view class="accident-style dis f-c">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class="" v-if="totalitem.jychecked">
|
|
|
- <text @click="zijinPopupshow=true"
|
|
|
- style="color: #FF5600;font-size: 14px;">意外险选择</text>
|
|
|
- <view class=" dis f-c " v-for="(item,index) in zijinaccidentalDrivingVo"
|
|
|
- :key="index">
|
|
|
- <view class=" accident-ins dis a-c j-s">
|
|
|
- <text>{{item.projectName}}</text>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <view class="">
|
|
|
- <text>保费:</text>
|
|
|
- <text
|
|
|
- style="color: #ee7000;">¥{{item.sumPremium*item.quantity}}.00</text>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="item.quantity" :min="1" :max="1"
|
|
|
- :input-width="70" :input-height="44" size="26"
|
|
|
- :long-press="false"></u-number-box>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '渤海财险' && totalitem.checked && totalitem.agreementId ">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class="" v-if="bohaiaccidentalDrivingVo.productCode">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="bohaiPopupshow=true">
|
|
|
- <text>{{bohaiaccidentalDrivingVo.packageName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <view class="">
|
|
|
- <text>保费:</text>
|
|
|
- <text
|
|
|
- style="color: #ee7000;">¥{{bohaiaccidentalDrivingVo.premium*bohaiaccidentalDrivingVo.copies}}.00</text>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="bohaiaccidentalDrivingVo.copies" :min="1"
|
|
|
- :max="1" :disabled-input="true" :input-width="70"
|
|
|
- :input-height="44" size="26" :long-press="false"></u-number-box>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '恒邦财险' && totalitem.checked && totalitem.agreementId ">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="hengbangaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="hengbangPopupshow=true">
|
|
|
- <text>{{hengbangaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <view class="">
|
|
|
- <text>保费:</text>
|
|
|
- <text
|
|
|
- style="color: #ee7000;">¥{{hengbangaccidentalDrivingVo.sumPremium*hengbangaccidentalDrivingVo.quantity}}.00</text>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="hengbangaccidentalDrivingVo.quantity"
|
|
|
- :min="1" :max="1" :disabled-input="true" :input-width="70"
|
|
|
- :input-height="44" size="26" :long-press="false"></u-number-box>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '诚泰财险' && totalitem.checked && totalitem.agreementId ">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="chengtaiaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="chengtaiPopupshow=true">
|
|
|
- <text>{{chengtaiaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <view class="">
|
|
|
- <text>保费:</text>
|
|
|
- <text
|
|
|
- style="color: #ee7000;">¥{{chengtaiaccidentalDrivingVo.sumPremium*chengtaiaccidentalDrivingVo.quantity}}.00</text>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="chengtaiaccidentalDrivingVo.quantity"
|
|
|
- :min="1" :max="1" :disabled-input="true" :input-width="70"
|
|
|
- :input-height="44" size="26" :long-press="false"></u-number-box>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '太平财险' && totalitem.checked && totalitem.agreementId">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="taipingaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="taipingPopupshow=true">
|
|
|
- <text>{{taipingaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <view class="">
|
|
|
- <text>保费:</text>
|
|
|
- <text
|
|
|
- style="color: #ee7000;">¥{{taipingaccidentalDrivingVo.sumPremium*taipingaccidentalDrivingVo.quantity}}.00</text>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="taipingaccidentalDrivingVo.quantity" :min="1"
|
|
|
- :max="10" :disabled-input="true" :input-width="70"
|
|
|
- :input-height="44" :long-press="false" size="26"></u-number-box>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '众安财险' && totalitem.checked && totalitem.agreementId">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="zhonganaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="zhonganPopupshow=true">
|
|
|
- <text>{{zhonganaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="zhonganaccidentalDrivingVo.quantity" :min="1"
|
|
|
- :max="1" :disabled-input="true" :input-width="70" :input-height="44"
|
|
|
- :long-press="false" size="26"></u-number-box>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '华农财险' && totalitem.checked && totalitem.agreementId ">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="huanongaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="huanongPopupshow=true">
|
|
|
- <text>{{huanongaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="huanongaccidentalDrivingVo.quantity" :min="1"
|
|
|
- :long-press="false" :input-width="70" :input-height="44"
|
|
|
- size="26"></u-number-box>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '泰康财险' && totalitem.checked && totalitem.agreementId">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="taikangaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="taikangPopupshow=true">
|
|
|
- <text>{{taikangaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <view class="">
|
|
|
- <text>保费:</text>
|
|
|
- <text
|
|
|
- style="color: #ee7000;">¥{{taikangaccidentalDrivingVo.sumPremium*taikangaccidentalDrivingVo.quantity}}.00</text>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="taikangaccidentalDrivingVo.quantity" :min="1"
|
|
|
- :max="10" :disabled-input="true" :input-width="70"
|
|
|
- :input-height="44" :long-press="false" size="26"></u-number-box>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '永诚财险' && totalitem.checked && totalitem.agreementId">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="yongchengaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="yongchengPopupshow=true">
|
|
|
- <text>{{yongchengaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="26"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <view class="">
|
|
|
- <text>保费:</text>
|
|
|
- <text
|
|
|
- style="color: #ee7000;">¥{{yongchengaccidentalDrivingVo.sumPremium*yongchengaccidentalDrivingVo.quantity}}</text>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="yongchengaccidentalDrivingVo.quantity"
|
|
|
- :min="1" :max="100" :input-width="70" :input-height="44"
|
|
|
- :long-press="false" size="26"></u-number-box>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '安盛天平' && totalitem.checked && totalitem.agreementId">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="anshengaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="anshengPopupshow=true">
|
|
|
- <text>{{anshengaccidentalDrivingVo.parentCode}}{{anshengaccidentalDrivingVo.parentName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <template v-if="anshengInsuranceData.length>0">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="anshengPopupshow1=true">
|
|
|
- <text>{{anshengaccidentalDrivingVo.projectCode}}{{anshengaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="anshengaccidentalDrivingVo.quantity" :min="1"
|
|
|
- :long-press="false" :max="1" :disabled-input="true"
|
|
|
- :input-width="70" :input-height="44" size="26"></u-number-box>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '国任财险' && totalitem.checked && totalitem.agreementId">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="guoRenaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="guorenPopupshow=true">
|
|
|
- <text>{{guoRenaccidentalDrivingVo.parentName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <template v-if="guoRenaccidentalDrivingVo.projectName">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="guorenPopupshow1=true">
|
|
|
- <text>{{guoRenaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <view class="">
|
|
|
- <text>保费:</text>
|
|
|
- <text
|
|
|
- style="color: #ee7000;">¥{{guoRenaccidentalDrivingVo.sumPremium*guoRenaccidentalDrivingVo.quantity}}.00</text>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="guoRenaccidentalDrivingVo.quantity"
|
|
|
- :min="1" :max="1" :input-width="70" :input-height="44"
|
|
|
- :long-press="false" size="26"></u-number-box>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- <template
|
|
|
- v-if="totalitem.namesimple == '大家财险' && totalitem.checked && totalitem.agreementId">
|
|
|
- <view class="accident-style dis f-c ">
|
|
|
- <view class="dis j-s a-c">
|
|
|
- <text style="font-weight: bold;font-size: 14px;">意外险</text>
|
|
|
- <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
|
|
|
- inactive-color="#eee" size='30'
|
|
|
- @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
|
|
|
- </view>
|
|
|
- <view class=""
|
|
|
- v-if="dajiaaccidentalDrivingVo.projectCode && totalitem.jychecked">
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="dajiaPopupshow=true"
|
|
|
- v-if="totalitem.apiType=='2'">
|
|
|
- <text>{{dajiaaccidentalDrivingVo.parentName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" accident-ins dis a-c j-s" @click="dajiaPopupshow1=true">
|
|
|
- <text>{{dajiaaccidentalDrivingVo.projectName}}</text>
|
|
|
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
|
|
|
- </view>
|
|
|
- <view class=" dis j-s a-c">
|
|
|
- <view class="">
|
|
|
- <text>保费:</text>
|
|
|
- <text
|
|
|
- style="color: #ee7000;">¥{{dajiaaccidentalDrivingVo.sumPremium*dajiaaccidentalDrivingVo.quantity}}.00</text>
|
|
|
- </view>
|
|
|
- <view class="">
|
|
|
- <text>份数:</text>
|
|
|
- <u-number-box v-model="dajiaaccidentalDrivingVo.quantity" :min="1"
|
|
|
- :max="1" :disabled-input="true" :input-width="70"
|
|
|
- :long-press="false" :input-height="44" size="26"></u-number-box>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
-
|
|
|
- <view class="Premium dis f-c" v-show="totalitem.quoteCode==200">
|
|
|
- <view class="dis price" v-if="totalitem.result.feeNoDescription">
|
|
|
- <text>该车未匹配销管费用,不建议投保!</text>
|
|
|
- <u-icon name="chat-fill" color="#ff0000" size="40"
|
|
|
- @click="discountErrorMessageMsg(totalitem.result.feeNoDescription,totalitem.namesimple)"></u-icon>
|
|
|
- </view>
|
|
|
- <view class="dis a-c f-wrap price">
|
|
|
- <text
|
|
|
- v-if="totalitem.result.jqPremium">交强险:¥{{totalitem.result.jqPremium}}</text>
|
|
|
- <text
|
|
|
- v-if="totalitem.result.syPremium">商业险:¥{{totalitem.result.syPremium}}</text>
|
|
|
- <text
|
|
|
- v-if="totalitem.result.taxAmount">车船税:¥{{totalitem.result.taxAmount}}</text>
|
|
|
- <text
|
|
|
- v-if="totalitem.result.jyPremium">驾意险:¥{{totalitem.result.jyPremium}}</text>
|
|
|
- </view>
|
|
|
- <view class="dis a-c f-wrap price" style="font-size: 20rpx;color: #FF4D4D;"
|
|
|
- v-if="totalitem.result.feeDisplay">
|
|
|
- <text>{{totalitem.result.feeView?'掌柜科技币:【':'优惠金额:【'}}
|
|
|
- <text
|
|
|
- v-if="totalitem.result.jqPremium">交强险:{{totalitem.result.jqExportFee?totalitem.result.jqExportFee:'无'}}</text>
|
|
|
- <text
|
|
|
- v-if="totalitem.result.syPremium">商业险:{{totalitem.result.syExportFee?totalitem.result.syExportFee:'无'}}</text>
|
|
|
- <text
|
|
|
- v-if="totalitem.result.jyPremium">驾意险:{{totalitem.result.noExportFee?totalitem.result.noExportFee:"无"}}</text>
|
|
|
- 】</text>
|
|
|
-
|
|
|
- </view>
|
|
|
- <view class="dis a-c j-s ">
|
|
|
- <view class="dis f-c time">
|
|
|
- <text
|
|
|
- v-if="totalitem.result.jqPremium">交强险:{{totalitem.result.startDateJq}}~{{totalitem.result.endDateJq}}
|
|
|
-
|
|
|
- </text>
|
|
|
- <text
|
|
|
- v-if="totalitem.result.startDateSy">商业险:{{totalitem.result.startDateSy}}~{{totalitem.result.endDateSy}}
|
|
|
-
|
|
|
- </text>
|
|
|
- </view>
|
|
|
- <image src="/static/image/car-insure/Group30.png" mode=""
|
|
|
- style="width: 14px;height: 14px;" @click="syncData(totalitem.result)">
|
|
|
- </image>
|
|
|
- </view>
|
|
|
- <view class="dis a-c f-wrap time">
|
|
|
- <text v-if="totalitem.namesimple == '永诚财险'">光博分:{{ totalitem.result.ilogPreUdwMess ?
|
|
|
- totalitem.result.ilogPreUdwMess : '无' }}</text>
|
|
|
- <text v-else>评分:{{ totalitem.result.ilogPreUdwMess ?
|
|
|
- totalitem.result.ilogPreUdwMess : '无' }}</text>
|
|
|
- <text v-if="totalitem.result.jqScore">交强类型评分:{{ totalitem.result.jqScore ?
|
|
|
- totalitem.result.jqScore : '无' }}</text>
|
|
|
- <text v-if="totalitem.result.syScore">商业类型评分:{{ totalitem.result.syScore ?
|
|
|
- totalitem.result.syScore : '无' }}</text>
|
|
|
- <text v-if="totalitem.result.lossRation">总赔付率:{{ totalitem.result.lossRation ?
|
|
|
- totalitem.result.lossRation : '无' }}</text>
|
|
|
- <text v-if="totalitem.result.jqLossRation">交强赔付率:{{ totalitem.result.jqLossRation ?
|
|
|
- totalitem.result.jqLossRation : '无' }}</text>
|
|
|
- <text v-if="totalitem.result.syLossRation">商业赔付率:{{ totalitem.result.syLossRation ?
|
|
|
- totalitem.result.syLossRation : '无' }}</text>
|
|
|
-
|
|
|
- <text v-if="totalitem.result.totalAdjustRate">自主定价系数:{{ totalitem.result.totalAdjustRate ?
|
|
|
- totalitem.result.totalAdjustRate : '无' }}</text>
|
|
|
- <text v-if="totalitem.result.jgAdjustRate">交强折扣系数:{{ totalitem.result.jgAdjustRate ?
|
|
|
- totalitem.result.jgAdjustRate : '无' }}</text>
|
|
|
- <text v-if="totalitem.result.syAdjustRate">商业折扣系数:{{ totalitem.result.syAdjustRate ?
|
|
|
- totalitem.result.syAdjustRate : '无' }}</text>
|
|
|
- <text v-if="totalitem.namesimple == '诚泰财险'">建议折扣:{{ totalitem.result.initialProposalDiscount ?
|
|
|
- totalitem.result.initialProposalDiscount : '无' }}</text>
|
|
|
- <text v-else>期望折扣:{{ totalitem.result.initialProposalDiscount ?
|
|
|
- totalitem.result.initialProposalDiscount : '无' }}</text>
|
|
|
- <text
|
|
|
- v-if="totalitem.namesimple == '紫金财险'">鼎然-车辆风险评分:{{totalitem.result.ubiPredictedInfoScore ?
|
|
|
- totalitem.result.ubiPredictedInfoScore : '无'}}</text>
|
|
|
- <text v-if="totalitem.result.jqRenewal">交强续保:{{ totalitem.result.jqRenewal ?
|
|
|
- totalitem.result.jqRenewal : '无' }}</text>
|
|
|
- <text v-if="totalitem.result.syRenewal">商业续保:{{ totalitem.result.syRenewal ?
|
|
|
- totalitem.result.syRenewal : '无' }}</text>
|
|
|
- <text v-if="totalitem.result.jqClaims">交强出险次数:{{ totalitem.result.jqClaims ?
|
|
|
- totalitem.result.jqClaims : '无' }}</text>
|
|
|
- <text v-if="totalitem.result.syClaims">商业出险次数:{{ totalitem.result.syClaims ?
|
|
|
- totalitem.result.syClaims : '无' }}</text>
|
|
|
- </view>
|
|
|
- <template v-if="totalitem.result.iszdj !=null && totalitem.result.iszdj!=''">
|
|
|
- <text v-if="totalitem.result.iszdj==0" style="color: red;">假单交</text>
|
|
|
- <text v-if="totalitem.result.iszdj==1" style="color: red;">真单交</text>
|
|
|
- </template>
|
|
|
- <view class="dis a-c j-end lastyear">
|
|
|
- <view class=" left dis j-c a-c" v-if="totalitem.lastYearMsg"
|
|
|
- @click="YearMsg(totalitem.lastYearMsg,totalitem.namesimple)">
|
|
|
- <image src="/static/image/car-insure/lastyear.png" mode=""></image>
|
|
|
- <text>上年信息</text>
|
|
|
- </view>
|
|
|
- <view class=" right dis j-c a-c" v-if='totalitem.result.predictInfo'
|
|
|
- @click="preUnderwriting(totalitem.result.predictInfo)">
|
|
|
- <image src="/static/image/car-insure/advance.png" mode=""></image>
|
|
|
- <text>预核保信息</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="quotebtn dis j-s a-c" v-show="totalitem.quoteCode==200">
|
|
|
- <view class="dis a-c j-c" @click="bjdpreview(totalitem.result.companyId)"
|
|
|
- style="background-color: #0052FF;border-bottom-left-radius:6px;color: #fff;">
|
|
|
- 报价单
|
|
|
- </view>
|
|
|
- <view class="dis a-c j-c"
|
|
|
- style="background-color: #E6EEFF;border-bottom-right-radius:6px;color: #0052FF;"
|
|
|
- @click="querydetial(totalitem.result.companyId)">
|
|
|
- 查看详情
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </block>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <wyb-popup ref="lastYearMsgCI" type="center" mode="size-fixed" height="900" radius="6" :showCloseIcon="true">
|
|
|
-
|
|
|
- <view class="popupBody">
|
|
|
- <view class="popHeader d-flex a-center j-center">
|
|
|
- 投保方案建议
|
|
|
- </view>
|
|
|
- <scroll-view scroll-top="0" scroll-y="true" class="popupScroll">
|
|
|
-
|
|
|
- </scroll-view>
|
|
|
- <view class="popBottom d-flex a-center j-center main-text-color" @tap="adjustPopupInsureSubmit">我知道了
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </wyb-popup>
|
|
|
- <!-- 人寿驾意险弹框 -->
|
|
|
- <u-modal v-model="renshouPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0; align-items: flex-start;" label-size="30" shape="square"
|
|
|
- @change="RSradioChange" v-for="(item, index) in renshouInsuranceData" :key="index"
|
|
|
- :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
-
|
|
|
- <!-- 中煤驾意险弹框 -->
|
|
|
- <u-modal v-model="zhongmeiPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;" label-size="30" @change="ZMradioChange" shape="square"
|
|
|
- v-for="(item, index) in zhongmeiInsuranceData" :key="index" :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <!-- 恒邦驾意险弹框 -->
|
|
|
- <u-modal v-model="hengbangPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="HBradioChange" shape="square"
|
|
|
- v-for="(item, index) in hengbangInsuranceData" :key="index" :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <!-- 诚泰驾意险弹框 -->
|
|
|
- <u-modal v-model="chengtaiPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="CTradioChange" shape="square"
|
|
|
- v-for="(item, index) in chengtaiInsuranceData" :key="index" :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <!-- 众安驾意险弹框 -->
|
|
|
- <u-modal v-model="zhonganPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="ZAradioChange" shape="square"
|
|
|
- v-for="(item, index) in zhonganInsuranceData" :key="index" :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <!-- 华农驾意险弹框 -->
|
|
|
- <u-modal v-model="huanongPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;align-items: flex-start;" label-size="30"
|
|
|
- @change="HNradioChange" shape="square" v-for="(item, index) in huanongInsuranceData"
|
|
|
- :key="index" :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <!-- 泰康驾意险弹框 -->
|
|
|
- <u-modal v-model="taikangPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;align-items: flex-start;" label-size="30"
|
|
|
- @change="TkradioChange" shape="square" v-for="(item, index) in taikangInsuranceData"
|
|
|
- :key="index" :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <u-modal v-model="yongchengPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;align-items: flex-start;" label-size="30"
|
|
|
- @change="YCradioChange" shape="square" v-for="(item, index) in yongchengInsuranceData"
|
|
|
- :key="index" :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <!-- 安盛驾意险弹框 -->
|
|
|
- <u-modal v-model="anshengPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="ASprogrammeradioChange"
|
|
|
- shape="square" v-for="(item, index) in anshengprogrammeData" :key="index"
|
|
|
- :name="item.projectCode">
|
|
|
- {{item.projectCode}}{{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <u-modal v-model="anshengPopupshow1" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="ASInsuranceradioChange"
|
|
|
- shape="square" v-for="(item, index) in anshengInsuranceData" :key="index"
|
|
|
- :name="item.projectCode">
|
|
|
- {{item.projectCode}}{{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <!-- 紫金驾意险弹框 -->
|
|
|
- <u-popup v-model="zijinPopupshow" mode="bottom" border-radius="10" height="700">
|
|
|
- <view class="ZJcheckboxGroup dis f-c">
|
|
|
- <view class="title dis a-c j-c">
|
|
|
- <text>意外险分类</text>
|
|
|
- </view>
|
|
|
- <scroll-view scroll-y="true" class="scolcentent">
|
|
|
- <u-checkbox-group @change="ZJcheckboxGroupChange">
|
|
|
- <u-checkbox style="margin: 8px 0;flex: auto;" label-size="28" v-model="item.checked"
|
|
|
- v-for="(item, index) in zijinInsuranceData" :key="index"
|
|
|
- :name="item.projectCode">{{item.projectName}}</u-checkbox>
|
|
|
- </u-checkbox-group>
|
|
|
- </scroll-view>
|
|
|
- <view class="operateBtn dis ">
|
|
|
- <view class="cancel dis a-c j-c" @click="zijinPopupshow=false">
|
|
|
- 取消
|
|
|
- </view>
|
|
|
- <view class="confirm dis a-c j-c" @click="zijinPopupshow=false">
|
|
|
- 确定
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </u-popup>
|
|
|
- <!-- 国任驾意险弹框 -->
|
|
|
- <u-modal v-model="guorenPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="GRprogrammeradioChange"
|
|
|
- shape="square" v-for="(item, index) in guorenprogrammeData" :key="index"
|
|
|
- :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <u-modal v-model="guorenPopupshow1" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="GRInsuranceradioChange"
|
|
|
- shape="square" v-for="(item, index) in guoRenInsuranceData" :key="index"
|
|
|
- :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <!-- 国任特约弹框 -->
|
|
|
- <u-modal v-model="guoRencontributingshow" title="特约保险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :confirm-style="{background:'#E6EEFF',color:'#0052FF'}">
|
|
|
- <view class="slot-content">
|
|
|
- <u-checkbox-group @change="guoRencontributingChange" style="display: contents;">
|
|
|
- <u-checkbox v-model="item.checked" v-for="(item, index) in guoRenSpecialAgreementData" :key="index"
|
|
|
- :name="item.clauseCode" style="align-items: baseline;">
|
|
|
- <view class="dis f-c ">
|
|
|
- <text>{{item.clauseCode}}{{item.clauses}}</text>
|
|
|
- <text style="font-size: 20rpx;color: #999;">{{item.clausesContext}}</text>
|
|
|
- </view>
|
|
|
- </u-checkbox>
|
|
|
- </u-checkbox-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <!-- 大家驾意险弹框 -->
|
|
|
- <u-modal v-model="dajiaPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="DJprogrammeradioChange"
|
|
|
- shape="square" v-for="(item, index) in dajiaprogrammeData" :key="index"
|
|
|
- :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <u-modal v-model="dajiaPopupshow1" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="DJradioChange" shape="square"
|
|
|
- v-for="(item, index) in dajiaInsuranceData" :key="index" :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <!-- 太平驾意险弹框 -->
|
|
|
- <u-modal v-model="taipingPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" wrap>
|
|
|
- <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="TPradioChange" shape="square"
|
|
|
- v-for="(item, index) in taipingInsuranceData" :key="index" :name="item.projectCode">
|
|
|
- {{item.projectName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <!-- 渤海驾意险弹框 -->
|
|
|
- <u-modal v-model="bohaiPopupshow" title="驾意险"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
|
|
|
- <view class="slot-content">
|
|
|
- <u-radio-group size="30" style="" wrap>
|
|
|
- <u-radio style="margin: 4px 0;align-items: flex-start;" label-size="30" @change="BHradioChange"
|
|
|
- shape="square" v-for="(item, index) in bohaiInsuranceData" :key="index"
|
|
|
- :name="item.productCode">
|
|
|
- {{item.packageName}}
|
|
|
- </u-radio>
|
|
|
- </u-radio-group>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <u-modal v-model="preUnderwritingshow" width="72%" title="预核保信息" :title-style="{fontWeight: 'bold'}">
|
|
|
- <view class="" style="padding: 10px;overflow-y:auto;height: 400px;">
|
|
|
- <view v-for="(item,index) in RSpreUnderwritingList" :key="index">
|
|
|
- <view class="dis f-c ">
|
|
|
- <text style="font-weight: bold;">审核意见</text>
|
|
|
- <text style="font-size: 12px;">{{item.opinion}}</text>
|
|
|
- </view>
|
|
|
- <view class="dis f-c">
|
|
|
- <text style="font-weight: bold;">备注</text>
|
|
|
- <text style="font-size: 12px;">{{item.description}}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <u-modal v-model="Generateshow" content="是否生成新的订单?" :content-style="{fontWeight: 'bold'}"
|
|
|
- :show-cancel-button="true" :show-title="false" :confirm-style="{color: '#ff9000'}"
|
|
|
- @confirm="GenerateModalConfirm"></u-modal>
|
|
|
- <u-modal v-model="GuidedPopShow"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :show-cancel-button="true"
|
|
|
- :confirm-style="{background:'#0052FF',color:'#fff',height:'40px',lineHeight:'40px'}"
|
|
|
- :cancel-style="{background:'#E6EEFF',color:'#0052FF',height:'40px',lineHeight:'40px'}"
|
|
|
- @confirm="Guidedconfirm" @cancel="sychecked=false">
|
|
|
- <view class="slot-content dis j-c a-c font-weight" style="color: #232832;">
|
|
|
- <text>将跳转至保险配置页面添加或修改商业险</text>
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <u-modal v-model="priceComparisonShow" title="比价提醒"
|
|
|
- :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
|
|
|
- :show-cancel-button="false"
|
|
|
- :confirm-style="{background:'#E6EEFF',color:'#0052FF',height:'40px',lineHeight:'40px'}"
|
|
|
- @confirm="priceComparisonShow=false">
|
|
|
- <view class="slot-content dis j-c a-c ">
|
|
|
- <view class="p-2">
|
|
|
- <text>可选择有报价结果的公司进行比价 最少选择两家,最多可选择三家</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- </view>
|
|
|
- </u-modal>
|
|
|
- <u-popup v-model="discountInfoPopup" mode="center" width="78%" border-radius="6">
|
|
|
- <view class="">
|
|
|
- <view class="p-2 dis j-c a-c">
|
|
|
- <text class="font-weight">{{discountInfoPopupTitle}}优惠信息</text>
|
|
|
- </view>
|
|
|
- <view style="padding: 0 20px;">
|
|
|
- <scroll-view scroll-y="true" class="discountInfoscroll">
|
|
|
- <rich-text :nodes="discountInfoPopupContent"></rich-text>
|
|
|
- </scroll-view>
|
|
|
- </view>
|
|
|
- <view class="PlanPopup-btn dis a-c j-c">
|
|
|
- <u-button shape="circle" size="medium" @click="discountInfoPopup=false">取消</u-button>
|
|
|
-
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </u-popup>
|
|
|
- <view class="footer-btn dis a-c j-s">
|
|
|
- <u-button type="primary" style="background:#FF9900;width: 20%;" @tap="tempSave">暂存</u-button>
|
|
|
- <u-button type="primary" style="background:#C9C9C9;width: 20%;" @click="priceComparison"
|
|
|
- v-if="comparableQuantity<2 ">比价</u-button>
|
|
|
- <u-button type="primary" style="background:#1DB1E0;width: 20%;" @click="priceComparison1"
|
|
|
- v-if="comparableQuantity>=2 && selectedCount<2">比价</u-button>
|
|
|
- <u-button type="primary" class="priceComparison" @click="priceComparison2"
|
|
|
- v-if="selectedCount>=2">比价</u-button>
|
|
|
- <u-button type="primary" style="background:#0052FF; width: 50%;" @tap="toNext">保费计算</u-button>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
-</template>
|
|
|
-<script>
|
|
|
- import {
|
|
|
- mapState
|
|
|
- } from "vuex"
|
|
|
- import {
|
|
|
- delEmptyQueryNodes,
|
|
|
- findDefaultProject
|
|
|
- } from '@/plugins/utils';
|
|
|
- import wybPopup from '@/components/common/wyb-popup/wyb-popup.vue'
|
|
|
- import lsLoading from '@/components/common/ls-loading/ls-loading.vue';
|
|
|
- import {
|
|
|
- sub
|
|
|
- } from "zrender/lib/core/vector";
|
|
|
- export default {
|
|
|
- components: {
|
|
|
- wybPopup,
|
|
|
- lsLoading
|
|
|
- },
|
|
|
- computed: {
|
|
|
- ...mapState(['userInfo', 'quotationType']),
|
|
|
- },
|
|
|
- // 监听导航栏的按钮
|
|
|
- onNavigationBarButtonTap(e) {
|
|
|
- if (e.index == 0) {
|
|
|
- this.navigate({
|
|
|
- url: '/pages/index/index'
|
|
|
- }, "switchTab", true);
|
|
|
- }
|
|
|
- },
|
|
|
- data() {
|
|
|
- return {
|
|
|
- discountInfoPopup: false,
|
|
|
- discountInfoPopupTitle: "",
|
|
|
- discountInfoPopupContent: ``,
|
|
|
- priceComparisonShow: false,
|
|
|
- comparableQuantity: 0, //报价成功总数
|
|
|
- selectedCount: 0, //比价勾选数量
|
|
|
- priceCtitle: "比价",
|
|
|
- shadowStyle: {
|
|
|
- backgroundImage: "none",
|
|
|
- paddingTop: "0",
|
|
|
- marginTop: "20rpx"
|
|
|
- },
|
|
|
- Selectchecked: false,
|
|
|
- params: {
|
|
|
- year: true, //年
|
|
|
- month: true, //月
|
|
|
- day: true, //日
|
|
|
- hour: true, //时
|
|
|
- minute: true, //分
|
|
|
- second: true, //秒
|
|
|
- },
|
|
|
- params1: {
|
|
|
- year: true, //年
|
|
|
- month: true, //月
|
|
|
- day: true, //日
|
|
|
- hour: false, //时
|
|
|
- minute: false, //分
|
|
|
- second: false, //秒
|
|
|
- },
|
|
|
- GuidedPopShow: false, //引导弹窗
|
|
|
- preUnderwritingshow: false, //预核保信息
|
|
|
- Generateshow: false,
|
|
|
- zhongmeiPopupshow: false,
|
|
|
- zhongmeiInsuranceData: [], //中煤意外险list
|
|
|
- zhongmeiaccidentalDrivingVo: [], //中煤意外险
|
|
|
- zijinPopupshow: false,
|
|
|
- zijinInsuranceData: [], //紫金意外险list
|
|
|
- zijinaccidentalDrivingVo: [], //紫金意外险
|
|
|
- huanongPopupshow: false,
|
|
|
- huanongInsuranceData: [], //华农意外险list
|
|
|
- huanongaccidentalDrivingVo: [], //华农意外险
|
|
|
-
|
|
|
- taikangPopupshow: false,
|
|
|
- taikangInsuranceData: [], //泰康意外险list
|
|
|
- taikangaccidentalDrivingVo: [], //泰康意外险
|
|
|
-
|
|
|
- taipingPopupshow: false,
|
|
|
- taipingInsuranceData: [], //太平意外险list
|
|
|
- taipingaccidentalDrivingVo: [], //太平意外险
|
|
|
- anshengPopupshow: false,
|
|
|
- anshengPopupshow1: false,
|
|
|
- anshengprogrammeData: [],
|
|
|
- anshengInsuranceData: [], //安盛意外险list
|
|
|
- anshengaccidentalDrivingVo: {}, //安盛意外险
|
|
|
- guorenPopupshow: false,
|
|
|
- guorenPopupshow1: false,
|
|
|
- guorenprogrammeData: [],
|
|
|
- guoRenInsuranceData: [], //国任意外险list
|
|
|
- guoRenaccidentalDrivingVo: {}, //国任意外险
|
|
|
- guoRencontributingshow: false, //国任特约
|
|
|
- dajiaPopupshow: false,
|
|
|
- dajiaPopupshow1: false,
|
|
|
- dajiaprogrammeData: [],
|
|
|
- dajiaInsuranceData: [], //大家意外险list
|
|
|
- dajiaaccidentalDrivingVo: {}, //大家意外险
|
|
|
- guoRenSpecialAgreementData: [],
|
|
|
- guoRenSpecialAgreementVo: [],
|
|
|
- yongchengPopupshow: false,
|
|
|
- yongchengInsuranceData: [], //永诚意外险list
|
|
|
- yongchengaccidentalDrivingVo: {}, //永诚意外险
|
|
|
- zhonganPopupshow: false,
|
|
|
- zhonganInsuranceData: [], //-众安意外险list
|
|
|
- zhonganaccidentalDrivingVo: {}, //众安意外险
|
|
|
- hengbangPopupshow: false,
|
|
|
- hengbangInsuranceData: [], //-恒邦意外险list
|
|
|
- hengbangaccidentalDrivingVo: {}, //恒邦意外险
|
|
|
- chengtaiPopupshow: false,
|
|
|
- chengtaiInsuranceData: [], //-恒邦意外险list
|
|
|
- chengtaiaccidentalDrivingVo: {}, //恒邦意外险
|
|
|
- renshouPopupshow: false,
|
|
|
- renshouInsuranceData: [], //-人寿意外险list
|
|
|
- renshouaccidentalDrivingVo: {}, //人寿意外险
|
|
|
- bohaiPopupshow: false,
|
|
|
- bohaiInsuranceData: [], //渤海意外险list
|
|
|
- bohaiaccidentalDrivingVo: {}, //渤海意外险
|
|
|
- jqstartShow: false, //交强起保日期
|
|
|
- jqendShow: false, //交强终保日期
|
|
|
- systartShow: false, //商业起保日期
|
|
|
- syendShow: false, //商业终保日期
|
|
|
- transferDateShow: false,
|
|
|
- content: ``,
|
|
|
- vehicleAndVesselTaxForm: {}, //车船税信息
|
|
|
- agreementList: [],
|
|
|
- zmDrivingForm: {}, //中煤驾意险
|
|
|
- zjaccidentalDrivingVo: [], //紫金驾意险
|
|
|
- carInfoPositiveList: [], //车辆影像
|
|
|
- ownerInfoPositiveList: [], //车主影像
|
|
|
- policyHolderInfoPositiveList: [], //投保人影像
|
|
|
- insuredPersonInfoPositiveList: [], //被保人影像
|
|
|
- orderno: "", //订单号
|
|
|
- show1: false, //华农
|
|
|
- animation: 'twinkle', //动画类型
|
|
|
- jqjishi: false,
|
|
|
- syjishi: false,
|
|
|
- timeArray: [],
|
|
|
- jqTimeIndex: 0,
|
|
|
- syTimeIndex: 0,
|
|
|
- time1: "",
|
|
|
- time2: "",
|
|
|
- carTypeList: [], //车辆品牌型号列表
|
|
|
- msg: "",
|
|
|
- quoteno: "", //报价编号
|
|
|
- hasKindCodeA: false, //是否含有车损险
|
|
|
- carInfo: {}, //车辆信息
|
|
|
- ownerInfo: {}, //车主信息
|
|
|
- policyHolderInfo: {}, //投保人信息
|
|
|
- insuredPersonInfo: {}, //被保人信息
|
|
|
- riskList: [], //险种大类信息
|
|
|
- kindList: [], //商业险险别
|
|
|
- showCarInfo: false, //控制车辆信息显示
|
|
|
- showInsureDate: true, //控制险种时间显示
|
|
|
- jqchecked: false,
|
|
|
- sychecked: false,
|
|
|
- jqstartDate: "", //交强险日期
|
|
|
- jqendDate: " ", //交强险日期
|
|
|
- systartDate: "", //商业险日期
|
|
|
- syendDate: "", //商业险日期
|
|
|
- insureList: [{
|
|
|
- amount: "0",
|
|
|
- amountDesc: "投保",
|
|
|
- amtList: [{
|
|
|
- "label": "不投保",
|
|
|
-
|
|
|
- "value": "0"
|
|
|
- }, {
|
|
|
- "label": "投保",
|
|
|
- "value": "1"
|
|
|
- }],
|
|
|
- kindCode: "A",
|
|
|
- isMainRisk: true,
|
|
|
- kindName: "机动车损失险",
|
|
|
- desc: "保险期间内,被保险人或被保险机动车驾驶人在使用被保险机动车过程中,因自然灾害、意外事故、机动车被盗窃、抢劫、抢夺等情况(详见保险条款)造成被保险机动车直接损失,且不属于免除保险人责任的范围,保险人依照本保险合同的约定负责赔偿的险种。"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- amtList: [{
|
|
|
- label: "不投保",
|
|
|
- value: "0"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "50万",
|
|
|
- value: "500000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "100万",
|
|
|
- value: "1000000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "150万",
|
|
|
- value: "1500000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "200万",
|
|
|
- value: "2000000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "250万",
|
|
|
- value: "2500000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "300万",
|
|
|
- value: "3000000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "500万",
|
|
|
- value: "5000000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "1000万",
|
|
|
- value: "10000000"
|
|
|
- }
|
|
|
- ],
|
|
|
- kindCode: "B",
|
|
|
- isMainRisk: true,
|
|
|
- kindName: "第三者责任险",
|
|
|
- desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使第三者遭受人身伤亡或财产直接损毁,依法应当对第三者承担的损害赔偿责任,且不属于免除保险人责任的范围,保险人依照本保险合同的约定,对于超过机动车交通事故责任强制保险各分项赔偿限额的部分负责赔偿的险种。"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- amtList: [{
|
|
|
- label: "不投保",
|
|
|
- value: "0"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "1万",
|
|
|
- value: "10000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "2万",
|
|
|
- value: "20000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "3万",
|
|
|
- value: "30000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "4万",
|
|
|
- value: "40000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "5万",
|
|
|
- value: "50000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "6万",
|
|
|
- value: "60000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "7万",
|
|
|
- value: "70000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "8万",
|
|
|
- value: "80000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "9万",
|
|
|
- value: "90000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "10万",
|
|
|
- value: "100000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "15万",
|
|
|
- value: "150000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "20万",
|
|
|
- value: "200000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "25万",
|
|
|
- value: "250000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "30万",
|
|
|
- value: "300000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "35万",
|
|
|
- value: "350000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "40万",
|
|
|
- value: "400000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "45万",
|
|
|
- value: "450000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "50万",
|
|
|
- value: "500000"
|
|
|
- },
|
|
|
-
|
|
|
- ],
|
|
|
- kindCode: "D3",
|
|
|
- isMainRisk: true,
|
|
|
- kindName: "司机责任险",
|
|
|
- desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- amtList: [{
|
|
|
- "label": "不投保",
|
|
|
- "value": "0"
|
|
|
- }, {
|
|
|
- "label": "1万",
|
|
|
- "value": "10000"
|
|
|
- }, {
|
|
|
- "label": "2万",
|
|
|
- "value": "20000"
|
|
|
- }, {
|
|
|
- "label": "4万",
|
|
|
- "value": "40000"
|
|
|
- }, {
|
|
|
- "label": "5万",
|
|
|
- "value": "50000"
|
|
|
- }, {
|
|
|
- "label": "10万",
|
|
|
- "value": "100000"
|
|
|
- }, {
|
|
|
- "label": "15万",
|
|
|
- "value": "150000"
|
|
|
- }, {
|
|
|
- "label": "20万",
|
|
|
- "value": "200000"
|
|
|
- }],
|
|
|
- kindCode: "D4",
|
|
|
- isMainRisk: true,
|
|
|
- kindName: "乘客责任险",
|
|
|
- desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- amtList: [{
|
|
|
- "label": "不投保",
|
|
|
- "value": "0"
|
|
|
- }, {
|
|
|
- "label": "2000",
|
|
|
- "value": "2000"
|
|
|
- }, {
|
|
|
- "label": "5000",
|
|
|
- "value": "5000"
|
|
|
- }, {
|
|
|
- "label": "1万",
|
|
|
- "value": "10000"
|
|
|
- }],
|
|
|
- desc: "保险期间内,被保险机动车在被保险人或被保险机动车驾驶人使用过程中,发生无明显碰撞痕迹的车身划痕损失,保险人按照保险合同约定负责赔偿的险种",
|
|
|
- isMainRisk: true,
|
|
|
- kindCode: "L",
|
|
|
- kindName: "车身划痕险",
|
|
|
- mainRiskCodeList: "A"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- amtList: [{
|
|
|
- "label": "不投保",
|
|
|
- "value": "0"
|
|
|
- }, {
|
|
|
- "label": "5%",
|
|
|
- "value": "5"
|
|
|
- }, {
|
|
|
- "label": "10%",
|
|
|
- "value": "10"
|
|
|
- }, {
|
|
|
- "label": "15%",
|
|
|
- "value": "15"
|
|
|
- }, {
|
|
|
- "label": "20%",
|
|
|
- "value": "20"
|
|
|
- }],
|
|
|
- desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
|
|
|
- isMainRisk: true,
|
|
|
- kindCode: "MJ1",
|
|
|
- kindName: "绝对免赔率特约险(车损)",
|
|
|
- mainRiskCodeList: "A"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- amtList: [{
|
|
|
- "label": "不投保",
|
|
|
- "value": "0"
|
|
|
- }, {
|
|
|
- "label": "5%",
|
|
|
- "value": "5"
|
|
|
- }, {
|
|
|
- "label": "10%",
|
|
|
- "value": "10"
|
|
|
- }, {
|
|
|
- "label": "15%",
|
|
|
- "value": "15"
|
|
|
- }, {
|
|
|
- "label": "20%",
|
|
|
- "value": "20"
|
|
|
- }],
|
|
|
- desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
|
|
|
- isMainRisk: true,
|
|
|
- kindCode: "MJ2",
|
|
|
- kindName: "绝对免赔率特约险(三者)",
|
|
|
- mainRiskCodeList: "B"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- amtList: [{
|
|
|
- "label": "不投保",
|
|
|
- "value": "0"
|
|
|
- }, {
|
|
|
- "label": "5%",
|
|
|
- "value": "5"
|
|
|
- }, {
|
|
|
- "label": "10%",
|
|
|
- "value": "10"
|
|
|
- }, {
|
|
|
- "label": "15%",
|
|
|
- "value": "15"
|
|
|
- }, {
|
|
|
- "label": "20%",
|
|
|
- "value": "20"
|
|
|
- }],
|
|
|
- desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
|
|
|
- isMainRisk: true,
|
|
|
- kindCode: "MJ3",
|
|
|
- kindName: "绝对免赔率特约险(司机)",
|
|
|
- mainRiskCodeList: "D3"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- amtList: [{
|
|
|
- "label": "不投保",
|
|
|
- "value": "0"
|
|
|
- }, {
|
|
|
- "label": "5%",
|
|
|
- "value": "5"
|
|
|
- }, {
|
|
|
- "label": "10%",
|
|
|
- "value": "10"
|
|
|
- }, {
|
|
|
- "label": "15%",
|
|
|
- "value": "15"
|
|
|
- }, {
|
|
|
- "label": "20%",
|
|
|
- "value": "20"
|
|
|
- }],
|
|
|
- desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
|
|
|
- isMainRisk: true,
|
|
|
- kindCode: "MJ4",
|
|
|
- kindName: "绝对免赔率特约险(乘客)",
|
|
|
- mainRiskCodeList: "D4"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- coveragePremium: 0,
|
|
|
- amtList: [{
|
|
|
- label: "不投保",
|
|
|
- value: "0"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "1万",
|
|
|
- value: "10000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "2万",
|
|
|
- value: "20000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "4万",
|
|
|
- value: "40000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "5万",
|
|
|
- value: "50000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "8万",
|
|
|
- value: "80000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "10万",
|
|
|
- value: "100000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "20万",
|
|
|
- value: "200000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "30万",
|
|
|
- value: "300000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "50万",
|
|
|
- value: "500000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "100万",
|
|
|
- value: "1000000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "200万",
|
|
|
- value: "2000000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "300万",
|
|
|
- value: "3000000"
|
|
|
- },
|
|
|
- ],
|
|
|
- kindCode: "SY_FJ_YBW1",
|
|
|
- isMainRisk: true,
|
|
|
- kindName: "附加医保-三者",
|
|
|
- desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- coveragePremium: 0,
|
|
|
- amtList: [{
|
|
|
- label: "不投保",
|
|
|
- value: "0"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "1万",
|
|
|
- value: "10000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "2万",
|
|
|
- value: "20000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "5万",
|
|
|
- value: "50000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "10万",
|
|
|
- value: "100000"
|
|
|
- }
|
|
|
- ],
|
|
|
- kindCode: "SY_FJ_YBW2",
|
|
|
- isMainRisk: true,
|
|
|
- kindName: "附加医保-座位险(乘客)",
|
|
|
- desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- coveragePremium: 0,
|
|
|
- amtList: [{
|
|
|
- label: "不投保",
|
|
|
- value: "0"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "1万",
|
|
|
- value: "10000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "2万",
|
|
|
- value: "20000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "5万",
|
|
|
- value: "50000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "10万",
|
|
|
- value: "100000"
|
|
|
- }
|
|
|
- ],
|
|
|
- kindCode: "SY_FJ_YBW3",
|
|
|
- isMainRisk: true,
|
|
|
- kindName: "附加医保-座位险(司机)",
|
|
|
- desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- coveragePremium: 0,
|
|
|
- amtList: [{
|
|
|
- label: "不投保",
|
|
|
- value: "0"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "2次",
|
|
|
- value: "2"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "7次",
|
|
|
- value: "7"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "12次",
|
|
|
- value: "12"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "17次",
|
|
|
- value: "17"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "22次",
|
|
|
- value: "22"
|
|
|
- },
|
|
|
- ],
|
|
|
- kindCode: "TY1",
|
|
|
- isMainRisk: true,
|
|
|
- kindName: "道路救援服务特约条款",
|
|
|
- desc: "道路救援服务特约条款是指在保险期内,被保险机动车在使用过程中发生故障而丧失行驶能力时,保险人根据被保险人的请求,向被保险人提供道路救援服务。"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: 0,
|
|
|
- amountDesc: "不投保",
|
|
|
- kindCode: "TY2",
|
|
|
- isMainRisk: true,
|
|
|
- kindName: "车辆安全检测特约条款",
|
|
|
- desc: "安全检测特约条款是指保险期间内,为保障车辆安全运行,保险人或其受托人根据被保险人请求,为被保险机动车提供车辆安全检测服务。"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: 0,
|
|
|
- amountDesc: "不投保",
|
|
|
- kindCode: "TY3",
|
|
|
- isMainRisk: true,
|
|
|
- kindName: "代为驾驶服务特约条款",
|
|
|
- desc: "代为驾驶特约条款是指保险期间内,在被保险人或其允许的驾驶人因饮酒、服用药物等原因无法驾驶或存在重大安全驾驶隐患时,提供单程30公里以内的短途代驾服务。"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: 0,
|
|
|
- amountDesc: "不投保",
|
|
|
- kindCode: "TY4",
|
|
|
- isMainRisk: true,
|
|
|
- kindName: "代为送检服务特约条款",
|
|
|
- desc: "代为送检特约条款是指保险期间内,由保险人或其受托人代替车辆所有人进行车辆送检。"
|
|
|
- },
|
|
|
- {
|
|
|
- amount: "0",
|
|
|
- amountDesc: "不投保",
|
|
|
- amtList: [{
|
|
|
- label: "不投保",
|
|
|
- value: "0"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "50万",
|
|
|
- value: "500000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "100万",
|
|
|
- value: "1000000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "150万",
|
|
|
- value: "1500000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "200万",
|
|
|
- value: "2000000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "250万",
|
|
|
- value: "2500000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "300万",
|
|
|
- value: "3000000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "500万",
|
|
|
- value: "5000000"
|
|
|
- },
|
|
|
- {
|
|
|
- label: "1000万",
|
|
|
- value: "10000000"
|
|
|
- }
|
|
|
- ],
|
|
|
- desc: "保险期间内,被保险人或其允许的驾驶人在法定节假日期间使用被保险机动车发生机动车第三者责任保险范围内的事故,并经公安部门或保险人查勘确认的,被保险机动车第三者责任保险所适用的责任限额在保险单载明的基础上增加一倍的险种",
|
|
|
- isMainRisk: true,
|
|
|
- kindCode: "BD",
|
|
|
- kindName: "法定节假日限额翻倍险",
|
|
|
- mainRiskCodeList: "B"
|
|
|
- }
|
|
|
-
|
|
|
- ],
|
|
|
- accidentForm: {
|
|
|
- fen: "1"
|
|
|
- }, //意外险内容
|
|
|
- //永诚转保确认码
|
|
|
- cqryCdeJq: "",
|
|
|
- cqryCdeSy: "",
|
|
|
- renewalCodeJq: "", //交强确认码
|
|
|
- renewalCodeSy: "", //商业确认码
|
|
|
- //-----------------
|
|
|
- totalCompanyList: [], //保险公司列表
|
|
|
- insAreaCompanyEditingDtos: [],
|
|
|
- notStartedQuote: true, //未开始报价(true表示未开始报价,false表示已经报价结束)
|
|
|
- quoteCompanyCount: 0,
|
|
|
- ycdrivingJoyCoverage: {},
|
|
|
- RSpreUnderwritingList: [], //人寿预核保信息
|
|
|
- subOrderId: '',
|
|
|
- lastCompanyId: '',
|
|
|
- }
|
|
|
- },
|
|
|
- watch: {
|
|
|
- comparableQuantity: {
|
|
|
- handler(val) {
|
|
|
- console.log(val);
|
|
|
- },
|
|
|
- },
|
|
|
- },
|
|
|
- async onLoad(params) {
|
|
|
- if (params.orderno) {
|
|
|
- let res = await this.$http.post('/insurance/order/revise', {
|
|
|
- orderNo: params.orderno
|
|
|
- });
|
|
|
- this.carInfo = res.data.carinfo; //车辆信息
|
|
|
- this.ownerInfo = res.data.ownerinfo; //车主信息
|
|
|
- this.policyHolderInfo = res.data.applyinfo; //投保人信息
|
|
|
- this.insuredPersonInfo = res.data.insureinfo; //被保人信息
|
|
|
- this.riskList = res.data.risk; //险种大类
|
|
|
- this.kindList = res.data.king; //商业险险别
|
|
|
- this.vehicleAndVesselTaxForm = res.data.vehicleAndVesselTax; //车船税信息
|
|
|
- this.orderno = res.data.orderno;
|
|
|
- this.quoteno = res.data.quoteno;
|
|
|
- this.imageEcho(res.data.quoteno) // 影像获取完毕
|
|
|
- this.insAreaCompanyEditingDtos = res.data.insAreaCompanyEditingDtos;
|
|
|
- if (this.riskList.length > 0) {
|
|
|
- for (let i = 0; i < this.riskList.length; i++) {
|
|
|
- if (this.riskList[i].riskCode == '0507') {
|
|
|
- this.jqchecked = true;
|
|
|
- if (this.isDateBeforeToday(this.riskList[i].startDate)) {
|
|
|
- this.jqstartDate = this.nextday();
|
|
|
- this.jqendDate = this.oneYearPast(this.jqstartDate)
|
|
|
- } else {
|
|
|
- this.jqstartDate = this.riskList[i].startDate;
|
|
|
- this.jqendDate = this.riskList[i].endDate;
|
|
|
- }
|
|
|
- }
|
|
|
- if (this.riskList[i].riskCode == '0510') {
|
|
|
- this.sychecked = true;
|
|
|
- if (this.isDateBeforeToday(this.riskList[i].startDate)) {
|
|
|
- this.systartDate = this.nextday();
|
|
|
- this.syendDate = this.oneYearPast(this.systartDate)
|
|
|
- } else {
|
|
|
- this.systartDate = this.riskList[i].startDate;
|
|
|
- this.syendDate = this.riskList[i].endDate;
|
|
|
- }
|
|
|
- this.kindList.map(ele1 => {
|
|
|
- this.insureList.map(ele2 => {
|
|
|
- if (ele2.kindCode == ele1.kindCode) {
|
|
|
- switch (ele1.kindCode) {
|
|
|
- case 'D4':
|
|
|
- case 'SY_FJ_YBW2':
|
|
|
- ele2.amount = ele1.unitAmount;
|
|
|
- break;
|
|
|
- case "MJ1":
|
|
|
- case "MJ2":
|
|
|
- case "MJ3":
|
|
|
- case "MJ4":
|
|
|
- ele2.amount = ele1.deductibleRate;
|
|
|
- break;
|
|
|
- case "TY1":
|
|
|
- case "TY2":
|
|
|
- case "TY3":
|
|
|
- case "TY4":
|
|
|
- ele2.amount = ele1.serviceTimes;
|
|
|
- ele2.amountDesc = ele1.serviceTimes +
|
|
|
- '次'
|
|
|
- break;
|
|
|
- default:
|
|
|
- ele2.amount = ele1.amount;
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- const eventChannel = this.getOpenerEventChannel()
|
|
|
- // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
|
|
|
- eventChannel.on('acceptData', async (data) => {
|
|
|
- this.carInfo = data.carInfo; //车辆信息
|
|
|
- this.ownerInfo = data.ownerInfo; //车主信息
|
|
|
- this.policyHolderInfo = data.policyHolderInfo; //投保人信息
|
|
|
- this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
|
|
|
- this.riskList = data.riskList; //险种大类
|
|
|
- this.kindList = data.kindList; //商业险险别
|
|
|
- this.vehicleAndVesselTaxForm = data.vehicleAndVesselTaxForm; //车船税信息
|
|
|
- this.carInfoPositiveList = data.carInfoPositiveList; //车辆
|
|
|
- this.ownerInfoPositiveList = data.ownerInfoPositiveList; //车主
|
|
|
- this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
|
|
|
- this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
|
|
|
- if (this.riskList.length > 0) {
|
|
|
- for (let i = 0; i < this.riskList.length; i++) {
|
|
|
- if (this.riskList[i].riskCode == '0507') {
|
|
|
- this.jqchecked = true;
|
|
|
- this.jqstartDate = this.riskList[i].startDate;
|
|
|
- this.jqendDate = this.riskList[i].endDate;
|
|
|
- }
|
|
|
- if (this.riskList[i].riskCode == '0510') {
|
|
|
- this.sychecked = true;
|
|
|
- this.systartDate = this.riskList[i].startDate;
|
|
|
- this.syendDate = this.riskList[i].endDate;
|
|
|
- this.kindList.map(ele1 => {
|
|
|
- this.insureList.map(ele2 => {
|
|
|
- if (ele2.kindCode == ele1.kindCode) {
|
|
|
- switch (ele1.kindCode) {
|
|
|
- case 'D4':
|
|
|
- case 'SY_FJ_YBW2':
|
|
|
- ele2.amount = ele1.unitAmount;
|
|
|
- break;
|
|
|
- case "MJ1":
|
|
|
- case "MJ2":
|
|
|
- case "MJ3":
|
|
|
- case "MJ4":
|
|
|
- ele2.amount = ele1.deductibleRate;
|
|
|
- break;
|
|
|
- case "TY1":
|
|
|
- case "TY2":
|
|
|
- case "TY3":
|
|
|
- case "TY4":
|
|
|
- ele2.amount = ele1.serviceTimes;
|
|
|
- ele2.amountDesc = ele1.serviceTimes +
|
|
|
- '次'
|
|
|
- break;
|
|
|
- default:
|
|
|
- ele2.amount = ele1.amount;
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- this.commpanyList();
|
|
|
- const storage = uni.getStorageSync('historyInfo');
|
|
|
- if (storage) {
|
|
|
- Object.keys(storage).forEach(key => {
|
|
|
- this[key] = storage[key]
|
|
|
- })
|
|
|
- } else {
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- onHide() {
|
|
|
- let historyInfo = {
|
|
|
- quoteno: this.quoteno,
|
|
|
- orderno: this.orderno,
|
|
|
- zhongmeiInsuranceData: this.zhongmeiInsuranceData, //中煤意外险list
|
|
|
- zhongmeiaccidentalDrivingVo: this.zhongmeiaccidentalDrivingVo, //中煤意外险
|
|
|
- huanongInsuranceData: this.huanongInsuranceData, //华农意外险list
|
|
|
- huanongaccidentalDrivingVo: this.huanongaccidentalDrivingVo, //华农意外险
|
|
|
- taikangInsuranceData: this.taikangInsuranceData, //泰康意外险list
|
|
|
- taikangaccidentalDrivingVo: this.taikangaccidentalDrivingVo, //泰康意外险
|
|
|
- taipingInsuranceData: this.taipingInsuranceData, //太平意外险list
|
|
|
- taipingaccidentalDrivingVo: this.taipingaccidentalDrivingVo, //太平意外险
|
|
|
- guorenprogrammeData: this.guorenprogrammeData,
|
|
|
- guoRenInsuranceData: this.guoRenInsuranceData, //国任意外险list
|
|
|
- guoRenaccidentalDrivingVo: this.guoRenaccidentalDrivingVo, //国任意外险
|
|
|
- dajiaInsuranceData: this.dajiaInsuranceData, //大家意外险list
|
|
|
- dajiaaccidentalDrivingVo: this.dajiaaccidentalDrivingVo, //大家意外险
|
|
|
- bohaiInsuranceData: this.bohaiInsuranceData, //渤海意外险list
|
|
|
- bohaiaccidentalDrivingVo: this.bohaiaccidentalDrivingVo, //渤海意外险
|
|
|
- zijinInsuranceData: this.zijinInsuranceData, //紫金意外险list
|
|
|
- zijinaccidentalDrivingVo: this.zijinaccidentalDrivingVo, //紫金意外险
|
|
|
- anshengprogrammeData: this.anshengprogrammeData,
|
|
|
- anshengInsuranceData: this.anshengInsuranceData, //安盛意外险list
|
|
|
- anshengaccidentalDrivingVo: this.anshengaccidentalDrivingVo, //安盛意外险
|
|
|
- yongchengInsuranceData: this.yongchengInsuranceData, //永诚意外险list
|
|
|
- yongchengaccidentalDrivingVo: this.yongchengaccidentalDrivingVo, //永诚意外险
|
|
|
- zhonganInsuranceData: this.zhonganInsuranceData, //-众安意外险list
|
|
|
- zhonganaccidentalDrivingVo: this.zhonganaccidentalDrivingVo, //众安意外险
|
|
|
- hengbangInsuranceData: this.hengbangInsuranceData, //-恒邦意外险list
|
|
|
- hengbangaccidentalDrivingVo: this.hengbangaccidentalDrivingVo, //恒邦意外险
|
|
|
- renshouInsuranceData: this.renshouInsuranceData, //-人寿意外险list
|
|
|
- renshouaccidentalDrivingVo: this.renshouaccidentalDrivingVo, //人寿意外险
|
|
|
- }
|
|
|
- let res = delEmptyQueryNodes(historyInfo);
|
|
|
- uni.setStorageSync('historyInfo', res);
|
|
|
- uni.removeStorageSync("companyId")
|
|
|
- },
|
|
|
-
|
|
|
- methods: {
|
|
|
- priceComparison() {
|
|
|
- this.priceComparisonShow = true;
|
|
|
- },
|
|
|
- priceComparison1() {
|
|
|
- this.totalCompanyList.map(ele => {
|
|
|
- if (ele.quoteCode == 200) {
|
|
|
- ele.isComparableshowHide = true;
|
|
|
- }
|
|
|
- return ele;
|
|
|
- })
|
|
|
- },
|
|
|
- priceComparison2() {
|
|
|
- let subOrderNoslist = [];
|
|
|
- this.totalCompanyList.map(ele => {
|
|
|
- if (ele.isComparableShow) {
|
|
|
- subOrderNoslist.push(ele.result.companyId);
|
|
|
- }
|
|
|
- return ele;
|
|
|
- })
|
|
|
- uni.navigateTo({
|
|
|
- url: `/pages/orders/priceComparison?subOrderNoslist=${JSON.stringify(subOrderNoslist)}`
|
|
|
- })
|
|
|
-
|
|
|
- },
|
|
|
- async coordinateValue() {
|
|
|
- // let location = uni.getStorageSync('location');
|
|
|
- // let params = {
|
|
|
- // subOrderNo: this.subOrderId,
|
|
|
- // lng: location.longitude,
|
|
|
- // lat: location.latitude,
|
|
|
- // }
|
|
|
- // let orders = await this.$http.post('/insurance/order/savePosition', params);
|
|
|
- },
|
|
|
- async tempSave() {
|
|
|
- let param = {
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
- quoteno: this.quoteno ? this.quoteno : "",
|
|
|
- orderNo: this.orderno ? this.orderno : "",
|
|
|
- carInfo: this.carInfo,
|
|
|
- insuredPersonInfo: this.insuredPersonInfo,
|
|
|
- ownerInfo: this.ownerInfo,
|
|
|
- policyHolderInfo: this.policyHolderInfo,
|
|
|
- kindList: this.kindList,
|
|
|
- riskList: this.riskList,
|
|
|
- vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
|
|
|
- };
|
|
|
- let orders = await this.$http.post('/insurance/order/generateOrder', param);
|
|
|
- if (orders.code == '200') {
|
|
|
- uni.showToast({
|
|
|
- title: '暂存成功',
|
|
|
- icon: 'none',
|
|
|
- });
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- title: res.msg,
|
|
|
- icon: 'none',
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- isDateBeforeToday(date) {
|
|
|
- const inputDate = new Date(date); // 将输入的日期转换为 Date 对象
|
|
|
- const today = new Date(); // 获取当前日期
|
|
|
- // 比较日期是否小于当前日期
|
|
|
- if (inputDate < today) {
|
|
|
- return true; // 输入日期小于当前日期
|
|
|
- } else {
|
|
|
- return false; // 输入日期大于等于当前日期
|
|
|
- }
|
|
|
- },
|
|
|
- Guidedconfirm() {
|
|
|
- this.toInsureItems();
|
|
|
- },
|
|
|
- jqImmediate(value) {
|
|
|
- if (value) {
|
|
|
- this.jqstartDate = this.nextday();
|
|
|
- this.jqendDate = this.oneYearPast(this.jqstartDate)
|
|
|
- this.riskList.push({
|
|
|
- amount: 0,
|
|
|
- endDate: this.jqendDate,
|
|
|
- instantFlag: "0",
|
|
|
- premium: 0,
|
|
|
- riskCode: "0507",
|
|
|
- startDate: this.jqstartDate,
|
|
|
- })
|
|
|
- this.commpanyList();
|
|
|
- } else {
|
|
|
- let list = this.riskList.filter(item => item.riskCode !== "0507");
|
|
|
- this.riskList = list;
|
|
|
- this.commpanyList();
|
|
|
- }
|
|
|
- },
|
|
|
- syImmediate(value) {
|
|
|
- if (value) {
|
|
|
- this.GuidedPopShow = true;
|
|
|
- } else {
|
|
|
- let list = this.riskList.filter(item => item.riskCode !== "0510");
|
|
|
- this.riskList = list;
|
|
|
- this.kindList = [];
|
|
|
- this.commpanyList();
|
|
|
- }
|
|
|
- },
|
|
|
- immediatelyClick(name) {
|
|
|
- this.carInfo[name] = !this.carInfo[name];
|
|
|
- if (name == 'transferFlag') {
|
|
|
- if (this.carInfo[name]) {
|
|
|
- this.carInfo.transferDate = this.carInfo.issueDate;
|
|
|
- } else {
|
|
|
- this.carInfo.transferDate = "";
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- preUnderwriting(list) {
|
|
|
- this.RSpreUnderwritingList = list;
|
|
|
- this.preUnderwritingshow = true;
|
|
|
- },
|
|
|
- // SelectAll(e) {
|
|
|
- // this.totalCompanyList.map((ele, index) => {
|
|
|
- // e.value ? ele.checked = true : ele.checked = false;
|
|
|
- // this.checkboxChange(e, ele.id, ele.cnName, index)
|
|
|
-
|
|
|
- // })
|
|
|
- // },
|
|
|
- jqstartconfirm(e) {
|
|
|
- this.jqstartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
|
|
|
- this.jqendDate = this.oneYearPast(this.jqstartDate)
|
|
|
-
|
|
|
- },
|
|
|
- systartconfirm(e) {
|
|
|
- this.systartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
|
|
|
- this.syendDate = this.oneYearPast(this.systartDate)
|
|
|
- },
|
|
|
- transferconfirm(e) {
|
|
|
- this.carInfo.transferDate = e.year + '-' + e.month + '-' + e.day;
|
|
|
- },
|
|
|
- //影像查询
|
|
|
- async imageEcho(quotenos) {
|
|
|
- let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
|
|
|
- if (imgres.code == "200") {
|
|
|
- Object.keys(imgres.data).forEach((keys) => {
|
|
|
- if (imgres.data[keys].url) {
|
|
|
- imgres.data[keys].url = this.$base.baseUrl + imgres.data[keys].url;
|
|
|
- switch (keys) {
|
|
|
- case 'C01':
|
|
|
- this.carInfoPositiveList.push({
|
|
|
- imageId: imgres.data[keys].imageId,
|
|
|
- imageType: imgres.data[keys].imageType,
|
|
|
- })
|
|
|
- break;
|
|
|
- case 'D01':
|
|
|
- this.carInfoPositiveList.push({
|
|
|
- imageId: imgres.data[keys].imageId,
|
|
|
- imageType: imgres.data[keys].imageType,
|
|
|
- })
|
|
|
- break;
|
|
|
- case 'C02':
|
|
|
- this.ownerInfoPositiveList.push({
|
|
|
- imageId: imgres.data[keys].imageId,
|
|
|
- imageType: imgres.data[keys].imageType,
|
|
|
- });
|
|
|
- break;
|
|
|
- case 'D02':
|
|
|
- this.ownerInfoPositiveList.push({
|
|
|
- imageId: imgres.data[keys].imageId,
|
|
|
- imageType: imgres.data[keys].imageType,
|
|
|
- });
|
|
|
- break;
|
|
|
- case 'C03':
|
|
|
- this.policyHolderInfoPositiveList.push({
|
|
|
- imageId: imgres.data[keys].imageId,
|
|
|
- imageType: imgres.data[keys].imageType,
|
|
|
- });
|
|
|
- break;
|
|
|
- case 'D03':
|
|
|
- this.policyHolderInfoPositiveList.push({
|
|
|
- imageId: imgres.data[keys].imageId,
|
|
|
- imageType: imgres.data[keys].imageType,
|
|
|
- });
|
|
|
- break;
|
|
|
- case 'C04':
|
|
|
- this.insuredPersonInfoPositiveList.push({
|
|
|
- imageId: imgres.data[keys].imageId,
|
|
|
- imageType: imgres.data[keys].imageType,
|
|
|
- });
|
|
|
- break;
|
|
|
- case 'D04':
|
|
|
- this.insuredPersonInfoPositiveList.push({
|
|
|
- imageId: imgres.data[keys].imageId,
|
|
|
- imageType: imgres.data[keys].imageType,
|
|
|
- });
|
|
|
- break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- //查看详情
|
|
|
- querydetial(id) {
|
|
|
- this.navigate({
|
|
|
- url: "/pages/carInsure/quoteDetail?companyId=" + id
|
|
|
- },
|
|
|
- "navigateTo", true);
|
|
|
- },
|
|
|
- //报价单
|
|
|
- bjdpreview(id) {
|
|
|
- let pro = this.quotationType.themeCode;
|
|
|
- if (pro == "QD") {
|
|
|
- uni.navigateTo({
|
|
|
- url: "/pages/orders/quotation?companyId=" + id
|
|
|
- })
|
|
|
- } else {
|
|
|
- uni.navigateTo({
|
|
|
- url: "/pages/orders/quotation1?companyId=" + id
|
|
|
- })
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- //选择协议
|
|
|
- async selectConfirm(e, index) {
|
|
|
- this.totalCompanyList[index].agreementId = e[0].value;
|
|
|
- this.totalCompanyList[index].agreementName = e[0].label;
|
|
|
- this.totalCompanyList[index].apiType = e[0].extra;
|
|
|
- let ruleThirdPartyInsurance = this.kindList.find(val => val.kindCode == 'B'); //获取三者保额
|
|
|
- switch (this.totalCompanyList[index].namesimple) {
|
|
|
- case "大家财险":
|
|
|
- let djcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
- agreementId: this.totalCompanyList[index].agreementId,
|
|
|
- companyCode: this.totalCompanyList[index].id,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
- .amount : '',
|
|
|
- ruleUseNature: this.carInfo.carnature,
|
|
|
- kind: this.kindList,
|
|
|
- risk: this.riskList,
|
|
|
- });
|
|
|
- if (djcallback.code == '200') {
|
|
|
- let data = djcallback.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- })
|
|
|
- if (this.totalCompanyList[index].apiType == '2') {
|
|
|
- this.dajiaprogrammeData = data;
|
|
|
- const defaultProject = findDefaultProject(data);
|
|
|
- if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
- this.totalCompanyList[index].jychecked = true;
|
|
|
- this.dajiaInsuranceData = defaultProject.list;
|
|
|
- this.dajiaaccidentalDrivingVo = defaultProject.result;
|
|
|
- } else {
|
|
|
- this.dajiaaccidentalDrivingVo = {
|
|
|
- parentCode: data[0].projectCode, //驾意险商品号
|
|
|
- parentName: data[0].projectName, //驾意险商品名称
|
|
|
- ...data[0].children[0]
|
|
|
- }
|
|
|
- this.dajiaInsuranceData = data[0].children;
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.dajiaInsuranceData = data;
|
|
|
- const defaultProject = findDefaultProject(data);
|
|
|
- if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
- this.totalCompanyList[index].jychecked = true;
|
|
|
- this.dajiaInsuranceData = defaultProject.list;
|
|
|
- this.dajiaaccidentalDrivingVo = defaultProject.result;
|
|
|
- } else {
|
|
|
- this.dajiaInsuranceData = data;
|
|
|
- this.dajiaaccidentalDrivingVo = data[0];
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- break;
|
|
|
- default:
|
|
|
- }
|
|
|
- },
|
|
|
- //国任特约
|
|
|
- async guoRencontributing(id) {
|
|
|
- let guoRen = await this.$http.post('/api/guoRen/queryClauseData', {
|
|
|
- agreementId: id,
|
|
|
- })
|
|
|
- if (guoRen.code == '200') {
|
|
|
- this.guoRenSpecialAgreementData = guoRen.data;
|
|
|
- this.guoRencontributingshow = true;
|
|
|
- }
|
|
|
- },
|
|
|
- guoRencontributingChange(param) {
|
|
|
- this.guoRenSpecialAgreementVo = [];
|
|
|
- param.map(val => {
|
|
|
- let list = this.guoRenSpecialAgreementData.find(item => item.clauseCode == val)
|
|
|
- this.guoRenSpecialAgreementVo.push({
|
|
|
- clauseCode: list.clauseCode,
|
|
|
- clauses: list.clauses,
|
|
|
- clausesContext: list.clausesContext,
|
|
|
- riskCode: list.riskCode,
|
|
|
- riskName: list.riskName,
|
|
|
- })
|
|
|
- })
|
|
|
- },
|
|
|
- priceComparisonChange(index, item) {
|
|
|
- if (!item.isComparableDisabled) {
|
|
|
- item.isComparableShow = !item.isComparableShow;
|
|
|
- if (item.isComparableShow) {
|
|
|
- this.selectedCount++;
|
|
|
- } else {
|
|
|
- this.selectedCount--;
|
|
|
- }
|
|
|
- this.updateCheckboxStates();
|
|
|
- }
|
|
|
- },
|
|
|
- updateCheckboxStates() {
|
|
|
- this.totalCompanyList.forEach(item => {
|
|
|
- item.isComparableDisabled = this.selectedCount >= 3 && !item.isComparableShow;
|
|
|
- });
|
|
|
- },
|
|
|
- /**
|
|
|
- * 选择保险公司方法
|
|
|
- * @param {String} event change选中事件
|
|
|
- * @param {String} code 保险公司ID
|
|
|
- * @param {String} name 保险公司主体全拼
|
|
|
- * @param {String} index 选中下标
|
|
|
- */
|
|
|
- async checkboxChange(code, name, index) {
|
|
|
- this.totalCompanyList[index].checked = !this.totalCompanyList[index].checked;
|
|
|
- // let apiType = this.totalCompanyList[index].apiType;
|
|
|
- let value = this.totalCompanyList[index].checked;
|
|
|
- if (value) {
|
|
|
- let ins = this.totalCompanyList[index].namesimple;
|
|
|
- let list = this.totalCompanyList[index].agreement;
|
|
|
- list.map(ele => {
|
|
|
- ele.extra = ele.apiType;
|
|
|
- return ele;
|
|
|
- })
|
|
|
- this.totalCompanyList[index].agreement = list;
|
|
|
- this.totalCompanyList[index].agreementId = this.totalCompanyList[index].agreement[0].id;
|
|
|
- this.totalCompanyList[index].agreementName = this.totalCompanyList[index].agreement[0]
|
|
|
- .businessDescription;
|
|
|
- this.totalCompanyList[index].apiType = this.totalCompanyList[index].agreement[0].extra;
|
|
|
- this.totalCompanyList[index].underwritingDescription = this.totalCompanyList[index].agreement[0]
|
|
|
- .underwritingDescription;
|
|
|
- let ruleThirdPartyInsurance = this.kindList.find(val => val.kindCode == 'B'); //获取三者保额
|
|
|
- switch (ins) {
|
|
|
- case '永诚财险':
|
|
|
- let yccallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- companyCode: code,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- seatNum: Number(this.carInfo.seatCount),
|
|
|
- ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
- .amount : '',
|
|
|
- ruleUseNature: this.carInfo.carnature,
|
|
|
- kind: this.kindList,
|
|
|
- risk: this.riskList,
|
|
|
- });
|
|
|
- if (yccallback.code == '200') {
|
|
|
- let data = yccallback.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- })
|
|
|
- this.yongchengInsuranceData = data;
|
|
|
- const defaultProject = findDefaultProject(data);
|
|
|
- if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
- this.totalCompanyList[index].jychecked = true;
|
|
|
- this.yongchengInsuranceData = defaultProject.list;
|
|
|
- this.yongchengaccidentalDrivingVo = defaultProject.result;
|
|
|
- } else {
|
|
|
- this.yongchengInsuranceData = data;
|
|
|
- this.yongchengaccidentalDrivingVo = data[0];
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- break;
|
|
|
- case '紫金财险':
|
|
|
- let zjcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- companyCode: code,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
- .amount : '',
|
|
|
- ruleUseNature: this.carInfo.carnature,
|
|
|
- kind: this.kindList,
|
|
|
- risk: this.riskList,
|
|
|
- });
|
|
|
- if (zjcallback.code == '200') {
|
|
|
- let data = zjcallback.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- })
|
|
|
- this.zijinInsuranceData = data;
|
|
|
- const defaultProject = findDefaultProject(data);
|
|
|
- if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
- this.totalCompanyList[index].jychecked = true;
|
|
|
- this.zijinaccidentalDrivingVo.push(defaultProject.result);
|
|
|
- } else {
|
|
|
- this.zijinaccidentalDrivingVo = [];
|
|
|
- }
|
|
|
- }
|
|
|
- break;
|
|
|
- case '安盛天平':
|
|
|
- let ascallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- companyCode: code,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
- .amount : '',
|
|
|
- ruleUseNature: this.carInfo.carnature,
|
|
|
- kind: this.kindList,
|
|
|
- risk: this.riskList,
|
|
|
- });
|
|
|
- if (ascallback.code == '200') {
|
|
|
- let data = ascallback.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.children.map(val => {
|
|
|
- val.quantity = 1;
|
|
|
- })
|
|
|
- return ele;
|
|
|
- })
|
|
|
- this.anshengprogrammeData = data;
|
|
|
- const defaultProject = findDefaultProject(data);
|
|
|
- if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
- this.totalCompanyList[index].jychecked = true;
|
|
|
- this.anshengInsuranceData = defaultProject.list;
|
|
|
- this.anshengaccidentalDrivingVo = defaultProject.result;
|
|
|
- } else {
|
|
|
- this.anshengaccidentalDrivingVo = {
|
|
|
- parentCode: data[0].projectCode, //驾意险商品号
|
|
|
- parentName: data[0].projectName, //驾意险商品名称
|
|
|
- ...data[0].children[0]
|
|
|
- }
|
|
|
- this.anshengInsuranceData = data[0].children;
|
|
|
- }
|
|
|
- }
|
|
|
- break;
|
|
|
- case '国任财险':
|
|
|
- let grcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- companyCode: code,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
- .amount : '',
|
|
|
- ruleUseNature: this.carInfo.carnature,
|
|
|
- kind: this.kindList,
|
|
|
- risk: this.riskList,
|
|
|
- });
|
|
|
- if (grcallback.code == '200') {
|
|
|
- let data = grcallback.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.children.map(val => {
|
|
|
- val.quantity = 1;
|
|
|
- })
|
|
|
- return ele;
|
|
|
- })
|
|
|
- this.guorenprogrammeData = data;
|
|
|
- const defaultProject = findDefaultProject(data);
|
|
|
- if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
- this.totalCompanyList[index].jychecked = true;
|
|
|
- this.guoRenInsuranceData = defaultProject.list;
|
|
|
- this.guoRenaccidentalDrivingVo = defaultProject.result;
|
|
|
- } else {
|
|
|
- this.guoRenaccidentalDrivingVo = {
|
|
|
- parentCode: data[0].projectCode, //驾意险商品号
|
|
|
- parentName: data[0].projectName, //驾意险商品名称
|
|
|
- ...data[0].children[0]
|
|
|
- }
|
|
|
- this.guoRenInsuranceData = data[0].children;
|
|
|
- }
|
|
|
- }
|
|
|
- break;
|
|
|
- case '大家财险':
|
|
|
- let apiType = this.totalCompanyList[index].apiType;
|
|
|
- let djcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- companyCode: code,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
- .amount : '',
|
|
|
- ruleUseNature: this.carInfo.carnature,
|
|
|
- kind: this.kindList,
|
|
|
- risk: this.riskList,
|
|
|
- });
|
|
|
- if (djcallback.code == '200') {
|
|
|
- let data = djcallback.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- })
|
|
|
- if (apiType == '2') {
|
|
|
- this.dajiaprogrammeData = data;
|
|
|
- const defaultProject = findDefaultProject(data);
|
|
|
- if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
- this.totalCompanyList[index].jychecked = true;
|
|
|
- this.dajiaInsuranceData = defaultProject.list;
|
|
|
- this.dajiaaccidentalDrivingVo = defaultProject.result;
|
|
|
- } else {
|
|
|
- this.dajiaaccidentalDrivingVo = {
|
|
|
- parentCode: data[0].projectCode, //驾意险商品号
|
|
|
- parentName: data[0].projectName, //驾意险商品名称
|
|
|
- ...data[0].children[0]
|
|
|
- }
|
|
|
- this.dajiaInsuranceData = data[0].children;
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.dajiaInsuranceData = data;
|
|
|
- const defaultProject = findDefaultProject(data);
|
|
|
- if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
- this.totalCompanyList[index].jychecked = true;
|
|
|
- this.dajiaInsuranceData = defaultProject.list;
|
|
|
- this.dajiaaccidentalDrivingVo = defaultProject.result;
|
|
|
- } else {
|
|
|
- this.dajiaInsuranceData = data;
|
|
|
- this.dajiaaccidentalDrivingVo = data[0];
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- break;
|
|
|
- case '中煤财险':
|
|
|
- let zmcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- companyCode: code,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
- .amount : '',
|
|
|
- ruleUseNature: this.carInfo.carnature,
|
|
|
- kind: this.kindList,
|
|
|
- risk: this.riskList,
|
|
|
- });
|
|
|
- if (zmcallback.code == '200') {
|
|
|
- let data = zmcallback.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- })
|
|
|
- this.zhongmeiInsuranceData = data;
|
|
|
-
|
|
|
- this.zhongmeiaccidentalDrivingVo = {
|
|
|
- rideRiskCode: data[0].rideRiskCode,
|
|
|
- rideRiskName: data[0].rideRiskName,
|
|
|
- quantity: data[0].quantity,
|
|
|
- maxQuantity: data[0].maxQuantity,
|
|
|
- unitPremium: data[0].unitPremium,
|
|
|
- };
|
|
|
- const defaultProject = findDefaultProject(data);
|
|
|
- if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
- this.totalCompanyList[index].jychecked = true;
|
|
|
- this.zhongmeiInsuranceData = defaultProject.list;
|
|
|
- this.zhongmeiaccidentalDrivingVo = defaultProject.result;
|
|
|
- } else {
|
|
|
- this.zhongmeiInsuranceData = data;
|
|
|
- this.zhongmeiaccidentalDrivingVo = data[0];
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- break;
|
|
|
- case '渤海财险':
|
|
|
- let bhcallback = await this.$http.post('/order/boHaiApi/productQuery', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- insuredPersonInfo: this.insuredPersonInfo,
|
|
|
- policyHolderInfo: this.policyHolderInfo,
|
|
|
- carnature: this.carInfo.carnature,
|
|
|
- cimodelclass: this.carInfo.cimodelclass,
|
|
|
- exhaustScale: this.carInfo.enginedesc,
|
|
|
- limitLoad: "",
|
|
|
- powerScale: this.carInfo.powerScale,
|
|
|
- seatCount: Number(this.carInfo.seatCount),
|
|
|
- vehicleUse: this.carInfo.vehicleUse,
|
|
|
- });
|
|
|
- if (bhcallback.code == '200') {
|
|
|
- let data = bhcallback.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.copies = 1;
|
|
|
- return ele;
|
|
|
- })
|
|
|
- this.bohaiInsuranceData = data;
|
|
|
- this.bohaiaccidentalDrivingVo = {
|
|
|
- packageCode: data[0].packageCode,
|
|
|
- productCode: data[0].productCode,
|
|
|
- copies: data[0].copies,
|
|
|
- premium: data[0].premium,
|
|
|
- packageName: data[0].packageName,
|
|
|
- };
|
|
|
- }
|
|
|
- break;
|
|
|
- case '中国人寿':
|
|
|
- case '诚泰财险':
|
|
|
- case '恒邦财险':
|
|
|
- case '众安财险':
|
|
|
- case '太平财险':
|
|
|
- case '华农财险':
|
|
|
- case '泰康财险':
|
|
|
- let Insurancecallback = await this.$http.post(
|
|
|
- '/api/drivingInsurance/getDrivingInsuranceRule', {
|
|
|
- agreementId: this.totalCompanyList[index].agreement[0].id,
|
|
|
- companyCode: code,
|
|
|
- ruleSeatNum: Number(this.carInfo.seatCount),
|
|
|
- ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
|
|
|
- .amount : '',
|
|
|
- ruleUseNature: this.carInfo.carnature,
|
|
|
- kind: this.kindList,
|
|
|
- risk: this.riskList,
|
|
|
- });
|
|
|
- if (Insurancecallback.code == 200 && Insurancecallback.data.length !== 0) {
|
|
|
- let data = Insurancecallback.data;
|
|
|
- data.map(ele => {
|
|
|
- ele.quantity = 1;
|
|
|
- return ele;
|
|
|
- })
|
|
|
- const defaultProject = findDefaultProject(data);
|
|
|
- if (JSON.stringify(defaultProject.result) !== "{}") {
|
|
|
- this.totalCompanyList[index].jychecked = true;
|
|
|
- this[name + "InsuranceData"] = defaultProject.list;
|
|
|
- this[name + 'accidentalDrivingVo'] = defaultProject.result;
|
|
|
- } else {
|
|
|
- this[name + "InsuranceData"] = data;
|
|
|
- this[name + 'accidentalDrivingVo'] = data[0];
|
|
|
- }
|
|
|
- // if (ins == '华农财险') {
|
|
|
- // data.map(ele => {
|
|
|
- // ele.accidentType = "";
|
|
|
- // ele.allQuantity = 1;
|
|
|
- // return ele;
|
|
|
- // })
|
|
|
- // data[0].accidentType = data[0].planCode;
|
|
|
- // } else {
|
|
|
- // data.map(ele => {
|
|
|
- // ele.quantity = 1;
|
|
|
- // return ele;
|
|
|
- // })
|
|
|
- // }
|
|
|
- }
|
|
|
- break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- //驾意险勾选框
|
|
|
- /**
|
|
|
- * @param {boolean} event //是否选中
|
|
|
- * @param {string} code //保险公司code
|
|
|
- * @param {string} name //字段关键词
|
|
|
- * @param {string} index //当前勾选保险公司下标
|
|
|
- */
|
|
|
- async accidentChange(event, code, name, index) {
|
|
|
- this.totalCompanyList[index].jychecked = event;
|
|
|
-
|
|
|
- },
|
|
|
- checkboxChangeInfo(event, index) {
|
|
|
- this.totalCompanyList[index].jychecked = event.value;
|
|
|
- },
|
|
|
- //中煤
|
|
|
- ZMradioChange(id) {
|
|
|
- this.zhongmeiaccidentalDrivingVo = this.zhongmeiInsuranceData.find(val => val.projectCode == id)
|
|
|
- this.zhongmeiPopupshow = false;
|
|
|
- },
|
|
|
- //渤海意外险
|
|
|
- BHradioChange(id) {
|
|
|
- let info = this.bohaiInsuranceData.find(val => val.productCode == id)
|
|
|
- this.bohaiaccidentalDrivingVo = {
|
|
|
- packageCode: info.packageCode,
|
|
|
- productCode: info.productCode,
|
|
|
- copies: info.copies,
|
|
|
- packageName: info.packageName,
|
|
|
- premium: info.premium,
|
|
|
- }
|
|
|
- this.bohaiPopupshow = false;
|
|
|
- },
|
|
|
- //人寿意外险
|
|
|
- RSradioChange(id) {
|
|
|
- this.renshouaccidentalDrivingVo = this.renshouInsuranceData.find(val => val.projectCode == id)
|
|
|
- this.renshouPopupshow = false;
|
|
|
- },
|
|
|
- //恒邦意外险
|
|
|
- HBradioChange(id) {
|
|
|
- this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(val => val.projectCode ==
|
|
|
- id)
|
|
|
- this.hengbangPopupshow = false;
|
|
|
- },
|
|
|
- //诚泰意外险
|
|
|
- CTradioChange(id) {
|
|
|
- this.chengtaiaccidentalDrivingVo = this.chengtaiInsuranceData.find(val => val.projectCode ==
|
|
|
- id)
|
|
|
- this.chengtaiPopupshow = false;
|
|
|
- },
|
|
|
- //众安意外险
|
|
|
- ZAradioChange(id) {
|
|
|
- this.zhonganaccidentalDrivingVo = this.zhonganInsuranceData.find(val => val.projectCode == id)
|
|
|
- this.zhonganPopupshow = false;
|
|
|
- },
|
|
|
- //华农驾意险
|
|
|
- HNradioChange(id) {
|
|
|
- this.huanongaccidentalDrivingVo = this.huanongInsuranceData.find(val => val.projectCode == id);
|
|
|
- this.huanongaccidentalDrivingVo.accidentType = this.huanongaccidentalDrivingVo.planCode;
|
|
|
- this.huanongPopupshow = false;
|
|
|
- },
|
|
|
- //大家一级选择
|
|
|
- DJprogrammeradioChange(id) {
|
|
|
- let info = this.dajiaprogrammeData.find((val => val.projectCode == id))
|
|
|
- console.log(info);
|
|
|
- this.dajiaPopupshow = false;
|
|
|
- this.dajiaaccidentalDrivingVo.parentCode = info.projectCode;
|
|
|
- this.dajiaaccidentalDrivingVo.parentName = info.projectName;
|
|
|
- console.log(this.dajiaaccidentalDrivingVo);
|
|
|
- if (info.children) {
|
|
|
- this.dajiaInsuranceData = info.children;
|
|
|
- Object.assign(this.dajiaaccidentalDrivingVo, info.children[0]);
|
|
|
- } else {
|
|
|
- this.dajiaInsuranceData = []
|
|
|
- }
|
|
|
- },
|
|
|
- //大家意外险
|
|
|
- DJradioChange(id) {
|
|
|
- let info = this.dajiaInsuranceData.find((val => val.projectCode == id))
|
|
|
- Object.assign(this.dajiaaccidentalDrivingVo, info);
|
|
|
- this.dajiaPopupshow1 = false;
|
|
|
- },
|
|
|
- TPradioChange(id) {
|
|
|
- this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.projectCode == id)
|
|
|
- this.taipingPopupshow = false;
|
|
|
- },
|
|
|
- TkradioChange(id) {
|
|
|
- this.taikangaccidentalDrivingVo = this.taikangInsuranceData.find(val => val.projectCode == id)
|
|
|
- this.taikangPopupshow = false;
|
|
|
- },
|
|
|
- //永诚意外险
|
|
|
- YCradioChange(id) {
|
|
|
- this.yongchengaccidentalDrivingVo = this.yongchengInsuranceData.find(val => val.projectCode == id)
|
|
|
- this.yongchengPopupshow = false;
|
|
|
- },
|
|
|
- //安盛一级选择
|
|
|
- ASprogrammeradioChange(id) {
|
|
|
- let info = this.anshengprogrammeData.find((val => val.projectCode == id))
|
|
|
- this.anshengPopupshow = false;
|
|
|
- this.anshengaccidentalDrivingVo.parentCode = info.projectCode;
|
|
|
- this.anshengaccidentalDrivingVo.parentName = info.projectName;
|
|
|
- if (info.children) {
|
|
|
- this.anshengInsuranceData = info.children;
|
|
|
- Object.assign(this.anshengaccidentalDrivingVo, info.children[0]);
|
|
|
- } else {
|
|
|
- this.anshengInsuranceData = []
|
|
|
- }
|
|
|
- },
|
|
|
- //安盛二级选择
|
|
|
- ASInsuranceradioChange(id) {
|
|
|
- let info = this.anshengInsuranceData.find((val => val.projectCode == id))
|
|
|
- Object.assign(this.anshengaccidentalDrivingVo, info);
|
|
|
- this.anshengPopupshow1 = false;
|
|
|
- },
|
|
|
- //国任一级选择
|
|
|
- async GRprogrammeradioChange(id) {
|
|
|
- let info = this.guorenprogrammeData.find((val => val.projectCode == id))
|
|
|
- this.guorenPopupshow = false;
|
|
|
- this.guoRenaccidentalDrivingVo.parentCode = info.projectCode;
|
|
|
- this.guoRenaccidentalDrivingVo.parentName = info.projectName;
|
|
|
- if (info.children) {
|
|
|
- this.guoRenInsuranceData = info.children;
|
|
|
- Object.assign(this.guoRenaccidentalDrivingVo, info.children[0]);
|
|
|
- } else {
|
|
|
- this.guoRenInsuranceData = []
|
|
|
- }
|
|
|
-
|
|
|
- },
|
|
|
- //国任二级选择
|
|
|
- GRInsuranceradioChange(id) {
|
|
|
- let info = this.guoRenInsuranceData.find((val => val.projectCode == id))
|
|
|
- Object.assign(this.guoRenaccidentalDrivingVo, info);
|
|
|
- console.log(this.guoRenaccidentalDrivingVo);
|
|
|
- this.guorenPopupshow1 = false;
|
|
|
- },
|
|
|
- //
|
|
|
- //紫金意外险
|
|
|
- ZJcheckboxGroupChange(detail) {
|
|
|
- this.zijinaccidentalDrivingVo = [];
|
|
|
- detail.map(val => {
|
|
|
- let list = this.zijinInsuranceData.find(item => item.projectCode == val)
|
|
|
- this.zijinaccidentalDrivingVo.push(list)
|
|
|
- })
|
|
|
- },
|
|
|
- //获取保险公司列表
|
|
|
- async commpanyList() {
|
|
|
- let commpanykad = await this.$http.get('/tax/manager/getAllAgreement', {
|
|
|
- // kindList: this.kindList,
|
|
|
- // riskList: this.riskList,
|
|
|
- // systemType: "2",
|
|
|
- });
|
|
|
- commpanykad.data.map(ele => {
|
|
|
- ele["result"] = {};
|
|
|
- ele["quoteCode"] = 0;
|
|
|
- ele["checked"] = false;
|
|
|
- ele["jychecked"] = false;
|
|
|
- ele["msg"] = "";
|
|
|
- ele["agreementId"] = "";
|
|
|
- ele["lastYearMsg"] = "";
|
|
|
- ele["agreementName"] = "";
|
|
|
- ele["apiType"] = "";
|
|
|
- ele["coefficient"] = "";
|
|
|
- ele["discount"] = "";
|
|
|
- ele["isInspect"] = false;
|
|
|
- ele["syAdjustRate"] = "";
|
|
|
- ele["selectShow"] = false;
|
|
|
- ele['underwritingDescription'] = "";
|
|
|
- ele['isComparableShow'] = false;
|
|
|
- ele['isComparableshowHide'] = false;
|
|
|
- ele['isComparableDisabled'] = false;
|
|
|
- })
|
|
|
- if (this.insAreaCompanyEditingDtos.length > 0) {
|
|
|
- commpanykad.data.forEach((val, index) => {
|
|
|
- this.insAreaCompanyEditingDtos.map(ele => {
|
|
|
- if (val.namesimple == ele.inscompany) {
|
|
|
- commpanykad.data[index].quoteCode = 200;
|
|
|
- commpanykad.data[index].result = ele;
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
- // // //险种合并集合
|
|
|
- // const combinedArray = [
|
|
|
- // ...this.riskList.map(item => item.riskCode),
|
|
|
- // ...this.kindList.map(item => item.kindCode),
|
|
|
- // ];
|
|
|
- commpanykad.data.map(obj => {
|
|
|
- obj.agreement.map(ele => {
|
|
|
- ele.businessDescription = ele.businessDescription + "(" +
|
|
|
- ele.jobDescription + ")";
|
|
|
- return ele;
|
|
|
- })
|
|
|
- });
|
|
|
- this.totalCompanyList = commpanykad.data;
|
|
|
- },
|
|
|
- async toNext() {
|
|
|
-
|
|
|
- var allAreFalse = this.totalCompanyList.every(function(element) {
|
|
|
- return element.checked === false;
|
|
|
- });
|
|
|
- if (!allAreFalse) {
|
|
|
- this.comparableQuantity = 0; //报价成功总数
|
|
|
- this.selectedCount = 0; //比价勾选数量
|
|
|
- this.totalCompanyList.map((ele) => {
|
|
|
- ele.isComparableShow = false;
|
|
|
- ele.isComparableshowHide = false;
|
|
|
- return ele;
|
|
|
- })
|
|
|
- this.OrderStageProcessing();
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- title: "请选择保险公司后,在进行报价",
|
|
|
- icon: 'none',
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- async OrderStageProcessing() {
|
|
|
- this.riskList.map(val => {
|
|
|
- if (val.riskCode == '0507') {
|
|
|
- val.startDate = this.jqstartDate;
|
|
|
- val.endDate = this.jqendDate;
|
|
|
- } else if (val.riskCode == '0510') {
|
|
|
- val.startDate = this.systartDate;
|
|
|
- val.endDate = this.syendDate;
|
|
|
- }
|
|
|
- })
|
|
|
- let param = {
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
- quoteno: this.quoteno ? this.quoteno : "",
|
|
|
- orderNo: this.orderno ? this.orderno : "",
|
|
|
- carInfo: this.carInfo,
|
|
|
- insuredPersonInfo: this.insuredPersonInfo,
|
|
|
- ownerInfo: this.ownerInfo,
|
|
|
- policyHolderInfo: this.policyHolderInfo,
|
|
|
- kindList: this.kindList,
|
|
|
- riskList: this.riskList,
|
|
|
- vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
|
|
|
- };
|
|
|
- let orders = await this.$http.post('/insurance/order/generateOrder', param);
|
|
|
- if (orders.code == '200') {
|
|
|
- this.orderno = orders.data.orderno;
|
|
|
- this.quoteno = orders.data.quoteno;
|
|
|
- let mergedArray = [];
|
|
|
- let mergedArrayList = mergedArray.concat(this.carInfoPositiveList, this
|
|
|
- .ownerInfoPositiveList, this
|
|
|
- .policyHolderInfoPositiveList, this.insuredPersonInfoPositiveList)
|
|
|
-
|
|
|
- if (mergedArrayList.length > 0) {
|
|
|
- await this.$http.post('/ins/taskImage/uploadImages', {
|
|
|
- imageList: mergedArrayList,
|
|
|
- quoteNo: this.quoteno,
|
|
|
- })
|
|
|
- }
|
|
|
- this.totalCompanyList.map((ele, index) => {
|
|
|
- if (ele.checked) {
|
|
|
- //动态调用报价接口
|
|
|
- ele.quoteCode = "1";
|
|
|
- this.ToolClickFun(ele.cnName, index, ele.id);
|
|
|
- }
|
|
|
- });
|
|
|
- } else if (orders.code == '1001') {
|
|
|
- this.Generateshow = true;
|
|
|
- } else {
|
|
|
- uni.showToast({
|
|
|
- title: orders.msg,
|
|
|
- icon: 'none',
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
- GenerateModalConfirm() {
|
|
|
- this.orderno = "";
|
|
|
- this.quoteno = "";
|
|
|
- this.toNext();
|
|
|
- },
|
|
|
- //动态函数
|
|
|
- async ToolClickFun(MethodName, Parameter, companyId) {
|
|
|
- await this[`${MethodName}`](Parameter, companyId)
|
|
|
- //获取已报价成功个数
|
|
|
- let filteredObjects = [];
|
|
|
- this.totalCompanyList.map(ele => {
|
|
|
- if (ele.quoteCode == 200) {
|
|
|
- filteredObjects.push(ele.result.companyId)
|
|
|
- }
|
|
|
- return ele;
|
|
|
- })
|
|
|
- this.comparableQuantity = filteredObjects.length;
|
|
|
- },
|
|
|
- //永安报价
|
|
|
- async yongan(num, id) {
|
|
|
- let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
- let params = {
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
- systemType: '2'
|
|
|
- };
|
|
|
- let quote = await this.$http('/order/yongAn/quote', params);
|
|
|
- if (quote.msg == "重复投保" && quote.code == "501") {
|
|
|
- if (!!quote.data.jqStartDate && !quote.data.syStartDate) {
|
|
|
- this.jqstartDate = quote.data.jqStartDate;
|
|
|
- this.jqendDate = quote.data.jqEndDate;
|
|
|
- if (this.riskList.length > 0) {
|
|
|
- for (let i = 0; i < this.riskList.length; i++) {
|
|
|
- if (this.riskList[i].riskCode == "0507") {
|
|
|
- this.riskList[i].startDate = quote.data.jqStartDate;
|
|
|
- this.riskList[i].endDate = quote.data.jqEndDate;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- let param = {
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
- quoteno: this.quoteno,
|
|
|
- orderNo: this.orderno,
|
|
|
- carInfo: this.carInfo,
|
|
|
- insuredPersonInfo: this.insuredPersonInfo,
|
|
|
- ownerInfo: this.ownerInfo,
|
|
|
- policyHolderInfo: this.policyHolderInfo,
|
|
|
- kindList: this.kindList,
|
|
|
- riskList: this.riskList,
|
|
|
- vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
|
|
|
- };
|
|
|
- await this.$http.post('/insurance/order/generateOrder', param);
|
|
|
- return this.yongan(num, id);
|
|
|
-
|
|
|
- } else if (!!quote.data.syStartDate && !quote.data.jqStartDate) {
|
|
|
-
|
|
|
-
|
|
|
- } else if (!!quote.data.syStartDate && !!quote.data.jqStartDate) {
|
|
|
-
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num].quoteCode = "3";
|
|
|
- this.totalCompanyList[num].msg = "重复投保";
|
|
|
- }
|
|
|
-
|
|
|
- } else if (quote.code == "500" || quote.code == "502" || quote.code ==
|
|
|
- "-9999") {
|
|
|
- this.totalCompanyList[num].quoteCode = "-9999";
|
|
|
- this.totalCompanyList[num].msg = quote.msg;
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num].quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result = quote.data;
|
|
|
- this.subOrderId = quote.data.companyId;
|
|
|
- this.coordinateValue();
|
|
|
- }
|
|
|
- },
|
|
|
- //中煤报价
|
|
|
- async zhongmei(num, id) {
|
|
|
- let jychecked = this.totalCompanyList[num].jychecked;
|
|
|
- let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
- let params = {
|
|
|
- accidentalDrivingVo: jychecked ? this.zhongmeiaccidentalDrivingVo : {},
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- agreementId: this.totalCompanyList[num].agreementId,
|
|
|
- isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
- systemType: '2'
|
|
|
- };
|
|
|
-
|
|
|
- let res = await this.$http.post('/order/zhongMeiApi/quote', params);
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
|
|
|
- this.totalCompanyList[num].quoteCode = "4";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- } else if (
|
|
|
- res.data == null &&
|
|
|
- res.msg.indexOf("交强险平台返回") > -1 &&
|
|
|
- res.msg.indexOf(";终保日期") > -1
|
|
|
- ) {
|
|
|
- let time =
|
|
|
- res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
|
|
|
- this.jqstartDate = time;
|
|
|
- this.jqendDate = this.oneYearPast(time);
|
|
|
- if (this.riskList.length > 0) {
|
|
|
- for (let i = 0; i < this.riskList.length; i++) {
|
|
|
- if (this.riskList[i].riskCode == "0507") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this.oneYearPast(time);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- let param = {
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
- quoteno: this.quoteno,
|
|
|
- orderNo: this.orderno,
|
|
|
- carInfo: this.carInfo,
|
|
|
- insuredPersonInfo: this.insuredPersonInfo,
|
|
|
- ownerInfo: this.ownerInfo,
|
|
|
- policyHolderInfo: this.policyHolderInfo,
|
|
|
- kindList: this.kindList,
|
|
|
- riskList: this.riskList,
|
|
|
- vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
|
|
|
- };
|
|
|
- await this.$http.post('/insurance/order/generateOrder', param);
|
|
|
- return this.zhongmei(num, id);
|
|
|
- } else if (res.code == '200') {
|
|
|
- if (res.data.warnMessageList != null && res.data.warnMessageList[
|
|
|
- 0] != null && res.data
|
|
|
- .warnMessageList[
|
|
|
- 0] != "") {
|
|
|
- this.totalCompanyList[num].lastYearMsg = "";
|
|
|
- let dat = res.data.warnMessageList;
|
|
|
- dat.map(ele => {
|
|
|
- this.totalCompanyList[num].lastYearMsg += ele +
|
|
|
- '<br>';
|
|
|
- })
|
|
|
- }
|
|
|
- this.totalCompanyList[num].quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result = res.data;
|
|
|
- this.subOrderId = res.data.companyId;
|
|
|
- this.coordinateValue();
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num].quoteCode = "3";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- }
|
|
|
- },
|
|
|
- //渤海报价
|
|
|
- async bohai(num, id) {
|
|
|
- let jychecked = this.totalCompanyList[num].jychecked;
|
|
|
- let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
- let params = {
|
|
|
- accidentalDrivingVo: jychecked ? [this.bohaiaccidentalDrivingVo] : [],
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- agreementId: this.totalCompanyList[num].agreementId,
|
|
|
- isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
- systemType: '2'
|
|
|
- };
|
|
|
-
|
|
|
- let res = await this.$http.post('/order/boHaiApi/quote', params);
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
|
|
|
- this.totalCompanyList[num].quoteCode = "4";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- } else if (
|
|
|
- res.data == null &&
|
|
|
- res.msg.indexOf("交强险平台返回") > -1 &&
|
|
|
- res.msg.indexOf(";终保日期") > -1
|
|
|
- ) {
|
|
|
- let time =
|
|
|
- res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
|
|
|
- this.jqstartDate = time;
|
|
|
- this.jqendDate = this.oneYearPast(time);
|
|
|
- if (this.riskList.length > 0) {
|
|
|
- for (let i = 0; i < this.riskList.length; i++) {
|
|
|
- if (this.riskList[i].riskCode == "0507") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this.oneYearPast(time);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- let param = {
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
- quoteno: this.quoteno,
|
|
|
- orderNo: this.orderno,
|
|
|
- carInfo: this.carInfo,
|
|
|
- insuredPersonInfo: this.insuredPersonInfo,
|
|
|
- ownerInfo: this.ownerInfo,
|
|
|
- policyHolderInfo: this.policyHolderInfo,
|
|
|
- kindList: this.kindList,
|
|
|
- riskList: this.riskList,
|
|
|
- vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
|
|
|
- };
|
|
|
- await this.$http.post('/insurance/order/generateOrder', param);
|
|
|
- return this.zhongmei(num, id);
|
|
|
- } else if (res.code == '200') {
|
|
|
- if (res.data.warnMessageList != null && res.data.warnMessageList[
|
|
|
- 0] != null && res.data
|
|
|
- .warnMessageList[
|
|
|
- 0] != "") {
|
|
|
- this.totalCompanyList[num].lastYearMsg = "";
|
|
|
- let dat = res.data.warnMessageList;
|
|
|
- dat.map(ele => {
|
|
|
- this.totalCompanyList[num].lastYearMsg += ele +
|
|
|
- '<br>';
|
|
|
- })
|
|
|
- }
|
|
|
- this.totalCompanyList[num].quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result = res.data;
|
|
|
- this.subOrderId = res.data.companyId;
|
|
|
- this.coordinateValue();
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num].quoteCode = "3";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- }
|
|
|
- },
|
|
|
- //永诚报价
|
|
|
- async yongcheng(num, id) {
|
|
|
- let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
- let jychecked = this.totalCompanyList[num].jychecked;
|
|
|
- let params = {
|
|
|
- accidentalDrivingVo: jychecked ? this
|
|
|
- .yongchengaccidentalDrivingVo : {},
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- cqryCdeJq: this.cqryCdeJq,
|
|
|
- cqryCdeSy: this.cqryCdeSy,
|
|
|
- renewalCodeJq: this.renewalCodeJq,
|
|
|
- renewalCodeSy: this.renewalCodeSy,
|
|
|
- isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
- agreementId: this.totalCompanyList[num].agreementId,
|
|
|
- systemType: '2'
|
|
|
- };
|
|
|
- let res = await this.$http.post('/api/yongCheng/quote', params);
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- if (res.code == "200") {
|
|
|
- if (res.data.warnMessageList != null && res.data
|
|
|
- .warnMessageList[0] != null && res.data
|
|
|
- .warnMessageList[
|
|
|
- 0] != "") {
|
|
|
- this.totalCompanyList[num].lastYearMsg = "";
|
|
|
- let dat = res.data.warnMessageList;
|
|
|
- dat.map(ele => {
|
|
|
- this.totalCompanyList[num].lastYearMsg += ele +
|
|
|
- '<br>';
|
|
|
- })
|
|
|
- }
|
|
|
- this.totalCompanyList[num].quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result = res.data;
|
|
|
- this.subOrderId = res.data.companyId;
|
|
|
- this.coordinateValue();
|
|
|
- } else if (res.code == "101") {
|
|
|
- this.totalCompanyList[num].quoteCode = "101";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- this.cqryCdeJq = res.data.cqryCdeJq;
|
|
|
- this.cqryCdeSy = res.data.cqryCdeSy;
|
|
|
- let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
|
|
|
- let jqBase64 = `data:image/png;base64,${jq}`;
|
|
|
- this.renewalCodeJqImg = jqBase64;
|
|
|
- if (res.data.renewalCodeSy) {
|
|
|
- let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
|
|
|
- let syBase64 = `data:image/png;base64,${sy}`;
|
|
|
- this.renewalCodeSyImg = syBase64;
|
|
|
- }
|
|
|
- this.renewalCodedialogVisible = true;
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num].quoteCode = "3";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- }
|
|
|
- },
|
|
|
- //紫金报价
|
|
|
- async zijin(num, id) {
|
|
|
- let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
- let params = {
|
|
|
- accidentalDrivingVo: this.zijinaccidentalDrivingVo,
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- agreementId: this.totalCompanyList[num].agreementId,
|
|
|
- coefficient: this.totalCompanyList[num].coefficient,
|
|
|
- isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
- systemType: '2'
|
|
|
- };
|
|
|
- let res = await this.$http.post('/order/zijin/quote', params);
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
|
|
|
- this.totalCompanyList[num].quoteCode = "4";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- } else if (
|
|
|
- res.data == null &&
|
|
|
- res.msg.indexOf("交强险平台返回") > -1 &&
|
|
|
- res.msg.indexOf(";终保日期") > -1
|
|
|
- ) {
|
|
|
- let time =
|
|
|
- res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) +
|
|
|
- ":00";
|
|
|
- this.jqstartDate = time;
|
|
|
- this.jqendDate = this.oneYearPast(time);
|
|
|
- this.systartDate = time;
|
|
|
- this.syendDate = this.oneYearPast(time);
|
|
|
- if (this.riskList.length > 0) {
|
|
|
- for (let i = 0; i < this.riskList.length; i++) {
|
|
|
- if (this.riskList[i].riskCode == "0507") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this.oneYearPast(
|
|
|
- time);
|
|
|
- } else if (this.riskList[i].riskCode == "0510") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this.oneYearPast(
|
|
|
- time);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- let param = {
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
- quoteno: this.quoteno,
|
|
|
- orderNo: this.orderno,
|
|
|
- carInfo: this.carInfo,
|
|
|
- insuredPersonInfo: this.insuredPersonInfo,
|
|
|
- ownerInfo: this.ownerInfo,
|
|
|
- policyHolderInfo: this.policyHolderInfo,
|
|
|
- kindList: this.kindList,
|
|
|
- riskList: this.riskList,
|
|
|
- vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
|
|
|
- };
|
|
|
- await this.$http.post('/insurance/order/generateOrder',
|
|
|
- param);
|
|
|
- return this.zijin(num, id);
|
|
|
- } else if (res.code == '200') {
|
|
|
- if (res.data.warnMessageList != null && res.data
|
|
|
- .warnMessageList[0] != null && res.data
|
|
|
- .warnMessageList[
|
|
|
- 0] != "") {
|
|
|
- this.totalCompanyList[num].lastYearMsg = "";
|
|
|
- let dat = res.data.warnMessageList;
|
|
|
- dat.map(ele => {
|
|
|
- this.totalCompanyList[num].lastYearMsg +=
|
|
|
- ele + '<br>';
|
|
|
- })
|
|
|
- }
|
|
|
- this.totalCompanyList[num].quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result = res.data;
|
|
|
- this.subOrderId = res.data.companyId;
|
|
|
- this.coordinateValue();
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num].quoteCode = "3";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- }
|
|
|
- },
|
|
|
- //国任报价
|
|
|
- async guoRen(num, id) {
|
|
|
- let jychecked = this.totalCompanyList[num].jychecked;
|
|
|
- let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
- let params = {
|
|
|
- accidentalDrivingVo: jychecked ? this
|
|
|
- .guoRenaccidentalDrivingVo : {},
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- agreementId: this.totalCompanyList[num]
|
|
|
- .agreementId,
|
|
|
- isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
- guoRenSpecialAgreementVo: this.guoRenSpecialAgreementVo,
|
|
|
- systemType: '2'
|
|
|
- };
|
|
|
- let res = await this.$http.post('/api/guoRen/quote',
|
|
|
- params);
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
|
|
|
- this.totalCompanyList[num].quoteCode = "4";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- } else if (
|
|
|
- res.data == null &&
|
|
|
- res.msg.indexOf("交强险平台返回") > -1 &&
|
|
|
- res.msg.indexOf(";终保日期") > -1
|
|
|
- ) {
|
|
|
- let time =
|
|
|
- res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) +
|
|
|
- ":00";
|
|
|
- this.jqstartDate = time;
|
|
|
- this.jqendDate = this.oneYearPast(time);
|
|
|
- this.systartDate = time;
|
|
|
- this.syendDate = this.oneYearPast(time);
|
|
|
- if (this.riskList.length > 0) {
|
|
|
- for (let i = 0; i < this.riskList.length; i++) {
|
|
|
- if (this.riskList[i].riskCode == "0507") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this
|
|
|
- .oneYearPast(time);
|
|
|
- } else if (this.riskList[i].riskCode ==
|
|
|
- "0510") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this
|
|
|
- .oneYearPast(time);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- let param = {
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
- quoteno: this.quoteno,
|
|
|
- orderNo: this.orderno,
|
|
|
- carInfo: this.carInfo,
|
|
|
- insuredPersonInfo: this.insuredPersonInfo,
|
|
|
- ownerInfo: this.ownerInfo,
|
|
|
- policyHolderInfo: this.policyHolderInfo,
|
|
|
- kindList: this.kindList,
|
|
|
- riskList: this.riskList,
|
|
|
- vehicleAndVesselTax: this
|
|
|
- .vehicleAndVesselTaxForm,
|
|
|
- };
|
|
|
- await this.$http.post('/insurance/order/generateOrder',
|
|
|
- param);
|
|
|
- return this.guoRen(num, id);
|
|
|
- } else if (res.code == '200') {
|
|
|
- if (res.data.warnMessageList != null && res.data
|
|
|
- .warnMessageList[0] != null && res.data
|
|
|
- .warnMessageList[
|
|
|
- 0] != "") {
|
|
|
- this.totalCompanyList[num].lastYearMsg = "";
|
|
|
- let dat = res.data.warnMessageList;
|
|
|
- dat.map(ele => {
|
|
|
- this.totalCompanyList[num]
|
|
|
- .lastYearMsg += ele + '<br>';
|
|
|
- })
|
|
|
- }
|
|
|
- this.totalCompanyList[num].quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result = res.data;
|
|
|
- this.subOrderId = res.data.companyId;
|
|
|
- this.coordinateValue();
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num].quoteCode = "3";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- }
|
|
|
- },
|
|
|
- //大家报价
|
|
|
- async dajia(num, id) {
|
|
|
- let type = this.totalCompanyList[num].apiType;
|
|
|
- let api = type == 2 ? "/insurance/crawler/quote" : "/api/dajia/quote";
|
|
|
- let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
- let jychecked = this.totalCompanyList[num].jychecked
|
|
|
- let params = {
|
|
|
- accidentalDrivingVo: jychecked ? this
|
|
|
- .dajiaaccidentalDrivingVo : {},
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- cqryCdeJq: this.cqryCdeJq,
|
|
|
- cqryCdeSy: this.cqryCdeSy,
|
|
|
- renewalCodeJq: this.renewalCodeJq,
|
|
|
- renewalCodeSy: this.renewalCodeSy,
|
|
|
- isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
- agreementId: this.totalCompanyList[num]
|
|
|
- .agreementId,
|
|
|
- systemType: '2'
|
|
|
- };
|
|
|
- let res = await this.$http.post(`${api}`,
|
|
|
- params);
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
|
|
|
- this.totalCompanyList[num].quoteCode = "4";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- } else if (
|
|
|
- res.data == null &&
|
|
|
- res.msg.indexOf("交强险平台返回") > -1 &&
|
|
|
- res.msg.indexOf(";终保日期") > -1
|
|
|
- ) {
|
|
|
- let time =
|
|
|
- res.msg.substr(res.msg.indexOf(";终保日期 ") + 6,
|
|
|
- 16) + ":00";
|
|
|
- this.jqstartDate = time;
|
|
|
- this.jqendDate = this.oneYearPast(time);
|
|
|
- this.systartDate = time;
|
|
|
- this.syendDate = this.oneYearPast(time);
|
|
|
- if (this.riskList.length > 0) {
|
|
|
- for (let i = 0; i < this.riskList
|
|
|
- .length; i++) {
|
|
|
- if (this.riskList[i].riskCode == "0507") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this
|
|
|
- .oneYearPast(time);
|
|
|
- } else if (this.riskList[i].riskCode ==
|
|
|
- "0510") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this
|
|
|
- .oneYearPast(time);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- let param = {
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
- quoteno: this.quoteno,
|
|
|
- orderNo: this.orderno,
|
|
|
- carInfo: this.carInfo,
|
|
|
- insuredPersonInfo: this.insuredPersonInfo,
|
|
|
- ownerInfo: this.ownerInfo,
|
|
|
- policyHolderInfo: this.policyHolderInfo,
|
|
|
- kindList: this.kindList,
|
|
|
- riskList: this.riskList,
|
|
|
- vehicleAndVesselTax: this
|
|
|
- .vehicleAndVesselTaxForm,
|
|
|
- };
|
|
|
- await this.$http.post(
|
|
|
- '/insurance/order/generateOrder', param);
|
|
|
- return this.dajia(num, id);
|
|
|
- } else if (res.code == '200') {
|
|
|
- if (res.data.warnMessageList != null && res.data
|
|
|
- .warnMessageList[0] != null && res.data
|
|
|
- .warnMessageList[
|
|
|
- 0] != "") {
|
|
|
- this.totalCompanyList[num].lastYearMsg = "";
|
|
|
- let dat = res.data.warnMessageList;
|
|
|
- dat.map(ele => {
|
|
|
- this.totalCompanyList[num]
|
|
|
- .lastYearMsg += ele + '<br>';
|
|
|
- })
|
|
|
- }
|
|
|
- this.totalCompanyList[num].quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result = res.data;
|
|
|
- this.subOrderId = res.data.companyId;
|
|
|
- this.coordinateValue();
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num].quoteCode = "3";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- }
|
|
|
- },
|
|
|
- //华泰报价
|
|
|
- async huatai(num, id) {
|
|
|
- let type = this.totalCompanyList[num].apiType;
|
|
|
- let api = type == 2 ? "/insurance/crawler/quote" : "/order/huaTaiApi/quote";
|
|
|
- let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
- let params = {
|
|
|
- accidentalDrivingVo: {},
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- cqryCdeJq: this.cqryCdeJq,
|
|
|
- cqryCdeSy: this.cqryCdeSy,
|
|
|
- renewalCodeJq: this.renewalCodeJq,
|
|
|
- renewalCodeSy: this.renewalCodeSy,
|
|
|
- isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
- agreementId: this.totalCompanyList[num]
|
|
|
- .agreementId,
|
|
|
- systemType: '2'
|
|
|
- };
|
|
|
- let res = await this.$http.post(
|
|
|
- `${api}`, params);
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
|
|
|
- this.totalCompanyList[num].quoteCode = "4";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- } else if (
|
|
|
- res.data == null &&
|
|
|
- res.msg.indexOf("交强险平台返回") > -1 &&
|
|
|
- res.msg.indexOf(";终保日期") > -1
|
|
|
- ) {
|
|
|
- let time =
|
|
|
- res.msg.substr(res.msg.indexOf(";终保日期 ") +
|
|
|
- 6, 16) + ":00";
|
|
|
- this.jqstartDate = time;
|
|
|
- this.jqendDate = this.oneYearPast(time);
|
|
|
- this.systartDate = time;
|
|
|
- this.syendDate = this.oneYearPast(time);
|
|
|
- if (this.riskList.length > 0) {
|
|
|
- for (let i = 0; i < this.riskList
|
|
|
- .length; i++) {
|
|
|
- if (this.riskList[i].riskCode ==
|
|
|
- "0507") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this
|
|
|
- .oneYearPast(time);
|
|
|
- } else if (this.riskList[i].riskCode ==
|
|
|
- "0510") {
|
|
|
- this.riskList[i].startDate = time;
|
|
|
- this.riskList[i].endDate = this
|
|
|
- .oneYearPast(time);
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- let param = {
|
|
|
- userId: this.userInfo.sysUser.id,
|
|
|
- quoteno: this.quoteno,
|
|
|
- orderNo: this.orderno,
|
|
|
- carInfo: this.carInfo,
|
|
|
- insuredPersonInfo: this
|
|
|
- .insuredPersonInfo,
|
|
|
- ownerInfo: this.ownerInfo,
|
|
|
- policyHolderInfo: this
|
|
|
- .policyHolderInfo,
|
|
|
- kindList: this.kindList,
|
|
|
- riskList: this.riskList,
|
|
|
- vehicleAndVesselTax: this
|
|
|
- .vehicleAndVesselTaxForm,
|
|
|
- };
|
|
|
- await this.$http.post(
|
|
|
- '/insurance/order/generateOrder', param
|
|
|
- );
|
|
|
- return this.huatai(num, id);
|
|
|
- } else if (res.code == '200') {
|
|
|
- if (res.data.warnMessageList != null && res
|
|
|
- .data.warnMessageList[0] != null && res
|
|
|
- .data
|
|
|
- .warnMessageList[
|
|
|
- 0] != "") {
|
|
|
- this.totalCompanyList[num].lastYearMsg =
|
|
|
- "";
|
|
|
- let dat = res.data.warnMessageList;
|
|
|
- dat.map(ele => {
|
|
|
- this.totalCompanyList[num]
|
|
|
- .lastYearMsg += ele + '<br>';
|
|
|
- })
|
|
|
- }
|
|
|
- this.totalCompanyList[num].quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result = res.data;
|
|
|
- this.subOrderId = res.data.companyId;
|
|
|
- this.coordinateValue();
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num].quoteCode = "3";
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- return;
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
- //爬虫统一报价接口
|
|
|
- async quoteInsurance(num, id, apiType, jychecked) {
|
|
|
- const companyId = uni.getStorageSync('companyId');
|
|
|
- let api = apiType === 2 ?
|
|
|
- "/insurance/crawler/quote" :
|
|
|
- "";
|
|
|
- let ccidenttype = this.totalCompanyList[num]
|
|
|
- .cnName;
|
|
|
- let namesimple = this.totalCompanyList[num]
|
|
|
- .namesimple;
|
|
|
- let isTaxSource = this.totalCompanyList[num].isTaxSource;
|
|
|
- // if (ccidenttype == "huanong") {
|
|
|
- // this[ccidenttype + 'accidentalDrivingVo'].quantity = this[ccidenttype + 'accidentalDrivingVo']
|
|
|
- // .allQuantity;
|
|
|
- // }
|
|
|
- let params = {
|
|
|
- orderNo: this.orderno,
|
|
|
- companyId: id,
|
|
|
- agreementId: this.totalCompanyList[num]
|
|
|
- .agreementId,
|
|
|
- isTaxSource: isTaxSource == 1 ? isTaxSource : null,
|
|
|
- accidentalDrivingVo: jychecked ? this[
|
|
|
- ccidenttype +
|
|
|
- 'accidentalDrivingVo'] : {},
|
|
|
- systemType: '2'
|
|
|
- };
|
|
|
- if (id = 'GPIC1000000') {
|
|
|
- if (companyId) {
|
|
|
- params.discount = this.totalCompanyList[num]
|
|
|
- .syAdjustRate;
|
|
|
- params.lastCompanyId = this.subOrderId;
|
|
|
- }
|
|
|
- }
|
|
|
- if (namesimple == "诚泰财险") {
|
|
|
- if (this.subOrderId && this.totalCompanyList[num].coefficient && this.totalCompanyList[num]
|
|
|
- .discount) {
|
|
|
- params.coefficient = this.totalCompanyList[num].coefficient;
|
|
|
- params.discount = this.totalCompanyList[num].discount;
|
|
|
- params.lastCompanyId = this.subOrderId;
|
|
|
- }
|
|
|
- params.isInspect = this.totalCompanyList[num].isInspect;
|
|
|
- }
|
|
|
- let res = await this.$http.post(`${api}`,
|
|
|
- params);
|
|
|
- this.totalCompanyList[num].msg = res.msg;
|
|
|
- switch (namesimple) {
|
|
|
- case '安盛天平':
|
|
|
- case '恒邦财险':
|
|
|
- case '诚泰财险':
|
|
|
- case '中国人寿':
|
|
|
- case '太平财险':
|
|
|
- case '华农财险':
|
|
|
- case '泰康财险':
|
|
|
- if (res.code == '200') {
|
|
|
- if (res.data.warnMessageList !=
|
|
|
- null && res.data
|
|
|
- .warnMessageList[0] != null &&
|
|
|
- res.data
|
|
|
- .warnMessageList[
|
|
|
- 0] != "") {
|
|
|
- this.totalCompanyList[num]
|
|
|
- .lastYearMsg = "";
|
|
|
- let dat = res.data
|
|
|
- .warnMessageList;
|
|
|
- dat.map(ele => {
|
|
|
- this.totalCompanyList[
|
|
|
- num]
|
|
|
- .lastYearMsg +=
|
|
|
- ele + '<br>';
|
|
|
-
|
|
|
- })
|
|
|
- }
|
|
|
- this.totalCompanyList[num]
|
|
|
- .quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result =
|
|
|
- res.data;
|
|
|
- this.subOrderId = res.data.companyId;
|
|
|
- this.coordinateValue();
|
|
|
- if (res.data.syAdjustRate) {
|
|
|
- this.totalCompanyList[num].syAdjustRate = res.data.syAdjustRate;
|
|
|
- uni.setStorageSync('companyId', res.data.companyId);
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num]
|
|
|
- .quoteCode = "3";
|
|
|
- this.totalCompanyList[num].msg =
|
|
|
- res.msg;
|
|
|
- return;
|
|
|
- }
|
|
|
- break;
|
|
|
- case '众安财险':
|
|
|
- if (res.code == '200') {
|
|
|
- if (res.data.warnMessageList !=
|
|
|
- null && res.data
|
|
|
- .warnMessageList[0] != null &&
|
|
|
- res.data
|
|
|
- .warnMessageList[
|
|
|
- 0] != "") {
|
|
|
- this.totalCompanyList[num]
|
|
|
- .lastYearMsg = "";
|
|
|
- let dat = res.data
|
|
|
- .warnMessageList;
|
|
|
- dat.map(ele => {
|
|
|
- this.totalCompanyList[
|
|
|
- num]
|
|
|
- .lastYearMsg +=
|
|
|
- ele + '<br>';
|
|
|
- })
|
|
|
- }
|
|
|
- this.totalCompanyList[num]
|
|
|
- .quoteCode = 200;
|
|
|
- this.totalCompanyList[num].result =
|
|
|
- res.data;
|
|
|
- this.subOrderId = res.data.companyId;
|
|
|
- this.coordinateValue();
|
|
|
- } else {
|
|
|
- this.totalCompanyList[num]
|
|
|
- .quoteCode = "3";
|
|
|
- this.totalCompanyList[num].msg =
|
|
|
- res.msg;
|
|
|
- return;
|
|
|
- }
|
|
|
- break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- },
|
|
|
- //华农
|
|
|
- huanong(num, id) {
|
|
|
- this.quoteInsurance(num, id, this
|
|
|
- .totalCompanyList[num].apiType, this
|
|
|
- .totalCompanyList[num].jychecked);
|
|
|
- },
|
|
|
- //太平
|
|
|
- taiping(num, id) {
|
|
|
- this.quoteInsurance(num, id, this
|
|
|
- .totalCompanyList[num].apiType, this
|
|
|
- .totalCompanyList[num].jychecked);
|
|
|
- },
|
|
|
- //安盛天平
|
|
|
- ansheng(num, id) {
|
|
|
- this.quoteInsurance(num, id, this
|
|
|
- .totalCompanyList[num].apiType, this
|
|
|
- .totalCompanyList[num].jychecked);
|
|
|
- },
|
|
|
- //众安
|
|
|
- zhongan(num, id) {
|
|
|
- this.quoteInsurance(num, id, this
|
|
|
- .totalCompanyList[num].apiType, this
|
|
|
- .totalCompanyList[num].jychecked);
|
|
|
- },
|
|
|
- //人寿
|
|
|
- renshou(num, id) {
|
|
|
- this.quoteInsurance(num, id, this
|
|
|
- .totalCompanyList[num].apiType, this
|
|
|
- .totalCompanyList[num].jychecked);
|
|
|
- },
|
|
|
- //恒邦
|
|
|
- hengbang(num, id) {
|
|
|
- this.quoteInsurance(num, id, this
|
|
|
- .totalCompanyList[num].apiType, this
|
|
|
- .totalCompanyList[num].jychecked);
|
|
|
- },
|
|
|
- //诚泰
|
|
|
- chengtai(num, id) {
|
|
|
- this.quoteInsurance(num, id, this
|
|
|
- .totalCompanyList[num].apiType, this
|
|
|
- .totalCompanyList[num].jychecked);
|
|
|
- },
|
|
|
- taikang(num, id) {
|
|
|
- this.quoteInsurance(num, id, this
|
|
|
- .totalCompanyList[num].apiType, this
|
|
|
- .totalCompanyList[num].jychecked);
|
|
|
- },
|
|
|
- Lastyear() {
|
|
|
- this.$refs.lastYearMsgCI.show() // 显示
|
|
|
- },
|
|
|
- adjustPopupInsureSubmit() {
|
|
|
- this.$refs.lastYearMsgCI.hide() // 显示
|
|
|
- },
|
|
|
- // 重新选择车型
|
|
|
- toCarInfo() {
|
|
|
- this.navigate({
|
|
|
- url: '/pages/carInsure/Information',
|
|
|
- success: (res) => {
|
|
|
- res.eventChannel.emit(
|
|
|
- "acceptData", {
|
|
|
- carInfo: this
|
|
|
- .carInfo,
|
|
|
- ownerInfo: this
|
|
|
- .ownerInfo,
|
|
|
- policyHolderInfo: this
|
|
|
- .policyHolderInfo,
|
|
|
- insuredPersonInfo: this
|
|
|
- .insuredPersonInfo,
|
|
|
- riskList: this
|
|
|
- .riskList,
|
|
|
- kindList: this
|
|
|
- .kindList,
|
|
|
- carInfoPositiveList: this
|
|
|
- .carInfoPositiveList, //车辆
|
|
|
- ownerInfoPositiveList: this
|
|
|
- .ownerInfoPositiveList, //车主
|
|
|
- policyHolderInfoPositiveList: this
|
|
|
- .policyHolderInfoPositiveList, //投保
|
|
|
- insuredPersonInfoPositiveList: this
|
|
|
- .insuredPersonInfoPositiveList, //被保人
|
|
|
-
|
|
|
- })
|
|
|
- }
|
|
|
- }, "navigateTo", true);
|
|
|
- },
|
|
|
- // 重新选择方案
|
|
|
- toInsureItems() {
|
|
|
- this.navigate({
|
|
|
- url: '/pages/carInsure/insureItems',
|
|
|
- success: (res) => {
|
|
|
- res.eventChannel.emit(
|
|
|
- "acceptData", {
|
|
|
- carInfo: this
|
|
|
- .carInfo,
|
|
|
- ownerInfo: this
|
|
|
- .ownerInfo,
|
|
|
- policyHolderInfo: this
|
|
|
- .policyHolderInfo,
|
|
|
- insuredPersonInfo: this
|
|
|
- .insuredPersonInfo,
|
|
|
- riskList: this
|
|
|
- .riskList,
|
|
|
- kindList: this
|
|
|
- .kindList,
|
|
|
- carInfoPositiveList: this
|
|
|
- .carInfoPositiveList, //车辆
|
|
|
- ownerInfoPositiveList: this
|
|
|
- .ownerInfoPositiveList, //车主
|
|
|
- policyHolderInfoPositiveList: this
|
|
|
- .policyHolderInfoPositiveList, //投保
|
|
|
- insuredPersonInfoPositiveList: this
|
|
|
- .insuredPersonInfoPositiveList, //被保人
|
|
|
- vehicleModel: this
|
|
|
- .vehicleAndVesselTaxForm,
|
|
|
- })
|
|
|
- }
|
|
|
- }, "navigateTo", true);
|
|
|
- },
|
|
|
-
|
|
|
- // 显示报错信息
|
|
|
- ErrorMsg(msg, title) {
|
|
|
- uni.showModal({
|
|
|
- title: title + "报价提示",
|
|
|
- content: msg,
|
|
|
- showCancel: false,
|
|
|
- confirmText: "关闭"
|
|
|
- })
|
|
|
-
|
|
|
- },
|
|
|
- //上年信息
|
|
|
- YearMsg(msg, title) {
|
|
|
- let content = msg.replace(/<br>/g, "\r\n")
|
|
|
- uni.showModal({
|
|
|
- title: title + "上年信息",
|
|
|
- content: content,
|
|
|
- showCancel: false,
|
|
|
- confirmText: "关闭"
|
|
|
- })
|
|
|
- },
|
|
|
- discountErrorMessageMsg(msg, title) {
|
|
|
- this.discountInfoPopup = true;
|
|
|
- this.discountInfoPopupContent = msg.replace(/\n/g, '<br>');
|
|
|
- this.discountInfoPopupTitle = title;
|
|
|
- },
|
|
|
- //使用此时间
|
|
|
- syncData(item) {
|
|
|
- this.jqstartDate = item.startDateJq ? item
|
|
|
- .startDateJq : this.jqstartDate
|
|
|
- this.jqendDate = item.endDateJq ? item
|
|
|
- .endDateJq : this.endDateJq
|
|
|
- this.systartDate = item.startDateSy ? item
|
|
|
- .startDateSy : this.systartDate
|
|
|
- this.syendDate = item.endDateSy ? item
|
|
|
- .endDateSy : this.syendDate
|
|
|
- uni.showToast({
|
|
|
- title: '时间已替换',
|
|
|
- icon: 'none',
|
|
|
- duration: 1000
|
|
|
- });
|
|
|
- },
|
|
|
- //次日
|
|
|
- nextday() {
|
|
|
- var date = new Date();
|
|
|
- date.setFullYear(date.getFullYear());
|
|
|
- date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
|
|
|
- var strYear = date.getFullYear();
|
|
|
- var strDay = date.getDate();
|
|
|
- var strMonth = date.getMonth() + 1;
|
|
|
- var hh = date.getHours();
|
|
|
- if (hh < 10) {
|
|
|
- hh = "0" + hh;
|
|
|
- }
|
|
|
- if (strMonth < 10) {
|
|
|
- strMonth = "0" + strMonth;
|
|
|
- }
|
|
|
- if (strDay < 10) {
|
|
|
- strDay = "0" + strDay;
|
|
|
- }
|
|
|
- var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
|
|
|
- return datastr;
|
|
|
- },
|
|
|
- oneYearPast(time) {
|
|
|
- var date = new Date(time);
|
|
|
- date.setSeconds(date.getSeconds() - 1);
|
|
|
- date.setFullYear(date.getFullYear() + 1); //一年后
|
|
|
- date.setTime(date.getTime()); //一年后的前一天
|
|
|
- var strYear = date.getFullYear();
|
|
|
- var strDay = date.getDate();
|
|
|
- var strMonth = date.getMonth() + 1;
|
|
|
- var hh = date.getHours();
|
|
|
- var minutes = date.getMinutes(); // 分
|
|
|
- var Seconds = date.getSeconds();
|
|
|
- if (hh < 10) {
|
|
|
- hh = "0" + hh;
|
|
|
- }
|
|
|
- if (minutes < 10) {
|
|
|
- minutes = "0" + minutes;
|
|
|
- }
|
|
|
- if (Seconds < 10) {
|
|
|
- Seconds = "0" + Seconds;
|
|
|
- }
|
|
|
- if (strMonth < 10) {
|
|
|
- strMonth = "0" + strMonth;
|
|
|
- }
|
|
|
- if (strDay < 10) {
|
|
|
- strDay = "0" + strDay;
|
|
|
- }
|
|
|
- var datastr =
|
|
|
- strYear + "-" + strMonth + "-" + strDay +
|
|
|
- " " + hh + ":" + minutes + ":" + Seconds;
|
|
|
- return datastr;
|
|
|
- },
|
|
|
- },
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-</script>
|
|
|
-<style lang="scss" scoped>
|
|
|
- @import '@/style/mixin.scss';
|
|
|
-
|
|
|
- .discountInfoscroll {
|
|
|
- height: 300px;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- .PlanPopup-btn {
|
|
|
- width: 100%;
|
|
|
- height: 48px;
|
|
|
- background: #FFFFFF;
|
|
|
- box-shadow: 0px -2px 4px 0px rgba(0, 0, 0, 0.05);
|
|
|
- }
|
|
|
-
|
|
|
- .priceComparison {
|
|
|
- width: 20%;
|
|
|
- background: linear-gradient(180deg, #FA6464 0%, #E53F3F 100%);
|
|
|
- box-shadow: 0px 2px 5px 0px rgba(232, 66, 66, 0.3);
|
|
|
- border-radius: 4px;
|
|
|
- border: 1px solid #FF9A9A;
|
|
|
- }
|
|
|
-
|
|
|
- /deep/ .u-form-item[data-v-5e7216f1] {
|
|
|
- height: 26px;
|
|
|
- }
|
|
|
-
|
|
|
- .page {
|
|
|
- min-height: 100vh;
|
|
|
- background: #F8FAFE;
|
|
|
- padding: 16px 16px 100px 16px;
|
|
|
- }
|
|
|
-
|
|
|
- .car-header {
|
|
|
- width: 100%;
|
|
|
- height: auto;
|
|
|
- background: #FFFFFF;
|
|
|
- box-shadow: 0px 4px 10px 0px #DAE3F4;
|
|
|
- border-radius: 6px;
|
|
|
- padding: 8px 15px;
|
|
|
- position: relative;
|
|
|
-
|
|
|
- .head-name {
|
|
|
- margin-left: 20px;
|
|
|
-
|
|
|
- &>text {
|
|
|
- font-weight: bold;
|
|
|
- font-size: 15px;
|
|
|
- color: #232832;
|
|
|
- }
|
|
|
-
|
|
|
- .name1 text {
|
|
|
- font-size: 14px;
|
|
|
- font-weight: bold;
|
|
|
- color: #333333;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .carJump {
|
|
|
- position: absolute;
|
|
|
- top: 5px;
|
|
|
- right: 10px;
|
|
|
- font-size: 14px;
|
|
|
- color: #0052FF;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .pageContent {
|
|
|
- .header {
|
|
|
- padding: 10px 0;
|
|
|
-
|
|
|
- .title {
|
|
|
- font-size: 15px;
|
|
|
- color: #232832;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
-
|
|
|
- .color {
|
|
|
- font-size: 14px;
|
|
|
- color: #0052FF;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- /* 报价方案Start */
|
|
|
- .quotePlan {
|
|
|
- background: #FFFFFF;
|
|
|
- box-shadow: 0px 4px 10px 0px #DAE3F4;
|
|
|
- border-radius: 6px;
|
|
|
- }
|
|
|
-
|
|
|
- .quotePlan .header {
|
|
|
- padding: 10px 0;
|
|
|
- }
|
|
|
-
|
|
|
- .quotePlan .header .title {
|
|
|
- // font-size: 30upx;
|
|
|
- font-weight: bold;
|
|
|
- padding-left: 25upx;
|
|
|
- }
|
|
|
-
|
|
|
- .quotePlan .header .title:before {
|
|
|
- content: "";
|
|
|
- position: absolute;
|
|
|
- left: 30upx;
|
|
|
- top: 25upx;
|
|
|
- width: 8upx;
|
|
|
- height: 30upx;
|
|
|
- background-color: $themeColor;
|
|
|
- }
|
|
|
-
|
|
|
- .quotePlan {
|
|
|
- .body {
|
|
|
- padding: 0 10px 10px;
|
|
|
-
|
|
|
- >.qunimade {
|
|
|
- padding: 19rpx 0;
|
|
|
- border-bottom: 1px solid #f2f2f2;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .quotePlan .body>.qunimade:last-of-type {
|
|
|
- border-bottom: none;
|
|
|
- }
|
|
|
-
|
|
|
- .quotePlan .body .insurance {
|
|
|
- background: #F9F9F9;
|
|
|
- border-radius: 10px;
|
|
|
-
|
|
|
- >view {
|
|
|
- padding: 8px;
|
|
|
- border-bottom: 1px solid #f2f2f2;
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- >view:last-child {
|
|
|
- border: none;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- .accident-style {
|
|
|
- padding: 5px 8px 5px 8px;
|
|
|
-
|
|
|
- text {
|
|
|
- font-size: 13px;
|
|
|
- }
|
|
|
-
|
|
|
- >view {}
|
|
|
-
|
|
|
- .accident-ins {
|
|
|
- text {
|
|
|
- margin-right: 10px;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .popContent {
|
|
|
- padding: 8px;
|
|
|
- max-height: 400px;
|
|
|
- }
|
|
|
-
|
|
|
- .carTypeItem {
|
|
|
- padding: 0 30upx 20upx;
|
|
|
- border-bottom: 1px solid #e5e5e5;
|
|
|
- margin-top: 20upx;
|
|
|
- width: 100%;
|
|
|
- box-sizing: border-box;
|
|
|
- }
|
|
|
-
|
|
|
- .carTypeItem .nav .carseriesName {
|
|
|
- font-size: 34upx;
|
|
|
- width: 360upx;
|
|
|
- font-family: PingFangSC-Medium, PingFangSC;
|
|
|
- color: #4a4a4a;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
-
|
|
|
- .carTypeItem .nav .modelName {
|
|
|
- font-size: 26upx;
|
|
|
- width: 400upx;
|
|
|
- font-family: PingFangSC-Medium, PingFangSC;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
-
|
|
|
- .carTypeItem .nav .nav_box {
|
|
|
- margin: 10upx 0;
|
|
|
- }
|
|
|
-
|
|
|
- .carTypeItem .nav .nav_box .zid {
|
|
|
- display: inline-block;
|
|
|
- padding: 6upx 10upx;
|
|
|
- font-size: 24upx;
|
|
|
- height: 40upx;
|
|
|
- background: #AFC9F7;
|
|
|
- border-radius: 25upx;
|
|
|
- color: #007AFF;
|
|
|
- font-weight: bold;
|
|
|
- line-height: 40upx;
|
|
|
- }
|
|
|
-
|
|
|
- .carTypeItem .nav .nav_box>p {
|
|
|
- margin-left: 30upx;
|
|
|
- color: #999;
|
|
|
- font-size: 24upx;
|
|
|
- }
|
|
|
-
|
|
|
- .carTypeItem .price {
|
|
|
- font-size: 16px;
|
|
|
- width: 200upx;
|
|
|
- flex-shrink: 0;
|
|
|
- font-family: PingFangSC-Regular, PingFangSC;
|
|
|
- font-weight: 400;
|
|
|
- color: #007AFF;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- .quotePlan .body .row {
|
|
|
- height: 70upx;
|
|
|
- }
|
|
|
-
|
|
|
- .quotePlan .body .date {
|
|
|
- background-color: $themeColor;
|
|
|
- color: $themeColor;
|
|
|
- font-size: 22upx;
|
|
|
- padding: 0upx 7upx;
|
|
|
- border-radius: 3upx;
|
|
|
- margin: 10upx;
|
|
|
- margin-right: 10upx;
|
|
|
- }
|
|
|
-
|
|
|
- /* 报价方案End */
|
|
|
-
|
|
|
- /* 报价公司Start */
|
|
|
- .quoteCompany {
|
|
|
- box-sizing: border-box;
|
|
|
- /* background:#FFFFFF; */
|
|
|
- position: relative;
|
|
|
- border-radius: 20upx;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompany .header {
|
|
|
- height: 80upx;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompany .header .title {
|
|
|
- font-size: 30upx;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompany .header .title .icon {
|
|
|
- color: rgba($themeColor, 0.6);
|
|
|
- margin-left: 15upx;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem {
|
|
|
- margin-bottom: 20upx;
|
|
|
- background: #FFFFFF;
|
|
|
- border-radius: 6px;
|
|
|
- box-shadow: 0px 4px 10px 0px #DAE3F4;
|
|
|
- box-sizing: border-box;
|
|
|
- cursor: pointer;
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- .quoteCompanyItem .top {
|
|
|
- position: relative;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .top .companyIcon {
|
|
|
- padding: 8px;
|
|
|
- border-radius: 6px 6px 0 0;
|
|
|
- flex-shrink: 0;
|
|
|
- }
|
|
|
-
|
|
|
- .content {
|
|
|
- padding: 0 8px;
|
|
|
- margin-bottom: 5px;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .top .companyIcon image {
|
|
|
- width: 20px;
|
|
|
- height: 20px;
|
|
|
- margin-right: 10px;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .top .Premium {
|
|
|
- padding: 10px 8px;
|
|
|
- border-top: 1px solid #f2f2f2;
|
|
|
-
|
|
|
- .price {
|
|
|
- font-size: 12px;
|
|
|
- color: #FF5600;
|
|
|
-
|
|
|
- text {
|
|
|
- margin-right: 5px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .time {
|
|
|
- font-size: 12px;
|
|
|
- color: #2D4D89;
|
|
|
-
|
|
|
- >text {
|
|
|
- margin-right: 5px;
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .top .quotebtn {
|
|
|
- width: 100%;
|
|
|
- height: auto;
|
|
|
-
|
|
|
- >view {
|
|
|
- width: 50%;
|
|
|
- font-size: 14px;
|
|
|
- padding: 4px 0;
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .lastyear {
|
|
|
- view {
|
|
|
- font-size: 12px;
|
|
|
- font-weight: bold;
|
|
|
-
|
|
|
- image {
|
|
|
- width: 14px;
|
|
|
- height: 14px;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .left {
|
|
|
- border: 1px solid #229805;
|
|
|
- border-radius: 2px 2px 2px 2px;
|
|
|
- padding: 1px 6px;
|
|
|
- color: #229805;
|
|
|
- }
|
|
|
-
|
|
|
- .right {
|
|
|
- border-radius: 2px 2px 2px 2px;
|
|
|
- padding: 1px 6px;
|
|
|
- border: 1px solid #FF5600;
|
|
|
- margin-left: 10px;
|
|
|
- color: #FF5600;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .top .companyName {
|
|
|
- font-size: 14px;
|
|
|
- font-weight: bold;
|
|
|
- color: #232832;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .top .totalMoney {
|
|
|
- font-size: 40upx;
|
|
|
- font-weight: bold;
|
|
|
- color: $themeColor;
|
|
|
- position: absolute;
|
|
|
- top: -15upx;
|
|
|
- right: 0;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .top .tip {
|
|
|
- font-size: 26upx;
|
|
|
- font-weight: bold;
|
|
|
- color: #999;
|
|
|
- position: absolute;
|
|
|
- top: 0upx;
|
|
|
- right: 0;
|
|
|
- }
|
|
|
-
|
|
|
- .sum {
|
|
|
- color: #0052FF;
|
|
|
- font-size: 14px;
|
|
|
- font-weight: bold;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .top .signs {
|
|
|
- width: 500upx;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .top .sign {
|
|
|
- height: 40upx;
|
|
|
- margin: 0upx 10upx;
|
|
|
- background: rgba($themeColor, 0.6);
|
|
|
- color: $themeColor;
|
|
|
- font-size: 20upx;
|
|
|
- margin-right: 10upx;
|
|
|
- border-radius: 6upx;
|
|
|
- padding: 0 2px;
|
|
|
- line-height: 40upx;
|
|
|
- }
|
|
|
-
|
|
|
- .jqsign {
|
|
|
- height: 20px;
|
|
|
- background: rgba(255, 177, 177, 0.55);
|
|
|
- color: #fd0a0a;
|
|
|
- font-size: 20upx;
|
|
|
- border-radius: 6upx;
|
|
|
- padding: 0 10px;
|
|
|
- box-sizing: border-box;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .body {
|
|
|
- padding: 20upx 0;
|
|
|
- flex-wrap: wrap;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .body>view {
|
|
|
- flex-shrink: 0;
|
|
|
- width: 50%;
|
|
|
- overflow: hidden;
|
|
|
- text-overflow: ellipsis;
|
|
|
- white-space: nowrap;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteCompanyItem .body .icon-exchange {
|
|
|
- margin-right: 15upx;
|
|
|
- display: inline-block;
|
|
|
- }
|
|
|
-
|
|
|
- /* 报价公司End */
|
|
|
- /* 查看详情按钮Start */
|
|
|
- .btn {
|
|
|
- font-size: 16px;
|
|
|
- color: #fff;
|
|
|
- background-color: #ea552d;
|
|
|
- margin-top: 10px;
|
|
|
- }
|
|
|
-
|
|
|
- .footer-btn {
|
|
|
- position: fixed;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- width: 100%;
|
|
|
- height: 62px;
|
|
|
- background: #FFFFFF;
|
|
|
- box-shadow: 0px -4px 10px 0px #DAE3F4;
|
|
|
- border-radius: 0px 0px 0px 0px;
|
|
|
- padding: 12px 16px;
|
|
|
- z-index: 99;
|
|
|
- }
|
|
|
-
|
|
|
- .slot-content {
|
|
|
- padding: 10px;
|
|
|
- box-sizing: border-box;
|
|
|
- }
|
|
|
-
|
|
|
- .ZJcheckboxGroup {
|
|
|
- padding: 0 10px;
|
|
|
-
|
|
|
- .title {
|
|
|
- font-size: 14px;
|
|
|
- color: #232832;
|
|
|
- font-weight: bold;
|
|
|
- padding: 10px;
|
|
|
- }
|
|
|
-
|
|
|
- .scolcentent {
|
|
|
- max-height: 240px;
|
|
|
- padding-bottom: 40px;
|
|
|
- }
|
|
|
-
|
|
|
- .operateBtn {
|
|
|
- position: absolute;
|
|
|
- bottom: 0;
|
|
|
- left: 0;
|
|
|
- right: 0;
|
|
|
- font-weight: bold;
|
|
|
- font-size: 16px;
|
|
|
-
|
|
|
- .cancel {
|
|
|
- width: 50%;
|
|
|
- height: 46px;
|
|
|
- color: #0052FF;
|
|
|
- background-color: #EAEAEA;
|
|
|
- }
|
|
|
-
|
|
|
- .confirm {
|
|
|
- width: 50%;
|
|
|
- height: 46px;
|
|
|
- color: #fff;
|
|
|
- background-color: #0052FF;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- .contributing {
|
|
|
- width: 100%;
|
|
|
- margin: 4px 0;
|
|
|
- font-size: 12px;
|
|
|
-
|
|
|
- text:nth-child(1) {
|
|
|
- font-weight: bold;
|
|
|
- color: #232832;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- /* 查看详情按钮End */
|
|
|
- .status-data {
|
|
|
- width: auto;
|
|
|
- padding: 2px 8px;
|
|
|
- margin-left: 5px;
|
|
|
- font-size: 12px;
|
|
|
- border: 1px solid #CDCDCD;
|
|
|
- cursor: pointer;
|
|
|
- text-align: center;
|
|
|
- line-height: 25px;
|
|
|
- }
|
|
|
-
|
|
|
- .active {
|
|
|
- position: relative;
|
|
|
- background: rgba(0, 82, 255, 0.1);
|
|
|
- color: #0052FF;
|
|
|
- border: 1px solid #0052FF;
|
|
|
- font-weight: 700;
|
|
|
- }
|
|
|
-
|
|
|
- .active::before {
|
|
|
- content: "";
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- width: 10px;
|
|
|
- height: 10px;
|
|
|
- background-image: url("/static/image/car-insure/before.png");
|
|
|
- background-size: cover;
|
|
|
- }
|
|
|
-
|
|
|
- .active1 {
|
|
|
- position: relative;
|
|
|
- background: rgba(255, 86, 0, 0.1);
|
|
|
- color: #FF5600;
|
|
|
- border: 1px solid #FF5600;
|
|
|
- font-weight: 700;
|
|
|
- }
|
|
|
-
|
|
|
- .active1::before {
|
|
|
- content: "";
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 0;
|
|
|
- width: 10px;
|
|
|
- height: 10px;
|
|
|
- background-image: url("/static/image/car-insure/before1.png");
|
|
|
- background-size: cover;
|
|
|
- }
|
|
|
-
|
|
|
- .quoteactive {
|
|
|
- border: 1px solid #0052FF;
|
|
|
-
|
|
|
- .top {
|
|
|
- .companyIcon {
|
|
|
- background-color: #E6EEFF;
|
|
|
- }
|
|
|
-
|
|
|
- .Premium {
|
|
|
- border-top-color: #0052FF;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- .Discount {
|
|
|
- image {
|
|
|
- width: 16px;
|
|
|
- height: 16px;
|
|
|
- }
|
|
|
-
|
|
|
- text {
|
|
|
- font-size: 12px;
|
|
|
- color: #333333;
|
|
|
- }
|
|
|
- }
|
|
|
-</style>
|