quote.vue 125 KB

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