quote1.vue 106 KB

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