quote1.vue 106 KB

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