quoteDetail1.vue 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911
  1. <template>
  2. <view :style="getHeight" style="background-color: #F5F5F5;">
  3. <!-- 公共组件-每个页面必须引入 -->
  4. <public-module></public-module>
  5. <!-- 头部 -->
  6. <view class="carInfo w-100 p-3 box-sizing">
  7. <view class="d-flex mb-1">
  8. <view class="topLeft d-flex flex-1 flex-column">
  9. <view class="license">{{this.licenseNo}} | {{carInfo.modelcname}}</view>
  10. <view class="totalMoney">¥{{sumPermium}}</view>
  11. </view>
  12. <view class="topRight d-flex a-center j-center">
  13. <image :src="icon" mode="aspectFit" lazy-load></image>
  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. <view>
  25. <view class="welfare">
  26. <view class="header d-flex a-center j-sb">
  27. <view class="title">投保享福利</view>
  28. <view class="icon iconfont icon-youjiantou d-flex a-center" style="font-size: 24upx;"></view>
  29. </view>
  30. <view class="body d-flex">
  31. <view class="welfareItem">
  32. <view class="name">2次体检服务</view>
  33. <view class="content">八项检查:血常规,尿常规,心电图等</view>
  34. </view>
  35. <view class="welfareItem">
  36. <view class="name">2次体检服务</view>
  37. <view class="content">八项检查:血常规,尿常规,心电图等</view>
  38. </view>
  39. </view>
  40. </view>
  41. <view class="quotePlan">
  42. <view class="header d-flex a-center j-sb">
  43. <view class="title">报价方案</view>
  44. <template v-if="((orderstatus == 0) ||(orderstatus == 3)) && (!!token)">
  45. <view class="adjustPlan" @tap="toInsureItems">调整方案</view>
  46. </template>
  47. </view>
  48. <view class="body">
  49. <view class="insurance">
  50. <block v-for="(item,index) in riskList" :key="index">
  51. <template v-if="item.riskCode=='0507'">
  52. <view class="row d-flex a-center j-sb">
  53. <view class="d-flex a-center">交强险 <view class="date">起保日期:{{item.startDate}}</view>
  54. </view>
  55. <view>¥{{jqpremium}}</view>
  56. </view>
  57. <view class="row d-flex a-center j-sb">
  58. <view class="d-flex a-center">车船税</view>
  59. <view>¥{{taxAmount}}</view>
  60. </view>
  61. <view class="row d-flex a-center j-sb" v-if="jypremium">
  62. <view class="d-flex a-center">驾意险</view>
  63. <view>¥{{jypremium}}</view>
  64. </view>
  65. </template>
  66. </block>
  67. <block v-for="(item,index) in riskList" :key="index">
  68. <template v-if="item.riskCode == '0510'">
  69. <view class="row d-flex a-center j-sb">
  70. <view class="d-flex a-center">商业险 <view class="date">起保日期:{{item.startDate}}</view>
  71. </view>
  72. <view>¥{{sypremium}}</view>
  73. </view>
  74. </template>
  75. </block>
  76. <view class="kindList" v-if="kindList.length>0">
  77. <view class="kindItem d-flex a-center j-sb">
  78. <view class="d-flex flex-1">商业险险别</view>
  79. <view class="flex-1 d-flex a-center j-center">保额(元)</view>
  80. <view class="d-flex flex-1 j-end">保费(元)</view>
  81. </view>
  82. <block v-for="(item,index) in kindList" :key="index">
  83. <template v-if="item.coveragePremium">
  84. <view class="kindItem d-flex a-center j-sb">
  85. <view class="d-flex flex-1">{{item.kindName}}</view>
  86. <text
  87. v-if="['D4', 'SY_FJ_YBW2'].includes(item.kindCode)">{{item.unitAmount}}</text>
  88. <text
  89. v-else-if="['MJ1', 'MJ2', 'MJ3', 'MJ4'].includes(item.kindCode)">{{item.deductibleRate}}</text>
  90. <text v-else>{{item.amount}}</text>
  91. <view class="d-flex flex-1 j-end">¥{{item.coveragePremium}}</view>
  92. </view>
  93. </template>
  94. </block>
  95. </view>
  96. </view>
  97. <view class="addedServices" v-if="kindList.length>0">
  98. <view class="row d-flex a-center j-sb">
  99. <view class="d-flex">增值服务<view class="d-flex a-center"
  100. style="color:#999;margin-left: 10upx;font-size: 24upx;">不收费,使用不影响明年保费</view>
  101. </view>
  102. <view>赠送</view>
  103. </view>
  104. <view class="kindList">
  105. <view class="kindItem d-flex a-center j-sb">
  106. <view>道路救援</view>
  107. <view class="d-flex j-end">7次</view>
  108. </view>
  109. <view class="kindItem d-flex a-center j-sb">
  110. <view>代为送检</view>
  111. <view class="d-flex j-end">1次</view>
  112. </view>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="quotePlan">
  118. <view class="header d-flex a-center j-sb">
  119. <view class="title">{{name}}官方无忧理赔</view>
  120. </view>
  121. <view class="body d-flex" style="flex-wrap: wrap;">
  122. <view
  123. style="width: 50%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap; padding-right: 20upx;box-sizing: border-box;">
  124. 智慧理赔服务</view>
  125. <view
  126. style="width: 50%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;padding-right: 20upx;box-sizing: border-box;">
  127. 异地出险全国通赔</view>
  128. <view
  129. style="width: 50%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;padding-right: 20upx;box-sizing: border-box;">
  130. 掌柜车险管控质量</view>
  131. </view>
  132. </view>
  133. <template v-if="!!token">
  134. <view class="quotePlan">
  135. <view class="header d-flex a-center j-sb">
  136. <view class="title">优惠政策</view>
  137. </view>
  138. <view class="body">
  139. <view class="insurance">
  140. <view class="row d-flex a-center j-sb">
  141. <view class="d-flex a-center flex-1">险种</view>
  142. <view class="d-flex a-center j-center flex-1">优惠比例</view>
  143. <view class="d-flex j-end flex-1">优惠金额</view>
  144. </view>
  145. <block v-for="(item,index) in riskList" :key="index">
  146. <template v-if="item.riskCode == '0507'">
  147. <view class="row d-flex a-center j-sb">
  148. <view class="d-flex a-center flex-1">交强险</view>
  149. <view class="d-flex a-center j-center flex-1">{{jqdiscountrate}}%</view>
  150. <view class="d-flex j-end flex-1">
  151. {{(item.premium*jqdiscountrate/100).toFixed(2)}}
  152. </view>
  153. </view>
  154. </template>
  155. </block>
  156. <block v-for="(item,index) in riskList" :key="index">
  157. <template v-if="item.riskCode == '0510'">
  158. <view class="row d-flex a-center j-sb">
  159. <view class="d-flex a-center flex-1">商业险</view>
  160. <view class="d-flex a-center j-center flex-1">{{sydiscountrate}}%</view>
  161. <view class="d-flex j-end flex-1">
  162. {{(item.premium*sydiscountrate/100).toFixed(2)}}
  163. </view>
  164. </view>
  165. </template>
  166. </block>
  167. </view>
  168. </view>
  169. </view>
  170. </template>
  171. <view class="car">
  172. <view class="header d-flex a-center j-sb">
  173. <view class="title">车辆信息</view>
  174. <view class="adjustPlan d-flex" @tap="showCarInfo = !showCarInfo">{{carInfo.licenseNo}}
  175. <view class="icon iconfont icon-xiala" style="margin-left: 15upx;"></view>
  176. </view>
  177. </view>
  178. <view class="body" v-if="showCarInfo">
  179. <view class="row d-flex a-center j-sb">
  180. <view>品牌型号</view>
  181. <view>{{carInfo.brandName}}</view>
  182. </view>
  183. <view class="row d-flex a-center j-sb">
  184. <view>车辆识别代码</view>
  185. <view>{{carInfo.vinNo}}</view>
  186. </view>
  187. <view class="row d-flex a-center j-sb">
  188. <view>发动机号</view>
  189. <view>{{carInfo.engineNo}}</view>
  190. </view>
  191. <view class="row d-flex a-center j-sb">
  192. <view>注册日期</view>
  193. <view>{{carInfo.registerDate }}</view>
  194. </view>
  195. <view class="row d-flex a-center j-sb">
  196. <view>核定载人数</view>
  197. <view>{{carInfo.seatCount}}</view>
  198. </view>
  199. <view class="row d-flex a-center j-sb">
  200. <view>车主</view>
  201. <view>{{ownerInfo.name}}</view>
  202. </view>
  203. </view>
  204. </view>
  205. <template v-if="orderstatus != 0">
  206. <view class="personInfo">
  207. <view class="title d-flex a-center j-sb">
  208. <text style="font-weight: bold;">车主</text>
  209. <view class="showStatus" @tap="controlShow('showOwerInfo')">{{showOwerInfo?'收起':'展开'}}</view>
  210. </view>
  211. <view class="content" v-if="showOwerInfo">
  212. <view class="row d-flex a-center">
  213. <view class="left">姓名:</view>
  214. <view class="right d-flex flex-1">{{ownerInfo.name}}</view>
  215. </view>
  216. <view class="row d-flex a-center">
  217. <view class="left">证件类型:</view>
  218. <view class="right flex-1">{{(policyHolderInfo.identifyType=='01')?'身份证':'其他'}}</view>
  219. </view>
  220. <view class="row d-flex a-center">
  221. <view class="left">手机号:</view>
  222. <view class="right flex-1">{{ownerInfo.mobile}}</view>
  223. </view>
  224. <view class="row d-flex a-center">
  225. <view class="left">证件号:</view>
  226. <view class="right flex-1">{{ownerInfo.identifyNumber}}</view>
  227. </view>
  228. <view class="row d-flex a-center"
  229. style="height:auto;min-height: 80upx;padding: 15upx 0;box-sizing: border-box; ">
  230. <view class="left">地址:</view>
  231. <view class="right flex-1">{{ownerInfo.addr}}</view>
  232. </view>
  233. </view>
  234. </view>
  235. <!-- 投保人信息 -->
  236. <view class="personInfo">
  237. <view class="title d-flex a-center j-sb">
  238. <text style="font-weight: bold;">投保人</text>
  239. <view class="showStatus" @tap="controlShow('showPolicyHolderInfo')">
  240. {{showPolicyHolderInfo?'收起':'展开'}}
  241. </view>
  242. </view>
  243. <view class="content" v-if="showPolicyHolderInfo">
  244. <view class="row d-flex a-center">
  245. <view class="left">姓名:</view>
  246. <view class="right d-flex flex-1">{{policyHolderInfo.name}}</view>
  247. </view>
  248. <view class="row d-flex a-center">
  249. <view class="left">证件类型:</view>
  250. <view class="right d-flex flex-1">{{(policyHolderInfo.identifyType=='01')?'身份证':'其他'}}
  251. </view>
  252. </view>
  253. <view class="row d-flex a-center">
  254. <view class="left">手机号:</view>
  255. <view class="right d-flex flex-1">{{policyHolderInfo.mobile}}</view>
  256. </view>
  257. <view class="row d-flex a-center">
  258. <view class="left">证件号:</view>
  259. <view class="right d-flex flex-1">{{policyHolderInfo.identifyNumber}}</view>
  260. </view>
  261. <view class="row d-flex a-center"
  262. style="height:auto;min-height: 80upx;padding: 15upx 0;box-sizing: border-box; ">
  263. <view class="left">地址:</view>
  264. <view class="right d-flex flex-1">{{policyHolderInfo.addr}}</view>
  265. </view>
  266. </view>
  267. </view>
  268. <!-- 被保人信息 -->
  269. <view class="personInfo">
  270. <view class="title d-flex a-center j-sb">
  271. <text style="font-weight: bold;">被保人</text>
  272. <view class="showStatus" @tap="controlShow('showInsuredPersonInfo')">
  273. {{showInsuredPersonInfo?'收起':'展开'}}
  274. </view>
  275. </view>
  276. <view class="content" v-if="showInsuredPersonInfo">
  277. <view class="row d-flex a-center">
  278. <view class="left">姓名:</view>
  279. <view class="right d-flex flex-1">{{insuredPersonInfo.name}}</view>
  280. </view>
  281. <view class="row d-flex a-center">
  282. <view class="left">证件类型:</view>
  283. <view class="right d-flex flex-1">{{(policyHolderInfo.identifyType=='01')?'身份证':'其他'}}
  284. </view>
  285. </view>
  286. <view class="row d-flex a-center">
  287. <view class="left">手机号:</view>
  288. <view class="right d-flex flex-1">{{insuredPersonInfo.mobile}}</view>
  289. </view>
  290. <view class="row d-flex a-center">
  291. <view class="left">证件号:</view>
  292. <view class="right d-flex flex-1">{{insuredPersonInfo.identifyNumber}}</view>
  293. </view>
  294. <view class="row d-flex a-center"
  295. style="height:auto;min-height: 80upx;padding: 15upx 0;box-sizing: border-box; ">
  296. <view class="left">地址:</view>
  297. <view class="right d-flex flex-1">{{insuredPersonInfo.addr}}</view>
  298. </view>
  299. </view>
  300. </view>
  301. <!-- 车辆影像信息Start -->
  302. <view class="imageInfo">
  303. <view class="title d-flex a-center j-sb">
  304. <text style="font-weight: bold;">车辆影像信息</text>
  305. <view class="showStatus" @tap="controlShow('showCarImageInfo')">{{showCarImageInfo?'收起':'展开'}}
  306. </view>
  307. </view>
  308. <view class="uni-uploader" v-if="showCarImageInfo">
  309. <view class="uni-uploader-body">
  310. <view class="uni-uploader__files">
  311. <block v-for="(image,index) in carImageList" :key="index">
  312. <view class="uni-uploader__file">
  313. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  314. @tap="previewImage($event,'car')"></image>
  315. </view>
  316. </block>
  317. </view>
  318. </view>
  319. </view>
  320. </view>
  321. <!-- 车辆影像信息End -->
  322. <!-- 车主影像信息Start -->
  323. <view class="imageInfo">
  324. <view class="title d-flex a-center j-sb">
  325. <text style="font-weight: bold;">车主影像信息</text>
  326. <view class="showStatus" @tap="controlShow('showOwnerImageInfo')">
  327. {{showOwnerImageInfo?'收起':'展开'}}
  328. </view>
  329. </view>
  330. <view class="uni-uploader" v-if="showOwnerImageInfo">
  331. <view class="uni-uploader-body">
  332. <view class="uni-uploader__files">
  333. <block v-for="(image,index) in ownerImageList" :key="index">
  334. <view class="uni-uploader__file">
  335. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  336. @tap="previewImage($event,'owner')"></image>
  337. </view>
  338. </block>
  339. </view>
  340. </view>
  341. </view>
  342. </view>
  343. <!-- 车主影像信息End -->
  344. <!-- 投保人影像信息Start -->
  345. <view class="imageInfo">
  346. <view class="title d-flex a-center j-sb">
  347. <text style="font-weight: bold;">投保人影像信息</text>
  348. <view class="showStatus" @tap="controlShow('showPolicyImageInfo')">
  349. {{showPolicyImageInfo?'收起':'展开'}}
  350. </view>
  351. </view>
  352. <view class="uni-uploader" v-if="showPolicyImageInfo">
  353. <view class="uni-uploader-body">
  354. <view class="uni-uploader__files">
  355. <block v-for="(image,index) in policyImageList" :key="index">
  356. <view class="uni-uploader__file">
  357. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  358. @tap="previewImage($event,'policy')"></image>
  359. </view>
  360. </block>
  361. </view>
  362. </view>
  363. </view>
  364. </view>
  365. <!-- 投保人影像信息End -->
  366. <!-- 被保人影像信息Start -->
  367. <view class="imageInfo">
  368. <view class="title d-flex a-center j-sb">
  369. <text style="font-weight: bold;">被保人影像信息</text>
  370. <view class="showStatus" @tap="controlShow('showInsuredImageInfo')">
  371. {{showInsuredImageInfo?'收起':'展开'}}
  372. </view>
  373. </view>
  374. <view class="uni-uploader" v-if="showInsuredImageInfo">
  375. <view class="uni-uploader-body">
  376. <view class="uni-uploader__files">
  377. <block v-for="(image,index) in insuredImageList" :key="index">
  378. <view class="uni-uploader__file">
  379. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  380. @tap="previewImage($event,'insured')"></image>
  381. </view>
  382. </block>
  383. </view>
  384. </view>
  385. </view>
  386. </view>
  387. <!-- 被保人影像信息End -->
  388. <!-- 验车照Start -->
  389. <view class="imageInfo">
  390. <view class="title d-flex a-center j-sb">
  391. <text style="font-weight: bold;">验车照</text>
  392. <view class="showStatus" @tap="controlShow('showCarCheckImageInfo')">
  393. {{showCarCheckImageInfo?'收起':'展开'}}
  394. </view>
  395. </view>
  396. <view class="uni-uploader" v-if="showCarCheckImageInfo">
  397. <view class="uni-uploader-body">
  398. <view class="uni-uploader__files">
  399. <block v-for="(image,index) in carCheckImageList" :key="index">
  400. <view class="uni-uploader__file">
  401. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  402. @tap="previewImage($event,'carCheck')"></image>
  403. </view>
  404. </block>
  405. </view>
  406. </view>
  407. </view>
  408. </view>
  409. <!-- 验车照End -->
  410. <!-- 特约 -->
  411. <template v-if="!!syappoint">
  412. <view class="appoint">
  413. <view class="title d-flex a-center j-sb">
  414. <text style="font-weight: bold;">特约</text>
  415. <view class="showStatus" @tap="controlShow('showAppoint')">{{showAppoint?'收起':'展开'}}</view>
  416. </view>
  417. <view class="content" v-if="showAppoint">
  418. <view class="row d-flex a-center j-sb">
  419. <view>商业特约险:</view>
  420. <textarea disabled maxlength="300" v-model="syappoint"
  421. placeholder="请输入商业险特别约定,最多可输入300个字符" /></textarea>
  422. </view>
  423. </view>
  424. </view>
  425. </template>
  426. </template>
  427. <view class="personInfo" v-if="!!orderInfo.jqapplyno">
  428. <view class="title d-flex a-center j-sb">
  429. <text style="font-weight: bold;">投保单号</text>
  430. <view class="showStatus" @tap="controlShow('showApplyno')">{{showApplyno?'收起':'展开'}}</view>
  431. </view>
  432. <view class="content" v-if="showApplyno">
  433. <view class="row d-flex a-center" v-if="!!orderInfo.jqapplyno">
  434. <view class="left">交强险:</view>
  435. <view class="right d-flex flex-1">{{orderInfo.jqapplyno}}</view>
  436. </view>
  437. <view class="row d-flex a-center" v-if="!!orderInfo.syapplyno">
  438. <view class="left">商业险:</view>
  439. <view class="right d-flex flex-1">{{orderInfo.syapplyno}}</view>
  440. </view>
  441. </view>
  442. </view>
  443. <view class="personInfo" v-if="!!orderInfo.jqpolicyno">
  444. <view class="title d-flex a-center j-sb">
  445. <text style="font-weight: bold;">保单号</text>
  446. <view class="showStatus" @tap="controlShow('showPolicyno')">{{showPolicyno?'收起':'展开'}}</view>
  447. </view>
  448. <view class="content" v-if="showPolicyno">
  449. <view class="row d-flex a-center" v-if="!!orderInfo.jqpolicyno">
  450. <view class="left">交强险:</view>
  451. <view class="right d-flex flex-1">{{orderInfo.jqpolicyno}}</view>
  452. </view>
  453. <view class="row d-flex a-center" v-if="!!orderInfo.sypolicyno">
  454. <view class="left">商业险:</view>
  455. <view class="right d-flex flex-1">{{orderInfo.sypolicyno}}</view>
  456. </view>
  457. </view>
  458. </view>
  459. <view class="personInfo" v-if="policyList.length>0">
  460. <view class="title d-flex a-center j-sb">
  461. <text style="font-weight: bold;">电子保单(点击即可预览下载)</text>
  462. <view class="showStatus" @tap="controlShow('showPolicyFile')">{{showPolicyFile?'收起':'展开'}}</view>
  463. </view>
  464. <view class="content" v-if="showPolicyFile" v-for="(policyListitem,policyListindex) in policyList"
  465. :key="policyListindex">
  466. <view class="row d-flex a-center">
  467. <view class="left" style="width: 110px;flex-shrink: 0;">{{policyListitem.fileTitle}}:
  468. </view>
  469. <view class="right d-flex flex-1"
  470. style="flex-shrink: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
  471. {{policyListitem.filename}}
  472. </view>
  473. <view class="right d-flex a-center j-center" style="width: 160upx;flex-shrink: 0;">
  474. <text class="checkButton d-flex a-center j-center"
  475. @tap="downloadPolicy(policyListitem.fileurl)">下载</text>
  476. </view>
  477. </view>
  478. </view>
  479. </view>
  480. <view class="personInfo" v-if="policyList1.length>0">
  481. <view class="title d-flex a-center j-sb">
  482. <text style="font-weight: bold;">电子标志(点击即可预览下载)</text>
  483. <view class="showStatus" @tap="controlShow('showPolicybzFile')">{{showPolicybzFile?'收起':'展开'}}
  484. </view>
  485. </view>
  486. <view class="content" v-if="showPolicybzFile" v-for="(policyListitem,policyListindex) in policyList1"
  487. :key="policyListindex">
  488. <view class="row d-flex a-center">
  489. <view class="left" style="width: 110px;flex-shrink: 0;">{{policyListitem.fileTitle}}:
  490. </view>
  491. <view class="right d-flex flex-1"
  492. style="flex-shrink: 0;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
  493. {{policyListitem.filename}}
  494. </view>
  495. <view class="right d-flex a-center j-center" style="width: 160upx;flex-shrink: 0;">
  496. <text class="checkButton d-flex a-center j-center"
  497. @tap="downloadPolicy(policyListitem.fileurl)">下载</text>
  498. </view>
  499. </view>
  500. </view>
  501. </view>
  502. <view class="advancePaymentTotal">
  503. <view class="header d-flex a-center j-sb">
  504. <view class="title">保费</view>
  505. </view>
  506. <view class="body">
  507. <block v-for="(item,index) in riskList" :key="index">
  508. <template v-if="item.riskCode == '0507'">
  509. <view class="row d-flex a-center j-sb">
  510. <view class="d-flex a-center">交强险</view>
  511. <view>¥{{jqpremium}}</view>
  512. </view>
  513. <view class="row j-sb d-flex a-center">
  514. <view>车船税</view>
  515. <view>¥{{taxAmount}}</view>
  516. </view>
  517. </template>
  518. </block>
  519. <block v-for="(item,index) in riskList" :key="index">
  520. <template v-if="item.riskCode == '0510'">
  521. <view class="row d-flex a-center j-sb">
  522. <view class="d-flex a-center">商业险</view>
  523. <view>¥{{sypremium}}</view>
  524. </view>
  525. </template>
  526. </block>
  527. </view>
  528. </view>
  529. </view>
  530. <view style="height: 90upx;"></view>
  531. <template>
  532. <view class="bottomBtn d-flex j-sb">
  533. <view class="d-flex a-center">
  534. <view class="d-flex flex-column a-center j-center listener">
  535. <view style="line-height: 1;" class="icon iconfont icon-xiaomishu"></view>
  536. <view class="font-sm">客服</view>
  537. </view>
  538. <view style="font-weight: bold;font-size: 34upx;color: #333; ">¥{{sumPermium}}</view>
  539. </view>
  540. <template v-if="orderstatus ==0">
  541. <view class="btn d-flex a-center j-center" @tap="toUnderwriting">确认核保</view>
  542. </template>
  543. <!-- <template v-if="orderstatus ==5">
  544. <view class="btn d-flex a-center j-center" @tap="cancelUnderwriting">撤销核保</view>
  545. </template> -->
  546. <!-- <template v-if="orderstatus ==2">
  547. <view class="btn d-flex a-center j-center" @tap="openPayWay">申请支付</view>
  548. </template>
  549. <template v-if="orderstatus ==3">
  550. <view class="btn d-flex a-center j-center" @tap="toUnderwriting">下一步</view>
  551. </template> -->
  552. </view>
  553. </template>
  554. <!-- 底部分享弹窗 -->
  555. <previewImage ref="previewImage" :opacity="0.8" :circular="true" :imgs="previewImgs"></previewImage>
  556. </view>
  557. </template>
  558. <script>
  559. import {
  560. mapState,
  561. mapMutations
  562. } from "vuex"
  563. import {
  564. pathToBase64,
  565. base64ToPath
  566. } from '@/common/pdf.js'
  567. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  568. import previewImage from '@/components/common/previewImage/previewImage.vue'; //引用插件
  569. export default {
  570. components: {
  571. uniPopup,
  572. previewImage
  573. },
  574. computed: {
  575. ...mapState(['userInfo', 'token']),
  576. getHeight() {
  577. let height = uni.getSystemInfoSync().windowHeight;
  578. return `minHeight: ${height}px;`;
  579. }
  580. },
  581. data() {
  582. return {
  583. companyId: "", //订单号
  584. orderInfo: {},
  585. licenseNo: "", //车牌号
  586. icon: "", //保险公司logo
  587. name: "", //保险公司名称
  588. carInfo: {}, //车辆信息
  589. ownerInfo: {}, //车主信息
  590. policyHolderInfo: {}, //投保人信息
  591. insuredPersonInfo: {}, //被保人信息
  592. riskList: [], //险种大类信息
  593. kindList: [], //商业险险别
  594. sumPermium: "", //报价金额
  595. taxAmount: "", //车船税金额
  596. jqpremium: "", //交强险金额
  597. sypremium: "", //商业险金额
  598. feerate: "",
  599. disrate: "",
  600. syappoint: "",
  601. orderstatus: "0", //订单状态
  602. CIStartDate: "", //交强险日期
  603. BIStartDate: "", //商业险日期
  604. showCarInfo: false,
  605. insureList: [{
  606. amount: "0",
  607. coveragePremium: "",
  608. amtList: [{
  609. "label": "投保",
  610. "value": "1"
  611. }],
  612. kindCode: "A",
  613. isMainRisk: true,
  614. kindName: "机动车损失险"
  615. },
  616. {
  617. amount: "0",
  618. coveragePremium: "",
  619. amtList: [{
  620. "label": "10万",
  621. "value": "100000"
  622. }, {
  623. "label": "15万",
  624. "value": "150000"
  625. }, {
  626. "label": "20万",
  627. "value": "200000"
  628. }, {
  629. "label": "30万",
  630. "value": "300000"
  631. }, {
  632. "label": "50万",
  633. "value": "500000"
  634. }, {
  635. "label": "100万",
  636. "value": "1000000"
  637. }, {
  638. "label": "150万",
  639. "value": "1500000"
  640. }, {
  641. "label": "200万",
  642. "value": "2000000"
  643. }, {
  644. "label": "250万",
  645. "value": "2500000"
  646. }, {
  647. "label": "300万",
  648. "value": "3000000"
  649. }, {
  650. "label": "500万",
  651. "value": "5000000"
  652. }, {
  653. "label": "1000万",
  654. "value": "10000000"
  655. }],
  656. kindCode: "B",
  657. isMainRisk: true,
  658. kindName: "第三者责任险"
  659. },
  660. {
  661. amount: "0",
  662. coveragePremium: "",
  663. amtList: [{
  664. "label": "1万",
  665. "value": "10000"
  666. }, {
  667. "label": "2万",
  668. "value": "20000"
  669. }, {
  670. "label": "5万",
  671. "value": "50000"
  672. }, {
  673. "label": "10万",
  674. "value": "100000"
  675. }, {
  676. "label": "15万",
  677. "value": "150000"
  678. }, {
  679. "label": "20万",
  680. "value": "200000"
  681. }],
  682. kindCode: "D3",
  683. isMainRisk: true,
  684. kindName: "司机责任险"
  685. },
  686. {
  687. amount: "0",
  688. coveragePremium: "",
  689. amtList: [{
  690. "label": "1万",
  691. "value": "10000"
  692. }, {
  693. "label": "2万",
  694. "value": "20000"
  695. }, {
  696. "label": "5万",
  697. "value": "50000"
  698. }, {
  699. "label": "10万",
  700. "value": "100000"
  701. }, {
  702. "label": "15万",
  703. "value": "150000"
  704. }, {
  705. "label": "20万",
  706. "value": "200000"
  707. }],
  708. kindCode: "D4",
  709. isMainRisk: true,
  710. kindName: "乘客责任险"
  711. },
  712. {
  713. amount: "0",
  714. coveragePremium: "",
  715. amtList: [{
  716. "label": "2000",
  717. "value": "2000"
  718. }, {
  719. "label": "5000",
  720. "value": "5000"
  721. }, {
  722. "label": "1万",
  723. "value": "10000"
  724. }],
  725. isMainRisk: false,
  726. kindCode: "L",
  727. kindName: "车身划痕险",
  728. mainRiskCodeList: "A"
  729. },
  730. {
  731. amount: "0",
  732. coveragePremium: "",
  733. amtList: [{
  734. "label": "5%",
  735. "value": "5"
  736. }, {
  737. "label": "10%",
  738. "value": "10"
  739. }, {
  740. "label": "15%",
  741. "value": "15"
  742. }, {
  743. "label": "20%",
  744. "value": "20"
  745. }],
  746. isMainRisk: false,
  747. kindCode: "MJ1",
  748. kindName: "绝对免赔率特约险(车损)",
  749. mainRiskCodeList: "A"
  750. },
  751. {
  752. amount: "0",
  753. coveragePremium: "",
  754. amtList: [{
  755. "label": "5%",
  756. "value": "5"
  757. }, {
  758. "label": "10%",
  759. "value": "10"
  760. }, {
  761. "label": "15%",
  762. "value": "15"
  763. }, {
  764. "label": "20%",
  765. "value": "20"
  766. }],
  767. isMainRisk: false,
  768. kindCode: "MJ2",
  769. kindName: "绝对免赔率特约险(三者)",
  770. mainRiskCodeList: "B"
  771. },
  772. {
  773. amount: "0",
  774. coveragePremium: "",
  775. amtList: [{
  776. "label": "5%",
  777. "value": "5"
  778. }, {
  779. "label": "10%",
  780. "value": "10"
  781. }, {
  782. "label": "15%",
  783. "value": "15"
  784. }, {
  785. "label": "20%",
  786. "value": "20"
  787. }],
  788. isMainRisk: false,
  789. kindCode: "MJ3",
  790. kindName: "绝对免赔率特约险(司机)",
  791. mainRiskCodeList: "D3"
  792. },
  793. {
  794. amount: "0",
  795. coveragePremium: "",
  796. amtList: [{
  797. "label": "5%",
  798. "value": "5"
  799. }, {
  800. "label": "10%",
  801. "value": "10"
  802. }, {
  803. "label": "15%",
  804. "value": "15"
  805. }, {
  806. "label": "20%",
  807. "value": "20"
  808. }],
  809. isMainRisk: false,
  810. kindCode: "MJ4",
  811. kindName: "绝对免赔率特约险(乘客)",
  812. mainRiskCodeList: "D4"
  813. },
  814. {
  815. amount: "0",
  816. coveragePremium: "",
  817. amtList: [{
  818. "label": "投保",
  819. "value": "1"
  820. }],
  821. isMainRisk: false,
  822. kindCode: "BD",
  823. kindName: "法定节假日限额翻倍险",
  824. mainRiskCodeList: "B"
  825. },
  826. {
  827. amount: "0",
  828. amountDesc: "不投保",
  829. coveragePremium: "",
  830. amtList: [{
  831. label: "不投保",
  832. value: "0"
  833. },
  834. {
  835. label: "1万",
  836. value: "10000"
  837. },
  838. {
  839. label: "2万",
  840. value: "20000"
  841. },
  842. {
  843. label: "5万",
  844. value: "50000"
  845. },
  846. {
  847. label: "10万",
  848. value: "100000"
  849. }
  850. ],
  851. kindCode: "SY_FJ_YBW1",
  852. isMainRisk: false,
  853. kindName: "附加医保-三者",
  854. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  855. },
  856. {
  857. amount: "0",
  858. amountDesc: "不投保",
  859. coveragePremium: 0,
  860. amtList: [{
  861. label: "不投保",
  862. value: "0"
  863. },
  864. {
  865. label: "1万",
  866. value: "10000"
  867. },
  868. {
  869. label: "2万",
  870. value: "20000"
  871. },
  872. {
  873. label: "5万",
  874. value: "50000"
  875. },
  876. {
  877. label: "10万",
  878. value: "100000"
  879. }
  880. ],
  881. kindCode: "SY_FJ_YBW2",
  882. isMainRisk: false,
  883. kindName: "附加医保-座位险(乘客)",
  884. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  885. },
  886. {
  887. amount: "0",
  888. amountDesc: "不投保",
  889. coveragePremium: 0,
  890. amtList: [{
  891. label: "不投保",
  892. value: "0"
  893. },
  894. {
  895. label: "1万",
  896. value: "10000"
  897. },
  898. {
  899. label: "2万",
  900. value: "20000"
  901. },
  902. {
  903. label: "5万",
  904. value: "50000"
  905. },
  906. {
  907. label: "10万",
  908. value: "100000"
  909. }
  910. ],
  911. kindCode: "SY_FJ_YBW3",
  912. isMainRisk: false,
  913. kindName: "附加医保-座位险(司机)",
  914. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  915. },
  916. ],
  917. bottomData: [
  918. // #ifdef APP-PLUS
  919. {
  920. text: '微信好友',
  921. icon: '/static/image/share/weixinhaoyou.png',
  922. name: 'wx'
  923. },
  924. {
  925. text: '短信发送',
  926. icon: '/static/image/share/shortMessage.png',
  927. name: 'dx'
  928. },
  929. // #endif
  930. {
  931. text: '报价单',
  932. icon: '/static/image/share/shortMessage.png',
  933. name: 'bjd'
  934. }
  935. ],
  936. vehicleModel: {}, //车型信息
  937. showOwerInfo: false, //展示车主信息
  938. showPolicyHolderInfo: false, //展示投保人信息
  939. showInsuredPersonInfo: false, //展示被保人信息
  940. showProposalWay: false, //获取保单方式
  941. showAdvancePayment: false, //展示保费
  942. showAppoint: false, //展示特约
  943. showDistribution: false, //展示快递
  944. showApplyno: false, //展示投保单号
  945. showPolicyno: false, //展示保单号
  946. showPolicyFile: false, //展示电子保单
  947. showPolicybzFile: false, //展示电子保单
  948. policyList: [], //电子保单文件
  949. policyList1: [], //电子标志文件
  950. showCarImageInfo: false, //显示车辆影像
  951. carImageList: [],
  952. showOwnerImageInfo: false, //显示车主影像
  953. ownerImageList: [],
  954. showPolicyImageInfo: false, //显示投保人影像
  955. policyImageList: [],
  956. showInsuredImageInfo: false, //显示被保人影像
  957. insuredImageList: [],
  958. showCarCheckImageInfo: false, //显示验车照影像
  959. carCheckImageList: [],
  960. previewImgs: [],
  961. dianzibaodan: "",
  962. jypremium: "",
  963. quoteno: "",
  964. }
  965. },
  966. // 监听导航栏的按钮
  967. onNavigationBarButtonTap(e) {
  968. if (e.index == 0) {
  969. this.$refs.showshare.open()
  970. }
  971. },
  972. async onLoad(params) {
  973. if (!this.token) {
  974. document.getElementsByTagName('uni-page-head')[0].style.display = 'none'
  975. }
  976. if (!!params.companyId) {
  977. this.companyId = params.companyId;
  978. let param = {
  979. companyId: params.companyId
  980. };
  981. let res = await this.$http.post('/insurance/order/getByCompanyId', param);
  982. if (res.code == 200) {
  983. //获取前一个页面传过来的信息(车辆信息,人员信息,险种信息)
  984. this.icon = "";
  985. this.quoteno = res.data.quoteno;
  986. this.name = res.data.inscompany;
  987. this.carInfo = res.data.carinfo;
  988. this.licenseNo = res.data.licenseno;
  989. if (!!this.carInfo.transferFlag) {
  990. this.carInfo.transferFlag = 1;
  991. } else {
  992. this.carInfo.transferFlag = 0;
  993. }
  994. if (!!this.carInfo.loanStatus) {
  995. this.carInfo.loanStatus = 1;
  996. } else {
  997. this.carInfo.loanStatus = 0;
  998. }
  999. if (!!this.carInfo.registerDate) {
  1000. let year1 = new Date(this.carInfo.registerDate).getFullYear()
  1001. let month1 = new Date(this.carInfo.registerDate).getMonth() + 1
  1002. if (month1 < 10) {
  1003. month1 = '0' + month1;
  1004. }
  1005. let day1 = new Date(this.carInfo.registerDate).getDate()
  1006. if (day1 < 10) {
  1007. day1 = '0' + day1;
  1008. }
  1009. this.carInfo.registerDate = year1 + '-' + month1 + '-' + day1
  1010. }
  1011. if (!!this.carInfo.issueDate) {
  1012. let year2 = new Date(this.carInfo.issueDate).getFullYear()
  1013. let month2 = new Date(this.carInfo.issueDate).getMonth() + 1
  1014. if (month2 < 10) {
  1015. month2 = '0' + month2;
  1016. }
  1017. let day2 = new Date(this.carInfo.issueDate).getDate()
  1018. if (day2 < 10) {
  1019. day2 = '0' + day2;
  1020. }
  1021. this.carInfo.issueDate = year2 + '-' + month2 + '-' + day2
  1022. }
  1023. if (!!this.carInfo.transferDate) {
  1024. let year3 = new Date(this.carInfo.transferDate).getFullYear()
  1025. let month3 = new Date(this.carInfo.transferDate).getMonth() + 1
  1026. if (month3 < 10) {
  1027. month3 = '0' + month3;
  1028. }
  1029. let day3 = new Date(this.carInfo.transferDate).getDate()
  1030. if (day3 < 10) {
  1031. day3 = '0' + day3;
  1032. }
  1033. this.carInfo.transferDate = year3 + '-' + month3 + '-' + day3
  1034. }
  1035. this.ownerInfo = res.data.ownerinfo;
  1036. this.policyHolderInfo = res.data.applyinfo;
  1037. this.insuredPersonInfo = res.data.insureinfo;
  1038. this.riskList = res.data.riskinfo;
  1039. this.kindList = res.data.kindinfo;
  1040. this.sumPermium = res.data.sumpremium;
  1041. this.taxAmount = res.data.taxamount;
  1042. this.sypremium = res.data.sypremium;
  1043. this.jqpremium = res.data.jqpremium;
  1044. this.jypremium = res.data.jypremium;
  1045. this.orderstatus = res.data.orderstatus;
  1046. this.feerate = res.data.feerate;
  1047. this.disrate = res.data.disrate;
  1048. this.jqdiscountrate = res.data.jqdiscountrate;
  1049. this.sydiscountrate = res.data.sydiscountrate;
  1050. this.syappoint = res.data.syappoint;
  1051. this.orderInfo = {};
  1052. Object.assign(this.orderInfo, res.data)
  1053. this.imageEcho(this.quoteno) // 影像获取完毕
  1054. this.kindList.map(ele => {
  1055. switch (ele.kindCode) {
  1056. case "A":
  1057. ele.amount = "投保";
  1058. break;
  1059. case "D4":
  1060. case "SY_FJ_YBW2":
  1061. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  1062. break;
  1063. case "MJ1":
  1064. case "MJ2":
  1065. case "MJ3":
  1066. case "MJ4":
  1067. ele.deductibleRate = ele.deductibleRate + "%";
  1068. break;
  1069. default:
  1070. ele.amount = this.toChinesNum(ele.amount);
  1071. }
  1072. return ele;
  1073. })
  1074. switch (this.name) {
  1075. case "永安财险":
  1076. this.yonganprint(); //电子保单
  1077. break;
  1078. case "中煤财险":
  1079. this.zmgetPolicyPrint(); //电子保单
  1080. break;
  1081. case "恒邦财险":
  1082. case "安盛天平":
  1083. case "众安财险":
  1084. case "中国人寿":
  1085. this.pythonprint(); //电子保单
  1086. break;
  1087. case "永诚财险":
  1088. this.ycgetPolicyPrint(); //电子保单
  1089. break;
  1090. }
  1091. }
  1092. } else {
  1093. uni.showModal({
  1094. showCancel: false,
  1095. title: "未查询到该订单"
  1096. })
  1097. }
  1098. },
  1099. methods: {
  1100. ...mapMutations(['setOrderStage', 'setOrderType']),
  1101. //影像查询
  1102. async imageEcho(quotenos) {
  1103. let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
  1104. if (imgres.code == "200") {
  1105. Object.keys(imgres.data).forEach((keys) => {
  1106. imgres.data[keys].forEach((ele) => {
  1107. ele.url = this.$base.baseUrl + ele.url;
  1108. return ele;
  1109. });
  1110. });
  1111. this.carImageList = imgres.data.C01;
  1112. this.ownerImageList = imgres.data.C02;
  1113. this.policyImageList = imgres.data.C03;
  1114. this.insuredImageList = imgres.data.C04;
  1115. this.carCheckImageList = imgres.data.C05;
  1116. }
  1117. },
  1118. //去选择险种页面
  1119. toInsureItems() {
  1120. this.navigate({
  1121. url: '/pages/carInsure1/insureItems1',
  1122. success: (res) => {
  1123. res.eventChannel.emit("acceptData", {
  1124. carInfo: this.carInfo,
  1125. ownerInfo: this.ownerInfo,
  1126. policyHolderInfo: this.policyHolderInfo,
  1127. insuredPersonInfo: this.insuredPersonInfo,
  1128. riskList: this.riskList,
  1129. kindList: this.kindList
  1130. })
  1131. }
  1132. }, "navigateTo", true);
  1133. },
  1134. //去确认核保页面
  1135. toUnderwriting() {
  1136. this.navigate({
  1137. url: "/pages/carInsure1/underwriting1?companyId=" + this.companyId
  1138. },
  1139. "navigateTo", true);
  1140. },
  1141. //影像预览
  1142. previewImage(e, type) {
  1143. this.previewImgs = this[type + 'ImageList'];
  1144. var current = e.currentTarget.dataset.src;
  1145. this.$refs.previewImage.open(current); // 传入当前选中的图片地址或序号
  1146. },
  1147. //查询电子保单
  1148. async yonganprint() {
  1149. this.policyList = [];
  1150. this.policyList1 = [];
  1151. let res = await this.$http.post('/order/yongAn/getPolicyPrint', {
  1152. companyId: this.companyId,
  1153. policytype: "jq"
  1154. }); //永安
  1155. if (res.data) {
  1156. let result = res.data.replace(/[\r\n]/g, "");
  1157. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1158. base64ToPath(pdfBase64)
  1159. .then(path => {
  1160. this.policyList.push({
  1161. fileTitle: "交强电子保单",
  1162. filename: this.orderInfo.jqpolicyno,
  1163. fileurl: path,
  1164. })
  1165. })
  1166. }
  1167. let res1 = await this.$http.post('/order/yongAn/getPolicyPrint2', {
  1168. companyId: this.companyId,
  1169. policytype: "jq"
  1170. }); //永安
  1171. if (res1.data) {
  1172. let result = res1.data.replace(/[\r\n]/g, "");
  1173. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1174. base64ToPath(pdfBase64)
  1175. .then(path => {
  1176. this.policyList1.push({
  1177. fileTitle: "交强电子标志",
  1178. filename: this.orderInfo.jqpolicyno,
  1179. fileurl: path,
  1180. })
  1181. })
  1182. }
  1183. if (this.orderInfo.sypolicyno) {
  1184. let res2 = await this.$http.post('/order/yongAn/getPolicyPrint2', {
  1185. companyId: this.companyId,
  1186. policytype: "sy"
  1187. }); //永安
  1188. if (res2.data) {
  1189. let result = res1.data.replace(/[\r\n]/g, "");
  1190. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1191. base64ToPath(pdfBase64)
  1192. .then(path => {
  1193. this.policyList.push({
  1194. fileTitle: "商业电子保单",
  1195. filename: this.orderInfo.sypolicyno,
  1196. fileurl: path,
  1197. })
  1198. })
  1199. }
  1200. }
  1201. },
  1202. async zmgetPolicyPrint() {
  1203. this.policyList = [];
  1204. this.policyList1 = [];
  1205. if (this.orderInfo.jqpolicyno) {
  1206. let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  1207. companyId: this.companyId,
  1208. riskCode: "0507",
  1209. type: '2', //2:保单
  1210. });
  1211. if (res.code == '200') {
  1212. this.policyList.push({
  1213. fileTitle: "交强电子保单",
  1214. filename: this.orderInfo.jqpolicyno,
  1215. fileurl: res.data[0],
  1216. })
  1217. }
  1218. let res1 = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  1219. companyId: this.companyId,
  1220. riskCode: "0507",
  1221. type: '1', //1:标志
  1222. });
  1223. if (res1.code == '200') {
  1224. this.policyList1.push({
  1225. fileTitle: "交强电子标志",
  1226. filename: this.orderInfo.jqpolicyno,
  1227. fileurl: res.data[0],
  1228. })
  1229. }
  1230. }
  1231. if (this.orderInfo.sypolicyno) {
  1232. let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  1233. companyId: this.companyId,
  1234. riskCode: "0510",
  1235. type: '2', //2:标志
  1236. });
  1237. if (res.code == '200') {
  1238. this.policyList.push({
  1239. fileTitle: "商业电子保单",
  1240. filename: this.orderInfo.sypolicyno,
  1241. fileurl: res.data[0],
  1242. })
  1243. }
  1244. }
  1245. },
  1246. async ycgetPolicyPrint() {
  1247. this.policyList = [];
  1248. this.policyList1 = [];
  1249. let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
  1250. companyId: this.companyId,
  1251. riskCode: "0507",
  1252. type: '2', //2:保单
  1253. }); //永诚财险
  1254. if (res.code == '200') {
  1255. this.policyList.push({
  1256. fileTitle: "交强电子保单",
  1257. filename: this.orderInfo.jqpolicyno,
  1258. fileurl: res.data.jqUrl,
  1259. })
  1260. if (res.data.jqFlagUrl) {
  1261. this.policyList1.push({
  1262. fileTitle: "交强电子标志",
  1263. filename: this.orderInfo.jqpolicyno,
  1264. fileurl: res.data.jqFlagUrl,
  1265. })
  1266. }
  1267. }
  1268. if (this.orderInfo.sypolicyno) {
  1269. let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
  1270. companyId: this.companyId,
  1271. riskCode: "0510",
  1272. type: '2', //2:保单
  1273. }); //永诚财险
  1274. if (res.code == '200') {
  1275. this.policyList.push({
  1276. fileTitle: "商业电子保单",
  1277. filename: this.orderInfo.sypolicyno,
  1278. fileurl: res.data.syUrl,
  1279. });
  1280. }
  1281. }
  1282. },
  1283. //爬虫电子保单统一调用
  1284. async pythonprint() {
  1285. let params = {
  1286. subOrderNo: this.companyId,
  1287. };
  1288. let res1 = await this.$http.post('/insurance/crawler/getPolicyPrint', params);
  1289. if (res1.code == '200') {
  1290. this.policyList = [];
  1291. this.policyList1 = [];
  1292. this.policyList.push({
  1293. fileTitle: "交强电子保单",
  1294. filename: this.orderInfo.jqpolicyno,
  1295. fileurl: res1.data.jqxPolicyUrl,
  1296. })
  1297. this.policyList1.push({
  1298. fileTitle: "交强电子标志",
  1299. filename: this.orderInfo.jqpolicyno,
  1300. fileurl: res1.data.jqxFlagUrl,
  1301. })
  1302. if (res.data.syxPolicyUrl) {
  1303. this.policyList.push({
  1304. fileTitle: "商业电子保单",
  1305. filename: this.orderInfo.sypolicyno,
  1306. fileurl: res1.data.syxPolicyUrl,
  1307. });
  1308. }
  1309. if (res.data.jyxPolicyUrl) {
  1310. this.policyList.push({
  1311. fileTitle: "驾意险保单",
  1312. filename: 'xxxxxxxxxxxxxxxxxxxxxx',
  1313. fileurl: res1.data.jyxPolicyUrl,
  1314. });
  1315. }
  1316. }
  1317. },
  1318. downloadPolicy(file) {
  1319. //#ifdef APP-PLUS
  1320. uni.showLoading({
  1321. title: '文件下载中'
  1322. });
  1323. uni.downloadFile({
  1324. url: file,
  1325. success(val) {
  1326. uni.saveFile({
  1327. tempFilePath: val.tempFilePath, //临时路径
  1328. success: function(res) {
  1329. uni.hideLoading();
  1330. uni.showToast({
  1331. icon: 'none',
  1332. mask: true,
  1333. title: '文件已保存到:' + res.savedFilePath + ',正在打开文件', //保存路径
  1334. duration: 3000,
  1335. });
  1336. setTimeout(() => {
  1337. //打开文档查看
  1338. uni.openDocument({
  1339. filePath: res.savedFilePath,
  1340. success: function(res) {}
  1341. });
  1342. }, 3000)
  1343. }
  1344. });
  1345. }
  1346. });
  1347. //#endif
  1348. //#ifdef H5
  1349. var win = window.open();
  1350. win.document.write(
  1351. '<body style="margin:0px;"><object data="' +
  1352. file +
  1353. '" type="application/pdf" width="100%" height="100%"><iframe src="' +
  1354. file +
  1355. '" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
  1356. );
  1357. //#endif
  1358. },
  1359. //选择缴费方式
  1360. openPayWay() {
  1361. this.navigate({
  1362. url: "/pages/carInsure/payWay?orderno=" + this.orderno
  1363. }, 'navigateTo', true)
  1364. },
  1365. cancelShare() {
  1366. this.$refs.showshare.close()
  1367. },
  1368. //控制详情的展开和收起
  1369. controlShow(type) {
  1370. this[type] = !this[type];
  1371. },
  1372. //撤销核保
  1373. cancelUnderwriting() {
  1374. uni.showModal({
  1375. content: '是否确认撤销核保?',
  1376. success: async (res) => {
  1377. if (res.confirm) {
  1378. let param = {
  1379. "auditid": this.userInfo.sysUser.id, //核保人会员号
  1380. "auditopinion": '', //核保意见
  1381. "jqapplyno": "", //交强险投保单号
  1382. "jqappoint": "", //交强特别约定
  1383. "jqpolicyno": "", //交强保单号
  1384. "orderno": this.orderno, //订单号
  1385. "orderstatus": "0", //订单类型
  1386. "syapplyno": "", //商业险投保单号
  1387. "syappoint": "", //商业险特别约定
  1388. "sypolicyno": "" //商业保单号
  1389. }
  1390. let res = await this.$http.post('/insOrder/saveAudit', param);
  1391. uni.showToast({
  1392. title: '撤销成功',
  1393. icon: "none",
  1394. duration: 2000
  1395. });
  1396. setTimeout(() => {
  1397. this.setOrderStage(0);
  1398. this.setOrderType(0);
  1399. this.navigate({
  1400. url: "/pages/orders/orders"
  1401. }, "switchTab", true);
  1402. }, 2000);
  1403. } else if (res.cancel) {
  1404. console.log('用户点击取消');
  1405. }
  1406. }
  1407. });
  1408. },
  1409. toChinesNum(num) {
  1410. let changeNum = [
  1411. "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
  1412. ];
  1413. let unit = ["", "0", "00", "000", "0000"];
  1414. num = parseInt(num);
  1415. let getWan = temp => {
  1416. let strArr = temp
  1417. .toString()
  1418. .split("")
  1419. .reverse();
  1420. let newNum = "";
  1421. let newArr = [];
  1422. strArr.forEach((item, index) => {
  1423. newArr.unshift(
  1424. item === "0" ? changeNum[item] : changeNum[item] + unit[index]
  1425. );
  1426. });
  1427. let numArr = [];
  1428. newArr.forEach((m, n) => {
  1429. if (m !== "0") numArr.push(n);
  1430. });
  1431. if (newArr.length > 1) {
  1432. newArr.forEach((m, n) => {
  1433. if (newArr[newArr.length - 1] === "0") {
  1434. if (n <= numArr[numArr.length - 1]) {
  1435. newNum += m;
  1436. }
  1437. } else {
  1438. newNum += m;
  1439. }
  1440. });
  1441. } else {
  1442. newNum = newArr[0];
  1443. }
  1444. return newNum;
  1445. };
  1446. let overWan = Math.floor(num / 10000);
  1447. let noWan = num % 10000;
  1448. if (noWan.toString().length < 4) {
  1449. noWan = "0" + noWan;
  1450. }
  1451. return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
  1452. },
  1453. }
  1454. }
  1455. </script>
  1456. <style lang="scss" scoped>
  1457. @import '@/style/mixin.scss';
  1458. /* 头部车辆信息和特权Start */
  1459. .carInfo {
  1460. height: 280upx;
  1461. background: -webkit-linear-gradient(0deg, rgba($themeColor, 0.6), rgba($themeColor, 0.8));
  1462. background-size: 100% 100%;
  1463. }
  1464. .carInfo .topLeft {
  1465. font-size: 90upx;
  1466. color: #FFFFFF;
  1467. }
  1468. .carInfo .topLeft .license {
  1469. width: 420upx;
  1470. overflow: hidden;
  1471. text-overflow: ellipsis;
  1472. white-space: nowrap;
  1473. }
  1474. .carInfo .topLeft .totalMoney {
  1475. font-size: 40upx;
  1476. font-weight: bold;
  1477. }
  1478. .carInfo .topRight {
  1479. flex-shrink: 0;
  1480. width: 140upx;
  1481. color: #FFFFFF;
  1482. }
  1483. .carInfo .topRight image {
  1484. width: 100upx;
  1485. height: 100upx;
  1486. }
  1487. .carInfo .other {
  1488. background-color: #FFFFFF;
  1489. height: 80upx;
  1490. border-radius: 15upx;
  1491. box-sizing: border-box;
  1492. }
  1493. .carInfo .other .privilege {
  1494. background-color: rgba($themeColor, 0.6);
  1495. font-size: 24upx;
  1496. color: #FFFFFF;
  1497. font-weight: bold;
  1498. }
  1499. .carInfo .other .content {
  1500. width: 460upx;
  1501. margin-left: 15upx;
  1502. overflow: hidden;
  1503. text-overflow: ellipsis;
  1504. white-space: nowrap;
  1505. }
  1506. .carInfo .other .icon {
  1507. width: 30upx;
  1508. }
  1509. /* 头部车辆信息和特权End */
  1510. .header {
  1511. height: 80upx;
  1512. padding: 0 30upx;
  1513. position: relative;
  1514. }
  1515. .header .title {
  1516. font-size: 30upx;
  1517. font-weight: bold;
  1518. padding-left: 10upx;
  1519. }
  1520. .welfare {
  1521. margin-bottom: 20upx;
  1522. width: 100%;
  1523. box-sizing: border-box;
  1524. background: #FFFFFF;
  1525. border-radius: 20upx;
  1526. }
  1527. .welfare .body {
  1528. padding: 0 30upx 30upx;
  1529. box-sizing: border-box;
  1530. flex-wrap: wrap;
  1531. }
  1532. .welfare .body>.welfareItem {
  1533. width: 320upx;
  1534. height: 120upx;
  1535. padding: 10upx 20upx;
  1536. margin: 20upx 10upx 0upx;
  1537. border: 1px solid rgba($themeColor, 0.6);
  1538. box-sizing: border-box;
  1539. background: rgba($themeColor, 0.4);
  1540. border-radius: 10upx;
  1541. }
  1542. .welfare .body>.welfareItem .name {
  1543. color: $themeColor;
  1544. font-size: 30upx;
  1545. width: 210upx;
  1546. overflow: hidden;
  1547. text-overflow: ellipsis;
  1548. white-space: nowrap;
  1549. }
  1550. .welfare .body>.welfareItem .content {
  1551. font-size: 24upx;
  1552. width: 260upx;
  1553. overflow: hidden;
  1554. text-overflow: ellipsis;
  1555. white-space: nowrap;
  1556. }
  1557. /* 报价方案Start */
  1558. .quotePlan {
  1559. margin-bottom: 20upx;
  1560. width: 100%;
  1561. box-sizing: border-box;
  1562. background: #FFFFFF;
  1563. border-radius: 20upx;
  1564. }
  1565. .quotePlan .header .adjustPlan {
  1566. color: $themeColor;
  1567. }
  1568. .quotePlan .body {
  1569. padding: 0 40upx 10upx;
  1570. }
  1571. .quotePlan .body .insurance {
  1572. padding-bottom: 20upx;
  1573. border-bottom: 1px dashed #E6E8EA;
  1574. }
  1575. .quotePlan .body .row {
  1576. height: 70upx;
  1577. }
  1578. .quotePlan .body .row .date {
  1579. color: #A4A4A4;
  1580. font-size: 22upx;
  1581. margin-left: 40upx;
  1582. }
  1583. .quotePlan .body .insurance .kindList {
  1584. background: #F3F3F3;
  1585. padding: 0 10upx;
  1586. }
  1587. .addedServices .kindList {
  1588. background: #F3F3F3;
  1589. padding: 0 10upx;
  1590. }
  1591. .quotePlan .body .insurance .kindList .kindItem {
  1592. height: 65upx;
  1593. }
  1594. .quotePlan .body .insurance .kindList .kindItem>view {
  1595. font-size: 24upx;
  1596. }
  1597. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(1) {
  1598. width: 310upx;
  1599. }
  1600. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(2) {
  1601. width: 170upx;
  1602. }
  1603. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(3) {
  1604. width: 170upx;
  1605. }
  1606. .addedServices .kindList .kindItem {
  1607. height: 65upx;
  1608. }
  1609. .addedServices .kindList .kindItem>view {
  1610. font-size: 24upx;
  1611. padding: 0upx 15upx;
  1612. }
  1613. /* 报价方案End */
  1614. .car {
  1615. margin-bottom: 20upx;
  1616. width: 100%;
  1617. box-sizing: border-box;
  1618. background: #FFFFFF;
  1619. }
  1620. .car .body {
  1621. padding: 0upx 30upx 10upx;
  1622. }
  1623. .car .body .row {
  1624. height: 80upx;
  1625. border-bottom: 1px solid #F3F3F3;
  1626. }
  1627. /* 预缴费Start */
  1628. .advancePaymentTotal {
  1629. margin-bottom: 20upx;
  1630. width: 100%;
  1631. box-sizing: border-box;
  1632. background: #FFFFFF;
  1633. border-radius: 20upx;
  1634. }
  1635. .advancePaymentTotal .body {
  1636. padding: 0upx 40upx 10upx;
  1637. }
  1638. .advancePaymentTotal .body .row {
  1639. height: 80upx;
  1640. border-bottom: 1px solid #F3F3F3;
  1641. }
  1642. /* 预缴费End */
  1643. /* 底部按钮Start */
  1644. .bottomBtn {
  1645. position: fixed;
  1646. bottom: 0;
  1647. left: 0;
  1648. right: 0;
  1649. border-top: 1px solid #F1F1F1;
  1650. background-color: #FFFFFF;
  1651. height: 90upx;
  1652. }
  1653. .bottomBtn .listener {
  1654. width: 120upx;
  1655. font-size: 20upx;
  1656. line-height: 1.2;
  1657. color: #999;
  1658. }
  1659. .bottomBtn .listener .icon {
  1660. font-size: 40upx;
  1661. padding: 0;
  1662. }
  1663. .bottomBtn .btn {
  1664. font-size: 34upx;
  1665. background-color: $themeColor;
  1666. color: #fff;
  1667. width: 280upx;
  1668. flex-shrink: 0;
  1669. }
  1670. /* 底部按钮End */
  1671. /* 人员信息Start */
  1672. .personInfo,
  1673. .advancePayment,
  1674. .imageInfo,
  1675. .appoint {
  1676. margin-bottom: 20upx;
  1677. background: #FFFFFF;
  1678. padding: 0upx 40upx;
  1679. }
  1680. .personInfo .title,
  1681. .advancePayment .title,
  1682. .imageInfo .title,
  1683. .appoint .title {
  1684. height: 80upx;
  1685. font-size: 32upx;
  1686. box-shadow: inset 0 -3upx 0px #fafafa;
  1687. }
  1688. .showStatus {
  1689. font-size: 26upx;
  1690. color: #007AFF;
  1691. }
  1692. .personInfo .content .row,
  1693. .advancePayment .content .row {
  1694. height: 80upx;
  1695. border-bottom: 1px solid #F9F9F9;
  1696. flex-wrap: nowrap;
  1697. }
  1698. .personInfo .content .row .left,
  1699. .advancePayment .content .row .left {
  1700. width: 170upx;
  1701. flex-shrink: 0;
  1702. font-size: 28upx;
  1703. }
  1704. .appoint .content .row {
  1705. height: auto;
  1706. margin-top: 10upx;
  1707. }
  1708. .appoint .content .row>view {
  1709. width: 240upx;
  1710. flex-shrink: 1;
  1711. font-size: 28upx;
  1712. }
  1713. .appoint .content .row>textarea {
  1714. /* background: #007AFF; */
  1715. padding: 15upx;
  1716. box-sizing: border-box;
  1717. font-size: 26upx;
  1718. min-height: 160upx;
  1719. height: 100upx;
  1720. border: 1px solid #fafafa;
  1721. /* over */
  1722. }
  1723. .personInfo .content .row .right,
  1724. .advancePayment .content .row .right,
  1725. .appoint .content .row .right {
  1726. font-size: 28upx;
  1727. }
  1728. /* 人员信息End */
  1729. .checkButton {
  1730. margin: 0 20upx 0 20upx;
  1731. font-size: 24upx;
  1732. width: 80upx;
  1733. height: 50upx;
  1734. background: $themeColor;
  1735. font-weight: bold;
  1736. color: #FFFFFF;
  1737. border-radius: 5upx;
  1738. }
  1739. .uni-popup__wrapper-box {
  1740. display: block;
  1741. position: relative;
  1742. }
  1743. .uni-share {
  1744. display: flex;
  1745. flex-direction: column;
  1746. background-color: #fff;
  1747. position: fixed;
  1748. bottom: 0;
  1749. left: 0;
  1750. right: 0;
  1751. }
  1752. .uni-share-title {
  1753. line-height: 30px;
  1754. font-size: 12px;
  1755. padding: 7px 0;
  1756. text-align: center;
  1757. }
  1758. .uni-share-content {
  1759. display: flex;
  1760. flex-direction: row;
  1761. flex-wrap: wrap;
  1762. justify-content: center;
  1763. padding: 15px;
  1764. }
  1765. .uni-share-content-box {
  1766. display: flex;
  1767. flex-direction: column;
  1768. align-items: center;
  1769. width: 100px;
  1770. }
  1771. .uni-share-content-image {
  1772. display: flex;
  1773. flex-direction: row;
  1774. justify-content: center;
  1775. align-items: center;
  1776. width: 30px;
  1777. height: 30px;
  1778. overflow: hidden;
  1779. border-radius: 5px;
  1780. }
  1781. .uni-share-content-text {
  1782. font-size: 13px;
  1783. color: #333;
  1784. padding-top: 5px;
  1785. padding-bottom: 10px;
  1786. }
  1787. .uni-share-btn {
  1788. height: 45px;
  1789. line-height: 45px;
  1790. font-size: 14px;
  1791. border-top-color: #f5f5f5;
  1792. border-top-width: 1px;
  1793. border-top-style: solid;
  1794. text-align: center;
  1795. color: #666;
  1796. }
  1797. uni-image>img {
  1798. display: block;
  1799. position: absolute;
  1800. top: 0;
  1801. left: 0;
  1802. opacity: 0;
  1803. }
  1804. uni-image>div,
  1805. uni-image>img {
  1806. width: 100%;
  1807. height: 100%;
  1808. }
  1809. </style>