quote.vue 133 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151
  1. <template>
  2. <view class="page">
  3. <!-- 头部 -->
  4. <view class="car-header dis a-c">
  5. <image src="/static/image/car-insure/Group.png" mode="" style="width: 40px;height: 40px;"></image>
  6. <view class="dis f-c head-name">
  7. <text>{{this.carInfo.licenseNo}}</text>
  8. <view class="name1">
  9. <text>{{this.carInfo.modelcname}}</text>
  10. </view>
  11. </view>
  12. <view class="carJump" @tap="toCarInfo">修改信息</view>
  13. </view>
  14. <!-- 报价方案 -->
  15. <view class="pageContent mt-3">
  16. <view class="header dis a-c j-s">
  17. <text class="title ">报价方案</text>
  18. <text class="color" @tap="toInsureItems">修改险种</text>
  19. </view>
  20. <view class="quotePlan ">
  21. <view class="body">
  22. <view class="qunimade dis a-c j-s">
  23. <text>交强险</text>
  24. <u-switch v-model="jqchecked" active-color="#0052FF" inactive-color="#eee" size='30'
  25. @change="jqImmediate"></u-switch>
  26. </view>
  27. <view class=" qunimade dis a-c j-start" @click="jqstartShow = true" v-if="jqstartDate">
  28. <text>{{jqstartDate}}</text>
  29. <text class="mx-2">-</text>
  30. <text>{{jqendDate}}</text>
  31. <u-picker v-model="jqstartShow" mode="time" :params="params"
  32. @confirm="jqstartconfirm"></u-picker>
  33. </view>
  34. <view class=" qunimade dis a-c j-s">
  35. <text>商业险</text>
  36. <u-switch v-model="sychecked" active-color="#0052FF" inactive-color="#eee" size='30'
  37. @change="syImmediate"></u-switch>
  38. </view>
  39. <view class=" qunimade dis a-c j-start" @click="systartShow = true" v-if="systartDate">
  40. <text>{{systartDate}}</text>
  41. <text class="mx-2">-</text>
  42. <text>{{syendDate}}</text>
  43. <u-picker v-model="systartShow" mode="time" :params="params"
  44. @confirm="systartconfirm"></u-picker>
  45. </view>
  46. <view class="insurance">
  47. <template v-if="systartDate">
  48. <block v-for="(item,index) in insureList" :key="index">
  49. <template v-if="item.amount!=0">
  50. <view class=" j-sb d-flex a-center">
  51. <view>{{item.kindName}}</view>
  52. <text
  53. v-if="['TY2','TY3','TY4'].includes(item.kindCode)">{{item.amountDesc}}</text>
  54. <block v-else v-for="(item2,index2) in item.amtList" :key="index2">
  55. <template v-if="item2.value == item.amount">
  56. <view>{{item2.label}}</view>
  57. </template>
  58. </block>
  59. </view>
  60. </template>
  61. </block>
  62. </template>
  63. </view>
  64. </view>
  65. </view>
  66. <view class="header dis a-c j-s mt-3">
  67. <text class="title " style="color:#FF5600;">投保注意:</text>
  68. <view class="dis a-c f-wrap">
  69. <view class="status-data" :class="carInfo.transferFlag? 'active1':''"
  70. @tap="immediatelyClick('transferFlag')">
  71. 过户车
  72. </view>
  73. <view class="status-data" :class="carInfo.transferFlagBi? 'active1':''"
  74. @tap="immediatelyClick('transferFlagBi')">
  75. 商业险过户
  76. </view>
  77. <view class="status-data" :class="carInfo.outOfInsurance? 'active1':''"
  78. @tap="immediatelyClick('outOfInsurance')">
  79. 脱保
  80. </view>
  81. <view class="status-data" :class="carInfo.usedCar? 'active1':''" @tap="immediatelyClick('usedCar')">
  82. 二手车
  83. </view>
  84. </view>
  85. </view>
  86. <view class="quotePlan dis a-c j-s " style="padding: 5px 10px;" v-if="carInfo.transferFlag">
  87. <view>转移登记日期:</view>
  88. <u-input type="select" :select-open="transferDateShow" :custom-style="{textAlign:'right'}"
  89. v-model="carInfo.transferDate" @click="transferDateShow = true" style="width: 100px;"></u-input>
  90. <u-picker v-model="transferDateShow" mode="time" :params="params1"
  91. @confirm="transferconfirm"></u-picker>
  92. </view>
  93. <view class="quoteCompany mt-3">
  94. <view class="header dis a-c">
  95. <view class="title d-flex">保险公司</view>
  96. <!-- <view class="">
  97. <u-checkbox v-model="Selectchecked" @change="SelectAll($event)"
  98. active-color="rgb(250, 53, 52)">全选</u-checkbox>
  99. </view> -->
  100. </view>
  101. <block v-for="(totalitem,totalindex) in totalCompanyList" :key="totalindex">
  102. <template>
  103. <view class="quoteCompanyItem dis f-c j-s" :class="totalitem.checked? 'quoteactive':''">
  104. <view class="top dis f-c">
  105. <view class="companyIcon dis j-s a-c"
  106. @tap="checkboxChange(totalitem.id,totalitem.cnName, totalindex)">
  107. <view class="dis a-c">
  108. <view class="" @click.stop>
  109. <u-checkbox @change="priceComparisonChange(totalindex,totalitem)"
  110. v-if="totalitem.isComparableshowHide"
  111. v-model="totalitem.isComparableShow" active-color="#23C1CB"
  112. :disabled='totalitem.isComparableDisabled'></u-checkbox>
  113. </view>
  114. <image :src="totalitem.logo"></image>
  115. <view class="companyName">{{totalitem.namesimple}}</view>
  116. </view>
  117. <ls-loading v-show="totalitem.quoteCode==1" text="掌柜正在为您报价,请稍等......"
  118. :animation="animation" fontSize="22" />
  119. <!-- 价格 -->
  120. <view class="dis a-c" v-if="totalitem.quoteCode==200">
  121. <view class="dis a-c" style="margin-right: 10px;">
  122. <text style="color: #FF4D4D;font-size: 12px;"
  123. v-if="totalitem.result.sumExportFee">优惠金额¥{{totalitem.result.sumExportFee}}</text>
  124. </view>
  125. <text class="sum">¥{{totalitem.result.sumPermium}}</text>
  126. </view>
  127. <text
  128. v-show="(totalitem.quoteCode != '200') && (totalitem.quoteCode != '0') && (totalitem.quoteCode != '1')"
  129. class="sum" style="color: #999;font-size: 12px;"
  130. @tap.stop.prevent="ErrorMsg(totalitem.msg,totalitem.namesimple)">报价失败,请点击查看</text>
  131. </view>
  132. <view class="dis content f-c" v-if="totalitem.checked">
  133. <u-form-item label="报价协议选择" v-if="totalitem.isTaxSource!=1" size="mini"
  134. :prop="totalitem.agreementId" label-width="200" :border-bottom='false'
  135. style="padding: 0;">
  136. <u-input type="select" :select-open="totalitem.selectShow"
  137. :custom-style="{textAlign:'right'}" v-model="totalitem.agreementName"
  138. placeholder="请选择协议" @click="totalitem.selectShow = true"></u-input>
  139. <u-select mode="single-column" :list="totalitem.agreement" value-name="id"
  140. label-name="agreementName" v-model="totalitem.selectShow"
  141. @confirm="val=>selectConfirm(val,totalindex)"></u-select>
  142. </u-form-item>
  143. <u-form-item label="商业险折扣" v-if="totalitem.namesimple == '中国人寿'" placeholder="请输入数字"
  144. label-width="200" :border-bottom='false' style="padding: 0;">
  145. <u-input type="number" v-model="totalitem.syAdjustRate"
  146. :custom-style="{textAlign:'right'}"></u-input>
  147. </u-form-item>
  148. <u-form-item label="自主定价系数" v-if="totalitem.namesimple == '紫金财险'"
  149. placeholder="请输入数字" label-width="200" :border-bottom='false'
  150. style="padding: 0;">
  151. <u-input type="number" v-model="totalitem.coefficient"
  152. :custom-style="{textAlign:'right'}"></u-input>
  153. </u-form-item>
  154. <text
  155. style="color: #ff9000;font-weight: bold;">{{totalitem.underwritingDescription}}</text>
  156. </view>
  157. <view v-if="totalitem.namesimple == '国任财险' && totalitem.checked"
  158. style="padding: 0 8px;">
  159. <text style="color: #FF5600;font-size: 14px"
  160. @click="guoRencontributing(totalitem.agreementId)">特约选择</text>
  161. <view class="contributing dis f-c"
  162. v-for="(guoRenitem,guoRenindex) in guoRenSpecialAgreementVo" :key="guoRenindex">
  163. <text>{{guoRenitem.clauses}}</text>
  164. <text>{{guoRenitem.clausesContext}}</text>
  165. </view>
  166. </view>
  167. <template class=""
  168. v-if="totalitem.namesimple == '中国人寿' && totalitem.checked && totalitem.agreementId ">
  169. <view class="accident-style dis f-c ">
  170. <view class="dis j-s a-c">
  171. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  172. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  173. inactive-color="#eee" size='30'
  174. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  175. </view>
  176. <view class=""
  177. v-if="renshouaccidentalDrivingVo.projectCode && totalitem.jychecked">
  178. <view class=" accident-ins dis a-c j-s" @click="renshouPopupshow=true">
  179. <text>{{renshouaccidentalDrivingVo.projectName}}</text>
  180. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  181. </view>
  182. <view class=" dis j-s a-c">
  183. <view class="">
  184. <text>保费:</text>
  185. <text
  186. style="color: #ee7000;">¥{{renshouaccidentalDrivingVo.sumPremium*renshouaccidentalDrivingVo.quantity}}.00起</text>
  187. </view>
  188. <view class="">
  189. <text>份数:</text>
  190. <u-number-box v-model="renshouaccidentalDrivingVo.quantity" :min="1"
  191. :max="1" :disabled-input="true" :input-width="70"
  192. :input-height="44" size="26" :long-press="false"></u-number-box>
  193. </view>
  194. </view>
  195. </view>
  196. </view>
  197. </template>
  198. <template
  199. v-if="totalitem.namesimple == '中煤财险' && totalitem.checked && totalitem.agreementId ">
  200. <view class="accident-style dis f-c ">
  201. <view class="dis j-s a-c">
  202. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  203. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  204. inactive-color="#eee" size='30'
  205. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  206. </view>
  207. <view class=""
  208. v-if="zhongmeiaccidentalDrivingVo.projectCode && totalitem.jychecked">
  209. <view class=" accident-ins dis a-c j-s" @click="zhongmeiPopupshow=true">
  210. <text>{{zhongmeiaccidentalDrivingVo.projectName}}</text>
  211. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  212. </view>
  213. <view class=" dis j-s a-c">
  214. <view class="">
  215. <text>保费:</text>
  216. <text
  217. style="color: #ee7000;">¥{{zhongmeiaccidentalDrivingVo.sumPremium*zhongmeiaccidentalDrivingVo.quantity}}</text>
  218. </view>
  219. <view class="">
  220. <text>份数:</text>
  221. <u-number-box v-model="zhongmeiaccidentalDrivingVo.quantity"
  222. :min="1" :max="10" :disabled-input="true" :input-width="70"
  223. :input-height="44" :long-press="false" size="26"></u-number-box>
  224. </view>
  225. </view>
  226. </view>
  227. </view>
  228. </template>
  229. <template
  230. v-if="totalitem.namesimple == '紫金财险' && totalitem.checked && totalitem.agreementId ">
  231. <view class="accident-style dis f-c">
  232. <view class="dis j-s a-c">
  233. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  234. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  235. inactive-color="#eee" size='30'
  236. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  237. </view>
  238. <view class="" v-if="totalitem.jychecked">
  239. <text @click="zijinPopupshow=true"
  240. style="color: #FF5600;font-size: 14px;">意外险选择</text>
  241. <view class=" dis f-c " v-for="(item,index) in zijinaccidentalDrivingVo"
  242. :key="index">
  243. <view class=" accident-ins dis a-c j-s">
  244. <text>{{item.projectName}}</text>
  245. </view>
  246. <view class=" dis j-s a-c">
  247. <view class="">
  248. <text>保费:</text>
  249. <text
  250. style="color: #ee7000;">¥{{item.sumPremium*item.quantity}}.00</text>
  251. </view>
  252. <view class="">
  253. <text>份数:</text>
  254. <u-number-box v-model="item.quantity" :min="1" :max="1"
  255. :input-width="70" :input-height="44" size="26"
  256. :long-press="false"></u-number-box>
  257. </view>
  258. </view>
  259. </view>
  260. </view>
  261. </view>
  262. </template>
  263. <template
  264. v-if="totalitem.namesimple == '渤海财险' && totalitem.checked && totalitem.agreementId ">
  265. <view class="accident-style dis f-c ">
  266. <view class="dis j-s a-c">
  267. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  268. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  269. inactive-color="#eee" size='30'
  270. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  271. </view>
  272. <view class="" v-if="bohaiaccidentalDrivingVo.productCode">
  273. <view class=" accident-ins dis a-c j-s" @click="bohaiPopupshow=true">
  274. <text>{{bohaiaccidentalDrivingVo.packageName}}</text>
  275. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  276. </view>
  277. <view class=" dis j-s a-c">
  278. <view class="">
  279. <text>保费:</text>
  280. <text
  281. style="color: #ee7000;">¥{{bohaiaccidentalDrivingVo.premium*bohaiaccidentalDrivingVo.copies}}.00</text>
  282. </view>
  283. <view class="">
  284. <text>份数:</text>
  285. <u-number-box v-model="bohaiaccidentalDrivingVo.copies" :min="1"
  286. :max="1" :disabled-input="true" :input-width="70"
  287. :input-height="44" size="26" :long-press="false"></u-number-box>
  288. </view>
  289. </view>
  290. </view>
  291. </view>
  292. </template>
  293. <template
  294. v-if="totalitem.namesimple == '恒邦财险' && totalitem.checked && totalitem.agreementId ">
  295. <view class="accident-style dis f-c ">
  296. <view class="dis j-s a-c">
  297. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  298. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  299. inactive-color="#eee" size='30'
  300. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  301. </view>
  302. <view class=""
  303. v-if="hengbangaccidentalDrivingVo.projectCode && totalitem.jychecked">
  304. <view class=" accident-ins dis a-c j-s" @click="hengbangPopupshow=true">
  305. <text>{{hengbangaccidentalDrivingVo.projectName}}</text>
  306. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  307. </view>
  308. <view class=" dis j-s a-c">
  309. <view class="">
  310. <text>保费:</text>
  311. <text
  312. style="color: #ee7000;">¥{{hengbangaccidentalDrivingVo.sumPremium*hengbangaccidentalDrivingVo.quantity}}.00</text>
  313. </view>
  314. <view class="">
  315. <text>份数:</text>
  316. <u-number-box v-model="hengbangaccidentalDrivingVo.quantity"
  317. :min="1" :max="1" :disabled-input="true" :input-width="70"
  318. :input-height="44" size="26" :long-press="false"></u-number-box>
  319. </view>
  320. </view>
  321. </view>
  322. </view>
  323. </template>
  324. <template
  325. v-if="totalitem.namesimple == '太平财险' && totalitem.checked && totalitem.agreementId">
  326. <view class="accident-style dis f-c ">
  327. <view class="dis j-s a-c">
  328. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  329. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  330. inactive-color="#eee" size='30'
  331. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  332. </view>
  333. <view class=""
  334. v-if="taipingaccidentalDrivingVo.projectCode && totalitem.jychecked">
  335. <view class=" accident-ins dis a-c j-s" @click="taipingPopupshow=true">
  336. <text>{{taipingaccidentalDrivingVo.projectName}}</text>
  337. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  338. </view>
  339. <view class=" dis j-s a-c">
  340. <view class="">
  341. <text>保费:</text>
  342. <text
  343. style="color: #ee7000;">¥{{taipingaccidentalDrivingVo.sumPremium*taipingaccidentalDrivingVo.quantity}}.00</text>
  344. </view>
  345. <view class="">
  346. <text>份数:</text>
  347. <u-number-box v-model="taipingaccidentalDrivingVo.quantity" :min="1"
  348. :max="10" :disabled-input="true" :input-width="70"
  349. :input-height="44" :long-press="false" size="26"></u-number-box>
  350. </view>
  351. </view>
  352. </view>
  353. </view>
  354. </template>
  355. <template
  356. v-if="totalitem.namesimple == '众安财险' && totalitem.checked && totalitem.agreementId">
  357. <view class="accident-style dis f-c ">
  358. <view class="dis j-s a-c">
  359. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  360. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  361. inactive-color="#eee" size='30'
  362. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  363. </view>
  364. <view class=""
  365. v-if="zhonganaccidentalDrivingVo.projectCode && totalitem.jychecked">
  366. <view class=" accident-ins dis a-c j-s" @click="zhonganPopupshow=true">
  367. <text>{{zhonganaccidentalDrivingVo.projectName}}</text>
  368. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  369. </view>
  370. <view class=" dis j-s a-c">
  371. <text>份数:</text>
  372. <u-number-box v-model="zhonganaccidentalDrivingVo.quantity" :min="1"
  373. :max="1" :disabled-input="true" :input-width="70" :input-height="44"
  374. :long-press="false" size="26"></u-number-box>
  375. </view>
  376. </view>
  377. </view>
  378. </template>
  379. <template
  380. v-if="totalitem.namesimple == '华农财险' && totalitem.checked && totalitem.agreementId ">
  381. <view class="accident-style dis f-c ">
  382. <view class="dis j-s a-c">
  383. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  384. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  385. inactive-color="#eee" size='30'
  386. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  387. </view>
  388. <view class=""
  389. v-if="huanongaccidentalDrivingVo.projectCode && totalitem.jychecked">
  390. <view class=" accident-ins dis a-c j-s" @click="huanongPopupshow=true">
  391. <text>{{huanongaccidentalDrivingVo.projectName}}</text>
  392. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  393. </view>
  394. <view class=" dis j-s a-c">
  395. <text>份数:</text>
  396. <u-number-box v-model="huanongaccidentalDrivingVo.quantity" :min="1"
  397. :long-press="false" :input-width="70" :input-height="44"
  398. size="26"></u-number-box>
  399. </view>
  400. </view>
  401. </view>
  402. </template>
  403. <template
  404. v-if="totalitem.namesimple == '泰康财险' && totalitem.checked && totalitem.agreementId">
  405. <view class="accident-style dis f-c ">
  406. <view class="dis j-s a-c">
  407. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  408. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  409. inactive-color="#eee" size='30'
  410. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  411. </view>
  412. <view class=""
  413. v-if="taikangaccidentalDrivingVo.projectCode && totalitem.jychecked">
  414. <view class=" accident-ins dis a-c j-s" @click="taikangPopupshow=true">
  415. <text>{{taikangaccidentalDrivingVo.projectName}}</text>
  416. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  417. </view>
  418. <view class=" dis j-s a-c">
  419. <view class="">
  420. <text>保费:</text>
  421. <text
  422. style="color: #ee7000;">¥{{taikangaccidentalDrivingVo.sumPremium*taikangaccidentalDrivingVo.quantity}}.00</text>
  423. </view>
  424. <view class="">
  425. <text>份数:</text>
  426. <u-number-box v-model="taikangaccidentalDrivingVo.quantity" :min="1"
  427. :max="10" :disabled-input="true" :input-width="70"
  428. :input-height="44" :long-press="false" size="26"></u-number-box>
  429. </view>
  430. </view>
  431. </view>
  432. </view>
  433. </template>
  434. <template
  435. v-if="totalitem.namesimple == '永诚财险' && totalitem.checked && totalitem.agreementId">
  436. <view class="accident-style dis f-c ">
  437. <view class="dis j-s a-c">
  438. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  439. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  440. inactive-color="#eee" size='30'
  441. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  442. </view>
  443. <view class=""
  444. v-if="yongchengaccidentalDrivingVo.projectCode && totalitem.jychecked">
  445. <view class=" accident-ins dis a-c j-s" @click="yongchengPopupshow=true">
  446. <text>{{yongchengaccidentalDrivingVo.projectName}}</text>
  447. <u-icon name="arrow-right" style="color: #999;" size="26"></u-icon>
  448. </view>
  449. <view class=" dis j-s a-c">
  450. <view class="">
  451. <text>保费:</text>
  452. <text
  453. style="color: #ee7000;">¥{{yongchengaccidentalDrivingVo.sumPremium*yongchengaccidentalDrivingVo.quantity}}</text>
  454. </view>
  455. <view class="">
  456. <text>份数:</text>
  457. <u-number-box v-model="yongchengaccidentalDrivingVo.quantity"
  458. :min="1" :max="100" :input-width="70" :input-height="44"
  459. :long-press="false" size="26"></u-number-box>
  460. </view>
  461. </view>
  462. </view>
  463. </view>
  464. </template>
  465. <template
  466. v-if="totalitem.namesimple == '安盛天平' && totalitem.checked && totalitem.agreementId">
  467. <view class="accident-style dis f-c ">
  468. <view class="dis j-s a-c">
  469. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  470. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  471. inactive-color="#eee" size='30'
  472. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  473. </view>
  474. <view class=""
  475. v-if="anshengaccidentalDrivingVo.projectCode && totalitem.jychecked">
  476. <view class=" accident-ins dis a-c j-s" @click="anshengPopupshow=true">
  477. <text>{{anshengaccidentalDrivingVo.parentCode}}{{anshengaccidentalDrivingVo.parentName}}</text>
  478. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  479. </view>
  480. <template v-if="anshengInsuranceData.length>0">
  481. <view class=" accident-ins dis a-c j-s" @click="anshengPopupshow1=true">
  482. <text>{{anshengaccidentalDrivingVo.projectCode}}{{anshengaccidentalDrivingVo.projectName}}</text>
  483. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  484. </view>
  485. <view class=" dis j-s a-c">
  486. <text>份数:</text>
  487. <u-number-box v-model="anshengaccidentalDrivingVo.quantity" :min="1"
  488. :long-press="false" :max="1" :disabled-input="true"
  489. :input-width="70" :input-height="44" size="26"></u-number-box>
  490. </view>
  491. </template>
  492. </view>
  493. </view>
  494. </template>
  495. <template
  496. v-if="totalitem.namesimple == '国任财险' && totalitem.checked && totalitem.agreementId">
  497. <view class="accident-style dis f-c ">
  498. <view class="dis j-s a-c">
  499. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  500. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  501. inactive-color="#eee" size='30'
  502. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  503. </view>
  504. <view class=""
  505. v-if="guoRenaccidentalDrivingVo.projectCode && totalitem.jychecked">
  506. <view class=" accident-ins dis a-c j-s" @click="guorenPopupshow=true">
  507. <text>{{guoRenaccidentalDrivingVo.parentName}}</text>
  508. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  509. </view>
  510. <template v-if="guoRenaccidentalDrivingVo.projectName">
  511. <view class=" accident-ins dis a-c j-s" @click="guorenPopupshow1=true">
  512. <text>{{guoRenaccidentalDrivingVo.projectName}}</text>
  513. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  514. </view>
  515. <view class=" dis j-s a-c">
  516. <view class="">
  517. <text>保费:</text>
  518. <text
  519. style="color: #ee7000;">¥{{guoRenaccidentalDrivingVo.sumPremium*guoRenaccidentalDrivingVo.quantity}}.00</text>
  520. </view>
  521. <view class="">
  522. <text>份数:</text>
  523. <u-number-box v-model="guoRenaccidentalDrivingVo.quantity"
  524. :min="1" :max="1" :input-width="70" :input-height="44"
  525. :long-press="false" size="26"></u-number-box>
  526. </view>
  527. </view>
  528. </template>
  529. </view>
  530. </view>
  531. </template>
  532. <template
  533. v-if="totalitem.namesimple == '大家财险' && totalitem.checked && totalitem.agreementId">
  534. <view class="accident-style dis f-c ">
  535. <view class="dis j-s a-c">
  536. <text style="font-weight: bold;font-size: 14px;">意外险</text>
  537. <u-switch v-model="totalitem.jychecked" active-color="#0052FF"
  538. inactive-color="#eee" size='30'
  539. @change="accidentChange($event,totalitem.id,totalitem.cnName,totalindex)"></u-switch>
  540. </view>
  541. <view class="" v-if="dajiaaccidentalDrivingVo.rideRiskCode">
  542. <view class=" accident-ins dis a-c j-s" @click="dajiaPopupshow=true">
  543. <text>{{dajiaaccidentalDrivingVo.rideRiskName}}</text>
  544. <u-icon name="arrow-right" style="color: #999;" size="24"></u-icon>
  545. </view>
  546. <view class=" dis j-s a-c">
  547. <view class="">
  548. <text>保费:</text>
  549. <text
  550. style="color: #ee7000;">¥{{dajiaaccidentalDrivingVo.price*dajiaaccidentalDrivingVo.quantity}}.00</text>
  551. </view>
  552. <view class="">
  553. <text>份数:</text>
  554. <u-number-box v-model="dajiaaccidentalDrivingVo.quantity" :min="1"
  555. :max="1" :disabled-input="true" :input-width="70"
  556. :long-press="false" :input-height="44" size="26"></u-number-box>
  557. </view>
  558. </view>
  559. </view>
  560. </view>
  561. </template>
  562. <view class="Premium dis f-c" v-show="totalitem.quoteCode==200">
  563. <view class="dis price" v-if="totalitem.result.feeNoDescription">
  564. <text>该车未匹配销管费用,不建议投保!</text>
  565. <u-icon name="chat-fill" color="#ff0000" size="40"
  566. @click="discountErrorMessageMsg(totalitem.result.feeNoDescription,totalitem.namesimple)"></u-icon>
  567. </view>
  568. <view class="dis a-c f-wrap price">
  569. <text
  570. v-if="totalitem.result.jqPremium">交强险:¥{{totalitem.result.jqPremium}}</text>
  571. <text
  572. v-if="totalitem.result.syPremium">商业险:¥{{totalitem.result.syPremium}}</text>
  573. <text
  574. v-if="totalitem.result.taxAmount">车船税:¥{{totalitem.result.taxAmount}}</text>
  575. <text
  576. v-if="totalitem.result.jyPremium">驾意险:¥{{totalitem.result.jyPremium}}</text>
  577. </view>
  578. <view class="dis a-c f-wrap price" style="font-size: 20rpx;color: #FF4D4D;">
  579. <text>优惠金额:【
  580. <text
  581. v-if="totalitem.result.jqPremium">交强险:{{totalitem.result.jqExportFee?totalitem.result.jqExportFee:'无'}}</text>
  582. <text
  583. v-if="totalitem.result.syPremium">商业险:{{totalitem.result.syExportFee?totalitem.result.syExportFee:'无'}}</text>
  584. <text
  585. v-if="totalitem.result.jyPremium">驾意险:{{totalitem.result.noExportFee?totalitem.result.noExportFee:"无"}}</text>
  586. 】</text>
  587. </view>
  588. <view class="dis a-c j-s ">
  589. <view class="dis f-c time">
  590. <text
  591. v-if="totalitem.result.jqPremium">交强险:{{totalitem.result.startDateJq}}~{{totalitem.result.endDateJq}}
  592. </text>
  593. <text
  594. v-if="totalitem.result.startDateSy">商业险:{{totalitem.result.startDateSy}}~{{totalitem.result.endDateSy}}
  595. </text>
  596. </view>
  597. <image src="/static/image/car-insure/Group30.png" mode=""
  598. style="width: 14px;height: 14px;" @click="syncData(totalitem.result)">
  599. </image>
  600. </view>
  601. <view class="dis a-c f-wrap time">
  602. <text v-if="totalitem.namesimple == '永诚财险'">光博分:{{ totalitem.result.ilogPreUdwMess ?
  603. totalitem.result.ilogPreUdwMess : '无' }}</text>
  604. <text v-else>评分:{{ totalitem.result.ilogPreUdwMess ?
  605. totalitem.result.ilogPreUdwMess : '无' }}</text>
  606. <text v-if="totalitem.result.jqScore">交强类型评分:{{ totalitem.result.jqScore ?
  607. totalitem.result.jqScore : '无' }}</text>
  608. <text v-if="totalitem.result.syScore">商业类型评分:{{ totalitem.result.syScore ?
  609. totalitem.result.syScore : '无' }}</text>
  610. <text v-if="totalitem.result.lossRation">总赔付率:{{ totalitem.result.lossRation ?
  611. totalitem.result.lossRation : '无' }}</text>
  612. <text v-if="totalitem.result.jqLossRation">交强赔付率:{{ totalitem.result.jqLossRation ?
  613. totalitem.result.jqLossRation : '无' }}</text>
  614. <text v-if="totalitem.result.syLossRation">商业赔付率:{{ totalitem.result.syLossRation ?
  615. totalitem.result.syLossRation : '无' }}</text>
  616. <text
  617. v-if="totalitem.namesimple == '紫金财险'">鼎然-车辆风险评分:{{totalitem.result.ubiPredictedInfoScore ?
  618. totalitem.result.ubiPredictedInfoScore : '无'}}</text>
  619. <text v-if="totalitem.result.jqRenewal">交强续保:{{ totalitem.result.jqRenewal ?
  620. totalitem.result.jqRenewal : '无' }}</text>
  621. <text v-if="totalitem.result.syRenewal">商业续保:{{ totalitem.result.syRenewal ?
  622. totalitem.result.syRenewal : '无' }}</text>
  623. <text v-if="totalitem.result.jqClaims">交强出险次数:{{ totalitem.result.jqClaims ?
  624. totalitem.result.jqClaims : '无' }}</text>
  625. <text v-if="totalitem.result.syClaims">商业出险次数:{{ totalitem.result.syClaims ?
  626. totalitem.result.syClaims : '无' }}</text>
  627. </view>
  628. <view class="dis a-c j-end lastyear">
  629. <view class=" left dis j-c a-c" v-if="totalitem.lastYearMsg"
  630. @click="YearMsg(totalitem.lastYearMsg,totalitem.namesimple)">
  631. <image src="/static/image/car-insure/lastyear.png" mode=""></image>
  632. <text>上年信息</text>
  633. </view>
  634. <view class=" right dis j-c a-c" v-if='totalitem.result.predictInfo'
  635. @click="preUnderwriting(totalitem.result.predictInfo)">
  636. <image src="/static/image/car-insure/advance.png" mode=""></image>
  637. <text>预核保信息</text>
  638. </view>
  639. </view>
  640. </view>
  641. <view class="quotebtn dis j-s a-c" v-show="totalitem.quoteCode==200">
  642. <view class="dis a-c j-c" @click="bjdpreview(totalitem.result.companyId)"
  643. style="background-color: #0052FF;border-bottom-left-radius:6px;color: #fff;">
  644. 报价单
  645. </view>
  646. <view class="dis a-c j-c"
  647. style="background-color: #E6EEFF;border-bottom-right-radius:6px;color: #0052FF;"
  648. @click="querydetial(totalitem.result.companyId)">
  649. 查看详情
  650. </view>
  651. </view>
  652. </view>
  653. </view>
  654. </template>
  655. </block>
  656. </view>
  657. </view>
  658. <wyb-popup ref="lastYearMsgCI" type="center" mode="size-fixed" height="900" radius="6" :showCloseIcon="true">
  659. <view class="popupBody">
  660. <view class="popHeader d-flex a-center j-center">
  661. 投保方案建议
  662. </view>
  663. <scroll-view scroll-top="0" scroll-y="true" class="popupScroll">
  664. </scroll-view>
  665. <view class="popBottom d-flex a-center j-center main-text-color" @tap="adjustPopupInsureSubmit">我知道了
  666. </view>
  667. </view>
  668. </wyb-popup>
  669. <!-- 人寿驾意险弹框 -->
  670. <u-modal v-model="renshouPopupshow" title="驾意险"
  671. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  672. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  673. <view class="slot-content">
  674. <u-radio-group size="30" wrap>
  675. <u-radio style="margin: 4px 0; align-items: flex-start;" label-size="30" shape="square"
  676. @change="RSradioChange" v-for="(item, index) in renshouInsuranceData" :key="index"
  677. :name="item.projectCode">
  678. {{item.projectName}}
  679. </u-radio>
  680. </u-radio-group>
  681. </view>
  682. </u-modal>
  683. <!-- 中煤驾意险弹框 -->
  684. <u-modal v-model="zhongmeiPopupshow" title="驾意险"
  685. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  686. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  687. <view class="slot-content">
  688. <u-radio-group size="30" wrap>
  689. <u-radio style="margin: 4px 0;" label-size="30" @change="ZMradioChange" shape="square"
  690. v-for="(item, index) in zhongmeiInsuranceData" :key="index" :name="item.projectCode">
  691. {{item.projectName}}
  692. </u-radio>
  693. </u-radio-group>
  694. </view>
  695. </u-modal>
  696. <!-- 恒邦驾意险弹框 -->
  697. <u-modal v-model="hengbangPopupshow" title="驾意险"
  698. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  699. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  700. <view class="slot-content">
  701. <u-radio-group size="30" wrap>
  702. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="HBradioChange" shape="square"
  703. v-for="(item, index) in hengbangInsuranceData" :key="index" :name="item.projectCode">
  704. {{item.projectName}}
  705. </u-radio>
  706. </u-radio-group>
  707. </view>
  708. </u-modal>
  709. <!-- 众安驾意险弹框 -->
  710. <u-modal v-model="zhonganPopupshow" title="驾意险"
  711. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  712. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  713. <view class="slot-content">
  714. <u-radio-group size="30" wrap>
  715. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="ZAradioChange" shape="square"
  716. v-for="(item, index) in zhonganInsuranceData" :key="index" :name="item.projectCode">
  717. {{item.projectName}}
  718. </u-radio>
  719. </u-radio-group>
  720. </view>
  721. </u-modal>
  722. <!-- 华农驾意险弹框 -->
  723. <u-modal v-model="huanongPopupshow" title="驾意险"
  724. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  725. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  726. <view class="slot-content">
  727. <u-radio-group size="30" wrap>
  728. <u-radio style="margin: 4px 0;flex: auto;align-items: flex-start;" label-size="30"
  729. @change="HNradioChange" shape="square" v-for="(item, index) in huanongInsuranceData"
  730. :key="index" :name="item.projectCode">
  731. {{item.projectName}}s
  732. </u-radio>
  733. </u-radio-group>
  734. </view>
  735. </u-modal>
  736. <!-- 泰康驾意险弹框 -->
  737. <u-modal v-model="taikangPopupshow" title="驾意险"
  738. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  739. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  740. <view class="slot-content">
  741. <u-radio-group size="30" wrap>
  742. <u-radio style="margin: 4px 0;flex: auto;align-items: flex-start;" label-size="30"
  743. @change="TkradioChange" shape="square" v-for="(item, index) in taikangInsuranceData"
  744. :key="index" :name="item.projectCode">
  745. {{item.projectName}}
  746. </u-radio>
  747. </u-radio-group>
  748. </view>
  749. </u-modal>
  750. <u-modal v-model="yongchengPopupshow" title="驾意险"
  751. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  752. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  753. <view class="slot-content">
  754. <u-radio-group size="30" wrap>
  755. <u-radio style="margin: 4px 0;flex: auto;align-items: flex-start;" label-size="30"
  756. @change="YCradioChange" shape="square" v-for="(item, index) in yongchengInsuranceData"
  757. :key="index" :name="item.projectCode">
  758. {{item.projectName}}
  759. </u-radio>
  760. </u-radio-group>
  761. </view>
  762. </u-modal>
  763. <!-- 安盛驾意险弹框 -->
  764. <u-modal v-model="anshengPopupshow" title="驾意险"
  765. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  766. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  767. <view class="slot-content">
  768. <u-radio-group size="30" wrap>
  769. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="ASprogrammeradioChange"
  770. shape="square" v-for="(item, index) in anshengprogrammeData" :key="index"
  771. :name="item.projectCode">
  772. {{item.projectCode}}{{item.projectName}}
  773. </u-radio>
  774. </u-radio-group>
  775. </view>
  776. </u-modal>
  777. <u-modal v-model="anshengPopupshow1" title="驾意险"
  778. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  779. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  780. <view class="slot-content">
  781. <u-radio-group size="30" wrap>
  782. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="ASInsuranceradioChange"
  783. shape="square" v-for="(item, index) in anshengInsuranceData" :key="index"
  784. :name="item.projectCode">
  785. {{item.projectCode}}{{item.projectName}}
  786. </u-radio>
  787. </u-radio-group>
  788. </view>
  789. </u-modal>
  790. <!-- 紫金驾意险弹框 -->
  791. <u-popup v-model="zijinPopupshow" mode="bottom" border-radius="10" height="700">
  792. <view class="ZJcheckboxGroup dis f-c">
  793. <view class="title dis a-c j-c">
  794. <text>意外险分类</text>
  795. </view>
  796. <scroll-view scroll-y="true" class="scolcentent">
  797. <u-checkbox-group @change="ZJcheckboxGroupChange">
  798. <u-checkbox style="margin: 8px 0;flex: auto;" label-size="28" v-model="item.checked"
  799. v-for="(item, index) in zijinInsuranceData" :key="index"
  800. :name="item.projectCode">{{item.projectName}}</u-checkbox>
  801. </u-checkbox-group>
  802. </scroll-view>
  803. <view class="operateBtn dis ">
  804. <view class="cancel dis a-c j-c" @click="zijinPopupshow=false">
  805. 取消
  806. </view>
  807. <view class="confirm dis a-c j-c" @click="zijinPopupshow=false">
  808. 确定
  809. </view>
  810. </view>
  811. </view>
  812. </u-popup>
  813. <!-- 国任驾意险弹框 -->
  814. <u-modal v-model="guorenPopupshow" title="驾意险"
  815. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  816. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  817. <view class="slot-content">
  818. <u-radio-group size="30" wrap>
  819. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="GRprogrammeradioChange"
  820. shape="square" v-for="(item, index) in guorenprogrammeData" :key="index"
  821. :name="item.projectCode">
  822. {{item.projectName}}
  823. </u-radio>
  824. </u-radio-group>
  825. </view>
  826. </u-modal>
  827. <u-modal v-model="guorenPopupshow1" title="驾意险"
  828. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  829. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  830. <view class="slot-content">
  831. <u-radio-group size="30" wrap>
  832. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="GRInsuranceradioChange"
  833. shape="square" v-for="(item, index) in guoRenInsuranceData" :key="index"
  834. :name="item.projectCode">
  835. {{item.projectName}}
  836. </u-radio>
  837. </u-radio-group>
  838. </view>
  839. </u-modal>
  840. <!-- 国任特约弹框 -->
  841. <u-modal v-model="guoRencontributingshow" title="特约保险"
  842. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  843. :scroll-height="{height: '300px'}" :confirm-style="{background:'#E6EEFF',color:'#0052FF'}">
  844. <view class="slot-content">
  845. <u-checkbox-group @change="guoRencontributingChange" style="display: contents;">
  846. <u-checkbox v-model="item.checked" v-for="(item, index) in guoRenSpecialAgreementData" :key="index"
  847. :name="item.clauseCode" style="align-items: baseline;">
  848. <view class="dis f-c ">
  849. <text>{{item.clauseCode}}{{item.clauses}}</text>
  850. <text style="font-size: 20rpx;color: #999;">{{item.clausesContext}}</text>
  851. </view>
  852. </u-checkbox>
  853. </u-checkbox-group>
  854. </view>
  855. </u-modal>
  856. <!-- 大家驾意险弹框 -->
  857. <u-modal v-model="dajiaPopupshow" title="驾意险"
  858. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  859. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  860. <view class="slot-content">
  861. <u-radio-group size="30" wrap>
  862. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="DJradioChange" shape="square"
  863. v-for="(item, index) in dajiaInsuranceData" :key="index" :name="item.id">
  864. {{item.productName}}
  865. </u-radio>
  866. </u-radio-group>
  867. </view>
  868. </u-modal>
  869. <!-- 太平驾意险弹框 -->
  870. <u-modal v-model="taipingPopupshow" title="驾意险"
  871. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  872. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  873. <view class="slot-content">
  874. <u-radio-group size="30" wrap>
  875. <u-radio style="margin: 4px 0;flex: auto;" label-size="30" @change="TPradioChange" shape="square"
  876. v-for="(item, index) in taipingInsuranceData" :key="index" :name="item.projectCode">
  877. {{item.projectName}}
  878. </u-radio>
  879. </u-radio-group>
  880. </view>
  881. </u-modal>
  882. <!-- 渤海驾意险弹框 -->
  883. <u-modal v-model="bohaiPopupshow" title="驾意险"
  884. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  885. :scroll-height="{height: '300px'}" :show-confirm-button="false" mask-close-able>
  886. <view class="slot-content">
  887. <u-radio-group size="30" style="" wrap>
  888. <u-radio style="margin: 4px 0;align-items: flex-start;" label-size="30" @change="BHradioChange"
  889. shape="square" v-for="(item, index) in bohaiInsuranceData" :key="index"
  890. :name="item.productCode">
  891. {{item.packageName}}
  892. </u-radio>
  893. </u-radio-group>
  894. </view>
  895. </u-modal>
  896. <u-modal v-model="preUnderwritingshow" width="72%" title="预核保信息" :title-style="{fontWeight: 'bold'}">
  897. <view class="" style="padding: 10px;overflow-y:auto;height: 400px;">
  898. <view v-for="(item,index) in RSpreUnderwritingList" :key="index">
  899. <view class="dis f-c ">
  900. <text style="font-weight: bold;">审核意见</text>
  901. <text style="font-size: 12px;">{{item.opinion}}</text>
  902. </view>
  903. <view class="dis f-c">
  904. <text style="font-weight: bold;">备注</text>
  905. <text style="font-size: 12px;">{{item.description}}</text>
  906. </view>
  907. </view>
  908. </view>
  909. </u-modal>
  910. <u-modal v-model="Generateshow" content="是否生成新的订单?" :content-style="{fontWeight: 'bold'}"
  911. :show-cancel-button="true" :show-title="false" :confirm-style="{color: '#ff9000'}"
  912. @confirm="GenerateModalConfirm"></u-modal>
  913. <u-modal v-model="GuidedPopShow"
  914. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  915. :show-cancel-button="true"
  916. :confirm-style="{background:'#0052FF',color:'#fff',height:'40px',lineHeight:'40px'}"
  917. :cancel-style="{background:'#E6EEFF',color:'#0052FF',height:'40px',lineHeight:'40px'}"
  918. @confirm="Guidedconfirm">
  919. <view class="slot-content dis j-c a-c font-weight" style="color: #232832;">
  920. <text>将跳转至保险配置页面添加或修改商业险</text>
  921. </view>
  922. </u-modal>
  923. <u-modal v-model="priceComparisonShow" title="比价提醒"
  924. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  925. :show-cancel-button="false"
  926. :confirm-style="{background:'#E6EEFF',color:'#0052FF',height:'40px',lineHeight:'40px'}"
  927. @confirm="priceComparisonShow=false">
  928. <view class="slot-content dis j-c a-c ">
  929. <view class="p-2">
  930. <text>可选择有报价结果的公司进行比价 最少选择两家,最多可选择三家</text>
  931. </view>
  932. </view>
  933. </u-modal>
  934. <view class="footer-btn dis a-c j-s">
  935. <u-button type="primary" style="background:#FF9900;width: 20%;" @tap="tempSave">暂存</u-button>
  936. <u-button type="primary" style="background:#C9C9C9;width: 20%;" @click="priceComparison"
  937. v-if="comparableQuantity<2 ">比价</u-button>
  938. <u-button type="primary" style="background:#1DB1E0;width: 20%;" @click="priceComparison1"
  939. v-if="comparableQuantity>=2 && selectedCount<2">比价</u-button>
  940. <u-button type="primary" class="priceComparison" @click="priceComparison2"
  941. v-if="selectedCount>=2">比价</u-button>
  942. <u-button type="primary" style="background:#0052FF; width: 50%;" @tap="toNext">保费计算</u-button>
  943. </view>
  944. </view>
  945. </template>
  946. <script>
  947. import {
  948. mapState
  949. } from "vuex"
  950. import {
  951. delEmptyQueryNodes,
  952. findDefaultProject
  953. } from '@/plugins/utils';
  954. import wybPopup from '@/components/common/wyb-popup/wyb-popup.vue'
  955. import lsLoading from '@/components/common/ls-loading/ls-loading.vue';
  956. import {
  957. sub
  958. } from "zrender/lib/core/vector";
  959. export default {
  960. components: {
  961. wybPopup,
  962. lsLoading
  963. },
  964. computed: {
  965. ...mapState(['userInfo', 'quotationType']),
  966. },
  967. // 监听导航栏的按钮
  968. onNavigationBarButtonTap(e) {
  969. if (e.index == 0) {
  970. this.navigate({
  971. url: '/pages/index/index'
  972. }, "switchTab", true);
  973. }
  974. },
  975. data() {
  976. return {
  977. priceComparisonShow: false,
  978. comparableQuantity: 0, //报价成功总数
  979. selectedCount: 0, //比价勾选数量
  980. priceCtitle: "比价",
  981. shadowStyle: {
  982. backgroundImage: "none",
  983. paddingTop: "0",
  984. marginTop: "20rpx"
  985. },
  986. Selectchecked: false,
  987. params: {
  988. year: true, //年
  989. month: true, //月
  990. day: true, //日
  991. hour: true, //时
  992. minute: true, //分
  993. second: true, //秒
  994. },
  995. params1: {
  996. year: true, //年
  997. month: true, //月
  998. day: true, //日
  999. hour: false, //时
  1000. minute: false, //分
  1001. second: false, //秒
  1002. },
  1003. GuidedPopShow: false, //引导弹窗
  1004. preUnderwritingshow: false, //预核保信息
  1005. Generateshow: false,
  1006. zhongmeiPopupshow: false,
  1007. zhongmeiInsuranceData: [], //中煤意外险list
  1008. zhongmeiaccidentalDrivingVo: [], //中煤意外险
  1009. zijinPopupshow: false,
  1010. zijinInsuranceData: [], //紫金意外险list
  1011. zijinaccidentalDrivingVo: [], //紫金意外险
  1012. huanongPopupshow: false,
  1013. huanongInsuranceData: [], //华农意外险list
  1014. huanongaccidentalDrivingVo: [], //华农意外险
  1015. taikangPopupshow: false,
  1016. taikangInsuranceData: [], //泰康意外险list
  1017. taikangaccidentalDrivingVo: [], //泰康意外险
  1018. taipingPopupshow: false,
  1019. taipingInsuranceData: [], //太平意外险list
  1020. taipingaccidentalDrivingVo: [], //太平意外险
  1021. anshengPopupshow: false,
  1022. anshengPopupshow1: false,
  1023. anshengprogrammeData: [],
  1024. anshengInsuranceData: [], //安盛意外险list
  1025. anshengaccidentalDrivingVo: {}, //安盛意外险
  1026. guorenPopupshow: false,
  1027. guorenPopupshow1: false,
  1028. guorenprogrammeData: [],
  1029. guoRenInsuranceData: [], //国任意外险list
  1030. guoRenaccidentalDrivingVo: {}, //国任意外险
  1031. guoRencontributingshow: false, //国任特约
  1032. dajiaPopupshow: false,
  1033. dajiaInsuranceData: [], //大家意外险list
  1034. dajiaaccidentalDrivingVo: {}, //大家意外险
  1035. guoRenSpecialAgreementData: [],
  1036. guoRenSpecialAgreementVo: [],
  1037. yongchengPopupshow: false,
  1038. yongchengInsuranceData: [], //永诚意外险list
  1039. yongchengaccidentalDrivingVo: {}, //永诚意外险
  1040. zhonganPopupshow: false,
  1041. zhonganInsuranceData: [], //-众安意外险list
  1042. zhonganaccidentalDrivingVo: {}, //众安意外险
  1043. hengbangPopupshow: false,
  1044. hengbangInsuranceData: [], //-恒邦意外险list
  1045. hengbangaccidentalDrivingVo: {}, //恒邦意外险
  1046. renshouPopupshow: false,
  1047. renshouInsuranceData: [], //-人寿意外险list
  1048. renshouaccidentalDrivingVo: {}, //人寿意外险
  1049. bohaiPopupshow: false,
  1050. bohaiInsuranceData: [], //渤海意外险list
  1051. bohaiaccidentalDrivingVo: {}, //渤海意外险
  1052. jqstartShow: false, //交强起保日期
  1053. jqendShow: false, //交强终保日期
  1054. systartShow: false, //商业起保日期
  1055. syendShow: false, //商业终保日期
  1056. transferDateShow: false,
  1057. content: ``,
  1058. vehicleAndVesselTaxForm: {}, //车船税信息
  1059. agreementList: [],
  1060. zmDrivingForm: {}, //中煤驾意险
  1061. zjaccidentalDrivingVo: [], //紫金驾意险
  1062. carInfoPositiveList: [], //车辆影像
  1063. ownerInfoPositiveList: [], //车主影像
  1064. policyHolderInfoPositiveList: [], //投保人影像
  1065. insuredPersonInfoPositiveList: [], //被保人影像
  1066. orderno: "", //订单号
  1067. show1: false, //华农
  1068. animation: 'twinkle', //动画类型
  1069. jqjishi: false,
  1070. syjishi: false,
  1071. timeArray: [],
  1072. jqTimeIndex: 0,
  1073. syTimeIndex: 0,
  1074. time1: "",
  1075. time2: "",
  1076. carTypeList: [], //车辆品牌型号列表
  1077. msg: "",
  1078. quoteno: "", //报价编号
  1079. hasKindCodeA: false, //是否含有车损险
  1080. carInfo: {}, //车辆信息
  1081. ownerInfo: {}, //车主信息
  1082. policyHolderInfo: {}, //投保人信息
  1083. insuredPersonInfo: {}, //被保人信息
  1084. riskList: [], //险种大类信息
  1085. kindList: [], //商业险险别
  1086. showCarInfo: false, //控制车辆信息显示
  1087. showInsureDate: true, //控制险种时间显示
  1088. jqchecked: false,
  1089. sychecked: false,
  1090. jqstartDate: "", //交强险日期
  1091. jqendDate: " ", //交强险日期
  1092. systartDate: "", //商业险日期
  1093. syendDate: "", //商业险日期
  1094. insureList: [{
  1095. amount: "0",
  1096. amountDesc: "投保",
  1097. amtList: [{
  1098. "label": "不投保",
  1099. "value": "0"
  1100. }, {
  1101. "label": "投保",
  1102. "value": "1"
  1103. }],
  1104. kindCode: "A",
  1105. isMainRisk: true,
  1106. kindName: "机动车损失险",
  1107. desc: "保险期间内,被保险人或被保险机动车驾驶人在使用被保险机动车过程中,因自然灾害、意外事故、机动车被盗窃、抢劫、抢夺等情况(详见保险条款)造成被保险机动车直接损失,且不属于免除保险人责任的范围,保险人依照本保险合同的约定负责赔偿的险种。"
  1108. },
  1109. {
  1110. amount: "0",
  1111. amountDesc: "不投保",
  1112. amtList: [{
  1113. label: "不投保",
  1114. value: "0"
  1115. },
  1116. {
  1117. label: "50万",
  1118. value: "500000"
  1119. },
  1120. {
  1121. label: "100万",
  1122. value: "1000000"
  1123. },
  1124. {
  1125. label: "150万",
  1126. value: "1500000"
  1127. },
  1128. {
  1129. label: "200万",
  1130. value: "2000000"
  1131. },
  1132. {
  1133. label: "250万",
  1134. value: "2500000"
  1135. },
  1136. {
  1137. label: "300万",
  1138. value: "3000000"
  1139. },
  1140. {
  1141. label: "500万",
  1142. value: "5000000"
  1143. },
  1144. {
  1145. label: "1000万",
  1146. value: "10000000"
  1147. }
  1148. ],
  1149. kindCode: "B",
  1150. isMainRisk: true,
  1151. kindName: "第三者责任险",
  1152. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使第三者遭受人身伤亡或财产直接损毁,依法应当对第三者承担的损害赔偿责任,且不属于免除保险人责任的范围,保险人依照本保险合同的约定,对于超过机动车交通事故责任强制保险各分项赔偿限额的部分负责赔偿的险种。"
  1153. },
  1154. {
  1155. amount: "0",
  1156. amountDesc: "不投保",
  1157. amtList: [{
  1158. label: "不投保",
  1159. value: "0"
  1160. },
  1161. {
  1162. label: "1万",
  1163. value: "10000"
  1164. },
  1165. {
  1166. label: "2万",
  1167. value: "20000"
  1168. },
  1169. {
  1170. label: "3万",
  1171. value: "30000"
  1172. },
  1173. {
  1174. label: "4万",
  1175. value: "40000"
  1176. },
  1177. {
  1178. label: "5万",
  1179. value: "50000"
  1180. },
  1181. {
  1182. label: "6万",
  1183. value: "60000"
  1184. },
  1185. {
  1186. label: "7万",
  1187. value: "70000"
  1188. },
  1189. {
  1190. label: "8万",
  1191. value: "80000"
  1192. },
  1193. {
  1194. label: "9万",
  1195. value: "90000"
  1196. },
  1197. {
  1198. label: "10万",
  1199. value: "100000"
  1200. },
  1201. {
  1202. label: "15万",
  1203. value: "150000"
  1204. },
  1205. {
  1206. label: "20万",
  1207. value: "200000"
  1208. },
  1209. {
  1210. label: "25万",
  1211. value: "250000"
  1212. },
  1213. {
  1214. label: "30万",
  1215. value: "300000"
  1216. },
  1217. {
  1218. label: "35万",
  1219. value: "350000"
  1220. },
  1221. {
  1222. label: "40万",
  1223. value: "400000"
  1224. },
  1225. {
  1226. label: "45万",
  1227. value: "450000"
  1228. },
  1229. {
  1230. label: "50万",
  1231. value: "500000"
  1232. },
  1233. ],
  1234. kindCode: "D3",
  1235. isMainRisk: true,
  1236. kindName: "司机责任险",
  1237. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  1238. },
  1239. {
  1240. amount: "0",
  1241. amountDesc: "不投保",
  1242. amtList: [{
  1243. "label": "不投保",
  1244. "value": "0"
  1245. }, {
  1246. "label": "1万",
  1247. "value": "10000"
  1248. }, {
  1249. "label": "2万",
  1250. "value": "20000"
  1251. }, {
  1252. "label": "4万",
  1253. "value": "40000"
  1254. }, {
  1255. "label": "5万",
  1256. "value": "50000"
  1257. }, {
  1258. "label": "10万",
  1259. "value": "100000"
  1260. }, {
  1261. "label": "15万",
  1262. "value": "150000"
  1263. }, {
  1264. "label": "20万",
  1265. "value": "200000"
  1266. }],
  1267. kindCode: "D4",
  1268. isMainRisk: true,
  1269. kindName: "乘客责任险",
  1270. desc: "保险期间内,被保险人或其允许的驾驶人在使用被保险机动车过程中发生意外事故,致使车上人员遭受人身伤亡,且不属于免除保险人责任的范围,依法应当对车上人员承担的损害赔偿责任,保险人依照本保险合同的约定负责赔偿的险种。"
  1271. },
  1272. {
  1273. amount: "0",
  1274. amountDesc: "不投保",
  1275. amtList: [{
  1276. "label": "不投保",
  1277. "value": "0"
  1278. }, {
  1279. "label": "2000",
  1280. "value": "2000"
  1281. }, {
  1282. "label": "5000",
  1283. "value": "5000"
  1284. }, {
  1285. "label": "1万",
  1286. "value": "10000"
  1287. }],
  1288. desc: "保险期间内,被保险机动车在被保险人或被保险机动车驾驶人使用过程中,发生无明显碰撞痕迹的车身划痕损失,保险人按照保险合同约定负责赔偿的险种",
  1289. isMainRisk: true,
  1290. kindCode: "L",
  1291. kindName: "车身划痕险",
  1292. mainRiskCodeList: "A"
  1293. },
  1294. {
  1295. amount: "0",
  1296. amountDesc: "不投保",
  1297. amtList: [{
  1298. "label": "不投保",
  1299. "value": "0"
  1300. }, {
  1301. "label": "5%",
  1302. "value": "5"
  1303. }, {
  1304. "label": "10%",
  1305. "value": "10"
  1306. }, {
  1307. "label": "15%",
  1308. "value": "15"
  1309. }, {
  1310. "label": "20%",
  1311. "value": "20"
  1312. }],
  1313. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  1314. isMainRisk: true,
  1315. kindCode: "MJ1",
  1316. kindName: "绝对免赔率特约险(车损)",
  1317. mainRiskCodeList: "A"
  1318. },
  1319. {
  1320. amount: "0",
  1321. amountDesc: "不投保",
  1322. amtList: [{
  1323. "label": "不投保",
  1324. "value": "0"
  1325. }, {
  1326. "label": "5%",
  1327. "value": "5"
  1328. }, {
  1329. "label": "10%",
  1330. "value": "10"
  1331. }, {
  1332. "label": "15%",
  1333. "value": "15"
  1334. }, {
  1335. "label": "20%",
  1336. "value": "20"
  1337. }],
  1338. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  1339. isMainRisk: true,
  1340. kindCode: "MJ2",
  1341. kindName: "绝对免赔率特约险(三者)",
  1342. mainRiskCodeList: "B"
  1343. },
  1344. {
  1345. amount: "0",
  1346. amountDesc: "不投保",
  1347. amtList: [{
  1348. "label": "不投保",
  1349. "value": "0"
  1350. }, {
  1351. "label": "5%",
  1352. "value": "5"
  1353. }, {
  1354. "label": "10%",
  1355. "value": "10"
  1356. }, {
  1357. "label": "15%",
  1358. "value": "15"
  1359. }, {
  1360. "label": "20%",
  1361. "value": "20"
  1362. }],
  1363. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  1364. isMainRisk: true,
  1365. kindCode: "MJ3",
  1366. kindName: "绝对免赔率特约险(司机)",
  1367. mainRiskCodeList: "D3"
  1368. },
  1369. {
  1370. amount: "0",
  1371. amountDesc: "不投保",
  1372. amtList: [{
  1373. "label": "不投保",
  1374. "value": "0"
  1375. }, {
  1376. "label": "5%",
  1377. "value": "5"
  1378. }, {
  1379. "label": "10%",
  1380. "value": "10"
  1381. }, {
  1382. "label": "15%",
  1383. "value": "15"
  1384. }, {
  1385. "label": "20%",
  1386. "value": "20"
  1387. }],
  1388. desc: "被保险机动车发生主险约定的保险事故,保险人按照主险的约定计算赔款后,扣减本特约条款约定的免赔的险种。",
  1389. isMainRisk: true,
  1390. kindCode: "MJ4",
  1391. kindName: "绝对免赔率特约险(乘客)",
  1392. mainRiskCodeList: "D4"
  1393. },
  1394. {
  1395. amount: "0",
  1396. amountDesc: "不投保",
  1397. coveragePremium: 0,
  1398. amtList: [{
  1399. label: "不投保",
  1400. value: "0"
  1401. },
  1402. {
  1403. label: "1万",
  1404. value: "10000"
  1405. },
  1406. {
  1407. label: "2万",
  1408. value: "20000"
  1409. },
  1410. {
  1411. label: "4万",
  1412. value: "40000"
  1413. },
  1414. {
  1415. label: "5万",
  1416. value: "50000"
  1417. },
  1418. {
  1419. label: "8万",
  1420. value: "80000"
  1421. },
  1422. {
  1423. label: "10万",
  1424. value: "100000"
  1425. },
  1426. {
  1427. label: "20万",
  1428. value: "200000"
  1429. },
  1430. {
  1431. label: "30万",
  1432. value: "300000"
  1433. },
  1434. {
  1435. label: "50万",
  1436. value: "500000"
  1437. },
  1438. {
  1439. label: "100万",
  1440. value: "1000000"
  1441. },
  1442. {
  1443. label: "200万",
  1444. value: "2000000"
  1445. },
  1446. {
  1447. label: "300万",
  1448. value: "3000000"
  1449. },
  1450. ],
  1451. kindCode: "SY_FJ_YBW1",
  1452. isMainRisk: true,
  1453. kindName: "附加医保-三者",
  1454. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  1455. },
  1456. {
  1457. amount: "0",
  1458. amountDesc: "不投保",
  1459. coveragePremium: 0,
  1460. amtList: [{
  1461. label: "不投保",
  1462. value: "0"
  1463. },
  1464. {
  1465. label: "1万",
  1466. value: "10000"
  1467. },
  1468. {
  1469. label: "2万",
  1470. value: "20000"
  1471. },
  1472. {
  1473. label: "5万",
  1474. value: "50000"
  1475. },
  1476. {
  1477. label: "10万",
  1478. value: "100000"
  1479. }
  1480. ],
  1481. kindCode: "SY_FJ_YBW2",
  1482. isMainRisk: true,
  1483. kindName: "附加医保-座位险(乘客)",
  1484. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  1485. },
  1486. {
  1487. amount: "0",
  1488. amountDesc: "不投保",
  1489. coveragePremium: 0,
  1490. amtList: [{
  1491. label: "不投保",
  1492. value: "0"
  1493. },
  1494. {
  1495. label: "1万",
  1496. value: "10000"
  1497. },
  1498. {
  1499. label: "2万",
  1500. value: "20000"
  1501. },
  1502. {
  1503. label: "5万",
  1504. value: "50000"
  1505. },
  1506. {
  1507. label: "10万",
  1508. value: "100000"
  1509. }
  1510. ],
  1511. kindCode: "SY_FJ_YBW3",
  1512. isMainRisk: true,
  1513. kindName: "附加医保-座位险(司机)",
  1514. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  1515. },
  1516. {
  1517. amount: "0",
  1518. amountDesc: "不投保",
  1519. coveragePremium: 0,
  1520. amtList: [{
  1521. label: "不投保",
  1522. value: "0"
  1523. },
  1524. {
  1525. label: "2次",
  1526. value: "2"
  1527. },
  1528. {
  1529. label: "7次",
  1530. value: "7"
  1531. },
  1532. {
  1533. label: "12次",
  1534. value: "12"
  1535. },
  1536. {
  1537. label: "17次",
  1538. value: "17"
  1539. },
  1540. {
  1541. label: "22次",
  1542. value: "22"
  1543. },
  1544. ],
  1545. kindCode: "TY1",
  1546. isMainRisk: true,
  1547. kindName: "道路救援服务特约条款",
  1548. desc: "道路救援服务特约条款是指在保险期内,被保险机动车在使用过程中发生故障而丧失行驶能力时,保险人根据被保险人的请求,向被保险人提供道路救援服务。"
  1549. },
  1550. {
  1551. amount: 0,
  1552. amountDesc: "不投保",
  1553. kindCode: "TY2",
  1554. isMainRisk: true,
  1555. kindName: "车辆安全检测特约条款",
  1556. desc: "安全检测特约条款是指保险期间内,为保障车辆安全运行,保险人或其受托人根据被保险人请求,为被保险机动车提供车辆安全检测服务。"
  1557. },
  1558. {
  1559. amount: 0,
  1560. amountDesc: "不投保",
  1561. kindCode: "TY3",
  1562. isMainRisk: true,
  1563. kindName: "代为驾驶服务特约条款",
  1564. desc: "代为驾驶特约条款是指保险期间内,在被保险人或其允许的驾驶人因饮酒、服用药物等原因无法驾驶或存在重大安全驾驶隐患时,提供单程30公里以内的短途代驾服务。"
  1565. },
  1566. {
  1567. amount: 0,
  1568. amountDesc: "不投保",
  1569. kindCode: "TY4",
  1570. isMainRisk: true,
  1571. kindName: "代为送检服务特约条款",
  1572. desc: "代为送检特约条款是指保险期间内,由保险人或其受托人代替车辆所有人进行车辆送检。"
  1573. },
  1574. {
  1575. amount: "0",
  1576. amountDesc: "不投保",
  1577. amtList: [{
  1578. label: "不投保",
  1579. value: "0"
  1580. },
  1581. {
  1582. label: "50万",
  1583. value: "500000"
  1584. },
  1585. {
  1586. label: "100万",
  1587. value: "1000000"
  1588. },
  1589. {
  1590. label: "150万",
  1591. value: "1500000"
  1592. },
  1593. {
  1594. label: "200万",
  1595. value: "2000000"
  1596. },
  1597. {
  1598. label: "250万",
  1599. value: "2500000"
  1600. },
  1601. {
  1602. label: "300万",
  1603. value: "3000000"
  1604. },
  1605. {
  1606. label: "500万",
  1607. value: "5000000"
  1608. },
  1609. {
  1610. label: "1000万",
  1611. value: "10000000"
  1612. }
  1613. ],
  1614. desc: "保险期间内,被保险人或其允许的驾驶人在法定节假日期间使用被保险机动车发生机动车第三者责任保险范围内的事故,并经公安部门或保险人查勘确认的,被保险机动车第三者责任保险所适用的责任限额在保险单载明的基础上增加一倍的险种",
  1615. isMainRisk: true,
  1616. kindCode: "BD",
  1617. kindName: "法定节假日限额翻倍险",
  1618. mainRiskCodeList: "B"
  1619. }
  1620. ],
  1621. accidentForm: {
  1622. fen: "1"
  1623. }, //意外险内容
  1624. //永诚转保确认码
  1625. cqryCdeJq: "",
  1626. cqryCdeSy: "",
  1627. renewalCodeJq: "", //交强确认码
  1628. renewalCodeSy: "", //商业确认码
  1629. //-----------------
  1630. totalCompanyList: [], //保险公司列表
  1631. insAreaCompanyEditingDtos: [],
  1632. notStartedQuote: true, //未开始报价(true表示未开始报价,false表示已经报价结束)
  1633. quoteCompanyCount: 0,
  1634. ycdrivingJoyCoverage: {},
  1635. RSpreUnderwritingList: [], //人寿预核保信息
  1636. subOrderId: '',
  1637. }
  1638. },
  1639. watch: {
  1640. comparableQuantity: {
  1641. handler(val) {
  1642. console.log(val);
  1643. },
  1644. },
  1645. },
  1646. async onLoad(params) {
  1647. if (params.orderno) {
  1648. let res = await this.$http.post('/insurance/order/revise', {
  1649. orderNo: params.orderno
  1650. });
  1651. this.carInfo = res.data.carinfo; //车辆信息
  1652. this.ownerInfo = res.data.ownerinfo; //车主信息
  1653. this.policyHolderInfo = res.data.applyinfo; //投保人信息
  1654. this.insuredPersonInfo = res.data.insureinfo; //被保人信息
  1655. this.riskList = res.data.risk; //险种大类
  1656. this.kindList = res.data.king; //商业险险别
  1657. this.vehicleAndVesselTaxForm = res.data.vehicleAndVesselTax; //车船税信息
  1658. this.orderno = res.data.orderno;
  1659. this.quoteno = res.data.quoteno;
  1660. this.imageEcho(res.data.quoteno) // 影像获取完毕
  1661. this.insAreaCompanyEditingDtos = res.data.insAreaCompanyEditingDtos;
  1662. if (this.riskList.length > 0) {
  1663. for (let i = 0; i < this.riskList.length; i++) {
  1664. if (this.riskList[i].riskCode == '0507') {
  1665. this.jqchecked = true;
  1666. if (this.isDateBeforeToday(this.riskList[i].startDate)) {
  1667. this.jqstartDate = this.nextday();
  1668. this.jqendDate = this.oneYearPast(this.jqstartDate)
  1669. } else {
  1670. this.jqstartDate = this.riskList[i].startDate;
  1671. this.jqendDate = this.riskList[i].endDate;
  1672. }
  1673. }
  1674. if (this.riskList[i].riskCode == '0510') {
  1675. this.sychecked = true;
  1676. if (this.isDateBeforeToday(this.riskList[i].startDate)) {
  1677. this.systartDate = this.nextday();
  1678. this.syendDate = this.oneYearPast(this.systartDate)
  1679. } else {
  1680. this.systartDate = this.riskList[i].startDate;
  1681. this.syendDate = this.riskList[i].endDate;
  1682. }
  1683. this.kindList.map(ele1 => {
  1684. this.insureList.map(ele2 => {
  1685. if (ele2.kindCode == ele1.kindCode) {
  1686. switch (ele1.kindCode) {
  1687. case 'D4':
  1688. case 'SY_FJ_YBW2':
  1689. ele2.amount = ele1.unitAmount;
  1690. break;
  1691. case "MJ1":
  1692. case "MJ2":
  1693. case "MJ3":
  1694. case "MJ4":
  1695. ele2.amount = ele1.deductibleRate;
  1696. break;
  1697. case "TY1":
  1698. case "TY2":
  1699. case "TY3":
  1700. case "TY4":
  1701. ele2.amount = ele1.serviceTimes;
  1702. ele2.amountDesc = ele1.serviceTimes +
  1703. '次'
  1704. break;
  1705. default:
  1706. ele2.amount = ele1.amount;
  1707. }
  1708. }
  1709. })
  1710. })
  1711. }
  1712. }
  1713. }
  1714. } else {
  1715. const eventChannel = this.getOpenerEventChannel()
  1716. // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
  1717. eventChannel.on('acceptData', async (data) => {
  1718. console.log(data);
  1719. this.carInfo = data.carInfo; //车辆信息
  1720. this.ownerInfo = data.ownerInfo; //车主信息
  1721. this.policyHolderInfo = data.policyHolderInfo; //投保人信息
  1722. this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
  1723. this.riskList = data.riskList; //险种大类
  1724. this.kindList = data.kindList; //商业险险别
  1725. this.vehicleAndVesselTaxForm = data.vehicleAndVesselTaxForm; //车船税信息
  1726. this.carInfoPositiveList = data.carInfoPositiveList; //车辆
  1727. this.ownerInfoPositiveList = data.ownerInfoPositiveList; //车主
  1728. this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
  1729. this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
  1730. if (this.riskList.length > 0) {
  1731. for (let i = 0; i < this.riskList.length; i++) {
  1732. if (this.riskList[i].riskCode == '0507') {
  1733. this.jqchecked = true;
  1734. this.jqstartDate = this.riskList[i].startDate;
  1735. this.jqendDate = this.riskList[i].endDate;
  1736. }
  1737. if (this.riskList[i].riskCode == '0510') {
  1738. this.sychecked = true;
  1739. this.systartDate = this.riskList[i].startDate;
  1740. this.syendDate = this.riskList[i].endDate;
  1741. this.kindList.map(ele1 => {
  1742. this.insureList.map(ele2 => {
  1743. if (ele2.kindCode == ele1.kindCode) {
  1744. switch (ele1.kindCode) {
  1745. case 'D4':
  1746. case 'SY_FJ_YBW2':
  1747. ele2.amount = ele1.unitAmount;
  1748. break;
  1749. case "MJ1":
  1750. case "MJ2":
  1751. case "MJ3":
  1752. case "MJ4":
  1753. ele2.amount = ele1.deductibleRate;
  1754. break;
  1755. case "TY1":
  1756. case "TY2":
  1757. case "TY3":
  1758. case "TY4":
  1759. ele2.amount = ele1.serviceTimes;
  1760. ele2.amountDesc = ele1.serviceTimes +
  1761. '次'
  1762. break;
  1763. default:
  1764. ele2.amount = ele1.amount;
  1765. }
  1766. }
  1767. })
  1768. })
  1769. }
  1770. }
  1771. }
  1772. })
  1773. }
  1774. const storage = uni.getStorageSync('historyInfo');
  1775. if (storage) {
  1776. Object.keys(storage).forEach(key => {
  1777. this[key] = storage[key]
  1778. })
  1779. } else {
  1780. this.commpanyList();
  1781. }
  1782. },
  1783. onHide() {
  1784. let historyInfo = {
  1785. quoteno: this.quoteno,
  1786. orderno: this.orderno,
  1787. totalCompanyList: this.totalCompanyList,
  1788. zijinInsuranceData: this.zijinInsuranceData, //紫金意外险list
  1789. zijinaccidentalDrivingVo: this.zijinaccidentalDrivingVo, //紫金意外险
  1790. anshengprogrammeData: this.anshengprogrammeData,
  1791. anshengInsuranceData: this.anshengInsuranceData, //安盛意外险list
  1792. anshengaccidentalDrivingVo: this.anshengaccidentalDrivingVo, //安盛意外险
  1793. yongchengInsuranceData: this.yongchengInsuranceData, //永诚意外险list
  1794. yongchengaccidentalDrivingVo: this.yongchengaccidentalDrivingVo, //永诚意外险
  1795. zhonganInsuranceData: this.zhonganInsuranceData, //-众安意外险list
  1796. zhonganaccidentalDrivingVo: this.zhonganaccidentalDrivingVo, //众安意外险
  1797. hengbangInsuranceData: this.hengbangInsuranceData, //-恒邦意外险list
  1798. hengbangaccidentalDrivingVo: this.hengbangaccidentalDrivingVo, //恒邦意外险
  1799. renshouInsuranceData: this.renshouInsuranceData, //-人寿意外险list
  1800. renshouaccidentalDrivingVo: this.renshouaccidentalDrivingVo, //人寿意外险
  1801. }
  1802. let res = delEmptyQueryNodes(historyInfo);
  1803. uni.setStorageSync('historyInfo', res);
  1804. uni.removeStorageSync("companyId")
  1805. },
  1806. methods: {
  1807. priceComparison() {
  1808. this.priceComparisonShow = true;
  1809. },
  1810. priceComparison1() {
  1811. this.totalCompanyList.map(ele => {
  1812. if (ele.quoteCode == 200) {
  1813. ele.isComparableshowHide = true;
  1814. }
  1815. return ele;
  1816. })
  1817. },
  1818. priceComparison2() {
  1819. let subOrderNoslist = [];
  1820. this.totalCompanyList.map(ele => {
  1821. if (ele.isComparableShow) {
  1822. subOrderNoslist.push(ele.result.companyId);
  1823. }
  1824. return ele;
  1825. })
  1826. uni.navigateTo({
  1827. url: `/pages/orders1/priceComparison?subOrderNoslist=${JSON.stringify(subOrderNoslist)}`
  1828. })
  1829. },
  1830. async coordinateValue() {
  1831. let location = uni.getStorageSync('location');
  1832. let params = {
  1833. subOrderNo: this.subOrderId,
  1834. lng: location.longitude,
  1835. lat: location.latitude,
  1836. }
  1837. let orders = await this.$http.post('/insurance/order/savePosition', params);
  1838. },
  1839. async tempSave() {
  1840. let param = {
  1841. userId: this.userInfo.sysUser.id,
  1842. quoteno: this.quoteno ? this.quoteno : "",
  1843. orderNo: this.orderno ? this.orderno : "",
  1844. carInfo: this.carInfo,
  1845. insuredPersonInfo: this.insuredPersonInfo,
  1846. ownerInfo: this.ownerInfo,
  1847. policyHolderInfo: this.policyHolderInfo,
  1848. kindList: this.kindList,
  1849. riskList: this.riskList,
  1850. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  1851. };
  1852. let orders = await this.$http.post('/insurance/order/generateOrder', param);
  1853. if (orders.code == '200') {
  1854. uni.showToast({
  1855. title: '暂存成功',
  1856. icon: 'none',
  1857. });
  1858. } else {
  1859. uni.showToast({
  1860. title: res.msg,
  1861. icon: 'none',
  1862. });
  1863. }
  1864. },
  1865. isDateBeforeToday(date) {
  1866. const inputDate = new Date(date); // 将输入的日期转换为 Date 对象
  1867. const today = new Date(); // 获取当前日期
  1868. // 比较日期是否小于当前日期
  1869. if (inputDate < today) {
  1870. return true; // 输入日期小于当前日期
  1871. } else {
  1872. return false; // 输入日期大于等于当前日期
  1873. }
  1874. },
  1875. Guidedconfirm() {
  1876. this.toInsureItems();
  1877. },
  1878. jqImmediate(value) {
  1879. if (value) {
  1880. this.riskList.push({
  1881. amount: 0,
  1882. endDate: this.jqendDate,
  1883. instantFlag: "0",
  1884. premium: 0,
  1885. riskCode: "0507",
  1886. startDate: this.jqstartDate,
  1887. })
  1888. } else {
  1889. let list = this.riskList.filter(item => item.riskCode !== "0507");
  1890. this.riskList = list;
  1891. }
  1892. },
  1893. syImmediate(value) {
  1894. if (value) {
  1895. this.GuidedPopShow = true;
  1896. } else {
  1897. let list = this.riskList.filter(item => item.riskCode !== "0510");
  1898. this.riskList = list;
  1899. }
  1900. },
  1901. immediatelyClick(name) {
  1902. this.carInfo[name] = !this.carInfo[name];
  1903. if (this.carInfo[name]) {
  1904. this.carInfo.transferDate = this.carInfo.issueDate;
  1905. } else {
  1906. this.carInfo.transferDate = "";
  1907. }
  1908. },
  1909. preUnderwriting(list) {
  1910. this.RSpreUnderwritingList = list;
  1911. this.preUnderwritingshow = true;
  1912. },
  1913. // SelectAll(e) {
  1914. // this.totalCompanyList.map((ele, index) => {
  1915. // e.value ? ele.checked = true : ele.checked = false;
  1916. // this.checkboxChange(e, ele.id, ele.cnName, index)
  1917. // })
  1918. // },
  1919. jqstartconfirm(e) {
  1920. this.jqstartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
  1921. this.jqendDate = this.oneYearPast(this.jqstartDate)
  1922. },
  1923. systartconfirm(e) {
  1924. this.systartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
  1925. this.syendDate = this.oneYearPast(this.systartDate)
  1926. },
  1927. transferconfirm(e) {
  1928. this.carInfo.transferDate = e.year + '-' + e.month + '-' + e.day;
  1929. },
  1930. //影像查询
  1931. async imageEcho(quotenos) {
  1932. let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
  1933. if (imgres.code == "200") {
  1934. Object.keys(imgres.data).forEach((keys) => {
  1935. if (imgres.data[keys].url) {
  1936. imgres.data[keys].url = this.$base.baseUrl + imgres.data[keys].url;
  1937. switch (keys) {
  1938. case 'C01':
  1939. this.carInfoPositiveList.push({
  1940. imageId: imgres.data[keys].imageId,
  1941. imageType: imgres.data[keys].imageType,
  1942. })
  1943. break;
  1944. case 'D01':
  1945. this.carInfoPositiveList.push({
  1946. imageId: imgres.data[keys].imageId,
  1947. imageType: imgres.data[keys].imageType,
  1948. })
  1949. break;
  1950. case 'C02':
  1951. this.ownerInfoPositiveList.push({
  1952. imageId: imgres.data[keys].imageId,
  1953. imageType: imgres.data[keys].imageType,
  1954. });
  1955. break;
  1956. case 'D02':
  1957. this.ownerInfoPositiveList.push({
  1958. imageId: imgres.data[keys].imageId,
  1959. imageType: imgres.data[keys].imageType,
  1960. });
  1961. break;
  1962. case 'C03':
  1963. this.policyHolderInfoPositiveList.push({
  1964. imageId: imgres.data[keys].imageId,
  1965. imageType: imgres.data[keys].imageType,
  1966. });
  1967. break;
  1968. case 'D03':
  1969. this.policyHolderInfoPositiveList.push({
  1970. imageId: imgres.data[keys].imageId,
  1971. imageType: imgres.data[keys].imageType,
  1972. });
  1973. break;
  1974. case 'C04':
  1975. this.insuredPersonInfoPositiveList.push({
  1976. imageId: imgres.data[keys].imageId,
  1977. imageType: imgres.data[keys].imageType,
  1978. });
  1979. break;
  1980. case 'D04':
  1981. this.insuredPersonInfoPositiveList.push({
  1982. imageId: imgres.data[keys].imageId,
  1983. imageType: imgres.data[keys].imageType,
  1984. });
  1985. break;
  1986. default:
  1987. break;
  1988. }
  1989. }
  1990. });
  1991. }
  1992. },
  1993. //查看详情
  1994. querydetial(id) {
  1995. this.navigate({
  1996. url: "/pages/carInsure2/quoteDetail?companyId=" + id
  1997. },
  1998. "navigateTo", true);
  1999. },
  2000. //报价单
  2001. bjdpreview(id) {
  2002. let pro = this.quotationType.themeCode;
  2003. if (pro == "QD") {
  2004. uni.navigateTo({
  2005. url: "/pages/orders1/quotation?companyId=" + id
  2006. })
  2007. } else {
  2008. uni.navigateTo({
  2009. url: "/pages/orders1/quotation1?companyId=" + id
  2010. })
  2011. }
  2012. },
  2013. //选择协议
  2014. selectConfirm(e, index) {
  2015. this.totalCompanyList[index].agreementId = e[0].value;
  2016. this.totalCompanyList[index].agreementName = e[0].label;
  2017. this.totalCompanyList[index].apiType = e[0].extra;
  2018. },
  2019. //国任特约
  2020. async guoRencontributing(id) {
  2021. let guoRen = await this.$http.post('/api/guoRen/queryClauseData', {
  2022. agreementId: id,
  2023. })
  2024. if (guoRen.code == '200') {
  2025. this.guoRenSpecialAgreementData = guoRen.data;
  2026. this.guoRencontributingshow = true;
  2027. }
  2028. },
  2029. guoRencontributingChange(param) {
  2030. this.guoRenSpecialAgreementVo = [];
  2031. param.map(val => {
  2032. let list = this.guoRenSpecialAgreementData.find(item => item.clauseCode == val)
  2033. this.guoRenSpecialAgreementVo.push({
  2034. clauseCode: list.clauseCode,
  2035. clauses: list.clauses,
  2036. clausesContext: list.clausesContext,
  2037. riskCode: list.riskCode,
  2038. riskName: list.riskName,
  2039. })
  2040. })
  2041. },
  2042. priceComparisonChange(index, item) {
  2043. console.log(index, item);
  2044. this.priceCtitle = "去比价";
  2045. if (!item.isComparableDisabled) {
  2046. item.isComparableShow = !item.isComparableShow;
  2047. if (item.isComparableShow) {
  2048. this.selectedCount++;
  2049. } else {
  2050. this.selectedCount--;
  2051. }
  2052. this.updateCheckboxStates();
  2053. }
  2054. },
  2055. updateCheckboxStates() {
  2056. this.totalCompanyList.forEach(item => {
  2057. item.isComparableDisabled = this.selectedCount >= 3 && !item.isComparableShow;
  2058. });
  2059. },
  2060. /**
  2061. * 选择保险公司方法
  2062. * @param {String} event change选中事件
  2063. * @param {String} code 保险公司ID
  2064. * @param {String} name 保险公司主体全拼
  2065. * @param {String} index 选中下标
  2066. */
  2067. async checkboxChange(code, name, index) {
  2068. this.totalCompanyList[index].checked = !this.totalCompanyList[index].checked;
  2069. let value = this.totalCompanyList[index].checked;
  2070. if (value) {
  2071. let ins = this.totalCompanyList[index].namesimple;
  2072. let list = this.totalCompanyList[index].agreement;
  2073. list.map(ele => {
  2074. ele.extra = ele.apiType;
  2075. return ele;
  2076. })
  2077. this.totalCompanyList[index].agreement = list;
  2078. this.totalCompanyList[index].agreementId = this.totalCompanyList[index].agreement[0].id;
  2079. this.totalCompanyList[index].agreementName = this.totalCompanyList[index].agreement[0]
  2080. .agreementName;
  2081. this.totalCompanyList[index].apiType = this.totalCompanyList[index].agreement[0].extra;
  2082. this.totalCompanyList[index].underwritingDescription = this.totalCompanyList[index].agreement[0]
  2083. .underwritingDescription;
  2084. let ruleThirdPartyInsurance = this.kindList.find(val => val.kindCode == 'B'); //获取三者保额
  2085. switch (ins) {
  2086. case '永诚财险':
  2087. let yccallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
  2088. agreementId: this.totalCompanyList[index].agreement[0].id,
  2089. companyCode: code,
  2090. ruleSeatNum: Number(this.carInfo.seatCount),
  2091. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  2092. .amount : '',
  2093. ruleUseNature: this.carInfo.carnature,
  2094. kind: this.kindList,
  2095. risk: this.riskList,
  2096. });
  2097. if (yccallback.code == '200') {
  2098. let data = yccallback.data;
  2099. data.map(ele => {
  2100. ele.quantity = 1;
  2101. return ele;
  2102. })
  2103. this.yongchengInsuranceData = data;
  2104. const defaultProject = findDefaultProject(data);
  2105. if (JSON.stringify(defaultProject.result) !== "{}") {
  2106. this.totalCompanyList[index].jychecked = true;
  2107. this.yongchengInsuranceData = defaultProject.list;
  2108. this.yongchengaccidentalDrivingVo = defaultProject.result;
  2109. } else {
  2110. this.yongchengInsuranceData = data;
  2111. this.yongchengaccidentalDrivingVo = data[0];
  2112. }
  2113. }
  2114. break;
  2115. case '紫金财险':
  2116. let zjcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
  2117. agreementId: this.totalCompanyList[index].agreement[0].id,
  2118. companyCode: code,
  2119. ruleSeatNum: Number(this.carInfo.seatCount),
  2120. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  2121. .amount : '',
  2122. ruleUseNature: this.carInfo.carnature,
  2123. kind: this.kindList,
  2124. risk: this.riskList,
  2125. });
  2126. if (zjcallback.code == '200') {
  2127. let data = zjcallback.data;
  2128. data.map(ele => {
  2129. ele.quantity = 1;
  2130. return ele;
  2131. })
  2132. this.zijinInsuranceData = data;
  2133. const defaultProject = findDefaultProject(data);
  2134. if (JSON.stringify(defaultProject.result) !== "{}") {
  2135. this.totalCompanyList[index].jychecked = true;
  2136. this.zijinaccidentalDrivingVo.push(defaultProject.result);
  2137. } else {
  2138. this.zijinaccidentalDrivingVo = [];
  2139. }
  2140. }
  2141. break;
  2142. case '安盛天平':
  2143. let ascallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
  2144. agreementId: this.totalCompanyList[index].agreement[0].id,
  2145. companyCode: code,
  2146. ruleSeatNum: Number(this.carInfo.seatCount),
  2147. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  2148. .amount : '',
  2149. ruleUseNature: this.carInfo.carnature,
  2150. kind: this.kindList,
  2151. risk: this.riskList,
  2152. });
  2153. if (ascallback.code == '200') {
  2154. let data = ascallback.data;
  2155. data.map(ele => {
  2156. ele.children.map(val => {
  2157. val.quantity = 1;
  2158. })
  2159. return ele;
  2160. })
  2161. this.anshengprogrammeData = data;
  2162. const defaultProject = findDefaultProject(data);
  2163. if (JSON.stringify(defaultProject.result) !== "{}") {
  2164. this.totalCompanyList[index].jychecked = true;
  2165. this.anshengInsuranceData = defaultProject.list;
  2166. this.anshengaccidentalDrivingVo = defaultProject.result;
  2167. } else {
  2168. this.anshengaccidentalDrivingVo = {
  2169. parentCode: data[0].projectCode, //驾意险商品号
  2170. parentName: data[0].projectName, //驾意险商品名称
  2171. ...data[0].children[0]
  2172. }
  2173. this.anshengInsuranceData = data[0].children;
  2174. }
  2175. }
  2176. break;
  2177. case '国任财险':
  2178. let grcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
  2179. agreementId: this.totalCompanyList[index].agreement[0].id,
  2180. companyCode: code,
  2181. ruleSeatNum: Number(this.carInfo.seatCount),
  2182. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  2183. .amount : '',
  2184. ruleUseNature: this.carInfo.carnature,
  2185. kind: this.kindList,
  2186. risk: this.riskList,
  2187. });
  2188. if (grcallback.code == '200') {
  2189. let data = grcallback.data;
  2190. data.map(ele => {
  2191. ele.children.map(val => {
  2192. val.quantity = 1;
  2193. })
  2194. return ele;
  2195. })
  2196. this.guorenprogrammeData = data;
  2197. const defaultProject = findDefaultProject(data);
  2198. if (JSON.stringify(defaultProject.result) !== "{}") {
  2199. this.totalCompanyList[index].jychecked = true;
  2200. this.guoRenInsuranceData = defaultProject.list;
  2201. this.guoRenaccidentalDrivingVo = defaultProject.result;
  2202. } else {
  2203. this.guoRenaccidentalDrivingVo = {
  2204. parentCode: data[0].projectCode, //驾意险商品号
  2205. parentName: data[0].projectName, //驾意险商品名称
  2206. ...data[0].children[0]
  2207. }
  2208. this.guoRenInsuranceData = data[0].children;
  2209. }
  2210. }
  2211. break;
  2212. case '大家财险':
  2213. let djcallback = await this.$http.post('/api/dajia/accidentalDrivingList', {
  2214. agreementId: this.totalCompanyList[index].agreement[0].id
  2215. });
  2216. if (djcallback.code == '200') {
  2217. let data = djcallback.data;
  2218. data.map(ele => {
  2219. ele.quantity = 1;
  2220. return ele;
  2221. })
  2222. this.dajiaInsuranceData = data;
  2223. this.dajiaaccidentalDrivingVo = {
  2224. rideRiskCode: data[0].id,
  2225. rideRiskName: data[0].productName,
  2226. quantity: data[0].quantity,
  2227. price: data[0].price,
  2228. };
  2229. }
  2230. break;
  2231. case '中煤财险':
  2232. let zmcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
  2233. agreementId: this.totalCompanyList[index].agreement[0].id,
  2234. companyCode: code,
  2235. ruleSeatNum: Number(this.carInfo.seatCount),
  2236. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  2237. .amount : '',
  2238. ruleUseNature: this.carInfo.carnature,
  2239. kind: this.kindList,
  2240. risk: this.riskList,
  2241. });
  2242. if (zmcallback.code == '200') {
  2243. let data = zmcallback.data;
  2244. data.map(ele => {
  2245. ele.quantity = 1;
  2246. return ele;
  2247. })
  2248. this.zhongmeiInsuranceData = data;
  2249. this.zhongmeiaccidentalDrivingVo = {
  2250. rideRiskCode: data[0].rideRiskCode,
  2251. rideRiskName: data[0].rideRiskName,
  2252. quantity: data[0].quantity,
  2253. maxQuantity: data[0].maxQuantity,
  2254. unitPremium: data[0].unitPremium,
  2255. };
  2256. const defaultProject = findDefaultProject(data);
  2257. if (JSON.stringify(defaultProject.result) !== "{}") {
  2258. this.totalCompanyList[index].jychecked = true;
  2259. this.zhongmeiInsuranceData = defaultProject.list;
  2260. this.zhongmeiaccidentalDrivingVo = defaultProject.result;
  2261. } else {
  2262. this.zhongmeiInsuranceData = data;
  2263. this.zhongmeiaccidentalDrivingVo = data[0];
  2264. }
  2265. }
  2266. break;
  2267. case '渤海财险':
  2268. let bhcallback = await this.$http.post('/order/boHaiApi/productQuery', {
  2269. agreementId: this.totalCompanyList[index].agreement[0].id,
  2270. insuredPersonInfo: this.insuredPersonInfo,
  2271. policyHolderInfo: this.policyHolderInfo,
  2272. carnature: this.carInfo.carnature,
  2273. cimodelclass: this.carInfo.cimodelclass,
  2274. exhaustScale: this.carInfo.enginedesc,
  2275. limitLoad: "",
  2276. powerScale: this.carInfo.powerScale,
  2277. seatCount: Number(this.carInfo.seatCount),
  2278. vehicleUse: this.carInfo.vehicleUse,
  2279. });
  2280. if (bhcallback.code == '200') {
  2281. let data = bhcallback.data;
  2282. data.map(ele => {
  2283. ele.copies = 1;
  2284. return ele;
  2285. })
  2286. this.bohaiInsuranceData = data;
  2287. this.bohaiaccidentalDrivingVo = {
  2288. packageCode: data[0].packageCode,
  2289. productCode: data[0].productCode,
  2290. copies: data[0].copies,
  2291. premium: data[0].premium,
  2292. packageName: data[0].packageName,
  2293. };
  2294. }
  2295. break;
  2296. case '中国人寿':
  2297. case '恒邦财险':
  2298. case '众安财险':
  2299. case '太平财险':
  2300. case '华农财险':
  2301. case '泰康财险':
  2302. let Insurancecallback = await this.$http.post(
  2303. '/api/drivingInsurance/getDrivingInsuranceRule', {
  2304. agreementId: this.totalCompanyList[index].agreement[0].id,
  2305. companyCode: code,
  2306. ruleSeatNum: Number(this.carInfo.seatCount),
  2307. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  2308. .amount : '',
  2309. ruleUseNature: this.carInfo.carnature,
  2310. kind: this.kindList,
  2311. risk: this.riskList,
  2312. });
  2313. if (Insurancecallback.code == 200) {
  2314. let data = Insurancecallback.data;
  2315. data.map(ele => {
  2316. ele.quantity = 1;
  2317. return ele;
  2318. })
  2319. const defaultProject = findDefaultProject(data);
  2320. if (JSON.stringify(defaultProject.result) !== "{}") {
  2321. this.totalCompanyList[index].jychecked = true;
  2322. this[name + "InsuranceData"] = defaultProject.list;
  2323. this[name + 'accidentalDrivingVo'] = defaultProject.result;
  2324. } else {
  2325. this[name + "InsuranceData"] = data;
  2326. this[name + 'accidentalDrivingVo'] = data[0];
  2327. }
  2328. // if (ins == '华农财险') {
  2329. // data.map(ele => {
  2330. // ele.accidentType = "";
  2331. // ele.allQuantity = 1;
  2332. // return ele;
  2333. // })
  2334. // data[0].accidentType = data[0].planCode;
  2335. // } else {
  2336. // data.map(ele => {
  2337. // ele.quantity = 1;
  2338. // return ele;
  2339. // })
  2340. // }
  2341. }
  2342. break;
  2343. default:
  2344. break;
  2345. }
  2346. }
  2347. },
  2348. //驾意险勾选框
  2349. /**
  2350. * @param {boolean} event //是否选中
  2351. * @param {string} code //保险公司code
  2352. * @param {string} name //字段关键词
  2353. * @param {string} index //当前勾选保险公司下标
  2354. */
  2355. async accidentChange(event, code, name, index) {
  2356. this.totalCompanyList[index].jychecked = event;
  2357. },
  2358. checkboxChangeInfo(event, index) {
  2359. this.totalCompanyList[index].jychecked = event.value;
  2360. },
  2361. //中煤
  2362. ZMradioChange(id) {
  2363. this.zhongmeiaccidentalDrivingVo = this.zhongmeiInsuranceData.find(val => val.projectCode == id)
  2364. this.zhongmeiPopupshow = false;
  2365. },
  2366. //渤海意外险
  2367. BHradioChange(id) {
  2368. let info = this.bohaiInsuranceData.find(val => val.productCode == id)
  2369. this.bohaiaccidentalDrivingVo = {
  2370. packageCode: info.packageCode,
  2371. productCode: info.productCode,
  2372. copies: info.copies,
  2373. packageName: info.packageName,
  2374. premium: info.premium,
  2375. }
  2376. this.bohaiPopupshow = false;
  2377. },
  2378. //人寿意外险
  2379. RSradioChange(id) {
  2380. this.renshouaccidentalDrivingVo = this.renshouInsuranceData.find(val => val.projectCode == id)
  2381. this.renshouPopupshow = false;
  2382. },
  2383. //恒邦意外险
  2384. HBradioChange(id) {
  2385. this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(val => val.projectCode ==
  2386. id)
  2387. this.hengbangPopupshow = false;
  2388. },
  2389. //众安意外险
  2390. ZAradioChange(id) {
  2391. this.zhonganaccidentalDrivingVo = this.zhonganInsuranceData.find(val => val.projectCode == id)
  2392. this.zhonganPopupshow = false;
  2393. },
  2394. //华农驾意险
  2395. HNradioChange(id) {
  2396. this.huanongaccidentalDrivingVo = this.huanongInsuranceData.find(val => val.projectCode == id);
  2397. this.huanongaccidentalDrivingVo.accidentType = this.huanongaccidentalDrivingVo.planCode;
  2398. this.huanongPopupshow = false;
  2399. },
  2400. //大家意外险
  2401. DJradioChange(id) {
  2402. let info = this.dajiaInsuranceData.find(val => val.id == id)
  2403. this.dajiaaccidentalDrivingVo = {
  2404. rideRiskCode: info.id,
  2405. rideRiskName: info.productName,
  2406. quantity: info.quantity,
  2407. price: info.price,
  2408. };
  2409. this.dajiaPopupshow = false;
  2410. },
  2411. TPradioChange(id) {
  2412. this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.projectCode == id)
  2413. this.taipingPopupshow = false;
  2414. },
  2415. TkradioChange(id) {
  2416. this.taikangaccidentalDrivingVo = this.taikangInsuranceData.find(val => val.projectCode == id)
  2417. this.taikangPopupshow = false;
  2418. },
  2419. //永诚意外险
  2420. YCradioChange(id) {
  2421. this.yongchengaccidentalDrivingVo = this.yongchengInsuranceData.find(val => val.projectCode == id)
  2422. this.yongchengPopupshow = false;
  2423. },
  2424. //安盛一级选择
  2425. ASprogrammeradioChange(id) {
  2426. let info = this.anshengprogrammeData.find((val => val.projectCode == id))
  2427. this.anshengPopupshow = false;
  2428. this.anshengaccidentalDrivingVo.parentCode = info.projectCode;
  2429. this.anshengaccidentalDrivingVo.parentName = info.projectName;
  2430. if (info.children) {
  2431. this.anshengInsuranceData = info.children;
  2432. Object.assign(this.anshengaccidentalDrivingVo, info.children[0]);
  2433. } else {
  2434. this.anshengInsuranceData = []
  2435. }
  2436. },
  2437. //安盛二级选择
  2438. ASInsuranceradioChange(id) {
  2439. let info = this.anshengInsuranceData.find((val => val.projectCode == id))
  2440. Object.assign(this.anshengaccidentalDrivingVo, info);
  2441. this.anshengPopupshow1 = false;
  2442. },
  2443. //国任一级选择
  2444. async GRprogrammeradioChange(id) {
  2445. let info = this.guorenprogrammeData.find((val => val.projectCode == id))
  2446. this.guorenPopupshow = false;
  2447. this.guoRenaccidentalDrivingVo.parentCode = info.projectCode;
  2448. this.guoRenaccidentalDrivingVo.parentName = info.projectName;
  2449. if (info.children) {
  2450. this.guoRenInsuranceData = info.children;
  2451. Object.assign(this.guoRenaccidentalDrivingVo, info.children[0]);
  2452. } else {
  2453. this.guoRenInsuranceData = []
  2454. }
  2455. },
  2456. //国任二级选择
  2457. GRInsuranceradioChange(id) {
  2458. let info = this.guoRenInsuranceData.find((val => val.projectCode == id))
  2459. Object.assign(this.guoRenaccidentalDrivingVo, info);
  2460. this.guorenPopupshow1 = false;
  2461. },
  2462. //紫金意外险
  2463. ZJcheckboxGroupChange(detail) {
  2464. this.zijinaccidentalDrivingVo = [];
  2465. detail.map(val => {
  2466. let list = this.zijinInsuranceData.find(item => item.projectCode == val)
  2467. this.zijinaccidentalDrivingVo.push(list)
  2468. })
  2469. },
  2470. //获取保险公司列表
  2471. async commpanyList() {
  2472. let commpanykad = await this.$http.get('/tax/manager/getAllAgreement');
  2473. commpanykad.data.map(ele => {
  2474. ele["result"] = {};
  2475. ele["quoteCode"] = 0;
  2476. ele["checked"] = false;
  2477. ele["jychecked"] = false;
  2478. ele["msg"] = "";
  2479. ele["agreementId"] = "";
  2480. ele["lastYearMsg"] = "";
  2481. ele["agreementName"] = "";
  2482. ele["apiType"] = "";
  2483. ele["coefficient"] = "";
  2484. ele["syAdjustRate"] = "";
  2485. ele["selectShow"] = false;
  2486. ele['underwritingDescription'] = "";
  2487. ele['isComparableShow'] = false;
  2488. ele['isComparableshowHide'] = false;
  2489. ele['isComparableDisabled'] = false;
  2490. })
  2491. if (this.insAreaCompanyEditingDtos.length > 0) {
  2492. commpanykad.data.forEach((val, index) => {
  2493. this.insAreaCompanyEditingDtos.map(ele => {
  2494. if (val.namesimple == ele.inscompany) {
  2495. commpanykad.data[index].quoteCode = 200;
  2496. commpanykad.data[index].result = ele;
  2497. }
  2498. })
  2499. })
  2500. }
  2501. // //险种合并集合
  2502. // const combinedArray = [
  2503. // ...this.riskList.map(item => item.riskCode),
  2504. // ...this.kindList.map(item => item.kindCode),
  2505. // ];
  2506. // commpanykad.data = commpanykad.data.filter(obj => {
  2507. // obj.agreement = obj.agreement.filter(agreementObj => {
  2508. // // 险种配置为空,则过滤掉该协议
  2509. // if (agreementObj.productsCodes == null) {
  2510. // return false;
  2511. // }
  2512. // return agreementObj.productsCodes.some(item => combinedArray.includes(item));
  2513. // });
  2514. // return obj.agreement.length > 0; // 返回true保留,返回false移除该保险公司
  2515. // });
  2516. this.totalCompanyList = commpanykad.data;
  2517. },
  2518. async toNext() {
  2519. var allAreFalse = this.totalCompanyList.every(function(element) {
  2520. return element.checked === false;
  2521. });
  2522. if (!allAreFalse) {
  2523. this.priceCtitle = '比价'
  2524. this.totalCompanyList.map((ele) => {
  2525. ele.isComparableShow = false;
  2526. ele.isComparableshowHide = false;
  2527. return ele;
  2528. })
  2529. this.OrderStageProcessing();
  2530. } else {
  2531. uni.showToast({
  2532. title: "请选择保险公司后,在进行报价",
  2533. icon: 'none',
  2534. });
  2535. }
  2536. },
  2537. async OrderStageProcessing() {
  2538. this.riskList.map(val => {
  2539. if (val.riskCode == '0507') {
  2540. val.startDate = this.jqstartDate;
  2541. val.endDate = this.jqendDate;
  2542. } else if (val.riskCode == '0510') {
  2543. val.startDate = this.systartDate;
  2544. val.endDate = this.syendDate;
  2545. }
  2546. })
  2547. let param = {
  2548. userId: this.userInfo.sysUser.id,
  2549. quoteno: this.quoteno ? this.quoteno : "",
  2550. orderNo: this.orderno ? this.orderno : "",
  2551. carInfo: this.carInfo,
  2552. insuredPersonInfo: this.insuredPersonInfo,
  2553. ownerInfo: this.ownerInfo,
  2554. policyHolderInfo: this.policyHolderInfo,
  2555. kindList: this.kindList,
  2556. riskList: this.riskList,
  2557. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2558. };
  2559. let orders = await this.$http.post('/insurance/order/generateOrder', param);
  2560. if (orders.code == '200') {
  2561. this.orderno = orders.data.orderno;
  2562. this.quoteno = orders.data.quoteno;
  2563. let mergedArray = [];
  2564. let mergedArrayList = mergedArray.concat(this.carInfoPositiveList, this
  2565. .ownerInfoPositiveList, this
  2566. .policyHolderInfoPositiveList, this.insuredPersonInfoPositiveList)
  2567. if (mergedArrayList.length > 0) {
  2568. await this.$http.post('/ins/taskImage/uploadImages', {
  2569. imageList: mergedArrayList,
  2570. quoteNo: this.quoteno,
  2571. })
  2572. }
  2573. this.totalCompanyList.map((ele, index) => {
  2574. if (ele.checked) {
  2575. //动态调用报价接口
  2576. ele.quoteCode = "1";
  2577. this.ToolClickFun(ele.cnName, index, ele.id);
  2578. }
  2579. });
  2580. } else if (orders.code == '1001') {
  2581. this.Generateshow = true;
  2582. } else {
  2583. uni.showToast({
  2584. title: orders.msg,
  2585. icon: 'none',
  2586. });
  2587. }
  2588. },
  2589. GenerateModalConfirm() {
  2590. this.orderno = "";
  2591. this.quoteno = "";
  2592. this.toNext();
  2593. },
  2594. //动态函数
  2595. async ToolClickFun(MethodName, Parameter, companyId) {
  2596. await this[`${MethodName}`](Parameter, companyId)
  2597. let filteredObjects = [];
  2598. this.totalCompanyList.map(ele => {
  2599. if (ele.quoteCode == 200) {
  2600. filteredObjects.push(ele.result.companyId)
  2601. }
  2602. return ele;
  2603. })
  2604. this.comparableQuantity = filteredObjects.length;
  2605. },
  2606. //永安报价
  2607. async yongan(num, id) {
  2608. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2609. let params = {
  2610. orderNo: this.orderno,
  2611. companyId: id,
  2612. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2613. };
  2614. let quote = await this.$http('/order/yongAn/quote', params);
  2615. if (quote.msg == "重复投保" && quote.code == "501") {
  2616. if (!!quote.data.jqStartDate && !quote.data.syStartDate) {
  2617. this.jqstartDate = quote.data.jqStartDate;
  2618. this.jqendDate = quote.data.jqEndDate;
  2619. if (this.riskList.length > 0) {
  2620. for (let i = 0; i < this.riskList.length; i++) {
  2621. if (this.riskList[i].riskCode == "0507") {
  2622. this.riskList[i].startDate = quote.data.jqStartDate;
  2623. this.riskList[i].endDate = quote.data.jqEndDate;
  2624. }
  2625. }
  2626. }
  2627. let param = {
  2628. userId: this.userInfo.sysUser.id,
  2629. quoteno: this.quoteno,
  2630. orderNo: this.orderno,
  2631. carInfo: this.carInfo,
  2632. insuredPersonInfo: this.insuredPersonInfo,
  2633. ownerInfo: this.ownerInfo,
  2634. policyHolderInfo: this.policyHolderInfo,
  2635. kindList: this.kindList,
  2636. riskList: this.riskList,
  2637. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2638. };
  2639. await this.$http.post('/insurance/order/generateOrder', param);
  2640. return this.yongan(num, id);
  2641. } else if (!!quote.data.syStartDate && !quote.data.jqStartDate) {
  2642. } else if (!!quote.data.syStartDate && !!quote.data.jqStartDate) {
  2643. } else {
  2644. this.totalCompanyList[num].quoteCode = "3";
  2645. this.totalCompanyList[num].msg = "重复投保";
  2646. }
  2647. } else if (quote.code == "500" || quote.code == "502" || quote.code ==
  2648. "-9999") {
  2649. this.totalCompanyList[num].quoteCode = "-9999";
  2650. this.totalCompanyList[num].msg = quote.msg;
  2651. } else {
  2652. this.totalCompanyList[num].quoteCode = 200;
  2653. this.totalCompanyList[num].result = quote.data;
  2654. this.subOrderId = quote.data.companyId;
  2655. this.coordinateValue();
  2656. }
  2657. },
  2658. //中煤报价
  2659. async zhongmei(num, id) {
  2660. let jychecked = this.totalCompanyList[num].jychecked;
  2661. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2662. let params = {
  2663. accidentalDrivingVo: jychecked ? this.zhongmeiaccidentalDrivingVo : {},
  2664. orderNo: this.orderno,
  2665. companyId: id,
  2666. agreementId: this.totalCompanyList[num].agreementId,
  2667. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2668. };
  2669. let res = await this.$http.post('/order/zhongMeiApi/quote', params);
  2670. this.totalCompanyList[num].msg = res.msg;
  2671. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  2672. this.totalCompanyList[num].quoteCode = "4";
  2673. this.totalCompanyList[num].msg = res.msg;
  2674. return;
  2675. } else if (
  2676. res.data == null &&
  2677. res.msg.indexOf("交强险平台返回") > -1 &&
  2678. res.msg.indexOf(";终保日期") > -1
  2679. ) {
  2680. let time =
  2681. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  2682. this.jqstartDate = time;
  2683. this.jqendDate = this.oneYearPast(time);
  2684. if (this.riskList.length > 0) {
  2685. for (let i = 0; i < this.riskList.length; i++) {
  2686. if (this.riskList[i].riskCode == "0507") {
  2687. this.riskList[i].startDate = time;
  2688. this.riskList[i].endDate = this.oneYearPast(time);
  2689. }
  2690. }
  2691. }
  2692. let param = {
  2693. userId: this.userInfo.sysUser.id,
  2694. quoteno: this.quoteno,
  2695. orderNo: this.orderno,
  2696. carInfo: this.carInfo,
  2697. insuredPersonInfo: this.insuredPersonInfo,
  2698. ownerInfo: this.ownerInfo,
  2699. policyHolderInfo: this.policyHolderInfo,
  2700. kindList: this.kindList,
  2701. riskList: this.riskList,
  2702. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2703. };
  2704. await this.$http.post('/insurance/order/generateOrder', param);
  2705. return this.zhongmei(num, id);
  2706. } else if (res.code == '200') {
  2707. if (res.data.warnMessageList != null && res.data.warnMessageList[
  2708. 0] != null && res.data
  2709. .warnMessageList[
  2710. 0] != "") {
  2711. this.totalCompanyList[num].lastYearMsg = "";
  2712. let dat = res.data.warnMessageList;
  2713. dat.map(ele => {
  2714. this.totalCompanyList[num].lastYearMsg += ele +
  2715. '<br>';
  2716. })
  2717. }
  2718. this.totalCompanyList[num].quoteCode = 200;
  2719. this.totalCompanyList[num].result = res.data;
  2720. this.subOrderId = res.data.companyId;
  2721. this.coordinateValue();
  2722. } else {
  2723. this.totalCompanyList[num].quoteCode = "3";
  2724. this.totalCompanyList[num].msg = res.msg;
  2725. return;
  2726. }
  2727. },
  2728. //渤海报价
  2729. async bohai(num, id) {
  2730. let jychecked = this.totalCompanyList[num].jychecked;
  2731. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2732. let params = {
  2733. accidentalDrivingVo: jychecked ? [this.bohaiaccidentalDrivingVo] : [],
  2734. orderNo: this.orderno,
  2735. companyId: id,
  2736. agreementId: this.totalCompanyList[num].agreementId,
  2737. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2738. };
  2739. let res = await this.$http.post('/order/boHaiApi/quote', params);
  2740. this.totalCompanyList[num].msg = res.msg;
  2741. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  2742. this.totalCompanyList[num].quoteCode = "4";
  2743. this.totalCompanyList[num].msg = res.msg;
  2744. return;
  2745. } else if (
  2746. res.data == null &&
  2747. res.msg.indexOf("交强险平台返回") > -1 &&
  2748. res.msg.indexOf(";终保日期") > -1
  2749. ) {
  2750. let time =
  2751. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  2752. this.jqstartDate = time;
  2753. this.jqendDate = this.oneYearPast(time);
  2754. if (this.riskList.length > 0) {
  2755. for (let i = 0; i < this.riskList.length; i++) {
  2756. if (this.riskList[i].riskCode == "0507") {
  2757. this.riskList[i].startDate = time;
  2758. this.riskList[i].endDate = this.oneYearPast(time);
  2759. }
  2760. }
  2761. }
  2762. let param = {
  2763. userId: this.userInfo.sysUser.id,
  2764. quoteno: this.quoteno,
  2765. orderNo: this.orderno,
  2766. carInfo: this.carInfo,
  2767. insuredPersonInfo: this.insuredPersonInfo,
  2768. ownerInfo: this.ownerInfo,
  2769. policyHolderInfo: this.policyHolderInfo,
  2770. kindList: this.kindList,
  2771. riskList: this.riskList,
  2772. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2773. };
  2774. await this.$http.post('/insurance/order/generateOrder', param);
  2775. return this.zhongmei(num, id);
  2776. } else if (res.code == '200') {
  2777. if (res.data.warnMessageList != null && res.data.warnMessageList[
  2778. 0] != null && res.data
  2779. .warnMessageList[
  2780. 0] != "") {
  2781. this.totalCompanyList[num].lastYearMsg = "";
  2782. let dat = res.data.warnMessageList;
  2783. dat.map(ele => {
  2784. this.totalCompanyList[num].lastYearMsg += ele +
  2785. '<br>';
  2786. })
  2787. }
  2788. this.totalCompanyList[num].quoteCode = 200;
  2789. this.totalCompanyList[num].result = res.data;
  2790. this.subOrderId = res.data.companyId;
  2791. this.coordinateValue();
  2792. } else {
  2793. this.totalCompanyList[num].quoteCode = "3";
  2794. this.totalCompanyList[num].msg = res.msg;
  2795. return;
  2796. }
  2797. },
  2798. //永诚报价
  2799. async yongcheng(num, id) {
  2800. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2801. let jychecked = this.totalCompanyList[num].jychecked;
  2802. let params = {
  2803. accidentalDrivingVo: jychecked ? this
  2804. .yongchengaccidentalDrivingVo : {},
  2805. orderNo: this.orderno,
  2806. companyId: id,
  2807. cqryCdeJq: this.cqryCdeJq,
  2808. cqryCdeSy: this.cqryCdeSy,
  2809. renewalCodeJq: this.renewalCodeJq,
  2810. renewalCodeSy: this.renewalCodeSy,
  2811. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2812. agreementId: this.totalCompanyList[num].agreementId,
  2813. };
  2814. let res = await this.$http.post('/api/yongCheng/quote', params);
  2815. this.totalCompanyList[num].msg = res.msg;
  2816. if (res.code == "200") {
  2817. if (res.data.warnMessageList != null && res.data
  2818. .warnMessageList[0] != null && res.data
  2819. .warnMessageList[
  2820. 0] != "") {
  2821. this.totalCompanyList[num].lastYearMsg = "";
  2822. let dat = res.data.warnMessageList;
  2823. dat.map(ele => {
  2824. this.totalCompanyList[num].lastYearMsg += ele +
  2825. '<br>';
  2826. })
  2827. }
  2828. this.totalCompanyList[num].quoteCode = 200;
  2829. this.totalCompanyList[num].result = res.data;
  2830. this.subOrderId = res.data.companyId;
  2831. this.coordinateValue();
  2832. } else if (res.code == "101") {
  2833. this.totalCompanyList[num].quoteCode = "101";
  2834. this.totalCompanyList[num].msg = res.msg;
  2835. this.cqryCdeJq = res.data.cqryCdeJq;
  2836. this.cqryCdeSy = res.data.cqryCdeSy;
  2837. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  2838. let jqBase64 = `data:image/png;base64,${jq}`;
  2839. this.renewalCodeJqImg = jqBase64;
  2840. if (res.data.renewalCodeSy) {
  2841. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  2842. let syBase64 = `data:image/png;base64,${sy}`;
  2843. this.renewalCodeSyImg = syBase64;
  2844. }
  2845. this.renewalCodedialogVisible = true;
  2846. } else {
  2847. this.totalCompanyList[num].quoteCode = "3";
  2848. this.totalCompanyList[num].msg = res.msg;
  2849. return;
  2850. }
  2851. },
  2852. //紫金报价
  2853. async zijin(num, id) {
  2854. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2855. let params = {
  2856. accidentalDrivingVo: this.zijinaccidentalDrivingVo,
  2857. orderNo: this.orderno,
  2858. companyId: id,
  2859. agreementId: this.totalCompanyList[num].agreementId,
  2860. coefficient: this.totalCompanyList[num].coefficient,
  2861. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2862. };
  2863. let res = await this.$http.post('/order/zijin/quote', params);
  2864. this.totalCompanyList[num].msg = res.msg;
  2865. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  2866. this.totalCompanyList[num].quoteCode = "4";
  2867. this.totalCompanyList[num].msg = res.msg;
  2868. return;
  2869. } else if (
  2870. res.data == null &&
  2871. res.msg.indexOf("交强险平台返回") > -1 &&
  2872. res.msg.indexOf(";终保日期") > -1
  2873. ) {
  2874. let time =
  2875. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) +
  2876. ":00";
  2877. this.jqstartDate = time;
  2878. this.jqendDate = this.oneYearPast(time);
  2879. this.systartDate = time;
  2880. this.syendDate = this.oneYearPast(time);
  2881. if (this.riskList.length > 0) {
  2882. for (let i = 0; i < this.riskList.length; i++) {
  2883. if (this.riskList[i].riskCode == "0507") {
  2884. this.riskList[i].startDate = time;
  2885. this.riskList[i].endDate = this.oneYearPast(
  2886. time);
  2887. } else if (this.riskList[i].riskCode == "0510") {
  2888. this.riskList[i].startDate = time;
  2889. this.riskList[i].endDate = this.oneYearPast(
  2890. time);
  2891. }
  2892. }
  2893. }
  2894. let param = {
  2895. userId: this.userInfo.sysUser.id,
  2896. quoteno: this.quoteno,
  2897. orderNo: this.orderno,
  2898. carInfo: this.carInfo,
  2899. insuredPersonInfo: this.insuredPersonInfo,
  2900. ownerInfo: this.ownerInfo,
  2901. policyHolderInfo: this.policyHolderInfo,
  2902. kindList: this.kindList,
  2903. riskList: this.riskList,
  2904. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2905. };
  2906. await this.$http.post('/insurance/order/generateOrder',
  2907. param);
  2908. return this.zijin(num, id);
  2909. } else if (res.code == '200') {
  2910. if (res.data.warnMessageList != null && res.data
  2911. .warnMessageList[0] != null && res.data
  2912. .warnMessageList[
  2913. 0] != "") {
  2914. this.totalCompanyList[num].lastYearMsg = "";
  2915. let dat = res.data.warnMessageList;
  2916. dat.map(ele => {
  2917. this.totalCompanyList[num].lastYearMsg +=
  2918. ele + '<br>';
  2919. })
  2920. }
  2921. this.totalCompanyList[num].quoteCode = 200;
  2922. this.totalCompanyList[num].result = res.data;
  2923. this.subOrderId = res.data.companyId;
  2924. this.coordinateValue();
  2925. } else {
  2926. this.totalCompanyList[num].quoteCode = "3";
  2927. this.totalCompanyList[num].msg = res.msg;
  2928. return;
  2929. }
  2930. },
  2931. //国任报价
  2932. async guoRen(num, id) {
  2933. let jychecked = this.totalCompanyList[num].jychecked;
  2934. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2935. let params = {
  2936. accidentalDrivingVo: jychecked ? this
  2937. .guoRenaccidentalDrivingVo : {},
  2938. orderNo: this.orderno,
  2939. companyId: id,
  2940. agreementId: this.totalCompanyList[num]
  2941. .agreementId,
  2942. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2943. guoRenSpecialAgreementVo: this.guoRenSpecialAgreementVo,
  2944. };
  2945. let res = await this.$http.post('/api/guoRen/quote',
  2946. params);
  2947. this.totalCompanyList[num].msg = res.msg;
  2948. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  2949. this.totalCompanyList[num].quoteCode = "4";
  2950. this.totalCompanyList[num].msg = res.msg;
  2951. return;
  2952. } else if (
  2953. res.data == null &&
  2954. res.msg.indexOf("交强险平台返回") > -1 &&
  2955. res.msg.indexOf(";终保日期") > -1
  2956. ) {
  2957. let time =
  2958. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) +
  2959. ":00";
  2960. this.jqstartDate = time;
  2961. this.jqendDate = this.oneYearPast(time);
  2962. this.systartDate = time;
  2963. this.syendDate = this.oneYearPast(time);
  2964. if (this.riskList.length > 0) {
  2965. for (let i = 0; i < this.riskList.length; i++) {
  2966. if (this.riskList[i].riskCode == "0507") {
  2967. this.riskList[i].startDate = time;
  2968. this.riskList[i].endDate = this
  2969. .oneYearPast(time);
  2970. } else if (this.riskList[i].riskCode ==
  2971. "0510") {
  2972. this.riskList[i].startDate = time;
  2973. this.riskList[i].endDate = this
  2974. .oneYearPast(time);
  2975. }
  2976. }
  2977. }
  2978. let param = {
  2979. userId: this.userInfo.sysUser.id,
  2980. quoteno: this.quoteno,
  2981. orderNo: this.orderno,
  2982. carInfo: this.carInfo,
  2983. insuredPersonInfo: this.insuredPersonInfo,
  2984. ownerInfo: this.ownerInfo,
  2985. policyHolderInfo: this.policyHolderInfo,
  2986. kindList: this.kindList,
  2987. riskList: this.riskList,
  2988. vehicleAndVesselTax: this
  2989. .vehicleAndVesselTaxForm,
  2990. };
  2991. await this.$http.post('/insurance/order/generateOrder',
  2992. param);
  2993. return this.guoRen(num, id);
  2994. } else if (res.code == '200') {
  2995. if (res.data.warnMessageList != null && res.data
  2996. .warnMessageList[0] != null && res.data
  2997. .warnMessageList[
  2998. 0] != "") {
  2999. this.totalCompanyList[num].lastYearMsg = "";
  3000. let dat = res.data.warnMessageList;
  3001. dat.map(ele => {
  3002. this.totalCompanyList[num]
  3003. .lastYearMsg += ele + '<br>';
  3004. })
  3005. }
  3006. this.totalCompanyList[num].quoteCode = 200;
  3007. this.totalCompanyList[num].result = res.data;
  3008. this.subOrderId = res.data.companyId;
  3009. this.coordinateValue();
  3010. } else {
  3011. this.totalCompanyList[num].quoteCode = "3";
  3012. this.totalCompanyList[num].msg = res.msg;
  3013. return;
  3014. }
  3015. },
  3016. //大家报价
  3017. async dajia(num, id) {
  3018. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  3019. let jychecked = this.totalCompanyList[num].jychecked
  3020. let params = {
  3021. accidentalDrivingVo: jychecked ? this
  3022. .dajiaaccidentalDrivingVo : {},
  3023. orderNo: this.orderno,
  3024. companyId: id,
  3025. cqryCdeJq: this.cqryCdeJq,
  3026. cqryCdeSy: this.cqryCdeSy,
  3027. renewalCodeJq: this.renewalCodeJq,
  3028. renewalCodeSy: this.renewalCodeSy,
  3029. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  3030. agreementId: this.totalCompanyList[num]
  3031. .agreementId,
  3032. };
  3033. let res = await this.$http.post('/api/dajia/quote',
  3034. params);
  3035. this.totalCompanyList[num].msg = res.msg;
  3036. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  3037. this.totalCompanyList[num].quoteCode = "4";
  3038. this.totalCompanyList[num].msg = res.msg;
  3039. return;
  3040. } else if (
  3041. res.data == null &&
  3042. res.msg.indexOf("交强险平台返回") > -1 &&
  3043. res.msg.indexOf(";终保日期") > -1
  3044. ) {
  3045. let time =
  3046. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6,
  3047. 16) + ":00";
  3048. this.jqstartDate = time;
  3049. this.jqendDate = this.oneYearPast(time);
  3050. this.systartDate = time;
  3051. this.syendDate = this.oneYearPast(time);
  3052. if (this.riskList.length > 0) {
  3053. for (let i = 0; i < this.riskList
  3054. .length; i++) {
  3055. if (this.riskList[i].riskCode == "0507") {
  3056. this.riskList[i].startDate = time;
  3057. this.riskList[i].endDate = this
  3058. .oneYearPast(time);
  3059. } else if (this.riskList[i].riskCode ==
  3060. "0510") {
  3061. this.riskList[i].startDate = time;
  3062. this.riskList[i].endDate = this
  3063. .oneYearPast(time);
  3064. }
  3065. }
  3066. }
  3067. let param = {
  3068. userId: this.userInfo.sysUser.id,
  3069. quoteno: this.quoteno,
  3070. orderNo: this.orderno,
  3071. carInfo: this.carInfo,
  3072. insuredPersonInfo: this.insuredPersonInfo,
  3073. ownerInfo: this.ownerInfo,
  3074. policyHolderInfo: this.policyHolderInfo,
  3075. kindList: this.kindList,
  3076. riskList: this.riskList,
  3077. vehicleAndVesselTax: this
  3078. .vehicleAndVesselTaxForm,
  3079. };
  3080. await this.$http.post(
  3081. '/insurance/order/generateOrder', param);
  3082. return this.dajia(num, id);
  3083. } else if (res.code == '200') {
  3084. if (res.data.warnMessageList != null && res.data
  3085. .warnMessageList[0] != null && res.data
  3086. .warnMessageList[
  3087. 0] != "") {
  3088. this.totalCompanyList[num].lastYearMsg = "";
  3089. let dat = res.data.warnMessageList;
  3090. dat.map(ele => {
  3091. this.totalCompanyList[num]
  3092. .lastYearMsg += ele + '<br>';
  3093. })
  3094. }
  3095. this.totalCompanyList[num].quoteCode = 200;
  3096. this.totalCompanyList[num].result = res.data;
  3097. this.subOrderId = res.data.companyId;
  3098. this.coordinateValue();
  3099. } else {
  3100. this.totalCompanyList[num].quoteCode = "3";
  3101. this.totalCompanyList[num].msg = res.msg;
  3102. return;
  3103. }
  3104. },
  3105. //华泰报价
  3106. async huatai(num, id) {
  3107. let type = this.totalCompanyList[num].apiType;
  3108. let api = type == 2 ? "/insurance/crawler/quote" : "/order/huaTaiApi/quote";
  3109. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  3110. let params = {
  3111. accidentalDrivingVo: {},
  3112. orderNo: this.orderno,
  3113. companyId: id,
  3114. cqryCdeJq: this.cqryCdeJq,
  3115. cqryCdeSy: this.cqryCdeSy,
  3116. renewalCodeJq: this.renewalCodeJq,
  3117. renewalCodeSy: this.renewalCodeSy,
  3118. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  3119. agreementId: this.totalCompanyList[num]
  3120. .agreementId,
  3121. };
  3122. let res = await this.$http.post(
  3123. `${api}`, params);
  3124. this.totalCompanyList[num].msg = res.msg;
  3125. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  3126. this.totalCompanyList[num].quoteCode = "4";
  3127. this.totalCompanyList[num].msg = res.msg;
  3128. return;
  3129. } else if (
  3130. res.data == null &&
  3131. res.msg.indexOf("交强险平台返回") > -1 &&
  3132. res.msg.indexOf(";终保日期") > -1
  3133. ) {
  3134. let time =
  3135. res.msg.substr(res.msg.indexOf(";终保日期 ") +
  3136. 6, 16) + ":00";
  3137. this.jqstartDate = time;
  3138. this.jqendDate = this.oneYearPast(time);
  3139. this.systartDate = time;
  3140. this.syendDate = this.oneYearPast(time);
  3141. if (this.riskList.length > 0) {
  3142. for (let i = 0; i < this.riskList
  3143. .length; i++) {
  3144. if (this.riskList[i].riskCode ==
  3145. "0507") {
  3146. this.riskList[i].startDate = time;
  3147. this.riskList[i].endDate = this
  3148. .oneYearPast(time);
  3149. } else if (this.riskList[i].riskCode ==
  3150. "0510") {
  3151. this.riskList[i].startDate = time;
  3152. this.riskList[i].endDate = this
  3153. .oneYearPast(time);
  3154. }
  3155. }
  3156. }
  3157. let param = {
  3158. userId: this.userInfo.sysUser.id,
  3159. quoteno: this.quoteno,
  3160. orderNo: this.orderno,
  3161. carInfo: this.carInfo,
  3162. insuredPersonInfo: this
  3163. .insuredPersonInfo,
  3164. ownerInfo: this.ownerInfo,
  3165. policyHolderInfo: this
  3166. .policyHolderInfo,
  3167. kindList: this.kindList,
  3168. riskList: this.riskList,
  3169. vehicleAndVesselTax: this
  3170. .vehicleAndVesselTaxForm,
  3171. };
  3172. await this.$http.post(
  3173. '/insurance/order/generateOrder', param
  3174. );
  3175. return this.huatai(num, id);
  3176. } else if (res.code == '200') {
  3177. if (res.data.warnMessageList != null && res
  3178. .data.warnMessageList[0] != null && res
  3179. .data
  3180. .warnMessageList[
  3181. 0] != "") {
  3182. this.totalCompanyList[num].lastYearMsg =
  3183. "";
  3184. let dat = res.data.warnMessageList;
  3185. dat.map(ele => {
  3186. this.totalCompanyList[num]
  3187. .lastYearMsg += ele + '<br>';
  3188. })
  3189. }
  3190. this.totalCompanyList[num].quoteCode = 200;
  3191. this.totalCompanyList[num].result = res.data;
  3192. this.subOrderId = res.data.companyId;
  3193. this.coordinateValue();
  3194. } else {
  3195. this.totalCompanyList[num].quoteCode = "3";
  3196. this.totalCompanyList[num].msg = res.msg;
  3197. return;
  3198. }
  3199. },
  3200. //爬虫统一报价接口
  3201. async quoteInsurance(num, id, apiType, jychecked) {
  3202. const companyId = uni.getStorageSync('companyId');
  3203. let api = apiType === 2 ?
  3204. "/insurance/crawler/quote" :
  3205. "";
  3206. let ccidenttype = this.totalCompanyList[num]
  3207. .cnName;
  3208. let namesimple = this.totalCompanyList[num]
  3209. .namesimple;
  3210. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  3211. // if (ccidenttype == "huanong") {
  3212. // this[ccidenttype + 'accidentalDrivingVo'].quantity = this[ccidenttype + 'accidentalDrivingVo']
  3213. // .allQuantity;
  3214. // }
  3215. let params = {
  3216. orderNo: this.orderno,
  3217. companyId: id,
  3218. agreementId: this.totalCompanyList[num]
  3219. .agreementId,
  3220. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  3221. accidentalDrivingVo: jychecked ? this[
  3222. ccidenttype +
  3223. 'accidentalDrivingVo'] : {},
  3224. };
  3225. if (id = 'GPIC1000000') {
  3226. if (companyId) {
  3227. params.discount = this.totalCompanyList[num]
  3228. .syAdjustRate;
  3229. params.lastCompanyId = companyId;
  3230. }
  3231. }
  3232. let res = await this.$http.post(`${api}`,
  3233. params);
  3234. this.totalCompanyList[num].msg = res.msg;
  3235. switch (namesimple) {
  3236. case '安盛天平':
  3237. case '恒邦财险':
  3238. case '中国人寿':
  3239. case '太平财险':
  3240. case '华农财险':
  3241. case '泰康财险':
  3242. if (!!res.data) {
  3243. if (res.data.warnMessageList !=
  3244. null && res.data
  3245. .warnMessageList[0] != null &&
  3246. res.data
  3247. .warnMessageList[
  3248. 0] != "") {
  3249. this.totalCompanyList[num]
  3250. .lastYearMsg = "";
  3251. let dat = res.data
  3252. .warnMessageList;
  3253. dat.map(ele => {
  3254. this.totalCompanyList[
  3255. num]
  3256. .lastYearMsg +=
  3257. ele + '<br>';
  3258. })
  3259. }
  3260. this.totalCompanyList[num]
  3261. .quoteCode = 200;
  3262. this.totalCompanyList[num].result =
  3263. res.data;
  3264. this.subOrderId = res.data.companyId;
  3265. this.coordinateValue();
  3266. if (res.data.syAdjustRate) {
  3267. this.totalCompanyList[num].syAdjustRate = res.data.syAdjustRate;
  3268. uni.setStorageSync('companyId', res.data.companyId);
  3269. }
  3270. } else {
  3271. this.totalCompanyList[num]
  3272. .quoteCode = "3";
  3273. this.totalCompanyList[num].msg =
  3274. res.msg;
  3275. return;
  3276. }
  3277. break;
  3278. case '众安财险':
  3279. if (!!res.data) {
  3280. if (res.data.warnMessageList !=
  3281. null && res.data
  3282. .warnMessageList[0] != null &&
  3283. res.data
  3284. .warnMessageList[
  3285. 0] != "") {
  3286. this.totalCompanyList[num]
  3287. .lastYearMsg = "";
  3288. let dat = res.data
  3289. .warnMessageList;
  3290. dat.map(ele => {
  3291. this.totalCompanyList[
  3292. num]
  3293. .lastYearMsg +=
  3294. ele + '<br>';
  3295. })
  3296. }
  3297. this.totalCompanyList[num]
  3298. .quoteCode = 200;
  3299. this.totalCompanyList[num].result =
  3300. res.data;
  3301. this.subOrderId = res.data.companyId;
  3302. this.coordinateValue();
  3303. } else {
  3304. this.totalCompanyList[num]
  3305. .quoteCode = "3";
  3306. this.totalCompanyList[num].msg =
  3307. res.msg;
  3308. return;
  3309. }
  3310. break;
  3311. default:
  3312. break;
  3313. }
  3314. },
  3315. //华农
  3316. huanong(num, id) {
  3317. this.quoteInsurance(num, id, this
  3318. .totalCompanyList[num].apiType, this
  3319. .totalCompanyList[num].jychecked);
  3320. },
  3321. //太平
  3322. taiping(num, id) {
  3323. this.quoteInsurance(num, id, this
  3324. .totalCompanyList[num].apiType, this
  3325. .totalCompanyList[num].jychecked);
  3326. },
  3327. //安盛天平
  3328. ansheng(num, id) {
  3329. this.quoteInsurance(num, id, this
  3330. .totalCompanyList[num].apiType, this
  3331. .totalCompanyList[num].jychecked);
  3332. },
  3333. //众安
  3334. zhongan(num, id) {
  3335. this.quoteInsurance(num, id, this
  3336. .totalCompanyList[num].apiType, this
  3337. .totalCompanyList[num].jychecked);
  3338. },
  3339. //人寿
  3340. renshou(num, id) {
  3341. this.quoteInsurance(num, id, this
  3342. .totalCompanyList[num].apiType, this
  3343. .totalCompanyList[num].jychecked);
  3344. },
  3345. //恒邦
  3346. hengbang(num, id) {
  3347. this.quoteInsurance(num, id, this
  3348. .totalCompanyList[num].apiType, this
  3349. .totalCompanyList[num].jychecked);
  3350. },
  3351. taikang(num, id) {
  3352. this.quoteInsurance(num, id, this
  3353. .totalCompanyList[num].apiType, this
  3354. .totalCompanyList[num].jychecked);
  3355. },
  3356. Lastyear() {
  3357. this.$refs.lastYearMsgCI.show() // 显示
  3358. },
  3359. adjustPopupInsureSubmit() {
  3360. this.$refs.lastYearMsgCI.hide() // 显示
  3361. },
  3362. // 重新选择车型
  3363. toCarInfo() {
  3364. this.navigate({
  3365. url: '/pages/carInsure2/Information',
  3366. success: (res) => {
  3367. res.eventChannel.emit(
  3368. "acceptData", {
  3369. carInfo: this
  3370. .carInfo,
  3371. ownerInfo: this
  3372. .ownerInfo,
  3373. policyHolderInfo: this
  3374. .policyHolderInfo,
  3375. insuredPersonInfo: this
  3376. .insuredPersonInfo,
  3377. riskList: this
  3378. .riskList,
  3379. kindList: this
  3380. .kindList,
  3381. carInfoPositiveList: this
  3382. .carInfoPositiveList, //车辆
  3383. ownerInfoPositiveList: this
  3384. .ownerInfoPositiveList, //车主
  3385. policyHolderInfoPositiveList: this
  3386. .policyHolderInfoPositiveList, //投保
  3387. insuredPersonInfoPositiveList: this
  3388. .insuredPersonInfoPositiveList, //被保人
  3389. })
  3390. }
  3391. }, "navigateTo", true);
  3392. },
  3393. // 重新选择方案
  3394. toInsureItems() {
  3395. this.navigate({
  3396. url: '/pages/carInsure2/insureItems',
  3397. success: (res) => {
  3398. res.eventChannel.emit(
  3399. "acceptData", {
  3400. carInfo: this
  3401. .carInfo,
  3402. ownerInfo: this
  3403. .ownerInfo,
  3404. policyHolderInfo: this
  3405. .policyHolderInfo,
  3406. insuredPersonInfo: this
  3407. .insuredPersonInfo,
  3408. riskList: this
  3409. .riskList,
  3410. kindList: this
  3411. .kindList,
  3412. carInfoPositiveList: this
  3413. .carInfoPositiveList, //车辆
  3414. ownerInfoPositiveList: this
  3415. .ownerInfoPositiveList, //车主
  3416. policyHolderInfoPositiveList: this
  3417. .policyHolderInfoPositiveList, //投保
  3418. insuredPersonInfoPositiveList: this
  3419. .insuredPersonInfoPositiveList, //被保人
  3420. vehicleModel: this
  3421. .vehicleAndVesselTaxForm,
  3422. })
  3423. }
  3424. }, "navigateTo", true);
  3425. },
  3426. // 显示报错信息
  3427. ErrorMsg(msg, title) {
  3428. uni.showModal({
  3429. title: title + "报价提示",
  3430. content: msg,
  3431. showCancel: false,
  3432. confirmText: "关闭"
  3433. })
  3434. },
  3435. //上年信息
  3436. YearMsg(msg, title) {
  3437. let content = msg.replace(/<br>/g, "\r\n")
  3438. uni.showModal({
  3439. title: title + "上年信息",
  3440. content: content,
  3441. showCancel: false,
  3442. confirmText: "关闭"
  3443. })
  3444. },
  3445. discountErrorMessageMsg(msg, title) {
  3446. let content = msg.replace(/\n/g, "\r\n")
  3447. uni.showModal({
  3448. title: title + "优惠信息",
  3449. content: content,
  3450. showCancel: false,
  3451. confirmText: "关闭"
  3452. })
  3453. },
  3454. //使用此时间
  3455. syncData(item) {
  3456. this.jqstartDate = item.startDateJq ? item
  3457. .startDateJq : this.jqstartDate
  3458. this.jqendDate = item.endDateJq ? item
  3459. .endDateJq : this.endDateJq
  3460. this.systartDate = item.startDateSy ? item
  3461. .startDateSy : this.systartDate
  3462. this.syendDate = item.endDateSy ? item
  3463. .endDateSy : this.syendDate
  3464. uni.showToast({
  3465. title: '时间已替换',
  3466. icon: 'none',
  3467. duration: 1000
  3468. });
  3469. },
  3470. //次日
  3471. nextday() {
  3472. var date = new Date();
  3473. date.setFullYear(date.getFullYear());
  3474. date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
  3475. var strYear = date.getFullYear();
  3476. var strDay = date.getDate();
  3477. var strMonth = date.getMonth() + 1;
  3478. var hh = date.getHours();
  3479. if (hh < 10) {
  3480. hh = "0" + hh;
  3481. }
  3482. if (strMonth < 10) {
  3483. strMonth = "0" + strMonth;
  3484. }
  3485. if (strDay < 10) {
  3486. strDay = "0" + strDay;
  3487. }
  3488. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  3489. return datastr;
  3490. },
  3491. oneYearPast(time) {
  3492. var date = new Date(time);
  3493. date.setSeconds(date.getSeconds() - 1);
  3494. date.setFullYear(date.getFullYear() + 1); //一年后
  3495. date.setTime(date.getTime()); //一年后的前一天
  3496. var strYear = date.getFullYear();
  3497. var strDay = date.getDate();
  3498. var strMonth = date.getMonth() + 1;
  3499. var hh = date.getHours();
  3500. var minutes = date.getMinutes(); // 分
  3501. var Seconds = date.getSeconds();
  3502. if (hh < 10) {
  3503. hh = "0" + hh;
  3504. }
  3505. if (minutes < 10) {
  3506. minutes = "0" + minutes;
  3507. }
  3508. if (Seconds < 10) {
  3509. Seconds = "0" + Seconds;
  3510. }
  3511. if (strMonth < 10) {
  3512. strMonth = "0" + strMonth;
  3513. }
  3514. if (strDay < 10) {
  3515. strDay = "0" + strDay;
  3516. }
  3517. var datastr =
  3518. strYear + "-" + strMonth + "-" + strDay +
  3519. " " + hh + ":" + minutes + ":" + Seconds;
  3520. return datastr;
  3521. },
  3522. },
  3523. }
  3524. </script>
  3525. <style lang="scss" scoped>
  3526. @import '@/style/mixin.scss';
  3527. .priceComparison {
  3528. width: 20%;
  3529. background: linear-gradient(180deg, #FA6464 0%, #E53F3F 100%);
  3530. box-shadow: 0px 2px 5px 0px rgba(232, 66, 66, 0.3);
  3531. border-radius: 4px;
  3532. border: 1px solid #FF9A9A;
  3533. }
  3534. /deep/ .u-form-item[data-v-5e7216f1] {
  3535. height: 26px;
  3536. }
  3537. .page {
  3538. min-height: 100vh;
  3539. background: #F8FAFE;
  3540. padding: 16px 16px 100px 16px;
  3541. }
  3542. .car-header {
  3543. width: 100%;
  3544. height: auto;
  3545. background: #FFFFFF;
  3546. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3547. border-radius: 6px;
  3548. padding: 8px 15px;
  3549. position: relative;
  3550. .head-name {
  3551. margin-left: 20px;
  3552. &>text {
  3553. font-weight: bold;
  3554. font-size: 15px;
  3555. color: #232832;
  3556. }
  3557. .name1 text {
  3558. font-size: 14px;
  3559. font-weight: bold;
  3560. color: #333333;
  3561. }
  3562. }
  3563. .carJump {
  3564. position: absolute;
  3565. top: 5px;
  3566. right: 10px;
  3567. font-size: 14px;
  3568. color: #0052FF;
  3569. }
  3570. }
  3571. .pageContent {
  3572. .header {
  3573. padding: 10px 0;
  3574. .title {
  3575. font-size: 15px;
  3576. color: #232832;
  3577. font-weight: bold;
  3578. }
  3579. .color {
  3580. font-size: 14px;
  3581. color: #0052FF;
  3582. }
  3583. }
  3584. }
  3585. /* 报价方案Start */
  3586. .quotePlan {
  3587. background: #FFFFFF;
  3588. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3589. border-radius: 6px;
  3590. }
  3591. .quotePlan .header {
  3592. padding: 10px 0;
  3593. }
  3594. .quotePlan .header .title {
  3595. // font-size: 30upx;
  3596. font-weight: bold;
  3597. padding-left: 25upx;
  3598. }
  3599. .quotePlan .header .title:before {
  3600. content: "";
  3601. position: absolute;
  3602. left: 30upx;
  3603. top: 25upx;
  3604. width: 8upx;
  3605. height: 30upx;
  3606. background-color: $themeColor;
  3607. }
  3608. .quotePlan {
  3609. .body {
  3610. padding: 0 10px 10px;
  3611. >.qunimade {
  3612. padding: 19rpx 0;
  3613. border-bottom: 1px solid #f2f2f2;
  3614. }
  3615. }
  3616. }
  3617. .quotePlan .body>.qunimade:last-of-type {
  3618. border-bottom: none;
  3619. }
  3620. .quotePlan .body .insurance {
  3621. background: #F9F9F9;
  3622. border-radius: 10px;
  3623. >view {
  3624. padding: 8px;
  3625. border-bottom: 1px solid #f2f2f2;
  3626. }
  3627. >view:last-child {
  3628. border: none;
  3629. }
  3630. }
  3631. .accident-style {
  3632. padding: 5px 8px 5px 8px;
  3633. text {
  3634. font-size: 13px;
  3635. }
  3636. >view {}
  3637. .accident-ins {
  3638. text {
  3639. margin-right: 10px;
  3640. }
  3641. }
  3642. }
  3643. .popContent {
  3644. padding: 8px;
  3645. max-height: 400px;
  3646. }
  3647. .carTypeItem {
  3648. padding: 0 30upx 20upx;
  3649. border-bottom: 1px solid #e5e5e5;
  3650. margin-top: 20upx;
  3651. width: 100%;
  3652. box-sizing: border-box;
  3653. }
  3654. .carTypeItem .nav .carseriesName {
  3655. font-size: 34upx;
  3656. width: 360upx;
  3657. font-family: PingFangSC-Medium, PingFangSC;
  3658. color: #4a4a4a;
  3659. overflow: hidden;
  3660. text-overflow: ellipsis;
  3661. white-space: nowrap;
  3662. }
  3663. .carTypeItem .nav .modelName {
  3664. font-size: 26upx;
  3665. width: 400upx;
  3666. font-family: PingFangSC-Medium, PingFangSC;
  3667. overflow: hidden;
  3668. text-overflow: ellipsis;
  3669. white-space: nowrap;
  3670. }
  3671. .carTypeItem .nav .nav_box {
  3672. margin: 10upx 0;
  3673. }
  3674. .carTypeItem .nav .nav_box .zid {
  3675. display: inline-block;
  3676. padding: 6upx 10upx;
  3677. font-size: 24upx;
  3678. height: 40upx;
  3679. background: #AFC9F7;
  3680. border-radius: 25upx;
  3681. color: #007AFF;
  3682. font-weight: bold;
  3683. line-height: 40upx;
  3684. }
  3685. .carTypeItem .nav .nav_box>p {
  3686. margin-left: 30upx;
  3687. color: #999;
  3688. font-size: 24upx;
  3689. }
  3690. .carTypeItem .price {
  3691. font-size: 16px;
  3692. width: 200upx;
  3693. flex-shrink: 0;
  3694. font-family: PingFangSC-Regular, PingFangSC;
  3695. font-weight: 400;
  3696. color: #007AFF;
  3697. }
  3698. .quotePlan .body .row {
  3699. height: 70upx;
  3700. }
  3701. .quotePlan .body .date {
  3702. background-color: $themeColor;
  3703. color: $themeColor;
  3704. font-size: 22upx;
  3705. padding: 0upx 7upx;
  3706. border-radius: 3upx;
  3707. margin: 10upx;
  3708. margin-right: 10upx;
  3709. }
  3710. /* 报价方案End */
  3711. /* 报价公司Start */
  3712. .quoteCompany {
  3713. box-sizing: border-box;
  3714. /* background:#FFFFFF; */
  3715. position: relative;
  3716. border-radius: 20upx;
  3717. }
  3718. .quoteCompany .header {
  3719. height: 80upx;
  3720. }
  3721. .quoteCompany .header .title {
  3722. font-size: 30upx;
  3723. font-weight: bold;
  3724. }
  3725. .quoteCompany .header .title .icon {
  3726. color: rgba($themeColor, 0.6);
  3727. margin-left: 15upx;
  3728. }
  3729. .quoteCompanyItem {
  3730. margin-bottom: 20upx;
  3731. background: #FFFFFF;
  3732. border-radius: 6px;
  3733. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3734. box-sizing: border-box;
  3735. cursor: pointer;
  3736. }
  3737. .quoteCompanyItem .top {
  3738. position: relative;
  3739. }
  3740. .quoteCompanyItem .top .companyIcon {
  3741. padding: 8px;
  3742. border-radius: 6px 6px 0 0;
  3743. flex-shrink: 0;
  3744. }
  3745. .content {
  3746. padding: 0 8px;
  3747. margin-bottom: 5px;
  3748. }
  3749. .quoteCompanyItem .top .companyIcon image {
  3750. width: 20px;
  3751. height: 20px;
  3752. margin-right: 10px;
  3753. }
  3754. .quoteCompanyItem .top .Premium {
  3755. padding: 10px 8px;
  3756. border-top: 1px solid #f2f2f2;
  3757. .price {
  3758. font-size: 12px;
  3759. color: #FF5600;
  3760. text {
  3761. margin-right: 5px;
  3762. }
  3763. }
  3764. .time {
  3765. font-size: 12px;
  3766. color: #2D4D89;
  3767. >text {
  3768. margin-right: 5px;
  3769. }
  3770. }
  3771. }
  3772. .quoteCompanyItem .top .quotebtn {
  3773. width: 100%;
  3774. height: auto;
  3775. >view {
  3776. width: 50%;
  3777. font-size: 14px;
  3778. padding: 4px 0;
  3779. }
  3780. }
  3781. .lastyear {
  3782. view {
  3783. font-size: 12px;
  3784. font-weight: bold;
  3785. image {
  3786. width: 14px;
  3787. height: 14px;
  3788. }
  3789. }
  3790. .left {
  3791. border: 1px solid #229805;
  3792. border-radius: 2px 2px 2px 2px;
  3793. padding: 1px 6px;
  3794. color: #229805;
  3795. }
  3796. .right {
  3797. border-radius: 2px 2px 2px 2px;
  3798. padding: 1px 6px;
  3799. border: 1px solid #FF5600;
  3800. margin-left: 10px;
  3801. color: #FF5600;
  3802. }
  3803. }
  3804. .quoteCompanyItem .top .companyName {
  3805. font-size: 14px;
  3806. font-weight: bold;
  3807. color: #232832;
  3808. }
  3809. .quoteCompanyItem .top .totalMoney {
  3810. font-size: 40upx;
  3811. font-weight: bold;
  3812. color: $themeColor;
  3813. position: absolute;
  3814. top: -15upx;
  3815. right: 0;
  3816. }
  3817. .quoteCompanyItem .top .tip {
  3818. font-size: 26upx;
  3819. font-weight: bold;
  3820. color: #999;
  3821. position: absolute;
  3822. top: 0upx;
  3823. right: 0;
  3824. }
  3825. .sum {
  3826. color: #0052FF;
  3827. font-size: 14px;
  3828. font-weight: bold;
  3829. }
  3830. .quoteCompanyItem .top .signs {
  3831. width: 500upx;
  3832. overflow: hidden;
  3833. text-overflow: ellipsis;
  3834. white-space: nowrap;
  3835. }
  3836. .quoteCompanyItem .top .sign {
  3837. height: 40upx;
  3838. margin: 0upx 10upx;
  3839. background: rgba($themeColor, 0.6);
  3840. color: $themeColor;
  3841. font-size: 20upx;
  3842. margin-right: 10upx;
  3843. border-radius: 6upx;
  3844. padding: 0 2px;
  3845. line-height: 40upx;
  3846. }
  3847. .jqsign {
  3848. height: 20px;
  3849. background: rgba(255, 177, 177, 0.55);
  3850. color: #fd0a0a;
  3851. font-size: 20upx;
  3852. border-radius: 6upx;
  3853. padding: 0 10px;
  3854. box-sizing: border-box;
  3855. }
  3856. .quoteCompanyItem .body {
  3857. padding: 20upx 0;
  3858. flex-wrap: wrap;
  3859. }
  3860. .quoteCompanyItem .body>view {
  3861. flex-shrink: 0;
  3862. width: 50%;
  3863. overflow: hidden;
  3864. text-overflow: ellipsis;
  3865. white-space: nowrap;
  3866. }
  3867. .quoteCompanyItem .body .icon-exchange {
  3868. margin-right: 15upx;
  3869. display: inline-block;
  3870. }
  3871. /* 报价公司End */
  3872. /* 查看详情按钮Start */
  3873. .btn {
  3874. font-size: 16px;
  3875. color: #fff;
  3876. background-color: #ea552d;
  3877. margin-top: 10px;
  3878. }
  3879. .footer-btn {
  3880. position: fixed;
  3881. bottom: 0;
  3882. left: 0;
  3883. width: 100%;
  3884. height: 62px;
  3885. background: #FFFFFF;
  3886. box-shadow: 0px -4px 10px 0px #DAE3F4;
  3887. border-radius: 0px 0px 0px 0px;
  3888. padding: 12px 16px;
  3889. z-index: 99;
  3890. }
  3891. .slot-content {
  3892. padding: 10px;
  3893. box-sizing: border-box;
  3894. }
  3895. .ZJcheckboxGroup {
  3896. padding: 0 10px;
  3897. .title {
  3898. font-size: 14px;
  3899. color: #232832;
  3900. font-weight: bold;
  3901. padding: 10px;
  3902. }
  3903. .scolcentent {
  3904. max-height: 240px;
  3905. padding-bottom: 40px;
  3906. }
  3907. .operateBtn {
  3908. position: absolute;
  3909. bottom: 0;
  3910. left: 0;
  3911. right: 0;
  3912. font-weight: bold;
  3913. font-size: 16px;
  3914. .cancel {
  3915. width: 50%;
  3916. height: 46px;
  3917. color: #0052FF;
  3918. background-color: #EAEAEA;
  3919. }
  3920. .confirm {
  3921. width: 50%;
  3922. height: 46px;
  3923. color: #fff;
  3924. background-color: #0052FF;
  3925. }
  3926. }
  3927. }
  3928. .contributing {
  3929. width: 100%;
  3930. margin: 4px 0;
  3931. font-size: 12px;
  3932. text:nth-child(1) {
  3933. font-weight: bold;
  3934. color: #232832;
  3935. }
  3936. }
  3937. /* 查看详情按钮End */
  3938. .status-data {
  3939. width: auto;
  3940. padding: 2px 8px;
  3941. margin-left: 5px;
  3942. font-size: 12px;
  3943. border: 1px solid #CDCDCD;
  3944. cursor: pointer;
  3945. text-align: center;
  3946. line-height: 25px;
  3947. }
  3948. .active {
  3949. position: relative;
  3950. background: rgba(0, 82, 255, 0.1);
  3951. color: #0052FF;
  3952. border: 1px solid #0052FF;
  3953. font-weight: 700;
  3954. }
  3955. .active::before {
  3956. content: "";
  3957. position: absolute;
  3958. top: 0;
  3959. left: 0;
  3960. width: 10px;
  3961. height: 10px;
  3962. background-image: url("/static/image/car-insure/before.png");
  3963. background-size: cover;
  3964. }
  3965. .active1 {
  3966. position: relative;
  3967. background: rgba(255, 86, 0, 0.1);
  3968. color: #FF5600;
  3969. border: 1px solid #FF5600;
  3970. font-weight: 700;
  3971. }
  3972. .active1::before {
  3973. content: "";
  3974. position: absolute;
  3975. top: 0;
  3976. left: 0;
  3977. width: 10px;
  3978. height: 10px;
  3979. background-image: url("/static/image/car-insure/before1.png");
  3980. background-size: cover;
  3981. }
  3982. .quoteactive {
  3983. border: 1px solid #0052FF;
  3984. .top {
  3985. .companyIcon {
  3986. background-color: #E6EEFF;
  3987. }
  3988. .Premium {
  3989. border-top-color: #0052FF;
  3990. }
  3991. }
  3992. }
  3993. .Discount {
  3994. image {
  3995. width: 16px;
  3996. height: 16px;
  3997. }
  3998. text {
  3999. font-size: 12px;
  4000. color: #333333;
  4001. }
  4002. }
  4003. </style>