quote1.vue 105 KB

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