quote1.vue 106 KB

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