quote.vue 119 KB

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