quote.vue 126 KB

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