1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404 |
- <template>
- <view :style="getHeight" style="background-color: #F5F5F5;">
- <!-- 头部 -->
- <view class="carInfo w-100 px-3 box-sizing">
- <view class="d-flex">
- <view class="icon iconfont icon-tree-round-car flex-shrink topLeft"></view>
- <view class="topRight d-flex flex-1 p-3 flex-column" style="color: #FFFFFF;">
- <view class="d-flex flex-1">
- <view class="font-lg d-flex a-center">{{this.carInfo.licenseNo}}
- <view class="icon iconfont icon-bianji1 ml-2" @tap="toCarInfo"></view>
- </view>
- </view>
- <view class="brandName">{{this.carInfo.modelcname}}</view>
- </view>
- </view>
- <view class="other d-flex j-sb px-3">
- <view class="d-flex flex-1 a-center">
- <view class="privilege d-flex a-center j-center flex-shrink px-2">特权</view>
- <view class="content">每月自动查违章,无违章领奖励</view>
- </view>
- <view class="flex-shrink icon iconfont icon-youjiantou d-flex a-center font-sm"></view>
- </view>
- </view>
- <!-- 报价方案 -->
- <view class="pageContent">
- <view class="quotePlan mx-3">
- <view class="header j-sb d-flex a-center px-3">
- <view class="title font-md">报价方案</view>
- <view class="adjustPlan main-text-color" @tap="toInsureItems">调整方案</view>
- </view>
- <view class="body">
- <view class="insurance">
- <template v-if="jqstartDate">
- <view class="row j-sb d-flex a-center">
- <view>交强险</view>
- <view>投保</view>
- </view>
- </template>
- <template v-if="systartDate">
- <block v-for="(item,index) in insureList" :key="index">
- <template v-if="item.amount!=0">
- <view class="row j-sb d-flex a-center">
- <view>{{item.kindName}}</view>
- <block 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 class="dis j-s a-c" v-if="jqstartDate">
- <view style="margin-right: 40px;">交强起保日期:</view>
- <u-input type="select" :select-open="jqstartShow" v-model="jqstartDate"
- @click="jqstartShow = true" style="width: 100px;"></u-input>
- <u-picker v-model="jqstartShow" mode="time" :params="params"
- @confirm="jqstartconfirm"></u-picker>
- </view>
- <view class="dis j-s a-c" v-if="jqendDate">
- <view style="margin-right: 40px;">交强终保日期:</view>
- <u-input type="select" :select-open="jqendShow" v-model="jqendDate"
- @click="jqendShow = true" style="width: 100px;"></u-input>
- <u-picker v-model="jqendShow" mode="time" :params="params"
- @confirm="jqendconfirm"></u-picker>
- </view>
- <view class="dis j-s a-c" v-if="systartDate">
- <view style="margin-right: 40px;">商业起保日期:</view>
- <u-input type="select" :select-open="systartShow" v-model="systartDate"
- @click="systartShow = true" style="width: 100px;"></u-input>
- <u-picker v-model="systartShow" mode="time" :params="params"
- @confirm="systartconfirm"></u-picker>
- </view>
- <view class="dis j-s a-c" v-if="syendDate">
- <view style="margin-right: 40px;">商业终保日期:</view>
- <u-input type="select" :select-open="syendShow" v-model="syendDate"
- @click="syendShow = true" style="width: 100px;"></u-input>
- <u-picker v-model="syendShow" mode="time" :params="params"
- @confirm="syendconfirm"></u-picker>
- </view>
- </view>
- <!-- <view class="addedServices">
- <view class="row j-sb d-flex a-center">
- <view>增值服务</view>
- <view>赠送</view>
- </view>
- <view style="padding: 15upx;color: #A6A6A6;font-size: 24upx;background-color: #F8FAFC;">
- 注:包含道路救援/安全检测/代为驾驶/代为送检,投保以上商业主险免费赠送,各家保司各个地区旅游差异,具体以保单信息为准</view>
- </view> -->
- </view>
- </view>
- <view class="quoteCompany">
- <view class="header j-sb d-flex a-center">
- <view class="title d-flex">精选保险公司<view class="icon iconfont icon-Group-"></view>
- </view>
- </view>
- <block v-for="(totalitem,totalindex) in totalCompanyList" :key="index">
- <template>
- <view class="quoteCompanyItem">
- <view class="top dis f-c">
- <ls-loading v-show="totalitem.quoteCode==1" text="掌柜正在为您报价,请稍等......"
- :animation="animation" fontSize="22" />
- <view class="companyIcon dis j-s a-c">
- <view class="dis">
- <!-- 勾选框 -->
- <u-checkbox
- @change="event=>checkboxChange(event,totalitem.id,totalitem.cnName, totalindex)"
- v-model="totalitem.checked" active-color="rgb(250, 53, 52)"></u-checkbox>
- <!-- logo -->
- <image :src="totalitem.logo"></image>
- <!-- 名称 -->
- <view class="companyName">{{totalitem.namesimple}}</view>
- </view>
- <!-- 价格 -->
- <text v-show="totalitem.quoteCode==200"
- class="sum">¥{{totalitem.result.sumPermium}}</text>
- <text
- v-show="(totalitem.quoteCode != '200') && (totalitem.quoteCode != '0') && (totalitem.quoteCode != '1')"
- class="sum" style="color: #999;font-size: 12px;"
- @click="ErrorMsg(totalitem.msg,totalitem.namesimple)">报价失败,请点击查看</text>
- </view>
- <view v-show="totalitem.quoteCode==200" class="dis j-s f-wrap"
- style="font-size: 12px;color: #ee7000;">
- <text v-if="totalitem.result.jqPremium">交强险:¥{{totalitem.result.jqPremium}}</text>
- <text v-if="totalitem.result.jqPremium"
- style="margin: 0 5px;">商业险:¥{{totalitem.result.syPremium}}</text>
- <text>车船税:¥{{totalitem.result.taxAmount}}</text>
- <text v-if="totalitem.result.jyPremium">驾意险:¥{{totalitem.result.jyPremium}}</text>
- </view>
- <view v-show="totalitem.quoteCode==200" class="dis f-c"
- style="font-size: 12px;color: #6495ed;border-top: 1px solid #f2f2f2;">
- <text
- v-if="totalitem.result.jqPremium">交强险:{{totalitem.result.startDateJq}}~{{totalitem.result.endDateJq}}
- <u-icon style="color:#ee7000;margin-left: 20px;font-size: 16px;" name="clock"
- @click="syncData(totalitem.result)"></u-icon>
- </text>
- <text
- v-if="totalitem.result.startDateSy">商业险:{{totalitem.result.startDateSy}}~{{totalitem.result.endDateSy}}
- </text>
- <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.accidentInfoStr">出险信息:{{ totalitem.result.accidentInfoStr ?
- totalitem.result.accidentInfoStr : '无' }}</text>
- </view>
- <text v-if="totalitem.result.tips && totalitem.namesimple == '众安财险'"
- style="color: red;">{{ totalitem.result.tips}}</text>
- <view class="dis a-c " v-if="totalitem.checked">
- <u-form-item label="报价协议选择" :prop="totalitem.agreementId" label-width="200"
- :border-bottom='false' style="width: 280px;padding: 0;">
- <u-input type="select" :select-open="totalitem.selectShow"
- v-model="totalitem.agreementName" placeholder="请选择协议"
- @click="totalitem.selectShow = true"
- :custom-style="{fontSize:'14px'}"></u-input>
- <u-select mode="single-column" :list="totalitem.agreement" value-name="id"
- label-name="agreementName" v-model="totalitem.selectShow"
- @confirm="val=>selectConfirm(val,totalindex)"></u-select>
- </u-form-item>
- <u-button v-if="totalitem.namesimple == '紫金财险'" size="mini " type="warning"
- :hair-line="false" @click="zijinPopupshow=true"
- style="margin-left: 10px;">意外险选择</u-button>
- </view>
- <template
- v-if="totalitem.namesimple == '中国人寿' && totalitem.checked && totalitem.agreementId && renshouaccidentalDrivingVo.id">
- <view class="accident-style dis f-c ">
- <view class=" accident-ins dis a-c j-s">
- <u-checkbox shape="circle" size="30" v-model="totalitem.jychecked"
- @change="checkboxChangeInfo($event,totalindex)"
- active-color="rgb(255, 170, 0)"></u-checkbox>
- <view class=" dis a-c j-s " @click="renshouPopupshow=true">
- <text
- style="font-size: 14px;">{{renshouaccidentalDrivingVo.productName}}</text>
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
- </view>
- </view>
- <view class=" dis j-s a-c">
- <view class="">
- <text style="font-size: 14px;">保费:</text>
- <text
- style="font-size: 14px;color: #ee7000;">{{renshouaccidentalDrivingVo.totalPremium*renshouaccidentalDrivingVo.quantity}}元</text>
- </view>
- <view class="">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="renshouaccidentalDrivingVo.quantity" :min="1"
- :max="100" :input-width="70" :input-height="44"
- size="26"></u-number-box>
- </view>
- </view>
- </view>
- </template>
- <template
- v-if="totalitem.namesimple == '紫金财险' && totalitem.checked && totalitem.agreementId ">
- <text style="font-weight: bold;font-size: 12px;"
- v-if="zijinaccidentalDrivingVo.length>0">意外险信息</text>
- <view class="accident-style dis f-c "
- v-for="(item,index) in zijinaccidentalDrivingVo">
- <view class=" accident-ins dis a-c j-s">
- <view class=" dis a-c j-s ">
- <text style="font-size: 14px;">{{item.projectName}}</text>
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
- </view>
- </view>
- <view class=" dis j-s a-c">
- <view class="">
- <text style="font-size: 14px;">保费:</text>
- <text
- style="font-size: 14px;color: #ee7000;">{{item.sumPremium*item.quantity}}元</text>
- </view>
- <view class="">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="item.quantity" :min="1" :max="item.maxQuantity"
- :disabled-input="item.maxQuantity==1?true :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 && hengbangaccidentalDrivingVo.programcode">
- <view class="accident-style dis f-c ">
- <view class=" accident-ins dis a-c j-s">
- <u-checkbox shape="circle" size="30" v-model="totalitem.jychecked"
- @change="checkboxChangeInfo($event,totalindex)"
- active-color="rgb(255, 170, 0)"></u-checkbox>
- <view class=" dis a-c j-s " @click="hengbangPopupshow=true">
- <text
- style="font-size: 14px;">{{hengbangaccidentalDrivingVo.programname}}</text>
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
- </view>
- </view>
- <view class=" dis j-s a-c">
- <view class="">
- <text style="font-size: 14px;">保费:</text>
- <text
- style="font-size: 14px;color: #ee7000;">{{hengbangaccidentalDrivingVo.sumgrosspremium*hengbangaccidentalDrivingVo.quantity}}元</text>
- </view>
- <view class="">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="hengbangaccidentalDrivingVo.quantity" :min="1"
- :max="100" :input-width="70" :input-height="44"
- size="26"></u-number-box>
- </view>
- </view>
- </view>
- </template>
- <template
- v-if="totalitem.namesimple == '众安财险' && totalitem.checked && totalitem.agreementId && zhonganaccidentalDrivingVo.combination">
- <view class="accident-style dis f-c ">
- <view class=" accident-ins dis a-c j-s">
- <u-checkbox shape="circle" size="30" v-model="totalitem.jychecked"
- @change="checkboxChangeInfo($event,totalindex)"
- active-color="rgb(255, 170, 0)"></u-checkbox>
- <view class=" dis a-c j-s " @click="zhonganPopupshow=true">
- <text
- style="font-size: 14px;">{{zhonganaccidentalDrivingVo.name}}</text>
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
- </view>
- </view>
- <view class=" dis j-s a-c">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="zhonganaccidentalDrivingVo.quantity" :min="1"
- :max="100" :input-width="70" :input-height="44"
- size="26"></u-number-box>
- </view>
- </view>
- </template>
- <template
- v-if="totalitem.namesimple == '永诚财险' && totalitem.checked && totalitem.agreementId && yongchengaccidentalDrivingVo.rideRiskCode">
- <view class="accident-style dis f-c ">
- <view class=" accident-ins dis a-c j-s">
- <u-checkbox shape="circle" size="30" v-model="totalitem.jychecked"
- @change="checkboxChangeInfo($event,totalindex)"
- active-color="rgb(255, 170, 0)"></u-checkbox>
- <view class=" dis a-c j-s " @click="yongchengPopupshow=true">
- <text
- style="font-size: 14px;">{{yongchengaccidentalDrivingVo.rideRiskName}}</text>
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
- </view>
- </view>
- <view class=" dis j-s a-c">
- <view class="">
- <text style="font-size: 14px;">保费:</text>
- <text
- style="font-size: 14px;color: #ee7000;">{{yongchengaccidentalDrivingVo.premium*yongchengaccidentalDrivingVo.quantity}}元</text>
- </view>
- <view class="">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="yongchengaccidentalDrivingVo.quantity" :min="1"
- :max="100" :input-width="70" :input-height="44"
- size="26"></u-number-box>
- </view>
- </view>
- </view>
- </template>
- <template
- v-if="totalitem.namesimple == '安盛天平' && totalitem.checked && totalitem.agreementId && anshengaccidentalDrivingVo.planCode">
- <view class="accident-style dis f-c ">
- <view class=" accident-ins dis a-c j-s">
- <text style="font-size: 14px;">分类</text>
- <view class=" dis a-c j-s " @click="anshengPopupshow=true">
- <text
- style="font-size: 14px;">{{anshengaccidentalDrivingVo.planChineseName}}</text>
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
- </view>
- </view>
- <template v-if="anshengInsuranceData.length>0">
- <view class=" accident-ins dis a-c j-s">
- <u-checkbox shape="circle" size="30" v-model="totalitem.jychecked"
- @change="checkboxChangeInfo($event,totalindex)"
- active-color="rgb(255, 170, 0)"></u-checkbox>
- <view class=" dis a-c j-s " @click="anshengPopupshow1=true">
- <text
- style="font-size: 14px;">{{anshengaccidentalDrivingVo.productName}}</text>
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
- </view>
- </view>
- <view class=" dis j-s a-c">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="anshengaccidentalDrivingVo.quantity" :min="1"
- :max="100" :input-width="70" :input-height="44"
- size="26"></u-number-box>
- </view>
- </template>
- </view>
- </template>
- <view v-show="totalitem.quoteCode==200" class="dis j-end"
- style="border-top: 1px solid #f2f2f2;padding: 10px 0;">
- <u-button v-if="totalitem.lastYearMsg" size="mini " type="warning"
- :hair-line="false" @click="YearMsg(totalitem.lastYearMsg,totalitem.namesimple)"
- style="margin-left: 10px;">上年信息</u-button>
- <u-button size="mini " type="warning" :hair-line="false"
- @click="bjdpreview(totalitem.result.companyId)"
- style="margin-left: 10px;">报价单</u-button>
- <u-button size="mini" style="background-color: #ea552d;margin-left: 10px;"
- type="error" :hair-line="false" :disabled="totalitem.result.tips"
- @click="querydetial(totalitem.result.companyId)">查看详情</u-button>
- </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-popup v-model="renshouPopupshow" mode="center" width="70%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group v-model="popupvalue" size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;" @change="RSradioChange"
- v-for="(item, index) in renshouInsuranceData" :key="index" :name="item.id">
- {{item.productName}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <u-popup v-model="hengbangPopupshow" mode="center" width="80%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group v-model="popupvalue" size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;flex: auto;" @change="HBradioChange"
- v-for="(item, index) in hengbangInsuranceData" :key="index" :name="item.programcode">
- {{item.programname}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <u-popup v-model="zhonganPopupshow" mode="center" width="50%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group v-model="popupvalue" size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;flex: auto;" @change="ZAradioChange"
- v-for="(item, index) in zhonganInsuranceData" :key="index" :name="item.combination">
- {{item.name}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <u-popup v-model="yongchengPopupshow" mode="center" width="50%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group v-model="popupvalue" size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;flex: auto;" @change="YCradioChange"
- v-for="(item, index) in yongchengInsuranceData" :key="index" :name="item.id">
- {{item.name}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <u-popup v-model="anshengPopupshow" mode="center" width="70%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group v-model="popupvalue" size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;flex: auto;" @change="ASprogrammeradioChange"
- v-for="(item, index) in anshengprogrammeData" :key="index" :name="item.planCode">
- {{item.planChineseName}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <u-popup v-model="anshengPopupshow1" mode="center" width="70%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group v-model="popupvalue" size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;flex: auto;" @change="ASInsuranceradioChange"
- v-for="(item, index) in anshengInsuranceData" :key="index" :name="item.productCode">
- {{item.productName}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <u-modal v-model="zijinPopupshow" title="意外险">
- <view class="slot-content">
- <u-checkbox-group @change="ZJcheckboxGroupChange">
- <u-checkbox style="margin: 4px 0;flex: auto;" v-model="item.checked" active-color="rgb(255, 153, 0)"
- v-for="(item, index) in zijinInsuranceData" :key="index"
- :name="item.projectCode">{{item.projectName}}</u-checkbox>
- </u-checkbox-group>
- </view>
- </u-modal>
- <view class="infoBottom d-flex a-center j-center j-sb">
- <button type="default" class="d-flex a-center j-center" @tap="toNext">保费计算</button>
- </view>
- </view>
- </template>
- <script>
- import {
- mapState
- } from "vuex"
- import wybPopup from '@/components/common/wyb-popup/wyb-popup.vue'
- import lsLoading from '@/components/common/ls-loading/ls-loading.vue';
- export default {
- components: {
- wybPopup,
- lsLoading
- },
- computed: {
- ...mapState(['userInfo']),
- getHeight() {
- let height = uni.getSystemInfoSync().windowHeight;
- return `minHeight: ${height}px;`;
- }
- },
- // 监听导航栏的按钮
- onNavigationBarButtonTap(e) {
- if (e.index == 0) {
- this.navigate({
- url: '/pages/index/index'
- }, "switchTab", true);
- }
- },
- data() {
- return {
- popupvalue: 1,
- params: {
- year: true, //年
- month: true, //月
- day: true, //日
- hour: true, //时
- minute: true, //分
- second: true, //秒
- },
- zijinPopupshow: false,
- zijinInsuranceData: [], //紫金意外险list
- zijinaccidentalDrivingVo: [], //紫金意外险
- anshengPopupshow: false,
- anshengPopupshow1: false,
- anshengprogrammeData: [],
- anshengInsuranceData: [], //安盛意外险list
- anshengaccidentalDrivingVo: {}, //安盛意外险
- yongchengPopupshow: false,
- yongchengInsuranceData: [], //永诚意外险list
- yongchengaccidentalDrivingVo: {}, //永诚意外险
- zhonganPopupshow: false,
- zhonganInsuranceData: [], //-众安意外险list
- zhonganaccidentalDrivingVo: {}, //众安意外险
- hengbangPopupshow: false,
- hengbangInsuranceData: [], //-恒邦意外险list
- hengbangaccidentalDrivingVo: {}, //恒邦意外险
- renshouPopupshow: false,
- renshouInsuranceData: [], //-人寿意外险list
- renshouaccidentalDrivingVo: {}, //人寿意外险
- jqstartShow: false, //交强起保日期
- jqendShow: false, //交强终保日期
- systartShow: false, //商业起保日期
- syendShow: 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, //控制险种时间显示
- 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: "不投保",
- 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: [], //保险公司列表
- notStartedQuote: true, //未开始报价(true表示未开始报价,false表示已经报价结束)
- quoteCompanyCount: 0,
- }
- },
- async onLoad() {
- const eventChannel = this.getOpenerEventChannel()
- // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
- eventChannel.on('acceptData', async (data) => {
- console.log(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.orderno = data.orderno;
- this.quoteno = data.quoteno;
- if (data.quoteno) {
- this.imageEcho(data.quoteno) // 影像获取完毕
- } else {
- 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.jqstartDate = this.riskList[i].startDate;
- this.jqendDate = this.riskList[i].endDate;
- }
- if (this.riskList[i].riskCode == '0510') {
- 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;
- default:
- ele2.amount = ele1.amount;
- }
- }
- })
- })
- }
- }
- }
- })
- this.commpanyList();
- },
- methods: {
- 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;
- },
- //影像查询
- 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/carInsure1/quoteDetail1?companyId=" + id
- },
- "navigateTo", true);
- },
- //报价单
- bjdpreview(id) {
- uni.navigateTo({
- url: "/pages/orders/quotation?companyId=" + id
- })
- },
- //选择协议
- selectConfirm(e, index) {
- this.totalCompanyList[index].agreementId = e[0].value;
- this.totalCompanyList[index].agreementName = e[0].label;
- this.totalCompanyList[index].apiType = e[0].extra;
- },
- /**
- * 选择保险公司方法
- * @param {String} event change选中事件
- * @param {String} code 保险公司ID
- * @param {String} name 保险公司主体全拼
- * @param {String} index 选中下标
- */
- async checkboxChange(event, code, name, index) {
- if (event.value) {
- let ins = this.totalCompanyList[index].namesimple;
- this.totalCompanyList[index].checked = event.value;
- let arr = this.totalCompanyList[index].agreement;
- let list = [];
- list = arr.filter(item => {
- return item.licenseNo.length > 0 ? item.licenseNo.includes(this.carInfo.licenseNo
- .slice(
- 0,
- 2)) : "true"
- })
- 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]
- .agreementName;
- this.totalCompanyList[index].apiType = this.totalCompanyList[index].agreement[0].extra;
- switch (ins) {
- case '永诚财险':
- let ycres = await this.$http.post('/api/yongCheng/gainAccidentList', {
- agreementId: this.totalCompanyList[index].agreement[0].id,
- companyCode: code
- });
- if (ycres.code == '200') {
- let data = ycres.data;
- data.map(ele => {
- ele.quantity = 1;
- return ele;
- })
- this.yongchengInsuranceData = data;
- this.yongchengaccidentalDrivingVo = {
- rideRiskCode: data[0].code,
- rideRiskName: data[0].name,
- quantity: data[0].quantity,
- premium: data[0].premium,
- };
- }
- break;
- case '紫金财险':
- let zjres = await this.$http.post('/order/zijin/queryVehicleProducts', {
- agreementId: this.totalCompanyList[index].agreement[0].id,
- seatCount: Number(this.carInfo.seatCount)
- });
- if (zjres.code == '200') {
- let data = zjres.data;
- data.map(ele => {
- ele.quantity = 1;
- return ele;
- })
- this.zijinInsuranceData = data;
- }
- break;
- case '安盛天平':
- let asres = await this.$http.post('/insurance/crawler/getDrivingInsurance', {
- agreementId: this.totalCompanyList[index].agreement[0].id
- });
- if (asres.code == '200') {
- let data = asres.data;
- data.map(ele => {
- ele.departmentProductList.map(val => {
- val.quantity = 1;
- })
- return ele;
- })
- this.anshengprogrammeData = data;
- this.anshengInsuranceData = data[0].departmentProductList;
- this.anshengaccidentalDrivingVo = {
- personFlag: data[0].personFlag,
- planChineseName: data[0].planChineseName,
- planCode: data[0].planCode,
- planSeries: data[0].planSeries,
- productCode: data[0].departmentProductList[0].productCode,
- productName: data[0].departmentProductList[0].productName,
- quantity: data[0].departmentProductList[0].quantity
- }
- }
- break;
- case '中国人寿':
- case '恒邦财险':
- case '众安财险':
- let Insuranceres = await this.$http.post('/insurance/crawler/getDrivingInsurance', {
- agreementId: this.totalCompanyList[index].agreement[0].id
- });
- if (Insuranceres.code == 200) {
- let data = Insuranceres.data;
- data.map(ele => {
- ele.quantity = 1;
- return ele;
- })
- this[name + "InsuranceData"] = data;
- this[name + 'accidentalDrivingVo'] = data[0];
- }
- break;
- default:
- break;
- }
- } else {}
- },
- //驾意险勾选框
- checkboxChangeInfo(event, index) {
- this.totalCompanyList[index].jychecked = event.value;
- },
- //人寿意外险
- RSradioChange(id) {
- this.renshouaccidentalDrivingVo = this.renshouInsuranceData.find(val => val.id == id)
- this.renshouPopupshow = false;
- },
- //恒邦意外险
- HBradioChange(id) {
- this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(val => val.programcode == id)
- this.hengbangPopupshow = false;
- },
- //众安意外险
- ZAradioChange(id) {
- this.zhonganaccidentalDrivingVo = this.zhonganInsuranceData.find(val => val.combination == id)
- this.zhonganPopupshow = false;
- },
- //永诚意外险
- YCradioChange(id) {
- let info = this.yongchengInsuranceData.find(val => val.id == id)
- this.yongchengaccidentalDrivingVo.rideRiskCode = info.code;
- this.yongchengaccidentalDrivingVo.rideRiskName = info.name;
- this.yongchengaccidentalDrivingVo.quantity = info.quantity;
- this.yongchengaccidentalDrivingVo.premium = info.premium;
- this.yongchengPopupshow = false;
- },
- //安盛一级选择
- ASprogrammeradioChange(id) {
- let info = this.anshengprogrammeData.find((val => val.planCode == id))
- this.anshengPopupshow = false;
- this.anshengInsuranceData = info.departmentProductList;
- Object.assign(this.anshengaccidentalDrivingVo, info.departmentProductList[0]);
- },
- //安盛二级选择
- ASInsuranceradioChange(id) {
- let info = this.anshengInsuranceData.find((val => val.productCode == id))
- Object.assign(this.anshengaccidentalDrivingVo, info);
- this.anshengPopupshow1 = 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('/insurance/order/getAgreementInsCompany');
- 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["selectShow"] = false;
- })
- this.totalCompanyList = commpanykad.data;
- },
- async toNext() {
- if (this.quoteno) {
- this.OrderStageProcessing();
- } else {
- let getquote = await this.$http.get('/ins/tool/getQuoteNo');
- this.quoteno = getquote.data;
- this.OrderStageProcessing();
- }
- },
- async OrderStageProcessing() {
- 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.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,
- 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.totalCompanyList.map((ele, index) => {
- if (ele.checked) {
- //动态调用报价接口
- ele.quoteCode = "1";
- this.ToolClickFun(ele.cnName, index, ele.id);
- }
- });
- }
- },
- //动态函数
- ToolClickFun(MethodName, Parameter, companyId) {
- this[`${MethodName}`](Parameter, companyId)
- },
- //永安报价
- async yongan(num, id) {
- let params = {
- orderNo: this.orderno,
- companyId: id
- };
- 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;
- }
- },
- //中煤报价
- async zhongmei(num, id) {
- let params = {
- accidentalDrivingVo: this.zmDrivingForm,
- orderNo: this.orderno,
- companyId: id,
- agreementId: this.totalCompanyList[num].agreementId,
- };
- 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;
- } else {
- this.totalCompanyList[num].quoteCode = "3";
- this.totalCompanyList[num].msg = res.msg;
- return;
- }
- },
- //永诚报价
- async yongcheng(num, id) {
- 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,
- agreementId: this.totalCompanyList[num].agreementId,
- };
- 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;
- } 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 params = {
- accidentalDrivingVo: this.zijinaccidentalDrivingVo,
- orderNo: this.orderno,
- companyId: id,
- agreementId: this.totalCompanyList[num].agreementId,
- };
- 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;
- })
- }
- this.totalCompanyList[num].quoteCode = 200;
- this.totalCompanyList[num].result = res.data;
- } else {
- this.totalCompanyList[num].quoteCode = "3";
- this.totalCompanyList[num].msg = res.msg;
- return;
- }
- },
- //爬虫统一报价接口
- async quoteInsurance(num, id, apiType, jychecked) {
- let api = apiType === 2 ? "/insurance/crawler/quote" : "anshengquote";
- let ccidenttype = this.totalCompanyList[num].cnName;
- let namesimple = this.totalCompanyList[num].namesimple;
- let params = {
- orderNo: this.orderno,
- companyId: id,
- agreementId: this.totalCompanyList[num].agreementId,
- accidentalDrivingVo: jychecked ? this[ccidenttype + 'accidentalDrivingVo'] : {},
- };
- let res = await this.$http.post(`${api}`, params);
- this.totalCompanyList[num].msg = res.msg;
- switch (namesimple) {
- case '安盛天平':
- 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.quoteInsurance(num, id, apiType);
- } else if (res.data == null && res.msg.indexOf("上年保险止期(") > -1 && res.msg.indexOf("重复投保情况") > -
- 1) {
- let time = res.msg.substr(res.msg.indexOf("上年保险止期(") + 7, 17) + ":00";
- time = time.substring(0, 4) + "-" + time.substring(5, 7) + "-" + time.substring(8, 10) +
- " " + time.substring(12, 14) + ":" + time.substring(15, 17) + ":00"
- 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 == "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.quoteInsurance(num, id, apiType);
- } else if (!!res.data) {
- 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;
- })
- }
- this.totalCompanyList[num].quoteCode = 200;
- this.totalCompanyList[num].result = res.data;
- } else {
- this.totalCompanyList[num].quoteCode = "3";
- this.totalCompanyList[num].msg = res.msg;
- return;
- }
- break;
- case '中国人寿':
- 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.quoteInsurance(num, id, apiType);
- } else if (res.data == null && res.msg.indexOf("商业险-平台返回") > -1 && res.msg.indexOf("保险期间:") > -
- 1) {
- let time = res.msg.substr(res.msg.indexOf("保险期间:") + 18, 12) + "00";
- time = time.substring(0, 4) + "-" + time.substring(4, 6) + "-" + time.substring(6, 8) +
- " " + time.substring(8, 10) + ":" + time.substring(10, 12) + ":" + time.substring(12,
- 14);
- 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 == "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.quoteInsurance(num, id, apiType);
- } else if (!!res.data) {
- 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;
- })
- }
- this.totalCompanyList[num].quoteCode = 200;
- this.totalCompanyList[num].result = res.data;
- } else {
- this.totalCompanyList[num].quoteCode = "3";
- this.totalCompanyList[num].msg = res.msg;
- return;
- }
- break;
- case '恒邦财险':
- if ((res.data == null && res.msg.indexOf("交强险平台返回") > -1 && res.msg.indexOf(";终保日期") > -1) || (
- 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.quoteInsurance(num, id, apiType);
- } else if (res.data == null && res.msg.indexOf("平台校验,重复投保") > -1 && res.msg.indexOf("终保日期:") >
- -1) {
- let time = res.msg.substr(res.msg.indexOf("终保日期:") + 5, 10) + " 00:00:00";
- 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 == "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.quoteInsurance(num, id, apiType);
- } else if (!!res.data) {
- 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;
- })
- }
- this.totalCompanyList[num].quoteCode = 200;
- this.totalCompanyList[num].result = res.data;
- } else {
- this.totalCompanyList[num].quoteCode = "3";
- this.totalCompanyList[num].msg = res.msg;
- return;
- }
- break;
- case '众安财险':
- if (!!res.data) {
- 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;
- })
- }
- this.totalCompanyList[num].quoteCode = 200;
- this.totalCompanyList[num].result = res.data;
- } else {
- this.totalCompanyList[num].quoteCode = "3";
- this.totalCompanyList[num].msg = res.msg;
- return;
- }
- break;
- default:
- break;
- }
- },
- //安盛天平
- 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);
- },
- Lastyear() {
- this.$refs.lastYearMsgCI.show() // 显示
- },
- adjustPopupInsureSubmit() {
- this.$refs.lastYearMsgCI.hide() // 显示
- },
- // 重新选择车型
- toCarInfo() {
- this.navigate({
- url: '/pages/carInsure1/carInfo1',
- 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/carInsure1/insureItems1',
- 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.vehicleModel,
- })
- }
- }, "navigateTo", true);
- },
- // 显示报错信息
- ErrorMsg(msg, title) {
- uni.showModal({
- title: title + "报价提示",
- content: msg,
- showCancel: false,
- confirmText: "关闭"
- })
- },
- //上年信息
- YearMsg(msg, title) {
- uni.showModal({
- title: title + "上年信息",
- content: msg,
- showCancel: false,
- confirmText: "关闭"
- })
- },
- //使用此时间
- 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
- });
- },
- 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';
- /* 头部车辆信息和特权Start */
- .carInfo {
- height: 330upx;
- background: -webkit-linear-gradient(0deg, rgba($themeColor, 0.6), rgba($themeColor, 0.8));
- background-size: 100% 100%;
- }
- .carInfo .topLeft {
- width: 120upx;
- font-size: 90upx;
- color: #FFFFFF;
- }
- .carInfo .topRight .brandName {
- width: 400upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .carInfo .other {
- background-color: #FFFFFF;
- height: 80upx;
- border-radius: 15upx;
- box-sizing: border-box;
- }
- .carInfo .other .privilege {
- background-color: rgba($themeColor, 0.6);
- font-size: 24upx;
- color: #FFFFFF;
- font-weight: bold;
- }
- .carInfo .other .content {
- width: 460upx;
- margin-left: 15upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .carInfo .other .icon {
- width: 30upx;
- }
- /* 头部车辆信息和特权End */
- .pageContent {
- position: relative;
- top: -50upx;
- padding-bottom: 100px;
- }
- /* 报价方案Start */
- .quotePlan {
- background: #FFFFFF;
- position: relative;
- border-radius: 20upx;
- }
- .quotePlan .header {
- height: 80upx;
- position: relative;
- border-bottom: 1px solid #E6E8EA;
- }
- .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 30upx 10upx;
- }
- .quotePlan .body .insurance {
- padding-bottom: 20upx;
- border-bottom: 1px dashed #E6E8EA;
- }
- .accident-style {
- padding: 20px;
- >view {
- margin-bottom: 15px;
- }
- .accident-ins {
- text {
- margin-right: 10px;
- }
- }
- }
- .popContent {
- padding: 10px;
- 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 {
- margin: 20upx 30upx;
- box-sizing: border-box;
- /* background:#FFFFFF; */
- position: relative;
- border-radius: 20upx;
- }
- .quoteCompany .header {
- height: 80upx;
- padding: 0 30upx;
- position: relative;
- }
- .quoteCompany .header .title {
- font-size: 30upx;
- font-weight: bold;
- padding-left: 25upx;
- }
- .quoteCompany .header .title:before {
- content: "";
- position: absolute;
- left: 30upx;
- top: 25upx;
- width: 8upx;
- height: 30upx;
- background-color: rgba($themeColor, 0.6);
- }
- .quoteCompany .header .title .icon {
- color: rgba($themeColor, 0.6);
- margin-left: 15upx;
- }
- .quoteCompanyItem {
- margin-bottom: 20upx;
- background: #FFFFFF;
- border-radius: 15upx;
- padding: 10px 20px 0 20px;
- box-sizing: border-box;
- cursor: pointer;
- }
- .quoteCompanyItem>view>view {
- padding: 5px 0;
- }
- .quoteCompanyItem .top {
- position: relative;
- }
- .quoteCompanyItem .top .companyIcon {
- flex-shrink: 0;
- }
- .quoteCompanyItem .top .companyIcon image {
- width: 34px;
- height: 34px;
- margin-right: 10px;
- }
- .quoteCompanyItem .top .companyName {
- font-size: 32upx;
- font-weight: bold;
- width: 180upx;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .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: #ea552d;
- font-size: 22px;
- 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;
- }
- /* 底部的样式Start */
- .infoBottom {
- height: 140upx;
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- background: #FFFFFF;
- border-top: 1upx solid #EEEEEE;
- z-index: 99;
- }
- .infoBottom>button {
- // font-size: 30upx;
- background: $themeColor;
- color: #FFFFFF;
- flex: 1;
- margin: 0upx 30upx;
- }
- .slot-content {
- padding: 10px;
- height: 300px;
- overflow-y: auto;
- }
- /* 查看详情按钮End */
- </style>
|