quote1.vue 101 KB

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