quote.vue 140 KB

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