quote.vue 131 KB

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