quote.vue 131 KB

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