quote.vue 140 KB

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