1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720 |
- <template>
- <view class="page">
- <!-- 公共组件-每个页面必须引入 -->
- <public-module></public-module>
- <view class="plan-ins-title own-ins-title d-flex j-sb">
- <view class="title-left d-flex a-center j-center">已选险种</view>
- <view class="title-right d-flex a-center j-center" @tap="insureTip">投保方案建议<view
- class="icon iconfont icon-Group-" style="margin-left: 15upx;"></view>
- </view>
- </view>
- <view class="compulsory-insurance">
- <view class="common-title dis j-s">
- <view class="dis a-c " style="font-size: 17px;">
- <text>交强险 </text>
- <view class="icon iconfont icon-Group-" style="margin-left: 15upx;color: #aaa;font-weight: normal;"
- @tap="CITips"></view>
- </view>
- <view class=" dis j-c a-c ">
- <text>即时投保</text>
- <switch style="transform: scale(0.6)" @change="jqImmediate" />
- </view>
- </view>
- <!-- <template v-if="CIInsureList.amount!=0"> -->
- <u-form ref="uForm" label-width="200px" v-if="CIInsureList.amount!=0">
- <u-form-item label="交强险投保日期" class="modelformcss">
- <u-input type="select" :select-open="jqstartShow" v-model="jqstartDate" placeholder="请选择开始时间"
- @click="jqstartShow = true"></u-input>
- <u-picker v-model="jqstartShow" mode="time" :params="params" @confirm="jqstartconfirm"></u-picker>
- </u-form-item>
- <u-form-item label="交强险终保日期" class="modelformcss">
- <u-input type="select" :select-open="jqendShow" v-model="jqendDate" placeholder="请选择结束时间"
- @click="jqendShow = true"></u-input>
- <u-picker v-model="jqendShow" mode="time" :params="params" @confirm="jqendconfirm"></u-picker>
- </u-form-item>
- </u-form>
- <view class="car-ins-cell d-flex j-sb common-ins-cell" @tap="adjustCIItem('CIInsureList')">
- <view class="cell-title d-flex a-center j-center">交强险</view>
- <view class="cell-desc d-flex a-center j-center">{{CIInsureList.amountDesc}}
- <view class="icon iconfont icon-youjiantou" style="font-size: 24upx;margin-left: 20upx;"></view>
- </view>
- </view>
- </view>
- <view class="compulsory-insurance">
- <view class="common-title d-flex a-center">车船税<view class="icon iconfont icon-Group-"
- style="margin-left: 15upx;color: #aaa;font-weight: normal;"></view>
- </view>
- <u-form ref="uForm" :model="vehicleAndVesselTaxForm" label-width="130px">
- <u-form-item label="纳税类型" prop="taxRelifFlag" class="modelformcss">
- <u-input type="select" :select-open="taxRelifFlagShow" v-model="model.taxRelifFlag"
- placeholder="请选择纳税类型" @click="taxRelifFlagShow = true"></u-input>
- <u-select mode="single-column" :list="taxRelifFlagoptions" v-model="taxRelifFlagShow"
- label-name="dictTag" value-name="dictValue"
- @confirm="taxRelifFlagConfirm($event,'taxRelifFlag')"></u-select>
- </u-form-item>
- <u-form-item v-show="vehicleAndVesselTaxForm.taxRelifFlag==1" label="纳税人姓名" prop="taxpayerName"
- class="modelformcss">
- <u-input placeholder="请输入姓名" v-model="vehicleAndVesselTaxForm.taxpayerName" type="text"></u-input>
- </u-form-item>
- <u-form-item v-show="vehicleAndVesselTaxForm.taxRelifFlag==1" label="纳税人证件号" prop="identifyNumber"
- class="modelformcss">
- <u-input placeholder="纳税人证件号" v-model="vehicleAndVesselTaxForm.identifyNumber"
- type="text"></u-input>
- </u-form-item>
- <u-form-item v-show="vehicleAndVesselTaxForm.taxRelifFlag==1" label="证件类型" prop="taxpayerIdentifier"
- class="modelformcss">
- <u-input type="select" :select-open="taxpayerIdentifierShow" v-model="model.taxpayerIdentifier"
- placeholder="请选择证件类型" @click="taxpayerIdentifierShow = true"></u-input>
- <u-select mode="single-column" :list="taxpayerIdentifieroptions" v-model="taxpayerIdentifierShow"
- label-name="dictTag" value-name="dictValue"
- @confirm="taxRelifFlagConfirm($event,'taxpayerIdentifier')"></u-select>
- </u-form-item>
- <u-form-item
- v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 || vehicleAndVesselTaxForm.taxRelifFlag == 3"
- label="减免税凭证号" prop="extendChar2" class="modelformcss">
- <u-input placeholder="请输入减免税凭证号" v-model="vehicleAndVesselTaxForm.extendChar2"
- type="text"></u-input>
- </u-form-item>
- <u-form-item v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" label="完税凭证号" prop="paidFreeCertificate"
- class="modelformcss">
- <u-input placeholder="请输入完税凭证号" v-model="vehicleAndVesselTaxForm.paidFreeCertificate"
- type="text"></u-input>
- </u-form-item>
- <u-form-item
- v-show="vehicleAndVesselTaxForm.taxRelifFlag == 2 || vehicleAndVesselTaxForm.taxRelifFlag == 3"
- label="减免税原因" prop="relifReason" class="modelformcss">
- <u-input type="select" :select-open="relifReasonShow" v-model="model.relifReason"
- placeholder="请选择减免税原因" @click="relifReasonShow = true"></u-input>
- <u-select mode="single-column" :list="relifReasonoptions" v-model="relifReasonShow"
- label-name="dictTag" value-name="dictValue"
- @confirm="taxRelifFlagConfirm($event,'relifReason')"></u-select>
- </u-form-item>
- <u-form-item v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" label="税务机关代码" prop="taxComCode"
- class="modelformcss">
- <u-input placeholder="请输入税务机关代码" v-model="vehicleAndVesselTaxForm.taxComCode" type="text"></u-input>
- </u-form-item>
- <u-form-item v-show="vehicleAndVesselTaxForm.taxRelifFlag != 1" label="税务机关名称" prop="taxComName"
- class="modelformcss">
- <u-input placeholder="请输入税务机关名称" v-model="vehicleAndVesselTaxForm.taxComName" type="text"></u-input>
- </u-form-item>
- <u-form-item v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" label="完税凭证填发日期" prop="taxDocumentDate"
- class="modelformcss">
- <u-input type="select" :select-open="taxDocumentDateShow"
- v-model="vehicleAndVesselTaxForm.taxDocumentDate" placeholder="请选择时间"
- @click="taxDocumentDateShow = true"></u-input>
- <u-picker v-model="taxDocumentDateShow" mode="time" :params="params1"
- @confirm="taxDocumentDateconfirm"></u-picker>
- </u-form-item>
- <u-form-item v-show="vehicleAndVesselTaxForm.taxRelifFlag == 4" label="完税凭证地区" prop="taxPaidAreaCode"
- class="modelformcss">
- <u-input type="select" :select-open="taxPaidAreaCodeShow" v-model="model.taxPaidAreaCode"
- placeholder="请选择地区" @click="taxPaidAreaCodeShow = true"></u-input>
- <u-picker mode="region" v-model="taxPaidAreaCodeShow" :params="params2"
- @confirm="taxPaidAreaCodeconfirm"></u-picker>
- </u-form-item>
- <u-form-item v-show="vehicleAndVesselTaxForm.taxRelifFlag == 3" label="减税比例" prop="taxRelief"
- class="modelformcss">
- <u-input placeholder="请输入0~1的小数" v-model="vehicleAndVesselTaxForm.taxRelief" type="text"></u-input>
- </u-form-item>
- </u-form>
- </view>
- <view class="business-insurance">
- <view class="common-title dis j-s">
- <view class="dis a-c" style="font-size: 17px;">
- 商业险 <view class="icon iconfont icon-Group-"
- style="margin-left: 15upx;color: #aaa;font-weight: normal;" @tap="BITips"></view>
- </view>
- <view class=" dis j-c a-c ">
- <text>即时投保</text>
- <switch style="transform: scale(0.6)" @change="syImmediate" />
- </view>
- </view>
- <u-form ref="uForm" label-width="200px" v-if="BIInsureList.amount!=0">
- <u-form-item label="商业险投保日期" class="modelformcss">
- <u-input type="select" :select-open="systartShow" v-model="systartDate" placeholder="请选择开始时间"
- @click="systartShow = true"></u-input>
- <u-picker v-model="systartShow" mode="time" :params="params" @confirm="systartconfirm"></u-picker>
- </u-form-item>
- <u-form-item label="商业险投保日期" class="modelformcss">
- <u-input type="select" :select-open="syendShow" v-model="syendDate" placeholder="请选择开始时间"
- @click="syendShow = true"></u-input>
- <u-picker v-model="syendShow" mode="time" :params="params" @confirm="syendconfirm"></u-picker>
- </u-form-item>
- </u-form>
- <view class="car-ins-cell d-flex j-sb common-ins-cell" @tap="adjustCIItem('BIInsureList')">
- <view class="cell-title d-flex a-center j-center">商业险</view>
- <view class="cell-desc d-flex a-center j-center">{{BIInsureList.amountDesc}}
- <view class="icon iconfont icon-youjiantou" style="font-size: 24upx;margin-left: 20upx;"></view>
- </view>
- </view>
- </view>
- <view class="business-insurance">
- <block v-for="(insureItem,index) in insureList" :key="index">
- <template v-if="insureItem.amount != 0">
- <view class="car-ins-cell d-flex j-sb common-ins-cell" @tap="adjustBIItem(index)">
- <view class="cell-title d-flex a-center j-center">{{insureItem.kindName}}</view>
- <view class="cell-desc d-flex a-center j-center">{{insureItem.amountDesc}}
- <view class="icon iconfont icon-youjiantou" style="font-size: 24upx;margin-left: 20upx;">
- </view>
- </view>
- </view>
- </template>
- </block>
- <view v-if="insureCodeList.length>0">
- <view class="car-ins-cell d-flex j-sb common-ins-cell" style="border:none;">
- <view class="cell-title d-flex a-center j-center">增值服务</view>
- <view class="cell-desc d-flex a-center j-center">赠送</view>
- </view>
- <view
- style="margin:0 30upx 30upx; padding: 15upx;color: #A6A6A6;font-size: 24upx;background-color: #F8FAFC;">
- 注:包含道路救援/安全检测/代为驾驶/代为送检,投保以上商业主0险免费赠送,各家保司各个地区旅游差异,具体以保单信息为准</view>
- </view>
- </view>
- <view>
- <view class="plan-ins-title own-ins-title d-flex j-sb" v-if="insureCodeList.length < insureList.length">
- <view class="title-left d-flex a-center j-center main-text-color">未选险种</view>
- </view>
- <block v-for="(insureItem,index) in insureList" :key="index">
- <template
- v-if="(insureItem.amount == 0) && (insureItem.isMainRisk || (insureItem.isMainRisk && (insureCodeList.indexOf(insureItem.mainRiskCodeList)>=0))) ">
- <view class="car-ins-cell d-flex j-sb common-ins-cell" @tap="adjustBIItem(index)">
- <view class="cell-title d-flex a-center j-center">{{insureItem.kindName}}</view>
- <view class="cell-desc d-flex a-center j-center">{{insureItem.amountDesc}}
- <view class="icon iconfont icon-youjiantou" style="font-size: 24upx;margin-left: 20upx;">
- </view>
- </view>
- </view>
- </template>
- </block>
- </view>
- <view class="bottom-btn">
- <button type="primary" class="main-bg-color" @tap="toQuote">确定</button>
- </view>
- <wyb-popup ref="popupInsure" type="center" mode="size-fixed" height="700" width="600" radius="6">
- <view class="popupBody">
- <view class="popHeader d-flex a-center j-center">
- 投保方案建议
- </view>
- <scroll-view scroll-top="0" scroll-y="true" class="popupScroll">
- <view class="title">行驶城市</view>
- <view class="desc">可根据投保城市经济情况和自身经济情况,选择机动车第三者责任保险、车上人员责任保险(司机)、车上人员责任保险(乘客)等保障,建议保额相对高一些。</view>
- <view class="title">车辆情况</view>
- <view class="desc">可根据自己车辆年龄、价格、日常行驶路况、生活环境,选择机动车损失保险、全车盗抢、玻璃破碎、划痕、涉水损失险,高价格车辆建议配置保障。</view>
- <view class="title">费用承担</view>
- <view class="desc">如您不幸发生保险事故时,希望获得全额赔偿,不承担自费,可选择购买不计免赔。</view>
- </scroll-view>
- <view class="popBottom d-flex a-center j-center main-text-color" @tap="adjustPopupInsureSubmit">我知道了
- </view>
- </view>
- </wyb-popup>
- <!-- 交强选择方案 -->
- <wyb-popup ref="popupCI" type="bottom" mode="size-fixed" height="900" radius="6" :showCloseIcon="true">
- <view class="popup-content">
- <view class="popHeader d-flex a-center j-center">
- 选择方案
- </view>
- <scroll-view scroll-top="0" scroll-y="true" class="popContent">
- <view class="popContentTitle">{{insureItem.kindName}}</view>
- <view style="color: #999;font-size: 24upx;">{{insureItem.desc}}</view>
- <view>
- <block v-for="(amt,index) in insureItem.amtList" :key="index">
- <view class="amtSingle">
- <view :class="(amt.label== insureItem.amountDesc)?'active':''"
- @tap="adjustCIItemLabel(index)">{{amt.label}}</view>
- </view>
- </block>
- </view>
- </scroll-view>
- <view class="popBottom">
- <button class="main-bg-color" type="primary"
- @tap="adjustCIItemLabelSubmit(insureItem.kindCode)">完成</button>
- </view>
- </view>
- </wyb-popup>
- <!-- 商业选择方案 -->
- <wyb-popup ref="popupBI" type="bottom" mode="size-fixed" height="900" radius="6" :showCloseIcon="true">
- <view class="popup-content">
- <view class="popHeader d-flex a-center j-center">
- 选择方案
- </view>
- <scroll-view scroll-top="0" scroll-y="true" class="popContent">
- <view class="popContentTitle">{{insureItem.kindName}}</view>
- <view style="color: #999;font-size: 24upx;">{{insureItem.desc}}</view>
- <view class="dis a-c j-s p-3" v-if="['TY2','TY3','TY4'].includes(insureItem.kindCode)">
- <text>自定义次数</text>
- <u-number-box v-model="insureItem.amount" :input-width="100" :input-height="60" :min="0"
- bg-color="#ea552d" color="#fff" size="30" @change="numberBoxChange"></u-number-box>
- </view>
- <view v-else>
- <block v-for="(amt,index) in insureItem.amtList" :key="index">
- <view class="amtSingle">
- <view :class="(amt.label== insureItem.amountDesc)?'active':''"
- @tap="adjustBIItemLabel(index)">{{amt.label}}</view>
- </view>
- </block>
- </view>
- </scroll-view>
- <view class="popBottom">
- <button class="main-bg-color" type="primary" @tap="adjustBIItemLabelSubmit()">完成</button>
- </view>
- </view>
- </wyb-popup>
- </view>
- </template>
- <script>
- import wybPopup from '@/components/modules/carInsure/wyb-popup/wyb-popup.vue'
- var dateTime = new Date();
- dateTime.setTime(dateTime.getTime() + 24 * 60 * 60 * 1000);
- var tomorrow = dateTime.getFullYear() + "-" + (((dateTime.getMonth() + 1) < 10) ? ("0" + (dateTime.getMonth() + 1)) :
- (dateTime.getMonth() + 1)) + "-" + ((dateTime.getDate() < 10) ? ("0" + dateTime.getDate() + ' 00:00') :
- dateTime
- .getDate() + ' 00:00:00');
- export default {
- components: {
- wybPopup
- },
- data() {
- return {
- model: {
- taxRelifFlag: "正常交税",
- taxpayerIdentifier: "身份证",
- relifReason: "",
- taxPaidAreaCode: "",
- },
- //车船税form
- vehicleAndVesselTaxForm: {
- taxRelifFlag: "1", //类型
- identifyNumber: "", //纳税人识别号
- taxpayerIdentifier: "01", //纳税人证件类型
- taxpayerName: "", //纳税人名称
- extendChar2: "", //减免税凭证号
- paidFreeCertificate: "", //完税凭证号
- relifReason: "", //减免税原因
- taxComCode: "", //税务机关代码
- taxComName: "", ///税务机关名称
- taxDocumentDate: "", //完税日期
- taxPaidAreaCode: "", //完税凭证地区代码
- taxRelief: "", //减税比例
- },
- carInfoPositiveList: [], //车辆
- ownerInfoPositiveList: [], //车主
- policyHolderInfoPositiveList: [], //投保人
- insuredPersonInfoPositiveList: [], //被保人
- form: {},
- taxPaidAreaCodeShow: false, //完税凭证地区
- taxDocumentDateShow: false, //完税凭证填发日期
- taxRelifFlagShow: false, //车船税类型
- taxpayerIdentifierShow: false, //纳税人证件类型
- relifReasonShow: false, //减免税原因代码
- jqstartShow: false, //交强起保日期
- jqendShow: false, //交强终保日期
- systartShow: false, //商业起保日期
- syendShow: false, //商业终保日期
- params: {
- year: true, //年
- month: true, //月
- day: true, //日
- hour: true, //时
- minute: true, //分
- second: true, //秒
- },
- params1: {
- year: true, //年
- month: true, //月
- day: true, //日
- },
- params2: {
- province: true,
- city: false,
- area: false
- },
- carInfo: {}, //车辆信息
- ownerInfo: {}, //车主信息
- policyHolderInfo: {}, //投保人信息
- insuredPersonInfo: {}, //被保人信息
- riskList: [], //险种大类信息
- kindList: [], //商业险险别
- jqstartDate: tomorrow, //交强始
- jqendDate: " ", //交强终
- systartDate: tomorrow, //商业始
- syendDate: "", //商业终
- BIStartDate: tomorrow,
- insureItem: {}, //popup弹出框的参数
- insureCodeList: ["A", "B", "D3", "D4"],
- CIInsureList: {
- amount: "1",
- amountDesc: "投保",
- amtList: [{
- "label": "不投保",
- "value": "0"
- }, {
- "label": "投保",
- "value": "1"
- }],
- kindCode: "0507",
- kindName: "交强险",
- desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
- },
- BIInsureList: {
- amount: "1",
- amountDesc: "投保",
- amtList: [{
- "label": "不投保",
- "value": "0"
- }, {
- "label": "投保",
- "value": "1"
- }],
- kindCode: "0510",
- kindName: "商业险",
- desc: "国家强制规定购买的险种,对第三方的人身或财产损失提供基本保障"
- },
- insureList: [{
- amount: "1",
- amountDesc: "投保",
- amtList: [{
- "label": "不投保",
- "value": "0"
- }, {
- "label": "投保",
- "value": "1"
- }],
- kindCode: "A",
- isMainRisk: true,
- kindName: "机动车损失险",
- desc: "保险期间内,被保险人或被保险机动车驾驶人在使用被保险机动车过程中,因自然灾害、意外事故、机动车被盗窃、抢劫、抢夺等情况(详见保险条款)造成被保险机动车直接损失,且不属于免除保险人责任的范围,保险人依照本保险合同的约定负责赔偿的险种。"
- },
- {
- amount: "1000000",
- amountDesc: "100万",
- 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: "10000",
- amountDesc: "1万",
- 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: "10000",
- amountDesc: "1万",
- 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: "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_YBW2",
- isMainRisk: true,
- kindName: "附加医保-座位险(乘客)",
- desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
- },
- {
- 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_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"
- }
- ],
- /* 数据字典 */
- taxRelifFlagoptions: [],
- taxpayerIdentifieroptions: [],
- relifReasonoptions: [],
- /* 数据字典 */
- }
- },
- // 监听导航栏的按钮
- onNavigationBarButtonTap(e) {
- if (e.index == 0) {
- this.navigate({
- url: '/pages/index/index'
- }, "switchTab", true);
- }
- },
- onShow() {
- dateTime = new Date();
- dateTime.setTime(dateTime.getTime() + 24 * 60 * 60 * 1000);
- },
- onLoad() {
- this.getDicType("taxRelifFlag"); //车船税类型
- this.getDicType("taxpayerIdentifier"); //纳税人证件类型
- this.getDicType("relifReason"); //减免税原因代码
- this.jqstartDate = this.nextday();
- this.jqendDate = this.oneYearPast(this.jqstartDate);
- this.systartDate = this.nextday();
- this.syendDate = this.oneYearPast(this.jqstartDate);
- const eventChannel = this.getOpenerEventChannel()
- // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
- eventChannel.on('acceptData', (data) => {
- console.log(data)
- if (!!data) {
- //读取上一个页面传过来数据(车辆信息,人员信息,险种信息)
- this.carInfo = data.carInfo; //车辆信息
- this.ownerInfo = data.ownerInfo; //车主信息
- this.policyHolderInfo = data.policyHolderInfo; //投保人信息
- this.vehicleAndVesselTaxForm.identifyNumber = this.policyHolderInfo.identifyNumber;
- this.vehicleAndVesselTaxForm.taxpayerName = this.policyHolderInfo.name;
- this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
- this.riskList = data.riskList; //险种大类
- this.kindList = data.kindList; //商业险险别
- this.carInfoPositiveList = data.carInfoPositiveList; //车辆
- this.ownerInfoPositiveList = data.ownerInfoPositiveList; //车主
- this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
- this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
- if (this.riskList.length > 0) {
- this.insureCodeList = [];
- this.riskList.map((ele, index) => {
- // console.log(ele)
- // switch (ele.riskCode) {
- // case '0507':
- // this.CIInsureList.amount = "1";
- // this.CIInsureList.amountDesc = "投保";
- // this.jqstartDate = ele.startDate;
- // this.jqendDate = ele.endDate;
- // break;
- // case '0510':
- // this.BIInsureList.amount = "1";
- // this.BIInsureList.amountDesc = "投保";
- // this.systartDate = ele.startDate;
- // this.syendDate = ele.endDate;
- // break;
- // default:
- // break;
- // }
- })
- if (this.riskList.length == 1) {
- if (this.riskList[0].riskCode == '0507') {
- this.CIInsureList.amount = "1";
- this.CIInsureList.amountDesc = "投保";
- this.jqstartDate = this.riskList[0].startDate;
- this.jqendDate = this.riskList[0].endDate;
- this.BIInsureList.amount = "0";
- this.BIInsureList.amountDesc = "不投保";
- } else if (this.riskList[0].riskCode == '0510') {
- this.CIInsureList.amount = "0";
- this.CIInsureList.amountDesc = "不投保";
- this.BIInsureList.amount = "1";
- this.BIInsureList.amountDesc = "投保";
- this.systartDate = this.riskList[0].startDate;
- this.syendDate = this.riskList[0].endDate;
- }
- } else {
- this.CIInsureList.amount = "1";
- this.CIInsureList.amountDesc = "投保";
- this.jqstartDate = this.riskList[0].startDate;
- this.jqendDate = this.riskList[0].endDate;
- this.BIInsureList.amount = "1";
- this.BIInsureList.amountDesc = "投保";
- this.systartDate = this.riskList[1].startDate;
- this.syendDate = this.riskList[1].endDate;
- }
- this.kindList.map(ele => {
- this.insureList.map(ele1 => {
- if (ele.kindCode == ele1.kindCode) {
- switch (ele.kindCode) {
- case 'A':
- ele1.amount = '1';
- ele1.amountDesc = '投保'
- break;
- case 'D4':
- case "SY_FJ_YBW2":
- ele1.amount = ele.unitAmount;
- ele1.amountDesc = this.toChinesNum(ele.unitAmount)
- break;
- case "MJ1":
- case "MJ2":
- case "MJ3":
- case "MJ4":
- ele1.amount = ele.deductibleRate;
- ele1.amountDesc = ele.deductibleRate + '%'
- break;
- case "TY1":
- case "TY2":
- case "TY3":
- case "TY4":
- ele1.amount = ele.serviceTimes;
- ele1.amountDesc = ele.serviceTimes + '次'
- break;
- default:
- ele1.amount = ele.amount;
- ele1.amountDesc = this.toChinesNum(ele.amount)
- break;
- }
- }
- })
- })
- var notselected = this.insureList.filter(item1 => !this.kindList.some(item2 => item2
- .kindCode === item1.kindCode))
- notselected.map(ele => {
- ele.amount = '0';
- ele.amountDesc = '不投保'
- })
- // console.log(this.insureList)
- }
- }
- })
- },
- computed: {
- startDate() {
- return this.getDate('start');
- },
- endDate() {
- return this.getDate('end');
- }
- },
- methods: {
- jqImmediate(e) {
- if (e.detail.value) {
- const date = new Date();
- date.setHours(date.getHours() + 2);
- date.setMinutes(0)
- date.setSeconds(0)
- this.jqstartDate = this.transformTime(date)
- this.jqendDate = this.oneYearPast(date);
- } else {
- this.jqstartDate = this.nextday();
- this.jqendDate = this.oneYearPast(this.jqstartDate);
- }
- },
- syImmediate(e) {
- if (e.detail.value) {
- const date = new Date();
- date.setHours(date.getHours() + 2);
- date.setMinutes(0)
- date.setSeconds(0)
- this.systartDate = this.transformTime(date)
- this.syendDate = this.oneYearPast(date);
- } else {
- this.systartDate = this.nextday();
- this.syendDate = this.oneYearPast(this.systartDate);
- }
- },
- taxRelifFlagConfirm(val, name) {
- this.vehicleAndVesselTaxForm[name] = val[0].value;
- this.model[name] = val[0].label;
- },
- /* 数据字典 */
- async getDicType(type) {
- let res = await this.$http.get('/sysDict/dictDetails/' + type);
- if (res.code == 200) {
- this[type + 'options'] = res.data.ddList;
- }
- },
- jqstartconfirm(e) {
- this.jqstartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
- this.jqendDate = this.oneYearPast(this.jqstartDate)
- },
- jqendconfirm(e) {
- this.jqendDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
- },
- systartconfirm(e) {
- this.systartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
- this.syendDate = this.oneYearPast(this.systartDate)
- },
- syendconfirm(e) {
- this.syendDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
- },
- taxDocumentDateconfirm(e) {
- this.vehicleAndVesselTaxForm.taxDocumentDate = e.year + '-' + e.month + '-' + e.day;
- },
- taxPaidAreaCodeconfirm(e) {
- this.vehicleAndVesselTaxForm.taxPaidAreaCode = e.province.value;
- this.model.taxPaidAreaCode = e.province.label;
- },
- insureTip() {
- this.$refs.popupInsure.show() // 显示
- },
- adjustPopupInsureSubmit() {
- this.$refs.popupInsure.hide() // 显示
- },
- // 交强险提示
- CITips() {
- uni.showModal({
- title: "交强险",
- content: "指“机动车交通事故责任强制保险”,是由保险公司对被保险机动车发生道路交通事故造成受害人(不包括本车人员和被保险人)的人身伤亡、财产损失,在责任限额内予以赔偿的强制性责任保险。",
- showCancel: false,
- confirmText: "我知道了"
- })
- },
- // 商业险提示
- BITips() {
- uni.showModal({
- title: "商业险",
- content: "指给车辆加上一份全面保障。详细险种包含:第三者责任险、盗抢险、车上人员责任险、车辆损失险、车身划痕损失险、自燃损失险、涉水险等,是您和爱车的必要保障。",
- showCancel: false,
- confirmText: "我知道了"
- })
- },
- //弹出popup框并显示基本信息
- adjustBIItem(index) {
- var a = {};
- Object.assign(a, this.insureList[index])
- this.insureItem = a;
- this.$refs.popupBI.show() // 显示
- },
- //popup内容的label改变
- adjustBIItemLabel(index) {
- this.insureItem.amount = this.insureItem.amtList[index].value;
- this.insureItem.amountDesc = this.insureItem.amtList[index].label;
- },
- // 提交popup的label修改
- adjustBIItemLabelSubmit() {
- for (let i = 0; i < this.insureList.length; i++) {
- if (this.insureItem.kindCode == this.insureList[i].kindCode) {
- this.insureList[i].amount = this.insureItem.amount; /* 保额 */
- this.insureList[i].amountDesc = this.insureItem.amountDesc; /* 保额名称 */
- if (this.insureItem.kindCode == 'B') {
- if (this.insureItem.amount != 0) {
- this.insureList[9].amtList[1].value = this.insureItem.amount;
- } else {
- this.insureList[9].amtList[1].value = '1';
- }
- }
- if (this.insureList[i].isMainRisk && this.insureList[i].amount == '0') {
- for (let j = 0; j < this.insureList.length; j++) {
- if ((!this.insureList[j].isMainRisk) && (this.insureList[j].mainRiskCodeList == this
- .insureList[i].kindCode)) {
- this.insureList[j].amount = this.insureList[j].amtList[0].value;
- this.insureList[j].amountDesc = this.insureList[j].amtList[0].label;
- }
- }
- }
- var codeList = []
- for (let m = 0; m < this.insureList.length; m++) {
- if (this.insureList[m].amount != '0') {
- codeList.push(this.insureList[m].kindCode);
- }
- }
- this.insureCodeList = [];
- Object.assign(this.insureCodeList, codeList)
- if (this.insureCodeList.length > 0) {
- this.BIInsureList.amount = '1';
- this.BIInsureList.amountDesc = '投保';
- } else {
- this.BIInsureList.amount = '0';
- this.BIInsureList.amountDesc = '不投保';
- }
- break;
- }
- }
- this.$refs.popupBI.hide();
- },
- numberBoxChange(val) {
- console.log(val)
- if (val.value > 0) {
- this.insureItem.amount = val.value;
- this.insureItem.amountDesc = val.value + '次';
- } else {
- this.insureItem.amount = 0;
- this.insureItem.amountDesc = '不投保';
- }
- },
- getDate(type) {
- const date = new Date();
- if (type === 'start') {
- date.setTime(date.getTime());
- } else if (type === 'end') {
- date.setTime(date.getTime() + 24 * 60 * 60 * 1000 * 90);
- }
- let year = date.getFullYear();
- let month = date.getMonth() + 1;
- let day = date.getDate();
- month = month > 9 ? month : '0' + month;;
- day = day > 9 ? day : '0' + day;
- return `${year}-${month}-${day}`;
- },
- //日期的选择
- bindDateChange(e, startDateType) {
- const date = new Date();
- const date1 = date.getTime();
- const date2 = date.getTime() + 24 * 60 * 60 * 1000 * 90;
- const date3 = new Date(e.detail.value).getTime();
- if (((date3 - date1) > 0) && ((date3 - date2) > 0)) {
- return uni.showToast({
- icon: "none",
- title: "投保日期须在90天内"
- })
- }
- this[startDateType] = e.detail.value;
- },
- //交强险弹出框
- adjustCIItem(type) {
- var a = {};
- Object.assign(a, this[type]);
- this.insureItem = a;
- this.$refs.popupCI.show() // 显示
- },
- adjustCIItemLabel(index) {
- this.insureItem.amount = this.insureItem.amtList[index].value;
- this.insureItem.amountDesc = this.insureItem.amtList[index].label;
- },
- adjustCIItemLabelSubmit(kindCode) {
- var a = {};
- if (kindCode == '0507') {
- this.CIInsureList = {};
- Object.assign(a, this.insureItem)
- this.CIInsureList = a;
- }
- if (kindCode == '0510') {
- if (this.insureItem.amount == '0') {
- this.insureCodeList = [];
- for (let i = 0; i < this.insureList.length; i++) {
- this.insureList[i].amount = '0';
- this.insureList[i].amountDesc = '不投保';
- }
- } else {
- // 车损险
- this.insureList[0].amount = 1;
- this.insureList[0].amountDesc = "投保";
- // 三者险
- this.insureList[1].amount = 1000000;
- this.insureList[1].amountDesc = "100万";
- // 司机险
- this.insureList[2].amount = 10000;
- this.insureList[2].amountDesc = "1万";
- // 乘客险
- this.insureList[3].amount = 10000;
- this.insureList[3].amountDesc = "1万";
- this.insureList[4].amount = 0;
- this.insureList[4].amountDesc = "不投保";
- }
- this.BIInsureList = {};
- Object.assign(a, this.insureItem)
- this.BIInsureList = a;
- }
- this.$refs.popupCI.hide() // 显示
- },
- //跳转报价页面
- toQuote() {
- var riskList = []; //险种大类信息
- var kindList = []; //商业险险别
- if (this.CIInsureList.amount == '1') {
- this.jqstartDate = this.transformTime(this.jqstartDate);
- this.jqendDate = this.transformTime(this.jqendDate);
- riskList.push({
- amount: "200000",
- premium: "0",
- riskCode: "0507",
- startDate: this.jqstartDate,
- endDate: this.jqendDate,
- instantFlag: "0"
- })
- }
- if (this.BIInsureList.amount == '1') {
- this.systartDate = this.transformTime(this.systartDate);
- this.syendDate = this.transformTime(this.syendDate);
- riskList.push({
- startDate: this.systartDate,
- endDate: this.syendDate,
- quotePreceptName: "",
- quotePreceptCode: "",
- instantFlag: "0",
- premium: "0",
- riskCode: "0510"
- })
- this.insureList.map((ele, index) => {
- if (ele.amount != "0" && ["SY_FJ_YBW2", "D4"].includes(ele.kindCode)) {
- kindList.push({
- unitAmount: this.insureList[index].amount,
- kindCode: this.insureList[index].kindCode,
- kindName: this.insureList[index].kindName
- });
- } else if (ele.amount != "0" && ["MJ1", "MJ2", "MJ3", "MJ4"].includes(ele.kindCode)) {
- kindList.push({
- deductibleRate: this.insureList[index].amount,
- kindCode: this.insureList[index].kindCode,
- kindName: this.insureList[index].kindName
- });
- } else if (ele.amount != "0" && ["TY1", "TY2", "TY3", "TY4"].includes(ele.kindCode)) {
- kindList.push({
- serviceTimes: String(this.insureList[index].amount),
- kindCode: this.insureList[index].kindCode,
- kindName: this.insureList[index].kindName
- });
- } else if (ele.amount != "0") {
- kindList.push({
- amount: this.insureList[index].amount,
- kindCode: this.insureList[index].kindCode,
- kindName: this.insureList[index].kindName
- });
- }
- return ele;
- });
- }
- if (riskList.length == 0) {
- return uni.showToast({
- icon: "none",
- title: "请至少选择一种主险"
- })
- }
- // console.log(riskList, kindList)
- this.navigate({
- url: '/pages/carInsure1/quote1',
- success: (res) => {
- res.eventChannel.emit("acceptData", {
- carInfo: this.carInfo,
- ownerInfo: this.ownerInfo,
- policyHolderInfo: this.policyHolderInfo,
- insuredPersonInfo: this.insuredPersonInfo,
- riskList: riskList,
- kindList: kindList,
- carInfoPositiveList: this.carInfoPositiveList, //车辆
- ownerInfoPositiveList: this.ownerInfoPositiveList, //车主
- vehicleAndVesselTaxForm: this.vehicleAndVesselTaxForm, //车船税信息
- policyHolderInfoPositiveList: this.policyHolderInfoPositiveList, //投保人
- insuredPersonInfoPositiveList: this.insuredPersonInfoPositiveList, //被保人
- })
- }
- }, "navigateTo", true);
- },
- //计算输入时间一年后的的前一天(输入的参数为字符串("2019-03-02")最终输出也为日期的字符串)
- 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;
- },
- //次日
- 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;
- },
- //时间转换
- transformTime(date) {
- var d = new Date(date);
- var strYear = d.getFullYear();
- var strMonth = d.getMonth() + 1;
- var strDay = d.getDate();
- var hh = d.getHours();
- var minutes = d.getMinutes(); // 分
- var Seconds = d.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 datetime =
- strYear + "-" + strMonth + "-" + strDay + " " + hh + ":" + minutes + ":" + Seconds;
- return datetime;
- },
- toChinesNum(num) {
- let changeNum = [
- "零", "1", "2", "3", "4", "5", "6", "7", "8", "9"
- ];
- let unit = ["", "0", "00", "000", "0000"];
- num = parseInt(num);
- let getWan = temp => {
- let strArr = temp
- .toString()
- .split("")
- .reverse();
- let newNum = "";
- let newArr = [];
- strArr.forEach((item, index) => {
- newArr.unshift(
- item === "0" ? changeNum[item] : changeNum[item] + unit[index]
- );
- });
- let numArr = [];
- newArr.forEach((m, n) => {
- if (m !== "零") numArr.push(n);
- });
- if (newArr.length > 1) {
- newArr.forEach((m, n) => {
- if (newArr[newArr.length - 1] === "零") {
- if (n <= numArr[numArr.length - 1]) {
- newNum += m;
- }
- } else {
- newNum += m;
- }
- });
- } else {
- newNum = newArr[0];
- }
- return newNum;
- };
- let overWan = Math.floor(num / 10000);
- let noWan = num % 10000;
- if (noWan.toString().length < 4) {
- noWan = "0" + noWan;
- }
- return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- @import '@/style/mixin.scss';
- /deep/ .uni-switch-input-checked {
- background-color: $themeColor !important;
- border-color: $themeColor !important;
- }
- /* 整个页面的统一样式 Start */
- .page {
- padding-bottom: 200upx;
- }
- /* 整个页面的统一样式 End */
- .plan-ins-title {
- background-color: #F4F5F7;
- height: 88upx;
- color: #666;
- font-size: 32upx;
- line-height: 88upx;
- font-weight: 400;
- padding: 0 30upx;
- }
- .plan-ins-title .title-right {
- color: #aaa;
- }
- .compulsory-insurance,
- .business-insurance {
- border-bottom: 15upx solid #eee;
- }
- .common-title {
- font-size: 32upx;
- padding: 0upx 32upx;
- height: 90upx;
- border-bottom: 1px solid #eee;
- font-weight: bold;
- }
- .common-ins-cell {
- font-size: 30upx;
- padding: 0upx 30upx;
- height: 90upx;
- border-bottom: 1px solid #eee;
- }
- /* 底部按钮Start */
- .bottom-btn {
- background-color: #fff;
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- padding: 30upx 30upx;
- z-index: 99;
- }
- /* 底部按钮End */
- /* 交强险和商业险弹出框Start */
- .popup-content {
- position: relative;
- }
- .popHeader {
- box-sizing: border-box;
- font-size: 32upx;
- font-weight: bold;
- height: 120upx;
- border-bottom: 1px solid #eee;
- }
- .popup-content .popContent {
- padding: 0upx 30upx;
- height: 620upx;
- box-sizing: border-box;
- }
- .popup-content .popContent .popContentTitle {
- font-weight: bold;
- font-size: 32upx;
- margin: 20upx 0upx 5upx 0upx;
- }
- .popup-content .popContent .amtSingle {
- width: 25%;
- box-sizing: border-box;
- display: inline-block;
- padding: 15upx;
- text-align: center;
- vertical-align: middle;
- }
- .popup-content .popContent .amtSingle>view {
- font-size: 28upx;
- border: 1px solid #eee;
- border-radius: 10upx;
- }
- .popup-content .popContent .amtSingle>view.active {
- background: rgba($themeColor, .08);
- color: $themeColor;
- border: 1px solid rgba($themeColor, .01);
- font-weight: 700;
- }
- .popup-content .popBottom {
- margin: 30upx 30upx 0 30upx;
- padding-bottom: 30upx;
- }
- /* 交强险和商业险弹出框End */
- /* 投保方案建议弹出框Start */
- .popupBody {
- position: relative;
- }
- .popupBody .popHeader {
- border: none;
- }
- .popupBody .popBottom {
- position: fixed;
- box-sizing: border-box;
- bottom: 0;
- width: 100%;
- height: 100upx;
- border-top: 1px solid #f6f6f6;
- font-weight: 700;
- font-size: 36upx;
- }
- .popupBody .popupScroll {
- height: 485upx;
- padding: 0 30upx 0 30upx;
- box-sizing: border-box;
- }
- .popupScroll .title {
- font-weight: 700;
- font-size: 30upx;
- }
- .popupScroll .desc {
- font-size: 28upx;
- }
- .modelformcss {
- padding: 5px 15px;
- }
- </style>
|