12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257 |
- <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>
- <text
- v-if="['TY2','TY3','TY4'].includes(item.kindCode)">{{item.amountDesc}}</text>
- <block v-else v-for="(item2,index2) in item.amtList" :key="index2">
- <template v-if="item2.value == item.amount">
- <view>{{item2.label}}</view>
- </template>
- </block>
- </view>
- </template>
- </block>
- </template>
- <view 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 dis a-c j-s">
- <view class="title d-flex">精选保险公司<view class="icon iconfont icon-Group-"></view>
- </view>
- <!-- <view class="">
- <u-checkbox v-model="Selectchecked" @change="SelectAll($event)"
- active-color="rgb(250, 53, 52)">全选</u-checkbox>
- </view> -->
- </view>
- <block v-for="(totalitem,totalindex) in totalCompanyList" :key="totalindex">
- <template>
- <view class="quoteCompanyItem">
- <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 Premium f-wrap"
- style="font-size: 12px;color: #ee7000;">
- <text v-if="totalitem.result.jqPremium">交强险:¥{{totalitem.result.jqPremium}}</text>
- <text v-if="totalitem.result.syPremium"
- style="margin: 0 5px;">商业险:¥{{totalitem.result.syPremium}}</text>
- <text v-if="totalitem.result.taxAmount">车船税:¥{{totalitem.result.taxAmount}}</text>
- <text v-if="totalitem.result.jyPremium">驾意险:¥{{totalitem.result.jyPremium}}</text>
- </view>
- <view v-show="totalitem.quoteCode==200" class="dis Premium f-wrap"
- style="font-size: 12px;color: #6495ed;border-top: 1px solid #f2f2f2;">
- <text
- v-if="totalitem.result.jqPremium">交强险:{{totalitem.result.startDateJq}}~{{totalitem.result.endDateJq}}
- </text>
- <u-icon style="color:#ee7000;font-size: 16px;" name="clock"
- @click="syncData(totalitem.result)"></u-icon>
- <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>
- <text v-if="totalitem.result.jqScore">交强类型评分:{{ totalitem.result.jqScore ?
- totalitem.result.jqScore : '无' }}</text>
- <text v-if="totalitem.result.syScore">商业类型评分:{{ totalitem.result.syScore ?
- totalitem.result.syScore : '无' }}</text>
- <text v-if="totalitem.result.lossRation">总赔付率:{{ totalitem.result.lossRation ?
- totalitem.result.lossRation : '无' }}</text>
- <text v-if="totalitem.result.jqLossRation">交强赔付率:{{ totalitem.result.jqLossRation ?
- totalitem.result.jqLossRation : '无' }}</text>
- <text v-if="totalitem.result.syLossRation">商业赔付率:{{ totalitem.result.syLossRation ?
- totalitem.result.syLossRation : '无' }}</text>
- </view>
- <text v-if="totalitem.result.tips && totalitem.namesimple == '众安财险'"
- style="color: red;">{{ totalitem.result.tips}}</text>
- <template v-if="totalitem.result.iszdj !=null && totalitem.result.iszdj!=''">
- <text v-if="totalitem.result.iszdj==0" style="color: red;">假单交</text>
- <text v-else="totalitem.result.iszdj==1" style="color: red;">真单交</text>
- </template>
- <view class="dis j-s f-c" v-if="totalitem.checked">
- <view class="dis j-s a-c">
- <u-form-item label="报价协议选择" v-if="totalitem.isTaxSource!==1"
- :prop="totalitem.agreementId" label-width="200" :border-bottom='false'
- style="padding: 0;">
- <u-input type="select" :select-open="totalitem.selectShow"
- v-model="totalitem.agreementName" placeholder="请选择协议"
- @click="totalitem.selectShow = true"></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>
- <u-button v-if="totalitem.namesimple == '国任财险'" size="mini " type="warning"
- :hair-line="false" @click="guoRencontributing(totalitem.agreementId)"
- style="margin-left: 10px;">特约选择</u-button>
- </view>
- <u-form-item label="自主定价系数" v-if="totalitem.namesimple == '紫金财险'"
- placeholder="请输入数字" label-width="200" :border-bottom='false'
- style="padding: 0;">
- <u-input type="number" v-model="totalitem.coefficient"></u-input>
- </u-form-item>
- <text
- style="color: #ff9000;font-weight: bold;">{{totalitem.underwritingDescription}}</text>
- </view>
- <template
- v-if="totalitem.namesimple == '中国人寿' && totalitem.checked && totalitem.agreementId && renshouaccidentalDrivingVo.id">
- <view class="accident-style dis f-c ">
- <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
- <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}}.00起</text>
- </view>
- <view class="">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="renshouaccidentalDrivingVo.quantity" :min="1"
- :max="1" :disabled-input="true" :input-width="70" :input-height="44"
- size="26"></u-number-box>
- </view>
- </view>
- </view>
- </template>
- <template
- v-if="totalitem.namesimple == '中煤财险' && totalitem.checked && totalitem.agreementId && zhongmeiaccidentalDrivingVo.rideRiskCode">
- <view class="accident-style dis f-c ">
- <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
- <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="zhongmeiPopupshow=true">
- <text
- style="font-size: 14px;">{{zhongmeiaccidentalDrivingVo.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;">¥{{zhongmeiaccidentalDrivingVo.unitPremium*zhongmeiaccidentalDrivingVo.quantity}}</text>
- </view>
- <view class="">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="zhongmeiaccidentalDrivingVo.quantity" :min="1"
- :max="Number(zhongmeiaccidentalDrivingVo.maxQuantity)"
- :disabled-input="true" :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" :key="index">
- <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}}.00</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 ">
- <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
- <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}}.00</text>
- </view>
- <view class="">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="hengbangaccidentalDrivingVo.quantity" :min="1"
- :max="1" :disabled-input="true" :input-width="70" :input-height="44"
- size="26"></u-number-box>
- </view>
- </view>
- </view>
- </template>
- <template
- v-if="totalitem.namesimple == '太平财险' && totalitem.checked && totalitem.agreementId && taipingaccidentalDrivingVo.id">
- <view class="accident-style dis f-c ">
- <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
- <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="taipingPopupshow=true">
- <text
- style="font-size: 14px;">{{taipingaccidentalDrivingVo.rationName}}</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;">¥{{taipingaccidentalDrivingVo.price*taipingaccidentalDrivingVo.quantity}}.00</text>
- </view>
- <view class="">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="taipingaccidentalDrivingVo.quantity" :min="1"
- :max="taipingaccidentalDrivingVo.maxQuantity" :disabled-input="true"
- :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 ">
- <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
- <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="1" :disabled-input="true" :input-width="70" :input-height="44"
- size="26"></u-number-box>
- </view>
- </view>
- </template>
- <template
- v-if="totalitem.namesimple == '华农财险' && totalitem.checked && totalitem.agreementId && huanongaccidentalDrivingVo.planCode">
- <view class="accident-style dis f-c ">
- <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
- <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="huanongPopupshow=true">
- <text
- style="font-size: 14px;">{{huanongaccidentalDrivingVo.planName}}</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="huanongaccidentalDrivingVo.allQuantity" :min="1"
- :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 ">
- <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
- <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 ">
- <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
- <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.planCode}}{{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.productCode}}{{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="1" :disabled-input="true" :input-width="70" :input-height="44"
- size="26"></u-number-box>
- </view>
- </template>
- </view>
- </template>
- <template
- v-if="totalitem.namesimple == '国任财险' && totalitem.checked && totalitem.agreementId && guorenaccidentalDrivingVo.goodsCode">
- <view class="accident-style dis f-c ">
- <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
- <view class=" accident-ins dis a-c j-s">
- <text style="font-size: 14px;">分类</text>
- <view class=" dis a-c j-s " @click="guorenPopupshow=true">
- <text
- style="font-size: 14px;">{{guorenaccidentalDrivingVo.goodDesc}}</text>
- <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
- </view>
- </view>
- <template v-if="guorenInsuranceData.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="guorenPopupshow1=true">
- <text
- style="font-size: 14px;">{{guorenaccidentalDrivingVo.prodCName}}</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;">¥{{guorenaccidentalDrivingVo.premium*guorenaccidentalDrivingVo.quantity}}.00</text>
- </view>
- <view class="">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="guorenaccidentalDrivingVo.quantity" :min="1"
- :max="Number( guorenaccidentalDrivingVo.policyNum)"
- :input-width="70" :input-height="44" size="26"></u-number-box>
- </view>
- </view>
- </template>
- </view>
- </template>
- <template
- v-if="totalitem.namesimple == '大家财险' && totalitem.checked && totalitem.agreementId && dajiaaccidentalDrivingVo.rideRiskCode">
- <view class="accident-style dis f-c ">
- <text style="font-weight: bold;font-size: 12px;">意外险信息</text>
- <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="dajiaPopupshow=true">
- <text
- style="font-size: 14px;">{{dajiaaccidentalDrivingVo.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;">¥{{dajiaaccidentalDrivingVo.price*dajiaaccidentalDrivingVo.quantity}}.00</text>
- </view>
- <view class="">
- <text style="font-size: 14px;">份数:</text>
- <u-number-box v-model="dajiaaccidentalDrivingVo.quantity" :min="1"
- :max="1" :disabled-input="true" :input-width="70" :input-height="44"
- size="26"></u-number-box>
- </view>
- </view>
- </view>
- </template>
- <view v-if="totalitem.namesimple == '国任财险' && guoRenSpecialAgreementVo.length>0">
- <text style="font-weight: bold;font-size: 12px;">特别约定</text>
- <view class="contributing dis f-c"
- v-for="(guoRenitem,guoRenindex) in guoRenSpecialAgreementVo" :key="guoRenindex">
- <text>{{guoRenitem.clauses}}</text>
- <text>{{guoRenitem.clausesContext}}</text>
- </view>
- </view>
- <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 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="zhongmeiPopupshow" mode="center" width="70%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;" @change="ZMradioChange"
- v-for="(item, index) in zhongmeiInsuranceData" :key="index" :name="item.rideRiskCode">
- {{item.rideRiskName}}
- </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 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 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="huanongPopupshow" mode="center" width="50%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;flex: auto;" @change="HNradioChange"
- v-for="(item, index) in huanongInsuranceData" :key="index" :name="item.planCode">
- {{item.planName}}
- </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 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="90%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group 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.planCode}}{{item.planChineseName}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <u-popup v-model="anshengPopupshow1" mode="center" width="90%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group 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.productCode}}{{item.productName}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <!-- 紫金驾意险弹框 -->
- <u-modal v-model="zijinPopupshow" title="意外险" :scroll-height="{height: '300px'}">
- <view class="slot-content">
- <u-checkbox-group @change="ZJcheckboxGroupChange">
- <u-checkbox style="margin: 8px 0;flex: auto;" class="ZJcheckboxGroup" 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>
- <!-- 国任驾意险弹框 -->
- <u-popup v-model="guorenPopupshow" mode="center" width="70%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;flex: auto;" @change="GRprogrammeradioChange"
- v-for="(item, index) in guorenprogrammeData" :key="index" :name="item.goodId">
- {{item.goodDesc}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <u-popup v-model="guorenPopupshow1" mode="center" width="70%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;flex: auto;" @change="GRInsuranceradioChange"
- v-for="(item, index) in guorenInsuranceData" :key="index" :name="item.prodCode">
- {{item.prodCName}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <!-- 国任特约弹框 -->
- <u-modal v-model="guoRencontributingshow" title="国任特约选择" :title-style="{fontWeight: 'bold'}"
- :scroll-height="{height: '300px'}">
- <view class="slot-content">
- <u-checkbox-group @change="guoRencontributingChange" style="display: contents;">
- <u-checkbox v-model="item.checked" active-color="rgb(255, 153, 0)"
- v-for="(item, index) in guoRenSpecialAgreementData" :key="index"
- :name="item.clauseCode">{{item.clauseCode}}{{item.clauses}}</u-checkbox>
- </u-checkbox-group>
- </view>
- </u-modal>
- <!-- 大家驾意险弹框 -->
- <u-popup v-model="dajiaPopupshow" mode="center" width="80%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;flex: auto;" @change="DJradioChange"
- v-for="(item, index) in dajiaInsuranceData" :key="index" :name="item.id">
- {{item.productName}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <!-- 太平驾意险弹框 -->
- <u-popup v-model="taipingPopupshow" mode="center" width="80%" border-radius="10">
- <view class="popContent dis f-c a-c">
- <u-radio-group size="30" active-color="rgb(255, 170, 0)">
- <u-radio style="margin: 4px 0;flex: auto;" @change="TPradioChange"
- v-for="(item, index) in taipingInsuranceData" :key="index" :name="item.id">
- {{item.rationName}}
- </u-radio>
- </u-radio-group>
- </view>
- </u-popup>
- <u-modal v-model="Generateshow" content="是否生成新的订单?" :content-style="{fontWeight: 'bold'}"
- :show-cancel-button="true" :show-title="false" :confirm-style="{color: '#ff9000'}"
- @confirm="GenerateModalConfirm"></u-modal>
- <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 {
- delEmptyQueryNodes
- } from '@/plugins/utils';
- 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 {
- shadowStyle: {
- backgroundImage: "none",
- paddingTop: "0",
- marginTop: "20rpx"
- },
- Selectchecked: false,
- params: {
- year: true, //年
- month: true, //月
- day: true, //日
- hour: true, //时
- minute: true, //分
- second: true, //秒
- },
- Generateshow: false,
- zhongmeiPopupshow: false,
- zhongmeiInsuranceData: [], //中煤意外险list
- zhongmeiaccidentalDrivingVo: [], //中煤意外险
- zijinPopupshow: false,
- zijinInsuranceData: [], //紫金意外险list
- zijinaccidentalDrivingVo: [], //紫金意外险
- huanongPopupshow: false,
- huanongInsuranceData: [], //华农意外险list
- huanongaccidentalDrivingVo: [], //华农意外险
- taipingPopupshow: false,
- taipingInsuranceData: [], //太平意外险list
- taipingaccidentalDrivingVo: [], //太平意外险
- anshengPopupshow: false,
- anshengPopupshow1: false,
- anshengprogrammeData: [],
- anshengInsuranceData: [], //安盛意外险list
- anshengaccidentalDrivingVo: {}, //安盛意外险
- guorenPopupshow: false,
- guorenPopupshow1: false,
- guorenprogrammeData: [],
- guorenInsuranceData: [], //国任意外险list
- guorenaccidentalDrivingVo: {}, //国任意外险
- guoRencontributingshow: false, //国任特约
- dajiaPopupshow: false,
- dajiaInsuranceData: [], //大家意外险list
- dajiaaccidentalDrivingVo: {}, //大家意外险
- guoRenSpecialAgreementData: [],
- guoRenSpecialAgreementVo: [],
- 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: "不投保",
- coveragePremium: 0,
- amtList: [{
- label: "不投保",
- value: "0"
- },
- {
- label: "2次",
- value: "2"
- },
- {
- label: "7次",
- value: "7"
- },
- {
- label: "12次",
- value: "12"
- },
- {
- label: "17次",
- value: "17"
- },
- {
- label: "22次",
- value: "22"
- },
- ],
- kindCode: "TY1",
- isMainRisk: true,
- kindName: "道路救援服务特约条款",
- desc: "道路救援服务特约条款是指在保险期内,被保险机动车在使用过程中发生故障而丧失行驶能力时,保险人根据被保险人的请求,向被保险人提供道路救援服务。"
- },
- {
- amount: 0,
- amountDesc: "不投保",
- kindCode: "TY2",
- isMainRisk: true,
- kindName: "车辆安全检测特约条款",
- desc: "安全检测特约条款是指保险期间内,为保障车辆安全运行,保险人或其受托人根据被保险人请求,为被保险机动车提供车辆安全检测服务。"
- },
- {
- amount: 0,
- amountDesc: "不投保",
- kindCode: "TY3",
- isMainRisk: true,
- kindName: "代为驾驶服务特约条款",
- desc: "代为驾驶特约条款是指保险期间内,在被保险人或其允许的驾驶人因饮酒、服用药物等原因无法驾驶或存在重大安全驾驶隐患时,提供单程30公里以内的短途代驾服务。"
- },
- {
- amount: 0,
- amountDesc: "不投保",
- kindCode: "TY4",
- isMainRisk: true,
- kindName: "代为送检服务特约条款",
- desc: "代为送检特约条款是指保险期间内,由保险人或其受托人代替车辆所有人进行车辆送检。"
- },
- {
- amount: "0",
- amountDesc: "不投保",
- amtList: [{
- label: "不投保",
- value: "0"
- },
- {
- label: "50万",
- value: "500000"
- },
- {
- label: "100万",
- value: "1000000"
- },
- {
- label: "150万",
- value: "1500000"
- },
- {
- label: "200万",
- value: "2000000"
- },
- {
- label: "250万",
- value: "2500000"
- },
- {
- label: "300万",
- value: "3000000"
- },
- {
- label: "500万",
- value: "5000000"
- },
- {
- label: "1000万",
- value: "10000000"
- }
- ],
- desc: "保险期间内,被保险人或其允许的驾驶人在法定节假日期间使用被保险机动车发生机动车第三者责任保险范围内的事故,并经公安部门或保险人查勘确认的,被保险机动车第三者责任保险所适用的责任限额在保险单载明的基础上增加一倍的险种",
- isMainRisk: true,
- kindCode: "BD",
- kindName: "法定节假日限额翻倍险",
- mainRiskCodeList: "B"
- }
- ],
- accidentForm: {
- fen: "1"
- }, //意外险内容
- //永诚转保确认码
- cqryCdeJq: "",
- cqryCdeSy: "",
- renewalCodeJq: "", //交强确认码
- renewalCodeSy: "", //商业确认码
- //-----------------
- totalCompanyList: [], //保险公司列表
- insAreaCompanyEditingDtos: [],
- notStartedQuote: true, //未开始报价(true表示未开始报价,false表示已经报价结束)
- quoteCompanyCount: 0,
- }
- },
- async onLoad(params) {
- if (params.orderno) {
- let res = await this.$http.post('/insurance/order/revise', {
- orderNo: params.orderno
- });
- this.carInfo = res.data.carinfo; //车辆信息
- this.ownerInfo = res.data.ownerinfo; //车主信息
- this.policyHolderInfo = res.data.applyinfo; //投保人信息
- this.insuredPersonInfo = res.data.insureinfo; //被保人信息
- this.riskList = res.data.risk; //险种大类
- this.kindList = res.data.king; //商业险险别
- this.vehicleAndVesselTaxForm = res.data.vehicleAndVesselTax; //车船税信息
- this.orderno = res.data.orderno;
- this.quoteno = res.data.quoteno;
- this.imageEcho(res.data.quoteno) // 影像获取完毕
- this.insAreaCompanyEditingDtos = res.data.insAreaCompanyEditingDtos;
- if (this.riskList.length > 0) {
- for (let i = 0; i < this.riskList.length; i++) {
- if (this.riskList[i].riskCode == '0507') {
- this.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;
- case "TY1":
- case "TY2":
- case "TY3":
- case "TY4":
- ele2.amount = ele1.serviceTimes;
- ele2.amountDesc = ele1.serviceTimes +
- '次'
- break;
- default:
- ele2.amount = ele1.amount;
- }
- }
- })
- })
- }
- }
- }
- } else {
- const eventChannel = this.getOpenerEventChannel()
- // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
- eventChannel.on('acceptData', async (data) => {
- this.carInfo = data.carInfo; //车辆信息
- this.ownerInfo = data.ownerInfo; //车主信息
- this.policyHolderInfo = data.policyHolderInfo; //投保人信息
- this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
- this.riskList = data.riskList; //险种大类
- this.kindList = data.kindList; //商业险险别
- this.vehicleAndVesselTaxForm = data.vehicleAndVesselTaxForm; //车船税信息
- this.carInfoPositiveList = data.carInfoPositiveList; //车辆
- this.ownerInfoPositiveList = data.ownerInfoPositiveList; //车主
- this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
- this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
- if (this.riskList.length > 0) {
- for (let i = 0; i < this.riskList.length; i++) {
- if (this.riskList[i].riskCode == '0507') {
- this.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;
- case "TY1":
- case "TY2":
- case "TY3":
- case "TY4":
- ele2.amount = ele1.serviceTimes;
- ele2.amountDesc = ele1.serviceTimes +
- '次'
- break;
- default:
- ele2.amount = ele1.amount;
- }
- }
- })
- })
- }
- }
- }
- })
- }
- const storage = uni.getStorageSync('historyInfo');
- if (storage) {
- Object.keys(storage).forEach(key => {
- this[key] = storage[key]
- })
- } else {
- this.commpanyList();
- }
- },
- onHide() {
- let historyInfo = {
- quoteno: this.quoteno,
- orderno: this.orderno,
- totalCompanyList: this.totalCompanyList,
- zijinInsuranceData: this.zijinInsuranceData, //紫金意外险list
- zijinaccidentalDrivingVo: this.zijinaccidentalDrivingVo, //紫金意外险
- anshengprogrammeData: this.anshengprogrammeData,
- anshengInsuranceData: this.anshengInsuranceData, //安盛意外险list
- anshengaccidentalDrivingVo: this.anshengaccidentalDrivingVo, //安盛意外险
- yongchengInsuranceData: this.yongchengInsuranceData, //永诚意外险list
- yongchengaccidentalDrivingVo: this.yongchengaccidentalDrivingVo, //永诚意外险
- zhonganInsuranceData: this.zhonganInsuranceData, //-众安意外险list
- zhonganaccidentalDrivingVo: this.zhonganaccidentalDrivingVo, //众安意外险
- hengbangInsuranceData: this.hengbangInsuranceData, //-恒邦意外险list
- hengbangaccidentalDrivingVo: this.hengbangaccidentalDrivingVo, //恒邦意外险
- renshouInsuranceData: this.renshouInsuranceData, //-人寿意外险list
- renshouaccidentalDrivingVo: this.renshouaccidentalDrivingVo, //人寿意外险
- }
- let res = delEmptyQueryNodes(historyInfo);
- uni.setStorageSync('historyInfo', res);
- },
- methods: {
- // SelectAll(e) {
- // this.totalCompanyList.map((ele, index) => {
- // e.value ? ele.checked = true : ele.checked = false;
- // this.checkboxChange(e, ele.id, ele.cnName, index)
- // })
- // },
- jqstartconfirm(e) {
- this.jqstartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
- this.jqendDate = this.oneYearPast(this.jqstartDate)
- },
- 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;
- },
- //国任特约
- async guoRencontributing(id) {
- let guoRen = await this.$http.post('/api/guoRen/queryClauseData', {
- agreementId: id,
- })
- if (guoRen.code == '200') {
- this.guoRenSpecialAgreementData = guoRen.data;
- this.guoRencontributingshow = true;
- }
- },
- guoRencontributingChange(param) {
- this.guoRenSpecialAgreementVo = [];
- param.map(val => {
- let list = this.guoRenSpecialAgreementData.find(item => item.clauseCode == val)
- this.guoRenSpecialAgreementVo.push({
- clauseCode: list.clauseCode,
- clauses: list.clauses,
- clausesContext: list.clausesContext,
- riskCode: list.riskCode,
- riskName: list.riskName,
- })
- })
- },
- /**
- * 选择保险公司方法
- * @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 list = this.totalCompanyList[index].agreement;
- // 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;
- this.totalCompanyList[index].underwritingDescription = this.totalCompanyList[index].agreement[0]
- .underwritingDescription;
- switch (ins) {
- case '永诚财险':
- let yccallback = await this.$http.post('/api/yongCheng/gainAccidentList', {
- agreementId: this.totalCompanyList[index].agreement[0].id,
- companyCode: code,
- seatNum: Number(this.carInfo.seatCount)
- });
- if (yccallback.code == '200') {
- let yccallback1 = await this.$http.post(
- '/api/yongCheng/gainAccidentSchemeList', {
- agreementId: this.totalCompanyList[index].agreement[0].id,
- companyCode: code,
- code: yccallback.data[0].code,
- seatNum: Number(this.carInfo.seatCount)
- });
- yccallback1.data.map(val => {
- yccallback.data[0].premium += Number(val.premium)
- return val;
- })
- let data = yccallback.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 zjcallback = await this.$http.post('/order/zijin/queryVehicleProducts', {
- agreementId: this.totalCompanyList[index].agreement[0].id,
- seatCount: Number(this.carInfo.seatCount)
- });
- if (zjcallback.code == '200') {
- let data = zjcallback.data;
- data.map(ele => {
- ele.quantity = 1;
- return ele;
- })
- this.zijinInsuranceData = data;
- }
- break;
- case '安盛天平':
- let ascallback = await this.$http.post('/insurance/crawler/getDrivingInsurance', {
- agreementId: this.totalCompanyList[index].agreement[0].id
- });
- if (ascallback.code == '200') {
- let data = ascallback.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 '国任财险':
- let grcallback = await this.$http.post('/api/guoRen/syncNonAutoIns', {
- agreementId: this.totalCompanyList[index].agreement[0].id
- });
- if (grcallback.code == '200') {
- let data = grcallback.data;
- this.guorenprogrammeData = data;
- let grcallback1 = await this.$http.post('/api/guoRen/syncNonAutoIns', {
- goodsCode: grcallback.data[0].goodId
- });
- this.guorenInsuranceData = grcallback1.data;
- this.guorenaccidentalDrivingVo = {
- goodsCode: data[0].goodId, //驾意险商品号
- prodCode: grcallback1.data[0].prodCode, //产品code
- riskCode: grcallback1.data[0].riskCode, //险种code
- premium: grcallback1.data[0].premium, //保费
- amount: grcallback1.data[0].amount, //保额
- quantity: 1, //份数
- goodDesc: data[0].goodDesc, //驾意险商品名称
- prodCName: grcallback1.data[0].prodCName, //产品名称
- policyNum: Number(grcallback1.data[0].policyNum), //最大份数
- }
- }
- break;
- case '大家财险':
- let djcallback = await this.$http.post('/api/dajia/accidentalDrivingList', {
- agreementId: this.totalCompanyList[index].agreement[0].id
- });
- if (djcallback.code == '200') {
- let data = djcallback.data;
- data.map(ele => {
- ele.quantity = 1;
- return ele;
- })
- this.dajiaInsuranceData = data;
- this.dajiaaccidentalDrivingVo = {
- rideRiskCode: data[0].id,
- rideRiskName: data[0].productName,
- quantity: data[0].quantity,
- price: data[0].price,
- };
- }
- break;
- case '中煤财险':
- let zmcallback = await this.$http.post('/order/zhongMeiApi/queryRideAccident', {
- agreementId: this.totalCompanyList[index].agreement[0].id,
- seatNum: Number(this.carInfo.seatCount)
- });
- if (zmcallback.code == '200') {
- let data = zmcallback.data;
- data.map(ele => {
- ele.quantity = 1;
- return ele;
- })
- this.zhongmeiInsuranceData = data;
- this.zhongmeiaccidentalDrivingVo = {
- rideRiskCode: data[0].rideRiskCode,
- rideRiskName: data[0].rideRiskName,
- quantity: data[0].quantity,
- maxQuantity: data[0].maxQuantity,
- unitPremium: data[0].unitPremium,
- };
- }
- break;
- case '中国人寿':
- case '恒邦财险':
- case '众安财险':
- case '太平财险':
- case '华农财险':
- let Insurancecallback = await this.$http.post(
- '/insurance/crawler/getDrivingInsurance', {
- agreementId: this.totalCompanyList[index].agreement[0].id
- });
- if (Insurancecallback.code == 200) {
- let data = Insurancecallback.data;
- if (ins == '华农财险') {
- data.map(ele => {
- ele.allQuantity = 1;
- return ele;
- })
- } else {
- 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;
- },
- //中煤
- ZMradioChange(id) {
- let info = this.zhongmeiInsuranceData.find(val => val.rideRiskCode == id)
- this.zhongmeiaccidentalDrivingVo = {
- rideRiskCode: info.rideRiskCode,
- rideRiskName: info.rideRiskName,
- quantity: info.quantity,
- maxQuantity: info.maxQuantity,
- unitPremium: info.unitPremium,
- }
- this.zhongmeiPopupshow = false;
- },
- //人寿意外险
- 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;
- },
- //华农驾意险
- HNradioChange(id) {
- this.huanongaccidentalDrivingVo = this.huanongInsuranceData.find(val => val.planCode == id);
- this.huanongPopupshow = false;
- },
- //大家意外险
- DJradioChange(id) {
- let info = this.dajiaInsuranceData.find(val => val.id == id)
- this.dajiaaccidentalDrivingVo = {
- rideRiskCode: info.id,
- rideRiskName: info.productName,
- quantity: info.quantity,
- price: info.price,
- };
- this.dajiaPopupshow = false;
- },
- TPradioChange(id) {
- this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.id == id)
- this.taipingPopupshow = 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;
- let dataInfo = {
- personFlag: info.personFlag,
- planChineseName: info.planChineseName,
- planCode: info.planCode,
- planSeries: info.planSeries,
- productCode: info.departmentProductList[0].productCode,
- productName: info.departmentProductList[0].productName,
- quantity: info.departmentProductList[0].quantity
- }
- Object.assign(this.anshengaccidentalDrivingVo, dataInfo);
- },
- //安盛二级选择
- ASInsuranceradioChange(id) {
- let info = this.anshengInsuranceData.find((val => val.productCode == id))
- Object.assign(this.anshengaccidentalDrivingVo, info);
- this.anshengPopupshow1 = false;
- },
- //国任一级选择
- async GRprogrammeradioChange(id) {
- let info = this.guorenprogrammeData.find((val => val.goodId == id))
- this.guorenPopupshow = false;
- this.guorenaccidentalDrivingVo.goodsCode = info.goodId;
- this.guorenaccidentalDrivingVo.goodDesc = info.goodDesc;
- let res = await this.$http.post('/api/guoRen/syncNonAutoIns', {
- goodsCode: info.goodId
- });
- if (res.code == '200') {
- this.guorenInsuranceData = res.data;
- let dataInfo = {
- prodCode: res.data[0].prodCode, //产品code
- riskCode: res.data[0].riskCode, //险种code
- premium: res.data[0].premium, //保费
- amount: res.data[0].amount, //保额
- quantity: 1, //份数
- prodCName: res.data[0].prodCName, //产品名称
- policyNum: res.data[0].policyNum, //最大份数
- }
- Object.assign(this.guorenaccidentalDrivingVo, dataInfo);
- } else {
- uni.showToast({
- title: res.msg,
- icon: 'none',
- });
- this.guorenInsuranceData = []
- }
- },
- //国任二级选择
- GRInsuranceradioChange(id) {
- let info = this.guorenInsuranceData.find((val => val.prodCode == id))
- let dataInfo = {
- prodCode: info.prodCode, //产品code
- riskCode: info.riskCode, //险种code
- premium: info.premium, //保费
- amount: info.amount, //保额
- quantity: 1, //份数
- prodCName: info.prodCName, //产品名称
- policyNum: info.policyNum, //最大份数
- }
- Object.assign(this.guorenaccidentalDrivingVo, dataInfo);
- this.guorenPopupshow1 = false;
- },
- //紫金意外险
- ZJcheckboxGroupChange(detail) {
- this.zijinaccidentalDrivingVo = [];
- detail.map(val => {
- let list = this.zijinInsuranceData.find(item => item.projectCode == val)
- this.zijinaccidentalDrivingVo.push(list)
- })
- },
- //获取保险公司列表
- async commpanyList() {
- let commpanykad = await this.$http.get('/tax/manager/getAllAgreement');
- commpanykad.data.map(ele => {
- ele["result"] = {};
- ele["quoteCode"] = 0;
- ele["checked"] = false;
- ele["jychecked"] = false;
- ele["msg"] = "";
- ele["agreementId"] = "";
- ele["lastYearMsg"] = "";
- ele["agreementName"] = "";
- ele["apiType"] = "";
- ele["coefficient"] = "";
- ele["selectShow"] = false;
- ele['underwritingDescription'] = "";
- })
- if (this.insAreaCompanyEditingDtos.length > 0) {
- commpanykad.data.forEach((val, index) => {
- this.insAreaCompanyEditingDtos.map(ele => {
- if (val.namesimple == ele.inscompany) {
- commpanykad.data[index].quoteCode = 200;
- commpanykad.data[index].result = ele;
- }
- })
- })
- }
- this.totalCompanyList = commpanykad.data;
- },
- async toNext() {
- var allAreFalse = this.totalCompanyList.every(function(element) {
- return element.checked === false;
- });
- if (!allAreFalse) {
- this.OrderStageProcessing();
- } else {
- uni.showToast({
- title: "请选择保险公司后,在进行报价",
- icon: 'none',
- });
- }
- },
- async OrderStageProcessing() {
- this.riskList.map(val => {
- if (val.riskCode == '0507') {
- val.startDate = this.jqstartDate;
- val.endDate = this.jqendDate;
- } else if (val.riskCode == '0510') {
- val.startDate = this.systartDate;
- val.endDate = this.syendDate;
- }
- })
- let param = {
- userId: this.userInfo.sysUser.id,
- quoteno: this.quoteno ? this.quoteno : "",
- orderNo: this.orderno ? this.orderno : "",
- carInfo: this.carInfo,
- insuredPersonInfo: this.insuredPersonInfo,
- ownerInfo: this.ownerInfo,
- policyHolderInfo: this.policyHolderInfo,
- kindList: this.kindList,
- riskList: this.riskList,
- vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
- };
- let orders = await this.$http.post('/insurance/order/generateOrder', param);
- if (orders.code == '200') {
- this.orderno = orders.data.orderno;
- this.quoteno = orders.data.quoteno;
- let mergedArray = [];
- let mergedArrayList = mergedArray.concat(this.carInfoPositiveList, this
- .ownerInfoPositiveList, this
- .policyHolderInfoPositiveList, this.insuredPersonInfoPositiveList)
- if (mergedArrayList.length > 0) {
- await this.$http.post('/ins/taskImage/uploadImages', {
- imageList: mergedArrayList,
- quoteNo: this.quoteno,
- })
- }
- this.totalCompanyList.map((ele, index) => {
- if (ele.checked) {
- //动态调用报价接口
- ele.quoteCode = "1";
- this.ToolClickFun(ele.cnName, index, ele.id);
- }
- });
- } else if (orders.code == '1001') {
- this.Generateshow = true;
- } else {
- uni.showToast({
- title: orders.msg,
- icon: 'none',
- });
- }
- },
- GenerateModalConfirm() {
- this.orderno = "";
- this.quoteno = "";
- this.toNext();
- },
- //动态函数
- 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 jychecked = this.totalCompanyList[num].jychecked;
- let params = {
- accidentalDrivingVo: jychecked ? this.zhongmeiaccidentalDrivingVo : {},
- 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,
- coefficient: this.totalCompanyList[num].coefficient,
- };
- let res = await this.$http.post('/order/zijin/quote', params);
- this.totalCompanyList[num].msg = res.msg;
- if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
- this.totalCompanyList[num].quoteCode = "4";
- this.totalCompanyList[num].msg = res.msg;
- return;
- } else if (
- res.data == null &&
- res.msg.indexOf("交强险平台返回") > -1 &&
- res.msg.indexOf(";终保日期") > -1
- ) {
- let time =
- res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) +
- ":00";
- this.jqstartDate = time;
- this.jqendDate = this.oneYearPast(time);
- this.systartDate = time;
- this.syendDate = this.oneYearPast(time);
- if (this.riskList.length > 0) {
- for (let i = 0; i < this.riskList.length; i++) {
- if (this.riskList[i].riskCode == "0507") {
- this.riskList[i].startDate = time;
- this.riskList[i].endDate = this.oneYearPast(
- time);
- } else if (this.riskList[i].riskCode == "0510") {
- this.riskList[i].startDate = time;
- this.riskList[i].endDate = this.oneYearPast(
- time);
- }
- }
- }
- let param = {
- userId: this.userInfo.sysUser.id,
- quoteno: this.quoteno,
- orderNo: this.orderno,
- carInfo: this.carInfo,
- insuredPersonInfo: this.insuredPersonInfo,
- ownerInfo: this.ownerInfo,
- policyHolderInfo: this.policyHolderInfo,
- kindList: this.kindList,
- riskList: this.riskList,
- vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
- };
- await this.$http.post('/insurance/order/generateOrder',
- param);
- return this.zijin(num, id);
- } else if (res.code == '200') {
- if (res.data.warnMessageList != null && res.data
- .warnMessageList[0] != null && res.data
- .warnMessageList[
- 0] != "") {
- this.totalCompanyList[num].lastYearMsg = "";
- let dat = res.data.warnMessageList;
- dat.map(ele => {
- this.totalCompanyList[num].lastYearMsg +=
- ele + '<br>';
- })
- }
- this.totalCompanyList[num].quoteCode = 200;
- this.totalCompanyList[num].result = res.data;
- } else {
- this.totalCompanyList[num].quoteCode = "3";
- this.totalCompanyList[num].msg = res.msg;
- return;
- }
- },
- //国任报价
- async guoRen(num, id) {
- let jychecked = this.totalCompanyList[num].jychecked
- let params = {
- accidentalDrivingVo: jychecked ? this
- .guorenaccidentalDrivingVo : {},
- orderNo: this.orderno,
- companyId: id,
- agreementId: this.totalCompanyList[num]
- .agreementId,
- guoRenSpecialAgreementVo: this.guoRenSpecialAgreementVo,
- };
- let res = await this.$http.post('/api/guoRen/quote',
- params);
- this.totalCompanyList[num].msg = res.msg;
- if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
- this.totalCompanyList[num].quoteCode = "4";
- this.totalCompanyList[num].msg = res.msg;
- return;
- } else if (
- res.data == null &&
- res.msg.indexOf("交强险平台返回") > -1 &&
- res.msg.indexOf(";终保日期") > -1
- ) {
- let time =
- res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) +
- ":00";
- this.jqstartDate = time;
- this.jqendDate = this.oneYearPast(time);
- this.systartDate = time;
- this.syendDate = this.oneYearPast(time);
- if (this.riskList.length > 0) {
- for (let i = 0; i < this.riskList.length; i++) {
- if (this.riskList[i].riskCode == "0507") {
- this.riskList[i].startDate = time;
- this.riskList[i].endDate = this
- .oneYearPast(time);
- } else if (this.riskList[i].riskCode ==
- "0510") {
- this.riskList[i].startDate = time;
- this.riskList[i].endDate = this
- .oneYearPast(time);
- }
- }
- }
- let param = {
- userId: this.userInfo.sysUser.id,
- quoteno: this.quoteno,
- orderNo: this.orderno,
- carInfo: this.carInfo,
- insuredPersonInfo: this.insuredPersonInfo,
- ownerInfo: this.ownerInfo,
- policyHolderInfo: this.policyHolderInfo,
- kindList: this.kindList,
- riskList: this.riskList,
- vehicleAndVesselTax: this
- .vehicleAndVesselTaxForm,
- };
- await this.$http.post('/insurance/order/generateOrder',
- param);
- return this.guoRen(num, id);
- } else if (res.code == '200') {
- if (res.data.warnMessageList != null && res.data
- .warnMessageList[0] != null && res.data
- .warnMessageList[
- 0] != "") {
- this.totalCompanyList[num].lastYearMsg = "";
- let dat = res.data.warnMessageList;
- dat.map(ele => {
- this.totalCompanyList[num]
- .lastYearMsg += ele + '<br>';
- })
- }
- this.totalCompanyList[num].quoteCode = 200;
- this.totalCompanyList[num].result = res.data;
- } else {
- this.totalCompanyList[num].quoteCode = "3";
- this.totalCompanyList[num].msg = res.msg;
- return;
- }
- },
- //大家报价
- async dajia(num, id) {
- let jychecked = this.totalCompanyList[num].jychecked
- let params = {
- accidentalDrivingVo: jychecked ? this
- .dajiaaccidentalDrivingVo : {},
- orderNo: this.orderno,
- companyId: id,
- cqryCdeJq: this.cqryCdeJq,
- cqryCdeSy: this.cqryCdeSy,
- renewalCodeJq: this.renewalCodeJq,
- renewalCodeSy: this.renewalCodeSy,
- agreementId: this.totalCompanyList[num]
- .agreementId,
- };
- let res = await this.$http.post('/api/dajia/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.dajia(num, id);
- } else if (res.code == '200') {
- if (res.data.warnMessageList != null && res.data
- .warnMessageList[0] != null && res.data
- .warnMessageList[
- 0] != "") {
- this.totalCompanyList[num].lastYearMsg = "";
- let dat = res.data.warnMessageList;
- dat.map(ele => {
- this.totalCompanyList[num]
- .lastYearMsg += ele + '<br>';
- })
- }
- this.totalCompanyList[num].quoteCode = 200;
- this.totalCompanyList[num].result = res.data;
- } else {
- this.totalCompanyList[num].quoteCode = "3";
- this.totalCompanyList[num].msg = res.msg;
- return;
- }
- },
- //华泰报价
- async huatai(num, id) {
- let params = {
- accidentalDrivingVo: {},
- 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(
- '/order/huaTaiApi/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.huatai(num, id);
- } else if (res.code == '200') {
- if (res.data.warnMessageList != null && res
- .data.warnMessageList[0] != null && res
- .data
- .warnMessageList[
- 0] != "") {
- this.totalCompanyList[num].lastYearMsg =
- "";
- let dat = res.data.warnMessageList;
- dat.map(ele => {
- this.totalCompanyList[num]
- .lastYearMsg += ele + '<br>';
- })
- }
- this.totalCompanyList[num].quoteCode = 200;
- this.totalCompanyList[num].result = res.data;
- } 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 '安盛天平':
- case '恒邦财险':
- case '中国人寿':
- case '太平财险':
- 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 + '<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;
- }
- 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 + '<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;
- }
- break;
- default:
- break;
- }
- },
- //华农
- huanong(num, id) {
- this.quoteInsurance(num, id, this
- .totalCompanyList[num].apiType, this
- .totalCompanyList[num].jychecked);
- },
- //太平
- taiping(num, id) {
- this.quoteInsurance(num, id, this
- .totalCompanyList[num].apiType, this
- .totalCompanyList[num].jychecked);
- },
- //安盛天平
- ansheng(num, id) {
- this.quoteInsurance(num, id, this
- .totalCompanyList[num].apiType, this
- .totalCompanyList[num].jychecked);
- },
- //众安
- zhongan(num, id) {
- this.quoteInsurance(num, id, this
- .totalCompanyList[num].apiType, this
- .totalCompanyList[num].jychecked);
- },
- //人寿
- renshou(num, id) {
- this.quoteInsurance(num, id, this
- .totalCompanyList[num].apiType, this
- .totalCompanyList[num].jychecked);
- },
- //恒邦
- hengbang(num, id) {
- this.quoteInsurance(num, id, this
- .totalCompanyList[num].apiType, this
- .totalCompanyList[num].jychecked);
- },
- 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
- .vehicleAndVesselTaxForm,
- })
- }
- }, "navigateTo", true);
- },
- // 显示报错信息
- ErrorMsg(msg, title) {
- uni.showModal({
- title: title + "报价提示",
- content: msg,
- showCancel: false,
- confirmText: "关闭"
- })
- },
- //上年信息
- YearMsg(msg, title) {
- let content = msg.replace(/<br>/g, "\r\n")
- uni.showModal({
- title: title + "上年信息",
- content: content,
- showCancel: false,
- confirmText: "关闭"
- })
- },
- //使用此时间
- 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 {
- >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 .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 .Premium text {
- margin-right: 10px;
- }
- .quoteCompanyItem .top .companyName {
- font-size: 32upx;
- font-weight: bold;
- width: 180upx;
- }
- .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;
- box-sizing: border-box;
- }
- .ZJcheckboxGroup {
- border-bottom: 2px solid #f2f2f2;
- }
- .contributing {
- width: 100%;
- margin: 4px 0;
- font-size: 12px;
- text:nth-child(1) {
- font-weight: bold;
- color: #ff9000;
- }
- }
- /* 查看详情按钮End */
- </style>
|