quote.vue 124 KB

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