quote.vue 128 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998
  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. subOrderId: '',
  1572. }
  1573. },
  1574. async onLoad(params) {
  1575. if (params.orderno) {
  1576. let res = await this.$http.post('/insurance/order/revise', {
  1577. orderNo: params.orderno
  1578. });
  1579. this.carInfo = res.data.carinfo; //车辆信息
  1580. this.ownerInfo = res.data.ownerinfo; //车主信息
  1581. this.policyHolderInfo = res.data.applyinfo; //投保人信息
  1582. this.insuredPersonInfo = res.data.insureinfo; //被保人信息
  1583. this.riskList = res.data.risk; //险种大类
  1584. this.kindList = res.data.king; //商业险险别
  1585. this.vehicleAndVesselTaxForm = res.data.vehicleAndVesselTax; //车船税信息
  1586. this.orderno = res.data.orderno;
  1587. this.quoteno = res.data.quoteno;
  1588. this.imageEcho(res.data.quoteno) // 影像获取完毕
  1589. this.insAreaCompanyEditingDtos = res.data.insAreaCompanyEditingDtos;
  1590. if (this.riskList.length > 0) {
  1591. for (let i = 0; i < this.riskList.length; i++) {
  1592. if (this.riskList[i].riskCode == '0507') {
  1593. this.jqchecked = true;
  1594. if (this.isDateBeforeToday(this.riskList[i].startDate)) {
  1595. this.jqstartDate = this.nextday();
  1596. this.jqendDate = this.oneYearPast(this.jqstartDate)
  1597. } else {
  1598. this.jqstartDate = this.riskList[i].startDate;
  1599. this.jqendDate = this.riskList[i].endDate;
  1600. }
  1601. }
  1602. if (this.riskList[i].riskCode == '0510') {
  1603. this.sychecked = true;
  1604. if (this.isDateBeforeToday(this.riskList[i].startDate)) {
  1605. this.systartDate = this.nextday();
  1606. this.syendDate = this.oneYearPast(this.systartDate)
  1607. } else {
  1608. this.systartDate = this.riskList[i].startDate;
  1609. this.syendDate = this.riskList[i].endDate;
  1610. }
  1611. this.kindList.map(ele1 => {
  1612. this.insureList.map(ele2 => {
  1613. if (ele2.kindCode == ele1.kindCode) {
  1614. switch (ele1.kindCode) {
  1615. case 'D4':
  1616. case 'SY_FJ_YBW2':
  1617. ele2.amount = ele1.unitAmount;
  1618. break;
  1619. case "MJ1":
  1620. case "MJ2":
  1621. case "MJ3":
  1622. case "MJ4":
  1623. ele2.amount = ele1.deductibleRate;
  1624. break;
  1625. case "TY1":
  1626. case "TY2":
  1627. case "TY3":
  1628. case "TY4":
  1629. ele2.amount = ele1.serviceTimes;
  1630. ele2.amountDesc = ele1.serviceTimes +
  1631. '次'
  1632. break;
  1633. default:
  1634. ele2.amount = ele1.amount;
  1635. }
  1636. }
  1637. })
  1638. })
  1639. }
  1640. }
  1641. }
  1642. } else {
  1643. const eventChannel = this.getOpenerEventChannel()
  1644. // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
  1645. eventChannel.on('acceptData', async (data) => {
  1646. console.log(data);
  1647. this.carInfo = data.carInfo; //车辆信息
  1648. this.ownerInfo = data.ownerInfo; //车主信息
  1649. this.policyHolderInfo = data.policyHolderInfo; //投保人信息
  1650. this.insuredPersonInfo = data.insuredPersonInfo; //被保人信息
  1651. this.riskList = data.riskList; //险种大类
  1652. this.kindList = data.kindList; //商业险险别
  1653. this.vehicleAndVesselTaxForm = data.vehicleAndVesselTaxForm; //车船税信息
  1654. this.carInfoPositiveList = data.carInfoPositiveList; //车辆
  1655. this.ownerInfoPositiveList = data.ownerInfoPositiveList; //车主
  1656. this.policyHolderInfoPositiveList = data.policyHolderInfoPositiveList; //投保
  1657. this.insuredPersonInfoPositiveList = data.insuredPersonInfoPositiveList; //被保人
  1658. if (this.riskList.length > 0) {
  1659. for (let i = 0; i < this.riskList.length; i++) {
  1660. if (this.riskList[i].riskCode == '0507') {
  1661. this.jqchecked = true;
  1662. this.jqstartDate = this.riskList[i].startDate;
  1663. this.jqendDate = this.riskList[i].endDate;
  1664. }
  1665. if (this.riskList[i].riskCode == '0510') {
  1666. this.sychecked = true;
  1667. this.systartDate = this.riskList[i].startDate;
  1668. this.syendDate = this.riskList[i].endDate;
  1669. this.kindList.map(ele1 => {
  1670. this.insureList.map(ele2 => {
  1671. if (ele2.kindCode == ele1.kindCode) {
  1672. switch (ele1.kindCode) {
  1673. case 'D4':
  1674. case 'SY_FJ_YBW2':
  1675. ele2.amount = ele1.unitAmount;
  1676. break;
  1677. case "MJ1":
  1678. case "MJ2":
  1679. case "MJ3":
  1680. case "MJ4":
  1681. ele2.amount = ele1.deductibleRate;
  1682. break;
  1683. case "TY1":
  1684. case "TY2":
  1685. case "TY3":
  1686. case "TY4":
  1687. ele2.amount = ele1.serviceTimes;
  1688. ele2.amountDesc = ele1.serviceTimes +
  1689. '次'
  1690. break;
  1691. default:
  1692. ele2.amount = ele1.amount;
  1693. }
  1694. }
  1695. })
  1696. })
  1697. }
  1698. }
  1699. }
  1700. })
  1701. }
  1702. const storage = uni.getStorageSync('historyInfo');
  1703. if (storage) {
  1704. Object.keys(storage).forEach(key => {
  1705. this[key] = storage[key]
  1706. })
  1707. } else {
  1708. this.commpanyList();
  1709. }
  1710. },
  1711. onHide() {
  1712. let historyInfo = {
  1713. quoteno: this.quoteno,
  1714. orderno: this.orderno,
  1715. totalCompanyList: this.totalCompanyList,
  1716. zijinInsuranceData: this.zijinInsuranceData, //紫金意外险list
  1717. zijinaccidentalDrivingVo: this.zijinaccidentalDrivingVo, //紫金意外险
  1718. anshengprogrammeData: this.anshengprogrammeData,
  1719. anshengInsuranceData: this.anshengInsuranceData, //安盛意外险list
  1720. anshengaccidentalDrivingVo: this.anshengaccidentalDrivingVo, //安盛意外险
  1721. yongchengInsuranceData: this.yongchengInsuranceData, //永诚意外险list
  1722. yongchengaccidentalDrivingVo: this.yongchengaccidentalDrivingVo, //永诚意外险
  1723. zhonganInsuranceData: this.zhonganInsuranceData, //-众安意外险list
  1724. zhonganaccidentalDrivingVo: this.zhonganaccidentalDrivingVo, //众安意外险
  1725. hengbangInsuranceData: this.hengbangInsuranceData, //-恒邦意外险list
  1726. hengbangaccidentalDrivingVo: this.hengbangaccidentalDrivingVo, //恒邦意外险
  1727. renshouInsuranceData: this.renshouInsuranceData, //-人寿意外险list
  1728. renshouaccidentalDrivingVo: this.renshouaccidentalDrivingVo, //人寿意外险
  1729. }
  1730. let res = delEmptyQueryNodes(historyInfo);
  1731. uni.setStorageSync('historyInfo', res);
  1732. uni.removeStorageSync("companyId")
  1733. },
  1734. methods: {
  1735. async coordinateValue() {
  1736. let location = uni.getStorageSync('location');
  1737. let params = {
  1738. subOrderNo: this.subOrderId,
  1739. lng: location.longitude,
  1740. lat: location.latitude,
  1741. }
  1742. let orders = await this.$http.post('/insurance/order/savePosition', params);
  1743. },
  1744. async tempSave() {
  1745. let param = {
  1746. userId: this.userInfo.sysUser.id,
  1747. quoteno: this.quoteno ? this.quoteno : "",
  1748. orderNo: this.orderno ? this.orderno : "",
  1749. carInfo: this.carInfo,
  1750. insuredPersonInfo: this.insuredPersonInfo,
  1751. ownerInfo: this.ownerInfo,
  1752. policyHolderInfo: this.policyHolderInfo,
  1753. kindList: this.kindList,
  1754. riskList: this.riskList,
  1755. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  1756. };
  1757. let orders = await this.$http.post('/insurance/order/generateOrder', param);
  1758. if (orders.code == '200') {
  1759. uni.showToast({
  1760. title: '暂存成功',
  1761. icon: 'none',
  1762. });
  1763. } else {
  1764. uni.showToast({
  1765. title: res.msg,
  1766. icon: 'none',
  1767. });
  1768. }
  1769. },
  1770. isDateBeforeToday(date) {
  1771. const inputDate = new Date(date); // 将输入的日期转换为 Date 对象
  1772. const today = new Date(); // 获取当前日期
  1773. // 比较日期是否小于当前日期
  1774. if (inputDate < today) {
  1775. return true; // 输入日期小于当前日期
  1776. } else {
  1777. return false; // 输入日期大于等于当前日期
  1778. }
  1779. },
  1780. Guidedconfirm() {
  1781. this.toInsureItems();
  1782. },
  1783. jqImmediate(value) {
  1784. if (value) {
  1785. this.riskList.push({
  1786. amount: 0,
  1787. endDate: this.jqendDate,
  1788. instantFlag: "0",
  1789. premium: 0,
  1790. riskCode: "0507",
  1791. startDate: this.jqstartDate,
  1792. })
  1793. } else {
  1794. let list = this.riskList.filter(item => item.riskCode !== "0507");
  1795. this.riskList = list;
  1796. }
  1797. },
  1798. syImmediate(value) {
  1799. if (value) {
  1800. this.GuidedPopShow = true;
  1801. } else {
  1802. let list = this.riskList.filter(item => item.riskCode !== "0510");
  1803. this.riskList = list;
  1804. }
  1805. },
  1806. immediatelyClick(name) {
  1807. this.carInfo[name] = !this.carInfo[name];
  1808. if (this.carInfo[name]) {
  1809. this.carInfo.transferDate = this.carInfo.issueDate;
  1810. } else {
  1811. this.carInfo.transferDate = "";
  1812. }
  1813. },
  1814. preUnderwriting(list) {
  1815. this.RSpreUnderwritingList = list;
  1816. this.preUnderwritingshow = true;
  1817. },
  1818. // SelectAll(e) {
  1819. // this.totalCompanyList.map((ele, index) => {
  1820. // e.value ? ele.checked = true : ele.checked = false;
  1821. // this.checkboxChange(e, ele.id, ele.cnName, index)
  1822. // })
  1823. // },
  1824. jqstartconfirm(e) {
  1825. this.jqstartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
  1826. this.jqendDate = this.oneYearPast(this.jqstartDate)
  1827. },
  1828. systartconfirm(e) {
  1829. this.systartDate = e.year + '-' + e.month + '-' + e.day + ' ' + e.hour + ':' + e.minute + ':' + e.second;
  1830. this.syendDate = this.oneYearPast(this.systartDate)
  1831. },
  1832. transferconfirm(e) {
  1833. this.carInfo.transferDate = e.year + '-' + e.month + '-' + e.day;
  1834. },
  1835. //影像查询
  1836. async imageEcho(quotenos) {
  1837. let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
  1838. if (imgres.code == "200") {
  1839. Object.keys(imgres.data).forEach((keys) => {
  1840. if (imgres.data[keys].url) {
  1841. imgres.data[keys].url = this.$base.baseUrl + imgres.data[keys].url;
  1842. switch (keys) {
  1843. case 'C01':
  1844. this.carInfoPositiveList.push({
  1845. imageId: imgres.data[keys].imageId,
  1846. imageType: imgres.data[keys].imageType,
  1847. })
  1848. break;
  1849. case 'D01':
  1850. this.carInfoPositiveList.push({
  1851. imageId: imgres.data[keys].imageId,
  1852. imageType: imgres.data[keys].imageType,
  1853. })
  1854. break;
  1855. case 'C02':
  1856. this.ownerInfoPositiveList.push({
  1857. imageId: imgres.data[keys].imageId,
  1858. imageType: imgres.data[keys].imageType,
  1859. });
  1860. break;
  1861. case 'D02':
  1862. this.ownerInfoPositiveList.push({
  1863. imageId: imgres.data[keys].imageId,
  1864. imageType: imgres.data[keys].imageType,
  1865. });
  1866. break;
  1867. case 'C03':
  1868. this.policyHolderInfoPositiveList.push({
  1869. imageId: imgres.data[keys].imageId,
  1870. imageType: imgres.data[keys].imageType,
  1871. });
  1872. break;
  1873. case 'D03':
  1874. this.policyHolderInfoPositiveList.push({
  1875. imageId: imgres.data[keys].imageId,
  1876. imageType: imgres.data[keys].imageType,
  1877. });
  1878. break;
  1879. case 'C04':
  1880. this.insuredPersonInfoPositiveList.push({
  1881. imageId: imgres.data[keys].imageId,
  1882. imageType: imgres.data[keys].imageType,
  1883. });
  1884. break;
  1885. case 'D04':
  1886. this.insuredPersonInfoPositiveList.push({
  1887. imageId: imgres.data[keys].imageId,
  1888. imageType: imgres.data[keys].imageType,
  1889. });
  1890. break;
  1891. default:
  1892. break;
  1893. }
  1894. }
  1895. });
  1896. }
  1897. },
  1898. //查看详情
  1899. querydetial(id) {
  1900. this.navigate({
  1901. url: "/pages/carInsure2/quoteDetail?companyId=" + id
  1902. },
  1903. "navigateTo", true);
  1904. },
  1905. //报价单
  1906. bjdpreview(id) {
  1907. let pro = this.quotationType.themeCode;
  1908. if (pro == "QD") {
  1909. uni.navigateTo({
  1910. url: "/pages/orders1/quotation?companyId=" + id
  1911. })
  1912. } else {
  1913. uni.navigateTo({
  1914. url: "/pages/orders1/quotation1?companyId=" + id
  1915. })
  1916. }
  1917. },
  1918. //选择协议
  1919. selectConfirm(e, index) {
  1920. this.totalCompanyList[index].agreementId = e[0].value;
  1921. this.totalCompanyList[index].agreementName = e[0].label;
  1922. this.totalCompanyList[index].apiType = e[0].extra;
  1923. },
  1924. //国任特约
  1925. async guoRencontributing(id) {
  1926. let guoRen = await this.$http.post('/api/guoRen/queryClauseData', {
  1927. agreementId: id,
  1928. })
  1929. if (guoRen.code == '200') {
  1930. this.guoRenSpecialAgreementData = guoRen.data;
  1931. this.guoRencontributingshow = true;
  1932. }
  1933. },
  1934. guoRencontributingChange(param) {
  1935. this.guoRenSpecialAgreementVo = [];
  1936. param.map(val => {
  1937. let list = this.guoRenSpecialAgreementData.find(item => item.clauseCode == val)
  1938. this.guoRenSpecialAgreementVo.push({
  1939. clauseCode: list.clauseCode,
  1940. clauses: list.clauses,
  1941. clausesContext: list.clausesContext,
  1942. riskCode: list.riskCode,
  1943. riskName: list.riskName,
  1944. })
  1945. })
  1946. },
  1947. /**
  1948. * 选择保险公司方法
  1949. * @param {String} event change选中事件
  1950. * @param {String} code 保险公司ID
  1951. * @param {String} name 保险公司主体全拼
  1952. * @param {String} index 选中下标
  1953. */
  1954. async checkboxChange(code, name, index) {
  1955. this.totalCompanyList[index].checked = !this.totalCompanyList[index].checked;
  1956. let value = this.totalCompanyList[index].checked;
  1957. if (value) {
  1958. let ins = this.totalCompanyList[index].namesimple;
  1959. let list = this.totalCompanyList[index].agreement;
  1960. list.map(ele => {
  1961. ele.extra = ele.apiType;
  1962. return ele;
  1963. })
  1964. this.totalCompanyList[index].agreement = list;
  1965. this.totalCompanyList[index].agreementId = this.totalCompanyList[index].agreement[0].id;
  1966. this.totalCompanyList[index].agreementName = this.totalCompanyList[index].agreement[0]
  1967. .agreementName;
  1968. this.totalCompanyList[index].apiType = this.totalCompanyList[index].agreement[0].extra;
  1969. this.totalCompanyList[index].underwritingDescription = this.totalCompanyList[index].agreement[0]
  1970. .underwritingDescription;
  1971. let ruleThirdPartyInsurance = this.kindList.find(val => val.kindCode == 'B'); //获取三者保额
  1972. switch (ins) {
  1973. case '永诚财险':
  1974. let yccallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
  1975. agreementId: this.totalCompanyList[index].agreement[0].id,
  1976. companyCode: code,
  1977. ruleSeatNum: Number(this.carInfo.seatCount),
  1978. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  1979. .amount : '',
  1980. ruleUseNature: this.carInfo.carnature,
  1981. kind: this.kindList,
  1982. risk: this.riskList,
  1983. });
  1984. if (yccallback.code == '200') {
  1985. let data = yccallback.data;
  1986. data.map(ele => {
  1987. ele.quantity = 1;
  1988. return ele;
  1989. })
  1990. this.yongchengInsuranceData = data;
  1991. const defaultProject = findDefaultProject(data);
  1992. if (JSON.stringify(defaultProject.result) !== "{}") {
  1993. this.totalCompanyList[index].jychecked = true;
  1994. this.yongchengInsuranceData = defaultProject.list;
  1995. this.yongchengaccidentalDrivingVo = defaultProject.result;
  1996. } else {
  1997. this.yongchengInsuranceData = data;
  1998. this.yongchengaccidentalDrivingVo = data[0];
  1999. }
  2000. }
  2001. break;
  2002. case '紫金财险':
  2003. let zjcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
  2004. agreementId: this.totalCompanyList[index].agreement[0].id,
  2005. companyCode: code,
  2006. ruleSeatNum: Number(this.carInfo.seatCount),
  2007. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  2008. .amount : '',
  2009. ruleUseNature: this.carInfo.carnature,
  2010. kind: this.kindList,
  2011. risk: this.riskList,
  2012. });
  2013. if (zjcallback.code == '200') {
  2014. let data = zjcallback.data;
  2015. data.map(ele => {
  2016. ele.quantity = 1;
  2017. return ele;
  2018. })
  2019. this.zijinInsuranceData = data;
  2020. const defaultProject = findDefaultProject(data);
  2021. if (JSON.stringify(defaultProject.result) !== "{}") {
  2022. this.totalCompanyList[index].jychecked = true;
  2023. this.zijinaccidentalDrivingVo.push(defaultProject.result);
  2024. } else {
  2025. this.zijinaccidentalDrivingVo = [];
  2026. }
  2027. }
  2028. break;
  2029. case '安盛天平':
  2030. let ascallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
  2031. agreementId: this.totalCompanyList[index].agreement[0].id,
  2032. companyCode: code,
  2033. ruleSeatNum: Number(this.carInfo.seatCount),
  2034. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  2035. .amount : '',
  2036. ruleUseNature: this.carInfo.carnature,
  2037. kind: this.kindList,
  2038. risk: this.riskList,
  2039. });
  2040. if (ascallback.code == '200') {
  2041. let data = ascallback.data;
  2042. data.map(ele => {
  2043. ele.children.map(val => {
  2044. val.quantity = 1;
  2045. })
  2046. return ele;
  2047. })
  2048. this.anshengprogrammeData = data;
  2049. const defaultProject = findDefaultProject(data);
  2050. if (JSON.stringify(defaultProject.result) !== "{}") {
  2051. this.totalCompanyList[index].jychecked = true;
  2052. this.anshengInsuranceData = defaultProject.list;
  2053. this.anshengaccidentalDrivingVo = defaultProject.result;
  2054. } else {
  2055. this.anshengaccidentalDrivingVo = {
  2056. parentCode: data[0].projectCode, //驾意险商品号
  2057. parentName: data[0].projectName, //驾意险商品名称
  2058. ...data[0].children[0]
  2059. }
  2060. this.anshengInsuranceData = data[0].children;
  2061. }
  2062. }
  2063. break;
  2064. case '国任财险':
  2065. let grcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
  2066. agreementId: this.totalCompanyList[index].agreement[0].id,
  2067. companyCode: code,
  2068. ruleSeatNum: Number(this.carInfo.seatCount),
  2069. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  2070. .amount : '',
  2071. ruleUseNature: this.carInfo.carnature,
  2072. kind: this.kindList,
  2073. risk: this.riskList,
  2074. });
  2075. if (grcallback.code == '200') {
  2076. let data = grcallback.data;
  2077. data.map(ele => {
  2078. ele.children.map(val => {
  2079. val.quantity = 1;
  2080. })
  2081. return ele;
  2082. })
  2083. this.guorenprogrammeData = data;
  2084. const defaultProject = findDefaultProject(data);
  2085. if (JSON.stringify(defaultProject.result) !== "{}") {
  2086. this.totalCompanyList[index].jychecked = true;
  2087. this.guoRenInsuranceData = defaultProject.list;
  2088. this.guoRenaccidentalDrivingVo = defaultProject.result;
  2089. } else {
  2090. this.guoRenaccidentalDrivingVo = {
  2091. parentCode: data[0].projectCode, //驾意险商品号
  2092. parentName: data[0].projectName, //驾意险商品名称
  2093. ...data[0].children[0]
  2094. }
  2095. this.guoRenInsuranceData = data[0].children;
  2096. }
  2097. }
  2098. break;
  2099. case '大家财险':
  2100. let djcallback = await this.$http.post('/api/dajia/accidentalDrivingList', {
  2101. agreementId: this.totalCompanyList[index].agreement[0].id
  2102. });
  2103. if (djcallback.code == '200') {
  2104. let data = djcallback.data;
  2105. data.map(ele => {
  2106. ele.quantity = 1;
  2107. return ele;
  2108. })
  2109. this.dajiaInsuranceData = data;
  2110. this.dajiaaccidentalDrivingVo = {
  2111. rideRiskCode: data[0].id,
  2112. rideRiskName: data[0].productName,
  2113. quantity: data[0].quantity,
  2114. price: data[0].price,
  2115. };
  2116. }
  2117. break;
  2118. case '中煤财险':
  2119. let zmcallback = await this.$http.post('/api/drivingInsurance/getDrivingInsuranceRule', {
  2120. agreementId: this.totalCompanyList[index].agreement[0].id,
  2121. companyCode: code,
  2122. ruleSeatNum: Number(this.carInfo.seatCount),
  2123. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  2124. .amount : '',
  2125. ruleUseNature: this.carInfo.carnature,
  2126. kind: this.kindList,
  2127. risk: this.riskList,
  2128. });
  2129. if (zmcallback.code == '200') {
  2130. let data = zmcallback.data;
  2131. data.map(ele => {
  2132. ele.quantity = 1;
  2133. return ele;
  2134. })
  2135. this.zhongmeiInsuranceData = data;
  2136. this.zhongmeiaccidentalDrivingVo = {
  2137. rideRiskCode: data[0].rideRiskCode,
  2138. rideRiskName: data[0].rideRiskName,
  2139. quantity: data[0].quantity,
  2140. maxQuantity: data[0].maxQuantity,
  2141. unitPremium: data[0].unitPremium,
  2142. };
  2143. const defaultProject = findDefaultProject(data);
  2144. if (JSON.stringify(defaultProject.result) !== "{}") {
  2145. this.totalCompanyList[index].jychecked = true;
  2146. this.zhongmeiInsuranceData = defaultProject.list;
  2147. this.zhongmeiaccidentalDrivingVo = defaultProject.result;
  2148. } else {
  2149. this.zhongmeiInsuranceData = data;
  2150. this.zhongmeiaccidentalDrivingVo = data[0];
  2151. }
  2152. }
  2153. break;
  2154. case '渤海财险':
  2155. let bhcallback = await this.$http.post('/order/boHaiApi/productQuery', {
  2156. agreementId: this.totalCompanyList[index].agreement[0].id,
  2157. insuredPersonInfo: this.insuredPersonInfo,
  2158. policyHolderInfo: this.policyHolderInfo,
  2159. carnature: this.carInfo.carnature,
  2160. cimodelclass: this.carInfo.cimodelclass,
  2161. exhaustScale: this.carInfo.enginedesc,
  2162. limitLoad: "",
  2163. powerScale: this.carInfo.powerScale,
  2164. seatCount: Number(this.carInfo.seatCount),
  2165. vehicleUse: this.carInfo.vehicleUse,
  2166. });
  2167. if (bhcallback.code == '200') {
  2168. let data = bhcallback.data;
  2169. data.map(ele => {
  2170. ele.copies = 1;
  2171. return ele;
  2172. })
  2173. this.bohaiInsuranceData = data;
  2174. this.bohaiaccidentalDrivingVo = {
  2175. packageCode: data[0].packageCode,
  2176. productCode: data[0].productCode,
  2177. copies: data[0].copies,
  2178. premium: data[0].premium,
  2179. packageName: data[0].packageName,
  2180. };
  2181. }
  2182. break;
  2183. case '中国人寿':
  2184. case '恒邦财险':
  2185. case '众安财险':
  2186. case '太平财险':
  2187. case '华农财险':
  2188. let Insurancecallback = await this.$http.post(
  2189. '/api/drivingInsurance/getDrivingInsuranceRule', {
  2190. agreementId: this.totalCompanyList[index].agreement[0].id,
  2191. companyCode: code,
  2192. ruleSeatNum: Number(this.carInfo.seatCount),
  2193. ruleThirdPartyInsurance: ruleThirdPartyInsurance ? ruleThirdPartyInsurance
  2194. .amount : '',
  2195. ruleUseNature: this.carInfo.carnature,
  2196. kind: this.kindList,
  2197. risk: this.riskList,
  2198. });
  2199. if (Insurancecallback.code == 200) {
  2200. let data = Insurancecallback.data;
  2201. data.map(ele => {
  2202. ele.quantity = 1;
  2203. return ele;
  2204. })
  2205. const defaultProject = findDefaultProject(data);
  2206. if (JSON.stringify(defaultProject.result) !== "{}") {
  2207. this.totalCompanyList[index].jychecked = true;
  2208. this[name + "InsuranceData"] = defaultProject.list;
  2209. this[name + 'accidentalDrivingVo'] = defaultProject.result;
  2210. } else {
  2211. this[name + "InsuranceData"] = data;
  2212. this[name + 'accidentalDrivingVo'] = data[0];
  2213. }
  2214. // if (ins == '华农财险') {
  2215. // data.map(ele => {
  2216. // ele.accidentType = "";
  2217. // ele.allQuantity = 1;
  2218. // return ele;
  2219. // })
  2220. // data[0].accidentType = data[0].planCode;
  2221. // } else {
  2222. // data.map(ele => {
  2223. // ele.quantity = 1;
  2224. // return ele;
  2225. // })
  2226. // }
  2227. }
  2228. break;
  2229. default:
  2230. break;
  2231. }
  2232. }
  2233. },
  2234. //驾意险勾选框
  2235. /**
  2236. * @param {boolean} event //是否选中
  2237. * @param {string} code //保险公司code
  2238. * @param {string} name //字段关键词
  2239. * @param {string} index //当前勾选保险公司下标
  2240. */
  2241. async accidentChange(event, code, name, index) {
  2242. this.totalCompanyList[index].jychecked = event;
  2243. },
  2244. checkboxChangeInfo(event, index) {
  2245. this.totalCompanyList[index].jychecked = event.value;
  2246. },
  2247. //中煤
  2248. ZMradioChange(id) {
  2249. this.zhongmeiaccidentalDrivingVo = this.zhongmeiInsuranceData.find(val => val.projectCode == id)
  2250. this.zhongmeiPopupshow = false;
  2251. },
  2252. //渤海意外险
  2253. BHradioChange(id) {
  2254. let info = this.bohaiInsuranceData.find(val => val.productCode == id)
  2255. this.bohaiaccidentalDrivingVo = {
  2256. packageCode: info.packageCode,
  2257. productCode: info.productCode,
  2258. copies: info.copies,
  2259. packageName: info.packageName,
  2260. premium: info.premium,
  2261. }
  2262. this.bohaiPopupshow = false;
  2263. },
  2264. //人寿意外险
  2265. RSradioChange(id) {
  2266. this.renshouaccidentalDrivingVo = this.renshouInsuranceData.find(val => val.projectCode == id)
  2267. this.renshouPopupshow = false;
  2268. },
  2269. //恒邦意外险
  2270. HBradioChange(id) {
  2271. this.hengbangaccidentalDrivingVo = this.hengbangInsuranceData.find(val => val.projectCode ==
  2272. id)
  2273. this.hengbangPopupshow = false;
  2274. },
  2275. //众安意外险
  2276. ZAradioChange(id) {
  2277. this.zhonganaccidentalDrivingVo = this.zhonganInsuranceData.find(val => val.projectCode == id)
  2278. this.zhonganPopupshow = false;
  2279. },
  2280. //华农驾意险
  2281. HNradioChange(id) {
  2282. this.huanongaccidentalDrivingVo = this.huanongInsuranceData.find(val => val.projectCode == id);
  2283. this.huanongaccidentalDrivingVo.accidentType = this.huanongaccidentalDrivingVo.planCode;
  2284. this.huanongPopupshow = false;
  2285. },
  2286. //大家意外险
  2287. DJradioChange(id) {
  2288. let info = this.dajiaInsuranceData.find(val => val.id == id)
  2289. this.dajiaaccidentalDrivingVo = {
  2290. rideRiskCode: info.id,
  2291. rideRiskName: info.productName,
  2292. quantity: info.quantity,
  2293. price: info.price,
  2294. };
  2295. this.dajiaPopupshow = false;
  2296. },
  2297. TPradioChange(id) {
  2298. this.taipingaccidentalDrivingVo = this.taipingInsuranceData.find(val => val.projectCode == id)
  2299. this.taipingPopupshow = false;
  2300. },
  2301. //永诚意外险
  2302. YCradioChange(id) {
  2303. this.yongchengaccidentalDrivingVo = this.yongchengInsuranceData.find(val => val.projectCode == id)
  2304. this.yongchengPopupshow = false;
  2305. },
  2306. //安盛一级选择
  2307. ASprogrammeradioChange(id) {
  2308. let info = this.anshengprogrammeData.find((val => val.projectCode == id))
  2309. this.anshengPopupshow = false;
  2310. this.anshengaccidentalDrivingVo.parentCode = info.projectCode;
  2311. this.anshengaccidentalDrivingVo.parentName = info.projectName;
  2312. if (info.children) {
  2313. this.anshengInsuranceData = info.children;
  2314. Object.assign(this.anshengaccidentalDrivingVo, info.children[0]);
  2315. } else {
  2316. this.anshengInsuranceData = []
  2317. }
  2318. },
  2319. //安盛二级选择
  2320. ASInsuranceradioChange(id) {
  2321. let info = this.anshengInsuranceData.find((val => val.projectCode == id))
  2322. Object.assign(this.anshengaccidentalDrivingVo, info);
  2323. this.anshengPopupshow1 = false;
  2324. },
  2325. //国任一级选择
  2326. async GRprogrammeradioChange(id) {
  2327. let info = this.guorenprogrammeData.find((val => val.projectCode == id))
  2328. this.guorenPopupshow = false;
  2329. this.guoRenaccidentalDrivingVo.parentCode = info.projectCode;
  2330. this.guoRenaccidentalDrivingVo.parentName = info.projectName;
  2331. if (info.children) {
  2332. this.guoRenInsuranceData = info.children;
  2333. Object.assign(this.guoRenaccidentalDrivingVo, info.children[0]);
  2334. } else {
  2335. this.guoRenInsuranceData = []
  2336. }
  2337. },
  2338. //国任二级选择
  2339. GRInsuranceradioChange(id) {
  2340. let info = this.guoRenInsuranceData.find((val => val.projectCode == id))
  2341. Object.assign(this.guoRenaccidentalDrivingVo, info);
  2342. this.guorenPopupshow1 = false;
  2343. },
  2344. //紫金意外险
  2345. ZJcheckboxGroupChange(detail) {
  2346. this.zijinaccidentalDrivingVo = [];
  2347. detail.map(val => {
  2348. let list = this.zijinInsuranceData.find(item => item.projectCode == val)
  2349. this.zijinaccidentalDrivingVo.push(list)
  2350. })
  2351. },
  2352. //获取保险公司列表
  2353. async commpanyList() {
  2354. let commpanykad = await this.$http.get('/tax/manager/getAllAgreement');
  2355. commpanykad.data.map(ele => {
  2356. ele["result"] = {};
  2357. ele["quoteCode"] = 0;
  2358. ele["checked"] = false;
  2359. ele["jychecked"] = false;
  2360. ele["msg"] = "";
  2361. ele["agreementId"] = "";
  2362. ele["lastYearMsg"] = "";
  2363. ele["agreementName"] = "";
  2364. ele["apiType"] = "";
  2365. ele["coefficient"] = "";
  2366. ele["syAdjustRate"] = "";
  2367. ele["selectShow"] = false;
  2368. ele['underwritingDescription'] = "";
  2369. })
  2370. if (this.insAreaCompanyEditingDtos.length > 0) {
  2371. commpanykad.data.forEach((val, index) => {
  2372. this.insAreaCompanyEditingDtos.map(ele => {
  2373. if (val.namesimple == ele.inscompany) {
  2374. commpanykad.data[index].quoteCode = 200;
  2375. commpanykad.data[index].result = ele;
  2376. }
  2377. })
  2378. })
  2379. }
  2380. // //险种合并集合
  2381. // const combinedArray = [
  2382. // ...this.riskList.map(item => item.riskCode),
  2383. // ...this.kindList.map(item => item.kindCode),
  2384. // ];
  2385. // commpanykad.data = commpanykad.data.filter(obj => {
  2386. // obj.agreement = obj.agreement.filter(agreementObj => {
  2387. // // 险种配置为空,则过滤掉该协议
  2388. // if (agreementObj.productsCodes == null) {
  2389. // return false;
  2390. // }
  2391. // return agreementObj.productsCodes.some(item => combinedArray.includes(item));
  2392. // });
  2393. // return obj.agreement.length > 0; // 返回true保留,返回false移除该保险公司
  2394. // });
  2395. this.totalCompanyList = commpanykad.data;
  2396. },
  2397. async toNext() {
  2398. var allAreFalse = this.totalCompanyList.every(function(element) {
  2399. return element.checked === false;
  2400. });
  2401. if (!allAreFalse) {
  2402. this.OrderStageProcessing();
  2403. } else {
  2404. uni.showToast({
  2405. title: "请选择保险公司后,在进行报价",
  2406. icon: 'none',
  2407. });
  2408. }
  2409. },
  2410. async OrderStageProcessing() {
  2411. this.riskList.map(val => {
  2412. if (val.riskCode == '0507') {
  2413. val.startDate = this.jqstartDate;
  2414. val.endDate = this.jqendDate;
  2415. } else if (val.riskCode == '0510') {
  2416. val.startDate = this.systartDate;
  2417. val.endDate = this.syendDate;
  2418. }
  2419. })
  2420. let param = {
  2421. userId: this.userInfo.sysUser.id,
  2422. quoteno: this.quoteno ? this.quoteno : "",
  2423. orderNo: this.orderno ? this.orderno : "",
  2424. carInfo: this.carInfo,
  2425. insuredPersonInfo: this.insuredPersonInfo,
  2426. ownerInfo: this.ownerInfo,
  2427. policyHolderInfo: this.policyHolderInfo,
  2428. kindList: this.kindList,
  2429. riskList: this.riskList,
  2430. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2431. };
  2432. let orders = await this.$http.post('/insurance/order/generateOrder', param);
  2433. if (orders.code == '200') {
  2434. this.orderno = orders.data.orderno;
  2435. this.quoteno = orders.data.quoteno;
  2436. let mergedArray = [];
  2437. let mergedArrayList = mergedArray.concat(this.carInfoPositiveList, this
  2438. .ownerInfoPositiveList, this
  2439. .policyHolderInfoPositiveList, this.insuredPersonInfoPositiveList)
  2440. if (mergedArrayList.length > 0) {
  2441. await this.$http.post('/ins/taskImage/uploadImages', {
  2442. imageList: mergedArrayList,
  2443. quoteNo: this.quoteno,
  2444. })
  2445. }
  2446. this.totalCompanyList.map((ele, index) => {
  2447. if (ele.checked) {
  2448. //动态调用报价接口
  2449. ele.quoteCode = "1";
  2450. this.ToolClickFun(ele.cnName, index, ele.id);
  2451. }
  2452. });
  2453. } else if (orders.code == '1001') {
  2454. this.Generateshow = true;
  2455. } else {
  2456. uni.showToast({
  2457. title: orders.msg,
  2458. icon: 'none',
  2459. });
  2460. }
  2461. },
  2462. GenerateModalConfirm() {
  2463. this.orderno = "";
  2464. this.quoteno = "";
  2465. this.toNext();
  2466. },
  2467. //动态函数
  2468. async ToolClickFun(MethodName, Parameter, companyId) {
  2469. await this[`${MethodName}`](Parameter, companyId)
  2470. },
  2471. //永安报价
  2472. async yongan(num, id) {
  2473. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2474. let params = {
  2475. orderNo: this.orderno,
  2476. companyId: id,
  2477. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2478. };
  2479. let quote = await this.$http('/order/yongAn/quote', params);
  2480. if (quote.msg == "重复投保" && quote.code == "501") {
  2481. if (!!quote.data.jqStartDate && !quote.data.syStartDate) {
  2482. this.jqstartDate = quote.data.jqStartDate;
  2483. this.jqendDate = quote.data.jqEndDate;
  2484. if (this.riskList.length > 0) {
  2485. for (let i = 0; i < this.riskList.length; i++) {
  2486. if (this.riskList[i].riskCode == "0507") {
  2487. this.riskList[i].startDate = quote.data.jqStartDate;
  2488. this.riskList[i].endDate = quote.data.jqEndDate;
  2489. }
  2490. }
  2491. }
  2492. let param = {
  2493. userId: this.userInfo.sysUser.id,
  2494. quoteno: this.quoteno,
  2495. orderNo: this.orderno,
  2496. carInfo: this.carInfo,
  2497. insuredPersonInfo: this.insuredPersonInfo,
  2498. ownerInfo: this.ownerInfo,
  2499. policyHolderInfo: this.policyHolderInfo,
  2500. kindList: this.kindList,
  2501. riskList: this.riskList,
  2502. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2503. };
  2504. await this.$http.post('/insurance/order/generateOrder', param);
  2505. return this.yongan(num, id);
  2506. } else if (!!quote.data.syStartDate && !quote.data.jqStartDate) {
  2507. } else if (!!quote.data.syStartDate && !!quote.data.jqStartDate) {
  2508. } else {
  2509. this.totalCompanyList[num].quoteCode = "3";
  2510. this.totalCompanyList[num].msg = "重复投保";
  2511. }
  2512. } else if (quote.code == "500" || quote.code == "502" || quote.code ==
  2513. "-9999") {
  2514. this.totalCompanyList[num].quoteCode = "-9999";
  2515. this.totalCompanyList[num].msg = quote.msg;
  2516. } else {
  2517. this.totalCompanyList[num].quoteCode = 200;
  2518. this.totalCompanyList[num].result = quote.data;
  2519. this.subOrderId = quote.data.companyId;
  2520. this.coordinateValue();
  2521. }
  2522. },
  2523. //中煤报价
  2524. async zhongmei(num, id) {
  2525. let jychecked = this.totalCompanyList[num].jychecked;
  2526. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2527. let params = {
  2528. accidentalDrivingVo: jychecked ? this.zhongmeiaccidentalDrivingVo : {},
  2529. orderNo: this.orderno,
  2530. companyId: id,
  2531. agreementId: this.totalCompanyList[num].agreementId,
  2532. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2533. };
  2534. let res = await this.$http.post('/order/zhongMeiApi/quote', params);
  2535. this.totalCompanyList[num].msg = res.msg;
  2536. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  2537. this.totalCompanyList[num].quoteCode = "4";
  2538. this.totalCompanyList[num].msg = res.msg;
  2539. return;
  2540. } else if (
  2541. res.data == null &&
  2542. res.msg.indexOf("交强险平台返回") > -1 &&
  2543. res.msg.indexOf(";终保日期") > -1
  2544. ) {
  2545. let time =
  2546. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  2547. this.jqstartDate = time;
  2548. this.jqendDate = this.oneYearPast(time);
  2549. if (this.riskList.length > 0) {
  2550. for (let i = 0; i < this.riskList.length; i++) {
  2551. if (this.riskList[i].riskCode == "0507") {
  2552. this.riskList[i].startDate = time;
  2553. this.riskList[i].endDate = this.oneYearPast(time);
  2554. }
  2555. }
  2556. }
  2557. let param = {
  2558. userId: this.userInfo.sysUser.id,
  2559. quoteno: this.quoteno,
  2560. orderNo: this.orderno,
  2561. carInfo: this.carInfo,
  2562. insuredPersonInfo: this.insuredPersonInfo,
  2563. ownerInfo: this.ownerInfo,
  2564. policyHolderInfo: this.policyHolderInfo,
  2565. kindList: this.kindList,
  2566. riskList: this.riskList,
  2567. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2568. };
  2569. await this.$http.post('/insurance/order/generateOrder', param);
  2570. return this.zhongmei(num, id);
  2571. } else if (res.code == '200') {
  2572. if (res.data.warnMessageList != null && res.data.warnMessageList[
  2573. 0] != null && res.data
  2574. .warnMessageList[
  2575. 0] != "") {
  2576. this.totalCompanyList[num].lastYearMsg = "";
  2577. let dat = res.data.warnMessageList;
  2578. dat.map(ele => {
  2579. this.totalCompanyList[num].lastYearMsg += ele +
  2580. '<br>';
  2581. })
  2582. }
  2583. this.totalCompanyList[num].quoteCode = 200;
  2584. this.totalCompanyList[num].result = res.data;
  2585. this.subOrderId = res.data.companyId;
  2586. this.coordinateValue();
  2587. } else {
  2588. this.totalCompanyList[num].quoteCode = "3";
  2589. this.totalCompanyList[num].msg = res.msg;
  2590. return;
  2591. }
  2592. },
  2593. //渤海报价
  2594. async bohai(num, id) {
  2595. let jychecked = this.totalCompanyList[num].jychecked;
  2596. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2597. let params = {
  2598. accidentalDrivingVo: jychecked ? [this.bohaiaccidentalDrivingVo] : [],
  2599. orderNo: this.orderno,
  2600. companyId: id,
  2601. agreementId: this.totalCompanyList[num].agreementId,
  2602. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2603. };
  2604. let res = await this.$http.post('/order/boHaiApi/quote', params);
  2605. this.totalCompanyList[num].msg = res.msg;
  2606. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  2607. this.totalCompanyList[num].quoteCode = "4";
  2608. this.totalCompanyList[num].msg = res.msg;
  2609. return;
  2610. } else if (
  2611. res.data == null &&
  2612. res.msg.indexOf("交强险平台返回") > -1 &&
  2613. res.msg.indexOf(";终保日期") > -1
  2614. ) {
  2615. let time =
  2616. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) + ":00";
  2617. this.jqstartDate = time;
  2618. this.jqendDate = this.oneYearPast(time);
  2619. if (this.riskList.length > 0) {
  2620. for (let i = 0; i < this.riskList.length; i++) {
  2621. if (this.riskList[i].riskCode == "0507") {
  2622. this.riskList[i].startDate = time;
  2623. this.riskList[i].endDate = this.oneYearPast(time);
  2624. }
  2625. }
  2626. }
  2627. let param = {
  2628. userId: this.userInfo.sysUser.id,
  2629. quoteno: this.quoteno,
  2630. orderNo: this.orderno,
  2631. carInfo: this.carInfo,
  2632. insuredPersonInfo: this.insuredPersonInfo,
  2633. ownerInfo: this.ownerInfo,
  2634. policyHolderInfo: this.policyHolderInfo,
  2635. kindList: this.kindList,
  2636. riskList: this.riskList,
  2637. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2638. };
  2639. await this.$http.post('/insurance/order/generateOrder', param);
  2640. return this.zhongmei(num, id);
  2641. } else if (res.code == '200') {
  2642. if (res.data.warnMessageList != null && res.data.warnMessageList[
  2643. 0] != null && res.data
  2644. .warnMessageList[
  2645. 0] != "") {
  2646. this.totalCompanyList[num].lastYearMsg = "";
  2647. let dat = res.data.warnMessageList;
  2648. dat.map(ele => {
  2649. this.totalCompanyList[num].lastYearMsg += ele +
  2650. '<br>';
  2651. })
  2652. }
  2653. this.totalCompanyList[num].quoteCode = 200;
  2654. this.totalCompanyList[num].result = res.data;
  2655. this.subOrderId = res.data.companyId;
  2656. this.coordinateValue();
  2657. } else {
  2658. this.totalCompanyList[num].quoteCode = "3";
  2659. this.totalCompanyList[num].msg = res.msg;
  2660. return;
  2661. }
  2662. },
  2663. //永诚报价
  2664. async yongcheng(num, id) {
  2665. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2666. let jychecked = this.totalCompanyList[num].jychecked;
  2667. let params = {
  2668. accidentalDrivingVo: jychecked ? this
  2669. .yongchengaccidentalDrivingVo : {},
  2670. orderNo: this.orderno,
  2671. companyId: id,
  2672. cqryCdeJq: this.cqryCdeJq,
  2673. cqryCdeSy: this.cqryCdeSy,
  2674. renewalCodeJq: this.renewalCodeJq,
  2675. renewalCodeSy: this.renewalCodeSy,
  2676. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2677. agreementId: this.totalCompanyList[num].agreementId,
  2678. };
  2679. let res = await this.$http.post('/api/yongCheng/quote', params);
  2680. this.totalCompanyList[num].msg = res.msg;
  2681. if (res.code == "200") {
  2682. if (res.data.warnMessageList != null && res.data
  2683. .warnMessageList[0] != null && res.data
  2684. .warnMessageList[
  2685. 0] != "") {
  2686. this.totalCompanyList[num].lastYearMsg = "";
  2687. let dat = res.data.warnMessageList;
  2688. dat.map(ele => {
  2689. this.totalCompanyList[num].lastYearMsg += ele +
  2690. '<br>';
  2691. })
  2692. }
  2693. this.totalCompanyList[num].quoteCode = 200;
  2694. this.totalCompanyList[num].result = res.data;
  2695. this.subOrderId = res.data.companyId;
  2696. this.coordinateValue();
  2697. } else if (res.code == "101") {
  2698. this.totalCompanyList[num].quoteCode = "101";
  2699. this.totalCompanyList[num].msg = res.msg;
  2700. this.cqryCdeJq = res.data.cqryCdeJq;
  2701. this.cqryCdeSy = res.data.cqryCdeSy;
  2702. let jq = res.data.renewalCodeJq.replace(/[\r\n]/g, "");
  2703. let jqBase64 = `data:image/png;base64,${jq}`;
  2704. this.renewalCodeJqImg = jqBase64;
  2705. if (res.data.renewalCodeSy) {
  2706. let sy = res.data.renewalCodeSy.replace(/[\r\n]/g, "");
  2707. let syBase64 = `data:image/png;base64,${sy}`;
  2708. this.renewalCodeSyImg = syBase64;
  2709. }
  2710. this.renewalCodedialogVisible = true;
  2711. } else {
  2712. this.totalCompanyList[num].quoteCode = "3";
  2713. this.totalCompanyList[num].msg = res.msg;
  2714. return;
  2715. }
  2716. },
  2717. //紫金报价
  2718. async zijin(num, id) {
  2719. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2720. let params = {
  2721. accidentalDrivingVo: this.zijinaccidentalDrivingVo,
  2722. orderNo: this.orderno,
  2723. companyId: id,
  2724. agreementId: this.totalCompanyList[num].agreementId,
  2725. coefficient: this.totalCompanyList[num].coefficient,
  2726. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2727. };
  2728. let res = await this.$http.post('/order/zijin/quote', params);
  2729. this.totalCompanyList[num].msg = res.msg;
  2730. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  2731. this.totalCompanyList[num].quoteCode = "4";
  2732. this.totalCompanyList[num].msg = res.msg;
  2733. return;
  2734. } else if (
  2735. res.data == null &&
  2736. res.msg.indexOf("交强险平台返回") > -1 &&
  2737. res.msg.indexOf(";终保日期") > -1
  2738. ) {
  2739. let time =
  2740. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) +
  2741. ":00";
  2742. this.jqstartDate = time;
  2743. this.jqendDate = this.oneYearPast(time);
  2744. this.systartDate = time;
  2745. this.syendDate = this.oneYearPast(time);
  2746. if (this.riskList.length > 0) {
  2747. for (let i = 0; i < this.riskList.length; i++) {
  2748. if (this.riskList[i].riskCode == "0507") {
  2749. this.riskList[i].startDate = time;
  2750. this.riskList[i].endDate = this.oneYearPast(
  2751. time);
  2752. } else if (this.riskList[i].riskCode == "0510") {
  2753. this.riskList[i].startDate = time;
  2754. this.riskList[i].endDate = this.oneYearPast(
  2755. time);
  2756. }
  2757. }
  2758. }
  2759. let param = {
  2760. userId: this.userInfo.sysUser.id,
  2761. quoteno: this.quoteno,
  2762. orderNo: this.orderno,
  2763. carInfo: this.carInfo,
  2764. insuredPersonInfo: this.insuredPersonInfo,
  2765. ownerInfo: this.ownerInfo,
  2766. policyHolderInfo: this.policyHolderInfo,
  2767. kindList: this.kindList,
  2768. riskList: this.riskList,
  2769. vehicleAndVesselTax: this.vehicleAndVesselTaxForm,
  2770. };
  2771. await this.$http.post('/insurance/order/generateOrder',
  2772. param);
  2773. return this.zijin(num, id);
  2774. } else if (res.code == '200') {
  2775. if (res.data.warnMessageList != null && res.data
  2776. .warnMessageList[0] != null && res.data
  2777. .warnMessageList[
  2778. 0] != "") {
  2779. this.totalCompanyList[num].lastYearMsg = "";
  2780. let dat = res.data.warnMessageList;
  2781. dat.map(ele => {
  2782. this.totalCompanyList[num].lastYearMsg +=
  2783. ele + '<br>';
  2784. })
  2785. }
  2786. this.totalCompanyList[num].quoteCode = 200;
  2787. this.totalCompanyList[num].result = res.data;
  2788. this.subOrderId = res.data.companyId;
  2789. this.coordinateValue();
  2790. } else {
  2791. this.totalCompanyList[num].quoteCode = "3";
  2792. this.totalCompanyList[num].msg = res.msg;
  2793. return;
  2794. }
  2795. },
  2796. //国任报价
  2797. async guoRen(num, id) {
  2798. let jychecked = this.totalCompanyList[num].jychecked;
  2799. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2800. let params = {
  2801. accidentalDrivingVo: jychecked ? this
  2802. .guoRenaccidentalDrivingVo : {},
  2803. orderNo: this.orderno,
  2804. companyId: id,
  2805. agreementId: this.totalCompanyList[num]
  2806. .agreementId,
  2807. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2808. guoRenSpecialAgreementVo: this.guoRenSpecialAgreementVo,
  2809. };
  2810. let res = await this.$http.post('/api/guoRen/quote',
  2811. params);
  2812. this.totalCompanyList[num].msg = res.msg;
  2813. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  2814. this.totalCompanyList[num].quoteCode = "4";
  2815. this.totalCompanyList[num].msg = res.msg;
  2816. return;
  2817. } else if (
  2818. res.data == null &&
  2819. res.msg.indexOf("交强险平台返回") > -1 &&
  2820. res.msg.indexOf(";终保日期") > -1
  2821. ) {
  2822. let time =
  2823. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6, 16) +
  2824. ":00";
  2825. this.jqstartDate = time;
  2826. this.jqendDate = this.oneYearPast(time);
  2827. this.systartDate = time;
  2828. this.syendDate = this.oneYearPast(time);
  2829. if (this.riskList.length > 0) {
  2830. for (let i = 0; i < this.riskList.length; i++) {
  2831. if (this.riskList[i].riskCode == "0507") {
  2832. this.riskList[i].startDate = time;
  2833. this.riskList[i].endDate = this
  2834. .oneYearPast(time);
  2835. } else if (this.riskList[i].riskCode ==
  2836. "0510") {
  2837. this.riskList[i].startDate = time;
  2838. this.riskList[i].endDate = this
  2839. .oneYearPast(time);
  2840. }
  2841. }
  2842. }
  2843. let param = {
  2844. userId: this.userInfo.sysUser.id,
  2845. quoteno: this.quoteno,
  2846. orderNo: this.orderno,
  2847. carInfo: this.carInfo,
  2848. insuredPersonInfo: this.insuredPersonInfo,
  2849. ownerInfo: this.ownerInfo,
  2850. policyHolderInfo: this.policyHolderInfo,
  2851. kindList: this.kindList,
  2852. riskList: this.riskList,
  2853. vehicleAndVesselTax: this
  2854. .vehicleAndVesselTaxForm,
  2855. };
  2856. await this.$http.post('/insurance/order/generateOrder',
  2857. param);
  2858. return this.guoRen(num, id);
  2859. } else if (res.code == '200') {
  2860. if (res.data.warnMessageList != null && res.data
  2861. .warnMessageList[0] != null && res.data
  2862. .warnMessageList[
  2863. 0] != "") {
  2864. this.totalCompanyList[num].lastYearMsg = "";
  2865. let dat = res.data.warnMessageList;
  2866. dat.map(ele => {
  2867. this.totalCompanyList[num]
  2868. .lastYearMsg += ele + '<br>';
  2869. })
  2870. }
  2871. this.totalCompanyList[num].quoteCode = 200;
  2872. this.totalCompanyList[num].result = res.data;
  2873. this.subOrderId = res.data.companyId;
  2874. this.coordinateValue();
  2875. } else {
  2876. this.totalCompanyList[num].quoteCode = "3";
  2877. this.totalCompanyList[num].msg = res.msg;
  2878. return;
  2879. }
  2880. },
  2881. //大家报价
  2882. async dajia(num, id) {
  2883. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2884. let jychecked = this.totalCompanyList[num].jychecked
  2885. let params = {
  2886. accidentalDrivingVo: jychecked ? this
  2887. .dajiaaccidentalDrivingVo : {},
  2888. orderNo: this.orderno,
  2889. companyId: id,
  2890. cqryCdeJq: this.cqryCdeJq,
  2891. cqryCdeSy: this.cqryCdeSy,
  2892. renewalCodeJq: this.renewalCodeJq,
  2893. renewalCodeSy: this.renewalCodeSy,
  2894. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2895. agreementId: this.totalCompanyList[num]
  2896. .agreementId,
  2897. };
  2898. let res = await this.$http.post('/api/dajia/quote',
  2899. params);
  2900. this.totalCompanyList[num].msg = res.msg;
  2901. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  2902. this.totalCompanyList[num].quoteCode = "4";
  2903. this.totalCompanyList[num].msg = res.msg;
  2904. return;
  2905. } else if (
  2906. res.data == null &&
  2907. res.msg.indexOf("交强险平台返回") > -1 &&
  2908. res.msg.indexOf(";终保日期") > -1
  2909. ) {
  2910. let time =
  2911. res.msg.substr(res.msg.indexOf(";终保日期 ") + 6,
  2912. 16) + ":00";
  2913. this.jqstartDate = time;
  2914. this.jqendDate = this.oneYearPast(time);
  2915. this.systartDate = time;
  2916. this.syendDate = this.oneYearPast(time);
  2917. if (this.riskList.length > 0) {
  2918. for (let i = 0; i < this.riskList
  2919. .length; i++) {
  2920. if (this.riskList[i].riskCode == "0507") {
  2921. this.riskList[i].startDate = time;
  2922. this.riskList[i].endDate = this
  2923. .oneYearPast(time);
  2924. } else if (this.riskList[i].riskCode ==
  2925. "0510") {
  2926. this.riskList[i].startDate = time;
  2927. this.riskList[i].endDate = this
  2928. .oneYearPast(time);
  2929. }
  2930. }
  2931. }
  2932. let param = {
  2933. userId: this.userInfo.sysUser.id,
  2934. quoteno: this.quoteno,
  2935. orderNo: this.orderno,
  2936. carInfo: this.carInfo,
  2937. insuredPersonInfo: this.insuredPersonInfo,
  2938. ownerInfo: this.ownerInfo,
  2939. policyHolderInfo: this.policyHolderInfo,
  2940. kindList: this.kindList,
  2941. riskList: this.riskList,
  2942. vehicleAndVesselTax: this
  2943. .vehicleAndVesselTaxForm,
  2944. };
  2945. await this.$http.post(
  2946. '/insurance/order/generateOrder', param);
  2947. return this.dajia(num, id);
  2948. } else if (res.code == '200') {
  2949. if (res.data.warnMessageList != null && res.data
  2950. .warnMessageList[0] != null && res.data
  2951. .warnMessageList[
  2952. 0] != "") {
  2953. this.totalCompanyList[num].lastYearMsg = "";
  2954. let dat = res.data.warnMessageList;
  2955. dat.map(ele => {
  2956. this.totalCompanyList[num]
  2957. .lastYearMsg += ele + '<br>';
  2958. })
  2959. }
  2960. this.totalCompanyList[num].quoteCode = 200;
  2961. this.totalCompanyList[num].result = res.data;
  2962. this.subOrderId = res.data.companyId;
  2963. this.coordinateValue();
  2964. } else {
  2965. this.totalCompanyList[num].quoteCode = "3";
  2966. this.totalCompanyList[num].msg = res.msg;
  2967. return;
  2968. }
  2969. },
  2970. //华泰报价
  2971. async huatai(num, id) {
  2972. let type = this.totalCompanyList[num].apiType;
  2973. let api = type == 2 ? "/insurance/crawler/quote" : "/order/huaTaiApi/quote";
  2974. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  2975. let params = {
  2976. accidentalDrivingVo: {},
  2977. orderNo: this.orderno,
  2978. companyId: id,
  2979. cqryCdeJq: this.cqryCdeJq,
  2980. cqryCdeSy: this.cqryCdeSy,
  2981. renewalCodeJq: this.renewalCodeJq,
  2982. renewalCodeSy: this.renewalCodeSy,
  2983. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  2984. agreementId: this.totalCompanyList[num]
  2985. .agreementId,
  2986. };
  2987. let res = await this.$http.post(
  2988. `${api}`, params);
  2989. this.totalCompanyList[num].msg = res.msg;
  2990. if (!!res.msg && res.msg.indexOf("不存在有效协议") >= 0) {
  2991. this.totalCompanyList[num].quoteCode = "4";
  2992. this.totalCompanyList[num].msg = res.msg;
  2993. return;
  2994. } else if (
  2995. res.data == null &&
  2996. res.msg.indexOf("交强险平台返回") > -1 &&
  2997. res.msg.indexOf(";终保日期") > -1
  2998. ) {
  2999. let time =
  3000. res.msg.substr(res.msg.indexOf(";终保日期 ") +
  3001. 6, 16) + ":00";
  3002. this.jqstartDate = time;
  3003. this.jqendDate = this.oneYearPast(time);
  3004. this.systartDate = time;
  3005. this.syendDate = this.oneYearPast(time);
  3006. if (this.riskList.length > 0) {
  3007. for (let i = 0; i < this.riskList
  3008. .length; i++) {
  3009. if (this.riskList[i].riskCode ==
  3010. "0507") {
  3011. this.riskList[i].startDate = time;
  3012. this.riskList[i].endDate = this
  3013. .oneYearPast(time);
  3014. } else if (this.riskList[i].riskCode ==
  3015. "0510") {
  3016. this.riskList[i].startDate = time;
  3017. this.riskList[i].endDate = this
  3018. .oneYearPast(time);
  3019. }
  3020. }
  3021. }
  3022. let param = {
  3023. userId: this.userInfo.sysUser.id,
  3024. quoteno: this.quoteno,
  3025. orderNo: this.orderno,
  3026. carInfo: this.carInfo,
  3027. insuredPersonInfo: this
  3028. .insuredPersonInfo,
  3029. ownerInfo: this.ownerInfo,
  3030. policyHolderInfo: this
  3031. .policyHolderInfo,
  3032. kindList: this.kindList,
  3033. riskList: this.riskList,
  3034. vehicleAndVesselTax: this
  3035. .vehicleAndVesselTaxForm,
  3036. };
  3037. await this.$http.post(
  3038. '/insurance/order/generateOrder', param
  3039. );
  3040. return this.huatai(num, id);
  3041. } else if (res.code == '200') {
  3042. if (res.data.warnMessageList != null && res
  3043. .data.warnMessageList[0] != null && res
  3044. .data
  3045. .warnMessageList[
  3046. 0] != "") {
  3047. this.totalCompanyList[num].lastYearMsg =
  3048. "";
  3049. let dat = res.data.warnMessageList;
  3050. dat.map(ele => {
  3051. this.totalCompanyList[num]
  3052. .lastYearMsg += ele + '<br>';
  3053. })
  3054. }
  3055. this.totalCompanyList[num].quoteCode = 200;
  3056. this.totalCompanyList[num].result = res.data;
  3057. this.subOrderId = res.data.companyId;
  3058. this.coordinateValue();
  3059. } else {
  3060. this.totalCompanyList[num].quoteCode = "3";
  3061. this.totalCompanyList[num].msg = res.msg;
  3062. return;
  3063. }
  3064. },
  3065. //爬虫统一报价接口
  3066. async quoteInsurance(num, id, apiType, jychecked) {
  3067. const companyId = uni.getStorageSync('companyId');
  3068. let api = apiType === 2 ?
  3069. "/insurance/crawler/quote" :
  3070. "";
  3071. let ccidenttype = this.totalCompanyList[num]
  3072. .cnName;
  3073. let namesimple = this.totalCompanyList[num]
  3074. .namesimple;
  3075. let isTaxSource = this.totalCompanyList[num].isTaxSource;
  3076. // if (ccidenttype == "huanong") {
  3077. // this[ccidenttype + 'accidentalDrivingVo'].quantity = this[ccidenttype + 'accidentalDrivingVo']
  3078. // .allQuantity;
  3079. // }
  3080. let params = {
  3081. orderNo: this.orderno,
  3082. companyId: id,
  3083. agreementId: this.totalCompanyList[num]
  3084. .agreementId,
  3085. isTaxSource: isTaxSource == 1 ? isTaxSource : null,
  3086. accidentalDrivingVo: jychecked ? this[
  3087. ccidenttype +
  3088. 'accidentalDrivingVo'] : {},
  3089. };
  3090. if (id = 'GPIC1000000') {
  3091. if (companyId) {
  3092. params.discount = this.totalCompanyList[num]
  3093. .syAdjustRate;
  3094. params.lastCompanyId = companyId;
  3095. }
  3096. }
  3097. let res = await this.$http.post(`${api}`,
  3098. params);
  3099. this.totalCompanyList[num].msg = res.msg;
  3100. switch (namesimple) {
  3101. case '安盛天平':
  3102. case '恒邦财险':
  3103. case '中国人寿':
  3104. case '太平财险':
  3105. case '华农财险':
  3106. if (!!res.data) {
  3107. if (res.data.warnMessageList !=
  3108. null && res.data
  3109. .warnMessageList[0] != null &&
  3110. res.data
  3111. .warnMessageList[
  3112. 0] != "") {
  3113. this.totalCompanyList[num]
  3114. .lastYearMsg = "";
  3115. let dat = res.data
  3116. .warnMessageList;
  3117. dat.map(ele => {
  3118. this.totalCompanyList[
  3119. num]
  3120. .lastYearMsg +=
  3121. ele + '<br>';
  3122. })
  3123. }
  3124. this.totalCompanyList[num]
  3125. .quoteCode = 200;
  3126. this.totalCompanyList[num].result =
  3127. res.data;
  3128. this.subOrderId = res.data.companyId;
  3129. this.coordinateValue();
  3130. if (res.data.syAdjustRate) {
  3131. this.totalCompanyList[num].syAdjustRate = res.data.syAdjustRate;
  3132. uni.setStorageSync('companyId', res.data.companyId);
  3133. }
  3134. } else {
  3135. this.totalCompanyList[num]
  3136. .quoteCode = "3";
  3137. this.totalCompanyList[num].msg =
  3138. res.msg;
  3139. return;
  3140. }
  3141. break;
  3142. case '众安财险':
  3143. if (!!res.data) {
  3144. if (res.data.warnMessageList !=
  3145. null && res.data
  3146. .warnMessageList[0] != null &&
  3147. res.data
  3148. .warnMessageList[
  3149. 0] != "") {
  3150. this.totalCompanyList[num]
  3151. .lastYearMsg = "";
  3152. let dat = res.data
  3153. .warnMessageList;
  3154. dat.map(ele => {
  3155. this.totalCompanyList[
  3156. num]
  3157. .lastYearMsg +=
  3158. ele + '<br>';
  3159. })
  3160. }
  3161. this.totalCompanyList[num]
  3162. .quoteCode = 200;
  3163. this.totalCompanyList[num].result =
  3164. res.data;
  3165. this.subOrderId = res.data.companyId;
  3166. this.coordinateValue();
  3167. } else {
  3168. this.totalCompanyList[num]
  3169. .quoteCode = "3";
  3170. this.totalCompanyList[num].msg =
  3171. res.msg;
  3172. return;
  3173. }
  3174. break;
  3175. default:
  3176. break;
  3177. }
  3178. },
  3179. //华农
  3180. huanong(num, id) {
  3181. this.quoteInsurance(num, id, this
  3182. .totalCompanyList[num].apiType, this
  3183. .totalCompanyList[num].jychecked);
  3184. },
  3185. //太平
  3186. taiping(num, id) {
  3187. this.quoteInsurance(num, id, this
  3188. .totalCompanyList[num].apiType, this
  3189. .totalCompanyList[num].jychecked);
  3190. },
  3191. //安盛天平
  3192. ansheng(num, id) {
  3193. this.quoteInsurance(num, id, this
  3194. .totalCompanyList[num].apiType, this
  3195. .totalCompanyList[num].jychecked);
  3196. },
  3197. //众安
  3198. zhongan(num, id) {
  3199. this.quoteInsurance(num, id, this
  3200. .totalCompanyList[num].apiType, this
  3201. .totalCompanyList[num].jychecked);
  3202. },
  3203. //人寿
  3204. renshou(num, id) {
  3205. this.quoteInsurance(num, id, this
  3206. .totalCompanyList[num].apiType, this
  3207. .totalCompanyList[num].jychecked);
  3208. },
  3209. //恒邦
  3210. hengbang(num, id) {
  3211. this.quoteInsurance(num, id, this
  3212. .totalCompanyList[num].apiType, this
  3213. .totalCompanyList[num].jychecked);
  3214. },
  3215. Lastyear() {
  3216. this.$refs.lastYearMsgCI.show() // 显示
  3217. },
  3218. adjustPopupInsureSubmit() {
  3219. this.$refs.lastYearMsgCI.hide() // 显示
  3220. },
  3221. // 重新选择车型
  3222. toCarInfo() {
  3223. this.navigate({
  3224. url: '/pages/carInsure2/Information',
  3225. success: (res) => {
  3226. res.eventChannel.emit(
  3227. "acceptData", {
  3228. carInfo: this
  3229. .carInfo,
  3230. ownerInfo: this
  3231. .ownerInfo,
  3232. policyHolderInfo: this
  3233. .policyHolderInfo,
  3234. insuredPersonInfo: this
  3235. .insuredPersonInfo,
  3236. riskList: this
  3237. .riskList,
  3238. kindList: this
  3239. .kindList,
  3240. carInfoPositiveList: this
  3241. .carInfoPositiveList, //车辆
  3242. ownerInfoPositiveList: this
  3243. .ownerInfoPositiveList, //车主
  3244. policyHolderInfoPositiveList: this
  3245. .policyHolderInfoPositiveList, //投保
  3246. insuredPersonInfoPositiveList: this
  3247. .insuredPersonInfoPositiveList, //被保人
  3248. })
  3249. }
  3250. }, "navigateTo", true);
  3251. },
  3252. // 重新选择方案
  3253. toInsureItems() {
  3254. this.navigate({
  3255. url: '/pages/carInsure2/insureItems',
  3256. success: (res) => {
  3257. res.eventChannel.emit(
  3258. "acceptData", {
  3259. carInfo: this
  3260. .carInfo,
  3261. ownerInfo: this
  3262. .ownerInfo,
  3263. policyHolderInfo: this
  3264. .policyHolderInfo,
  3265. insuredPersonInfo: this
  3266. .insuredPersonInfo,
  3267. riskList: this
  3268. .riskList,
  3269. kindList: this
  3270. .kindList,
  3271. carInfoPositiveList: this
  3272. .carInfoPositiveList, //车辆
  3273. ownerInfoPositiveList: this
  3274. .ownerInfoPositiveList, //车主
  3275. policyHolderInfoPositiveList: this
  3276. .policyHolderInfoPositiveList, //投保
  3277. insuredPersonInfoPositiveList: this
  3278. .insuredPersonInfoPositiveList, //被保人
  3279. vehicleModel: this
  3280. .vehicleAndVesselTaxForm,
  3281. })
  3282. }
  3283. }, "navigateTo", true);
  3284. },
  3285. // 显示报错信息
  3286. ErrorMsg(msg, title) {
  3287. uni.showModal({
  3288. title: title + "报价提示",
  3289. content: msg,
  3290. showCancel: false,
  3291. confirmText: "关闭"
  3292. })
  3293. },
  3294. //上年信息
  3295. YearMsg(msg, title) {
  3296. let content = msg.replace(/<br>/g, "\r\n")
  3297. uni.showModal({
  3298. title: title + "上年信息",
  3299. content: content,
  3300. showCancel: false,
  3301. confirmText: "关闭"
  3302. })
  3303. },
  3304. discountErrorMessageMsg(msg, title) {
  3305. let content = msg.replace(/\n/g, "\r\n")
  3306. uni.showModal({
  3307. title: title + "优惠信息",
  3308. content: content,
  3309. showCancel: false,
  3310. confirmText: "关闭"
  3311. })
  3312. },
  3313. //使用此时间
  3314. syncData(item) {
  3315. this.jqstartDate = item.startDateJq ? item
  3316. .startDateJq : this.jqstartDate
  3317. this.jqendDate = item.endDateJq ? item
  3318. .endDateJq : this.endDateJq
  3319. this.systartDate = item.startDateSy ? item
  3320. .startDateSy : this.systartDate
  3321. this.syendDate = item.endDateSy ? item
  3322. .endDateSy : this.syendDate
  3323. uni.showToast({
  3324. title: '时间已替换',
  3325. icon: 'none',
  3326. duration: 1000
  3327. });
  3328. },
  3329. //次日
  3330. nextday() {
  3331. var date = new Date();
  3332. date.setFullYear(date.getFullYear());
  3333. date.setTime(date.getTime() + 24 * 60 * 60 * 1000);
  3334. var strYear = date.getFullYear();
  3335. var strDay = date.getDate();
  3336. var strMonth = date.getMonth() + 1;
  3337. var hh = date.getHours();
  3338. if (hh < 10) {
  3339. hh = "0" + hh;
  3340. }
  3341. if (strMonth < 10) {
  3342. strMonth = "0" + strMonth;
  3343. }
  3344. if (strDay < 10) {
  3345. strDay = "0" + strDay;
  3346. }
  3347. var datastr = strYear + "-" + strMonth + "-" + strDay + " " + "00:00:00";
  3348. return datastr;
  3349. },
  3350. oneYearPast(time) {
  3351. var date = new Date(time);
  3352. date.setSeconds(date.getSeconds() - 1);
  3353. date.setFullYear(date.getFullYear() + 1); //一年后
  3354. date.setTime(date.getTime()); //一年后的前一天
  3355. var strYear = date.getFullYear();
  3356. var strDay = date.getDate();
  3357. var strMonth = date.getMonth() + 1;
  3358. var hh = date.getHours();
  3359. var minutes = date.getMinutes(); // 分
  3360. var Seconds = date.getSeconds();
  3361. if (hh < 10) {
  3362. hh = "0" + hh;
  3363. }
  3364. if (minutes < 10) {
  3365. minutes = "0" + minutes;
  3366. }
  3367. if (Seconds < 10) {
  3368. Seconds = "0" + Seconds;
  3369. }
  3370. if (strMonth < 10) {
  3371. strMonth = "0" + strMonth;
  3372. }
  3373. if (strDay < 10) {
  3374. strDay = "0" + strDay;
  3375. }
  3376. var datastr =
  3377. strYear + "-" + strMonth + "-" + strDay +
  3378. " " + hh + ":" + minutes + ":" + Seconds;
  3379. return datastr;
  3380. },
  3381. },
  3382. }
  3383. </script>
  3384. <style lang="scss" scoped>
  3385. @import '@/style/mixin.scss';
  3386. /deep/ .u-form-item[data-v-5e7216f1] {
  3387. height: 26px;
  3388. }
  3389. .page {
  3390. min-height: 100vh;
  3391. background: #F8FAFE;
  3392. padding: 16px 16px 100px 16px;
  3393. }
  3394. .car-header {
  3395. width: 100%;
  3396. height: auto;
  3397. background: #FFFFFF;
  3398. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3399. border-radius: 6px;
  3400. padding: 8px 15px;
  3401. position: relative;
  3402. .head-name {
  3403. margin-left: 20px;
  3404. &>text {
  3405. font-weight: bold;
  3406. font-size: 15px;
  3407. color: #232832;
  3408. }
  3409. .name1 text {
  3410. font-size: 14px;
  3411. font-weight: bold;
  3412. color: #333333;
  3413. }
  3414. }
  3415. .carJump {
  3416. position: absolute;
  3417. top: 5px;
  3418. right: 10px;
  3419. font-size: 14px;
  3420. color: #0052FF;
  3421. }
  3422. }
  3423. .pageContent {
  3424. .header {
  3425. padding: 10px 0;
  3426. .title {
  3427. font-size: 15px;
  3428. color: #232832;
  3429. font-weight: bold;
  3430. }
  3431. .color {
  3432. font-size: 14px;
  3433. color: #0052FF;
  3434. }
  3435. }
  3436. }
  3437. /* 报价方案Start */
  3438. .quotePlan {
  3439. background: #FFFFFF;
  3440. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3441. border-radius: 6px;
  3442. }
  3443. .quotePlan .header {
  3444. padding: 10px 0;
  3445. }
  3446. .quotePlan .header .title {
  3447. // font-size: 30upx;
  3448. font-weight: bold;
  3449. padding-left: 25upx;
  3450. }
  3451. .quotePlan .header .title:before {
  3452. content: "";
  3453. position: absolute;
  3454. left: 30upx;
  3455. top: 25upx;
  3456. width: 8upx;
  3457. height: 30upx;
  3458. background-color: $themeColor;
  3459. }
  3460. .quotePlan {
  3461. .body {
  3462. padding: 0 10px 10px;
  3463. >.qunimade {
  3464. padding: 19rpx 0;
  3465. border-bottom: 1px solid #f2f2f2;
  3466. }
  3467. }
  3468. }
  3469. .quotePlan .body>.qunimade:last-of-type {
  3470. border-bottom: none;
  3471. }
  3472. .quotePlan .body .insurance {
  3473. background: #F9F9F9;
  3474. border-radius: 10px;
  3475. >view {
  3476. padding: 8px;
  3477. border-bottom: 1px solid #f2f2f2;
  3478. }
  3479. >view:last-child {
  3480. border: none;
  3481. }
  3482. }
  3483. .accident-style {
  3484. padding: 5px 8px 5px 8px;
  3485. text {
  3486. font-size: 13px;
  3487. }
  3488. >view {}
  3489. .accident-ins {
  3490. text {
  3491. margin-right: 10px;
  3492. }
  3493. }
  3494. }
  3495. .popContent {
  3496. padding: 8px;
  3497. max-height: 400px;
  3498. }
  3499. .carTypeItem {
  3500. padding: 0 30upx 20upx;
  3501. border-bottom: 1px solid #e5e5e5;
  3502. margin-top: 20upx;
  3503. width: 100%;
  3504. box-sizing: border-box;
  3505. }
  3506. .carTypeItem .nav .carseriesName {
  3507. font-size: 34upx;
  3508. width: 360upx;
  3509. font-family: PingFangSC-Medium, PingFangSC;
  3510. color: #4a4a4a;
  3511. overflow: hidden;
  3512. text-overflow: ellipsis;
  3513. white-space: nowrap;
  3514. }
  3515. .carTypeItem .nav .modelName {
  3516. font-size: 26upx;
  3517. width: 400upx;
  3518. font-family: PingFangSC-Medium, PingFangSC;
  3519. overflow: hidden;
  3520. text-overflow: ellipsis;
  3521. white-space: nowrap;
  3522. }
  3523. .carTypeItem .nav .nav_box {
  3524. margin: 10upx 0;
  3525. }
  3526. .carTypeItem .nav .nav_box .zid {
  3527. display: inline-block;
  3528. padding: 6upx 10upx;
  3529. font-size: 24upx;
  3530. height: 40upx;
  3531. background: #AFC9F7;
  3532. border-radius: 25upx;
  3533. color: #007AFF;
  3534. font-weight: bold;
  3535. line-height: 40upx;
  3536. }
  3537. .carTypeItem .nav .nav_box>p {
  3538. margin-left: 30upx;
  3539. color: #999;
  3540. font-size: 24upx;
  3541. }
  3542. .carTypeItem .price {
  3543. font-size: 16px;
  3544. width: 200upx;
  3545. flex-shrink: 0;
  3546. font-family: PingFangSC-Regular, PingFangSC;
  3547. font-weight: 400;
  3548. color: #007AFF;
  3549. }
  3550. .quotePlan .body .row {
  3551. height: 70upx;
  3552. }
  3553. .quotePlan .body .date {
  3554. background-color: $themeColor;
  3555. color: $themeColor;
  3556. font-size: 22upx;
  3557. padding: 0upx 7upx;
  3558. border-radius: 3upx;
  3559. margin: 10upx;
  3560. margin-right: 10upx;
  3561. }
  3562. /* 报价方案End */
  3563. /* 报价公司Start */
  3564. .quoteCompany {
  3565. box-sizing: border-box;
  3566. /* background:#FFFFFF; */
  3567. position: relative;
  3568. border-radius: 20upx;
  3569. }
  3570. .quoteCompany .header {
  3571. height: 80upx;
  3572. }
  3573. .quoteCompany .header .title {
  3574. font-size: 30upx;
  3575. font-weight: bold;
  3576. }
  3577. .quoteCompany .header .title .icon {
  3578. color: rgba($themeColor, 0.6);
  3579. margin-left: 15upx;
  3580. }
  3581. .quoteCompanyItem {
  3582. margin-bottom: 20upx;
  3583. background: #FFFFFF;
  3584. border-radius: 6px;
  3585. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3586. box-sizing: border-box;
  3587. cursor: pointer;
  3588. }
  3589. .quoteCompanyItem .top {
  3590. position: relative;
  3591. }
  3592. .quoteCompanyItem .top .companyIcon {
  3593. padding: 8px;
  3594. border-radius: 6px 6px 0 0;
  3595. flex-shrink: 0;
  3596. }
  3597. .content {
  3598. padding: 0 8px;
  3599. margin-bottom: 5px;
  3600. }
  3601. .quoteCompanyItem .top .companyIcon image {
  3602. width: 20px;
  3603. height: 20px;
  3604. margin-right: 10px;
  3605. }
  3606. .quoteCompanyItem .top .Premium {
  3607. padding: 10px 8px;
  3608. border-top: 1px solid #f2f2f2;
  3609. .price {
  3610. font-size: 12px;
  3611. color: #FF5600;
  3612. text {
  3613. margin-right: 5px;
  3614. }
  3615. }
  3616. .time {
  3617. font-size: 12px;
  3618. color: #2D4D89;
  3619. >text {
  3620. margin-right: 5px;
  3621. }
  3622. }
  3623. }
  3624. .quoteCompanyItem .top .quotebtn {
  3625. width: 100%;
  3626. height: auto;
  3627. >view {
  3628. width: 50%;
  3629. font-size: 14px;
  3630. padding: 4px 0;
  3631. }
  3632. }
  3633. .lastyear {
  3634. view {
  3635. font-size: 12px;
  3636. font-weight: bold;
  3637. image {
  3638. width: 14px;
  3639. height: 14px;
  3640. }
  3641. }
  3642. .left {
  3643. border: 1px solid #229805;
  3644. border-radius: 2px 2px 2px 2px;
  3645. padding: 1px 6px;
  3646. color: #229805;
  3647. }
  3648. .right {
  3649. border-radius: 2px 2px 2px 2px;
  3650. padding: 1px 6px;
  3651. border: 1px solid #FF5600;
  3652. margin-left: 10px;
  3653. color: #FF5600;
  3654. }
  3655. }
  3656. .quoteCompanyItem .top .companyName {
  3657. font-size: 14px;
  3658. font-weight: bold;
  3659. color: #232832;
  3660. }
  3661. .quoteCompanyItem .top .totalMoney {
  3662. font-size: 40upx;
  3663. font-weight: bold;
  3664. color: $themeColor;
  3665. position: absolute;
  3666. top: -15upx;
  3667. right: 0;
  3668. }
  3669. .quoteCompanyItem .top .tip {
  3670. font-size: 26upx;
  3671. font-weight: bold;
  3672. color: #999;
  3673. position: absolute;
  3674. top: 0upx;
  3675. right: 0;
  3676. }
  3677. .sum {
  3678. color: #0052FF;
  3679. font-size: 14px;
  3680. font-weight: bold;
  3681. }
  3682. .quoteCompanyItem .top .signs {
  3683. width: 500upx;
  3684. overflow: hidden;
  3685. text-overflow: ellipsis;
  3686. white-space: nowrap;
  3687. }
  3688. .quoteCompanyItem .top .sign {
  3689. height: 40upx;
  3690. margin: 0upx 10upx;
  3691. background: rgba($themeColor, 0.6);
  3692. color: $themeColor;
  3693. font-size: 20upx;
  3694. margin-right: 10upx;
  3695. border-radius: 6upx;
  3696. padding: 0 2px;
  3697. line-height: 40upx;
  3698. }
  3699. .jqsign {
  3700. height: 20px;
  3701. background: rgba(255, 177, 177, 0.55);
  3702. color: #fd0a0a;
  3703. font-size: 20upx;
  3704. border-radius: 6upx;
  3705. padding: 0 10px;
  3706. box-sizing: border-box;
  3707. }
  3708. .quoteCompanyItem .body {
  3709. padding: 20upx 0;
  3710. flex-wrap: wrap;
  3711. }
  3712. .quoteCompanyItem .body>view {
  3713. flex-shrink: 0;
  3714. width: 50%;
  3715. overflow: hidden;
  3716. text-overflow: ellipsis;
  3717. white-space: nowrap;
  3718. }
  3719. .quoteCompanyItem .body .icon-exchange {
  3720. margin-right: 15upx;
  3721. display: inline-block;
  3722. }
  3723. /* 报价公司End */
  3724. /* 查看详情按钮Start */
  3725. .btn {
  3726. font-size: 16px;
  3727. color: #fff;
  3728. background-color: #ea552d;
  3729. margin-top: 10px;
  3730. }
  3731. .footer-btn {
  3732. position: fixed;
  3733. bottom: 0;
  3734. left: 0;
  3735. width: 100%;
  3736. height: 62px;
  3737. background: #FFFFFF;
  3738. box-shadow: 0px -4px 10px 0px #DAE3F4;
  3739. border-radius: 0px 0px 0px 0px;
  3740. padding: 12px 16px;
  3741. z-index: 99;
  3742. }
  3743. .slot-content {
  3744. padding: 10px;
  3745. box-sizing: border-box;
  3746. }
  3747. .ZJcheckboxGroup {
  3748. padding: 0 10px;
  3749. .title {
  3750. font-size: 14px;
  3751. color: #232832;
  3752. font-weight: bold;
  3753. padding: 10px;
  3754. }
  3755. .scolcentent {
  3756. max-height: 240px;
  3757. padding-bottom: 40px;
  3758. }
  3759. .operateBtn {
  3760. position: absolute;
  3761. bottom: 0;
  3762. left: 0;
  3763. right: 0;
  3764. font-weight: bold;
  3765. font-size: 16px;
  3766. .cancel {
  3767. width: 50%;
  3768. height: 46px;
  3769. color: #0052FF;
  3770. background-color: #EAEAEA;
  3771. }
  3772. .confirm {
  3773. width: 50%;
  3774. height: 46px;
  3775. color: #fff;
  3776. background-color: #0052FF;
  3777. }
  3778. }
  3779. }
  3780. .contributing {
  3781. width: 100%;
  3782. margin: 4px 0;
  3783. font-size: 12px;
  3784. text:nth-child(1) {
  3785. font-weight: bold;
  3786. color: #232832;
  3787. }
  3788. }
  3789. /* 查看详情按钮End */
  3790. .status-data {
  3791. width: auto;
  3792. padding: 2px 8px;
  3793. margin-left: 5px;
  3794. font-size: 12px;
  3795. border: 1px solid #CDCDCD;
  3796. cursor: pointer;
  3797. text-align: center;
  3798. line-height: 25px;
  3799. }
  3800. .active {
  3801. position: relative;
  3802. background: rgba(0, 82, 255, 0.1);
  3803. color: #0052FF;
  3804. border: 1px solid #0052FF;
  3805. font-weight: 700;
  3806. }
  3807. .active::before {
  3808. content: "";
  3809. position: absolute;
  3810. top: 0;
  3811. left: 0;
  3812. width: 10px;
  3813. height: 10px;
  3814. background-image: url("/static/image/car-insure/before.png");
  3815. background-size: cover;
  3816. }
  3817. .active1 {
  3818. position: relative;
  3819. background: rgba(255, 86, 0, 0.1);
  3820. color: #FF5600;
  3821. border: 1px solid #FF5600;
  3822. font-weight: 700;
  3823. }
  3824. .active1::before {
  3825. content: "";
  3826. position: absolute;
  3827. top: 0;
  3828. left: 0;
  3829. width: 10px;
  3830. height: 10px;
  3831. background-image: url("/static/image/car-insure/before1.png");
  3832. background-size: cover;
  3833. }
  3834. .quoteactive {
  3835. border: 1px solid #0052FF;
  3836. .top {
  3837. .companyIcon {
  3838. background-color: #E6EEFF;
  3839. }
  3840. .Premium {
  3841. border-top-color: #0052FF;
  3842. }
  3843. }
  3844. }
  3845. .Discount {
  3846. image {
  3847. width: 16px;
  3848. height: 16px;
  3849. }
  3850. text {
  3851. font-size: 12px;
  3852. color: #333333;
  3853. }
  3854. }
  3855. </style>