quote.vue 128 KB

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