quote.vue 120 KB

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