quote1.vue 87 KB

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