quoteDetail1.vue 52 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912
  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 = [];
  1144. this.previewImgs = this[type + 'ImageList'];
  1145. var current = e.currentTarget.dataset.src;
  1146. this.$refs.previewImage.open(current); // 传入当前选中的图片地址或序号
  1147. },
  1148. //查询电子保单
  1149. async yonganprint() {
  1150. this.policyList = [];
  1151. this.policyList1 = [];
  1152. let res = await this.$http.post('/order/yongAn/getPolicyPrint', {
  1153. companyId: this.companyId,
  1154. policytype: "jq"
  1155. }); //永安
  1156. if (res.data) {
  1157. let result = res.data.replace(/[\r\n]/g, "");
  1158. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1159. base64ToPath(pdfBase64)
  1160. .then(path => {
  1161. this.policyList.push({
  1162. fileTitle: "交强电子保单",
  1163. filename: this.orderInfo.jqpolicyno,
  1164. fileurl: path,
  1165. })
  1166. })
  1167. }
  1168. let res1 = await this.$http.post('/order/yongAn/getPolicyPrint2', {
  1169. companyId: this.companyId,
  1170. policytype: "jq"
  1171. }); //永安
  1172. if (res1.data) {
  1173. let result = res1.data.replace(/[\r\n]/g, "");
  1174. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1175. base64ToPath(pdfBase64)
  1176. .then(path => {
  1177. this.policyList1.push({
  1178. fileTitle: "交强电子标志",
  1179. filename: this.orderInfo.jqpolicyno,
  1180. fileurl: path,
  1181. })
  1182. })
  1183. }
  1184. if (this.orderInfo.sypolicyno) {
  1185. let res2 = await this.$http.post('/order/yongAn/getPolicyPrint2', {
  1186. companyId: this.companyId,
  1187. policytype: "sy"
  1188. }); //永安
  1189. if (res2.data) {
  1190. let result = res1.data.replace(/[\r\n]/g, "");
  1191. let pdfBase64 = `data:application/pdf;base64,${result}`;
  1192. base64ToPath(pdfBase64)
  1193. .then(path => {
  1194. this.policyList.push({
  1195. fileTitle: "商业电子保单",
  1196. filename: this.orderInfo.sypolicyno,
  1197. fileurl: path,
  1198. })
  1199. })
  1200. }
  1201. }
  1202. },
  1203. async zmgetPolicyPrint() {
  1204. this.policyList = [];
  1205. this.policyList1 = [];
  1206. if (this.orderInfo.jqpolicyno) {
  1207. let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  1208. companyId: this.companyId,
  1209. riskCode: "0507",
  1210. type: '2', //2:保单
  1211. });
  1212. if (res.code == '200') {
  1213. this.policyList.push({
  1214. fileTitle: "交强电子保单",
  1215. filename: this.orderInfo.jqpolicyno,
  1216. fileurl: res.data[0],
  1217. })
  1218. }
  1219. let res1 = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  1220. companyId: this.companyId,
  1221. riskCode: "0507",
  1222. type: '1', //1:标志
  1223. });
  1224. if (res1.code == '200') {
  1225. this.policyList1.push({
  1226. fileTitle: "交强电子标志",
  1227. filename: this.orderInfo.jqpolicyno,
  1228. fileurl: res.data[0],
  1229. })
  1230. }
  1231. }
  1232. if (this.orderInfo.sypolicyno) {
  1233. let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  1234. companyId: this.companyId,
  1235. riskCode: "0510",
  1236. type: '2', //2:标志
  1237. });
  1238. if (res.code == '200') {
  1239. this.policyList.push({
  1240. fileTitle: "商业电子保单",
  1241. filename: this.orderInfo.sypolicyno,
  1242. fileurl: res.data[0],
  1243. })
  1244. }
  1245. }
  1246. },
  1247. async ycgetPolicyPrint() {
  1248. this.policyList = [];
  1249. this.policyList1 = [];
  1250. let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
  1251. companyId: this.companyId,
  1252. riskCode: "0507",
  1253. type: '2', //2:保单
  1254. }); //永诚财险
  1255. if (res.code == '200') {
  1256. this.policyList.push({
  1257. fileTitle: "交强电子保单",
  1258. filename: this.orderInfo.jqpolicyno,
  1259. fileurl: res.data.jqUrl,
  1260. })
  1261. if (res.data.jqFlagUrl) {
  1262. this.policyList1.push({
  1263. fileTitle: "交强电子标志",
  1264. filename: this.orderInfo.jqpolicyno,
  1265. fileurl: res.data.jqFlagUrl,
  1266. })
  1267. }
  1268. }
  1269. if (this.orderInfo.sypolicyno) {
  1270. let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
  1271. companyId: this.companyId,
  1272. riskCode: "0510",
  1273. type: '2', //2:保单
  1274. }); //永诚财险
  1275. if (res.code == '200') {
  1276. this.policyList.push({
  1277. fileTitle: "商业电子保单",
  1278. filename: this.orderInfo.sypolicyno,
  1279. fileurl: res.data.syUrl,
  1280. });
  1281. }
  1282. }
  1283. },
  1284. //爬虫电子保单统一调用
  1285. async pythonprint() {
  1286. let params = {
  1287. subOrderNo: this.companyId,
  1288. };
  1289. let res1 = await this.$http.post('/insurance/crawler/getPolicyPrint', params);
  1290. if (res1.code == '200') {
  1291. this.policyList = [];
  1292. this.policyList1 = [];
  1293. this.policyList.push({
  1294. fileTitle: "交强电子保单",
  1295. filename: this.orderInfo.jqpolicyno,
  1296. fileurl: res1.data.jqxPolicyUrl,
  1297. })
  1298. this.policyList1.push({
  1299. fileTitle: "交强电子标志",
  1300. filename: this.orderInfo.jqpolicyno,
  1301. fileurl: res1.data.jqxFlagUrl,
  1302. })
  1303. if (res.data.syxPolicyUrl) {
  1304. this.policyList.push({
  1305. fileTitle: "商业电子保单",
  1306. filename: this.orderInfo.sypolicyno,
  1307. fileurl: res1.data.syxPolicyUrl,
  1308. });
  1309. }
  1310. if (res.data.jyxPolicyUrl) {
  1311. this.policyList.push({
  1312. fileTitle: "驾意险保单",
  1313. filename: 'xxxxxxxxxxxxxxxxxxxxxx',
  1314. fileurl: res1.data.jyxPolicyUrl,
  1315. });
  1316. }
  1317. }
  1318. },
  1319. downloadPolicy(file) {
  1320. //#ifdef APP-PLUS
  1321. uni.showLoading({
  1322. title: '文件下载中'
  1323. });
  1324. uni.downloadFile({
  1325. url: file,
  1326. success(val) {
  1327. uni.saveFile({
  1328. tempFilePath: val.tempFilePath, //临时路径
  1329. success: function(res) {
  1330. uni.hideLoading();
  1331. uni.showToast({
  1332. icon: 'none',
  1333. mask: true,
  1334. title: '文件已保存到:' + res.savedFilePath + ',正在打开文件', //保存路径
  1335. duration: 3000,
  1336. });
  1337. setTimeout(() => {
  1338. //打开文档查看
  1339. uni.openDocument({
  1340. filePath: res.savedFilePath,
  1341. success: function(res) {}
  1342. });
  1343. }, 3000)
  1344. }
  1345. });
  1346. }
  1347. });
  1348. //#endif
  1349. //#ifdef H5
  1350. var win = window.open();
  1351. win.document.write(
  1352. '<body style="margin:0px;"><object data="' +
  1353. file +
  1354. '" type="application/pdf" width="100%" height="100%"><iframe src="' +
  1355. file +
  1356. '" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
  1357. );
  1358. //#endif
  1359. },
  1360. //选择缴费方式
  1361. openPayWay() {
  1362. this.navigate({
  1363. url: "/pages/carInsure/payWay?orderno=" + this.orderno
  1364. }, 'navigateTo', true)
  1365. },
  1366. cancelShare() {
  1367. this.$refs.showshare.close()
  1368. },
  1369. //控制详情的展开和收起
  1370. controlShow(type) {
  1371. this[type] = !this[type];
  1372. },
  1373. //撤销核保
  1374. cancelUnderwriting() {
  1375. uni.showModal({
  1376. content: '是否确认撤销核保?',
  1377. success: async (res) => {
  1378. if (res.confirm) {
  1379. let param = {
  1380. "auditid": this.userInfo.sysUser.id, //核保人会员号
  1381. "auditopinion": '', //核保意见
  1382. "jqapplyno": "", //交强险投保单号
  1383. "jqappoint": "", //交强特别约定
  1384. "jqpolicyno": "", //交强保单号
  1385. "orderno": this.orderno, //订单号
  1386. "orderstatus": "0", //订单类型
  1387. "syapplyno": "", //商业险投保单号
  1388. "syappoint": "", //商业险特别约定
  1389. "sypolicyno": "" //商业保单号
  1390. }
  1391. let res = await this.$http.post('/insOrder/saveAudit', param);
  1392. uni.showToast({
  1393. title: '撤销成功',
  1394. icon: "none",
  1395. duration: 2000
  1396. });
  1397. setTimeout(() => {
  1398. this.setOrderStage(0);
  1399. this.setOrderType(0);
  1400. this.navigate({
  1401. url: "/pages/orders/orders"
  1402. }, "switchTab", true);
  1403. }, 2000);
  1404. } else if (res.cancel) {
  1405. console.log('用户点击取消');
  1406. }
  1407. }
  1408. });
  1409. },
  1410. toChinesNum(num) {
  1411. let changeNum = [
  1412. "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
  1413. ];
  1414. let unit = ["", "0", "00", "000", "0000"];
  1415. num = parseInt(num);
  1416. let getWan = temp => {
  1417. let strArr = temp
  1418. .toString()
  1419. .split("")
  1420. .reverse();
  1421. let newNum = "";
  1422. let newArr = [];
  1423. strArr.forEach((item, index) => {
  1424. newArr.unshift(
  1425. item === "0" ? changeNum[item] : changeNum[item] + unit[index]
  1426. );
  1427. });
  1428. let numArr = [];
  1429. newArr.forEach((m, n) => {
  1430. if (m !== "0") numArr.push(n);
  1431. });
  1432. if (newArr.length > 1) {
  1433. newArr.forEach((m, n) => {
  1434. if (newArr[newArr.length - 1] === "0") {
  1435. if (n <= numArr[numArr.length - 1]) {
  1436. newNum += m;
  1437. }
  1438. } else {
  1439. newNum += m;
  1440. }
  1441. });
  1442. } else {
  1443. newNum = newArr[0];
  1444. }
  1445. return newNum;
  1446. };
  1447. let overWan = Math.floor(num / 10000);
  1448. let noWan = num % 10000;
  1449. if (noWan.toString().length < 4) {
  1450. noWan = "0" + noWan;
  1451. }
  1452. return overWan ? getWan(overWan) + "万" + getWan(noWan) : getWan(num);
  1453. },
  1454. }
  1455. }
  1456. </script>
  1457. <style lang="scss" scoped>
  1458. @import '@/style/mixin.scss';
  1459. /* 头部车辆信息和特权Start */
  1460. .carInfo {
  1461. height: 280upx;
  1462. background: -webkit-linear-gradient(0deg, rgba($themeColor, 0.6), rgba($themeColor, 0.8));
  1463. background-size: 100% 100%;
  1464. }
  1465. .carInfo .topLeft {
  1466. font-size: 90upx;
  1467. color: #FFFFFF;
  1468. }
  1469. .carInfo .topLeft .license {
  1470. width: 420upx;
  1471. overflow: hidden;
  1472. text-overflow: ellipsis;
  1473. white-space: nowrap;
  1474. }
  1475. .carInfo .topLeft .totalMoney {
  1476. font-size: 40upx;
  1477. font-weight: bold;
  1478. }
  1479. .carInfo .topRight {
  1480. flex-shrink: 0;
  1481. width: 140upx;
  1482. color: #FFFFFF;
  1483. }
  1484. .carInfo .topRight image {
  1485. width: 100upx;
  1486. height: 100upx;
  1487. }
  1488. .carInfo .other {
  1489. background-color: #FFFFFF;
  1490. height: 80upx;
  1491. border-radius: 15upx;
  1492. box-sizing: border-box;
  1493. }
  1494. .carInfo .other .privilege {
  1495. background-color: rgba($themeColor, 0.6);
  1496. font-size: 24upx;
  1497. color: #FFFFFF;
  1498. font-weight: bold;
  1499. }
  1500. .carInfo .other .content {
  1501. width: 460upx;
  1502. margin-left: 15upx;
  1503. overflow: hidden;
  1504. text-overflow: ellipsis;
  1505. white-space: nowrap;
  1506. }
  1507. .carInfo .other .icon {
  1508. width: 30upx;
  1509. }
  1510. /* 头部车辆信息和特权End */
  1511. .header {
  1512. height: 80upx;
  1513. padding: 0 30upx;
  1514. position: relative;
  1515. }
  1516. .header .title {
  1517. font-size: 30upx;
  1518. font-weight: bold;
  1519. padding-left: 10upx;
  1520. }
  1521. .welfare {
  1522. margin-bottom: 20upx;
  1523. width: 100%;
  1524. box-sizing: border-box;
  1525. background: #FFFFFF;
  1526. border-radius: 20upx;
  1527. }
  1528. .welfare .body {
  1529. padding: 0 30upx 30upx;
  1530. box-sizing: border-box;
  1531. flex-wrap: wrap;
  1532. }
  1533. .welfare .body>.welfareItem {
  1534. width: 320upx;
  1535. height: 120upx;
  1536. padding: 10upx 20upx;
  1537. margin: 20upx 10upx 0upx;
  1538. border: 1px solid rgba($themeColor, 0.6);
  1539. box-sizing: border-box;
  1540. background: rgba($themeColor, 0.4);
  1541. border-radius: 10upx;
  1542. }
  1543. .welfare .body>.welfareItem .name {
  1544. color: $themeColor;
  1545. font-size: 30upx;
  1546. width: 210upx;
  1547. overflow: hidden;
  1548. text-overflow: ellipsis;
  1549. white-space: nowrap;
  1550. }
  1551. .welfare .body>.welfareItem .content {
  1552. font-size: 24upx;
  1553. width: 260upx;
  1554. overflow: hidden;
  1555. text-overflow: ellipsis;
  1556. white-space: nowrap;
  1557. }
  1558. /* 报价方案Start */
  1559. .quotePlan {
  1560. margin-bottom: 20upx;
  1561. width: 100%;
  1562. box-sizing: border-box;
  1563. background: #FFFFFF;
  1564. border-radius: 20upx;
  1565. }
  1566. .quotePlan .header .adjustPlan {
  1567. color: $themeColor;
  1568. }
  1569. .quotePlan .body {
  1570. padding: 0 40upx 10upx;
  1571. }
  1572. .quotePlan .body .insurance {
  1573. padding-bottom: 20upx;
  1574. border-bottom: 1px dashed #E6E8EA;
  1575. }
  1576. .quotePlan .body .row {
  1577. height: 70upx;
  1578. }
  1579. .quotePlan .body .row .date {
  1580. color: #A4A4A4;
  1581. font-size: 22upx;
  1582. margin-left: 40upx;
  1583. }
  1584. .quotePlan .body .insurance .kindList {
  1585. background: #F3F3F3;
  1586. padding: 0 10upx;
  1587. }
  1588. .addedServices .kindList {
  1589. background: #F3F3F3;
  1590. padding: 0 10upx;
  1591. }
  1592. .quotePlan .body .insurance .kindList .kindItem {
  1593. height: 65upx;
  1594. }
  1595. .quotePlan .body .insurance .kindList .kindItem>view {
  1596. font-size: 24upx;
  1597. }
  1598. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(1) {
  1599. width: 310upx;
  1600. }
  1601. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(2) {
  1602. width: 170upx;
  1603. }
  1604. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(3) {
  1605. width: 170upx;
  1606. }
  1607. .addedServices .kindList .kindItem {
  1608. height: 65upx;
  1609. }
  1610. .addedServices .kindList .kindItem>view {
  1611. font-size: 24upx;
  1612. padding: 0upx 15upx;
  1613. }
  1614. /* 报价方案End */
  1615. .car {
  1616. margin-bottom: 20upx;
  1617. width: 100%;
  1618. box-sizing: border-box;
  1619. background: #FFFFFF;
  1620. }
  1621. .car .body {
  1622. padding: 0upx 30upx 10upx;
  1623. }
  1624. .car .body .row {
  1625. height: 80upx;
  1626. border-bottom: 1px solid #F3F3F3;
  1627. }
  1628. /* 预缴费Start */
  1629. .advancePaymentTotal {
  1630. margin-bottom: 20upx;
  1631. width: 100%;
  1632. box-sizing: border-box;
  1633. background: #FFFFFF;
  1634. border-radius: 20upx;
  1635. }
  1636. .advancePaymentTotal .body {
  1637. padding: 0upx 40upx 10upx;
  1638. }
  1639. .advancePaymentTotal .body .row {
  1640. height: 80upx;
  1641. border-bottom: 1px solid #F3F3F3;
  1642. }
  1643. /* 预缴费End */
  1644. /* 底部按钮Start */
  1645. .bottomBtn {
  1646. position: fixed;
  1647. bottom: 0;
  1648. left: 0;
  1649. right: 0;
  1650. border-top: 1px solid #F1F1F1;
  1651. background-color: #FFFFFF;
  1652. height: 90upx;
  1653. }
  1654. .bottomBtn .listener {
  1655. width: 120upx;
  1656. font-size: 20upx;
  1657. line-height: 1.2;
  1658. color: #999;
  1659. }
  1660. .bottomBtn .listener .icon {
  1661. font-size: 40upx;
  1662. padding: 0;
  1663. }
  1664. .bottomBtn .btn {
  1665. font-size: 34upx;
  1666. background-color: $themeColor;
  1667. color: #fff;
  1668. width: 280upx;
  1669. flex-shrink: 0;
  1670. }
  1671. /* 底部按钮End */
  1672. /* 人员信息Start */
  1673. .personInfo,
  1674. .advancePayment,
  1675. .imageInfo,
  1676. .appoint {
  1677. margin-bottom: 20upx;
  1678. background: #FFFFFF;
  1679. padding: 0upx 40upx;
  1680. }
  1681. .personInfo .title,
  1682. .advancePayment .title,
  1683. .imageInfo .title,
  1684. .appoint .title {
  1685. height: 80upx;
  1686. font-size: 32upx;
  1687. box-shadow: inset 0 -3upx 0px #fafafa;
  1688. }
  1689. .showStatus {
  1690. font-size: 26upx;
  1691. color: #007AFF;
  1692. }
  1693. .personInfo .content .row,
  1694. .advancePayment .content .row {
  1695. height: 80upx;
  1696. border-bottom: 1px solid #F9F9F9;
  1697. flex-wrap: nowrap;
  1698. }
  1699. .personInfo .content .row .left,
  1700. .advancePayment .content .row .left {
  1701. width: 170upx;
  1702. flex-shrink: 0;
  1703. font-size: 28upx;
  1704. }
  1705. .appoint .content .row {
  1706. height: auto;
  1707. margin-top: 10upx;
  1708. }
  1709. .appoint .content .row>view {
  1710. width: 240upx;
  1711. flex-shrink: 1;
  1712. font-size: 28upx;
  1713. }
  1714. .appoint .content .row>textarea {
  1715. /* background: #007AFF; */
  1716. padding: 15upx;
  1717. box-sizing: border-box;
  1718. font-size: 26upx;
  1719. min-height: 160upx;
  1720. height: 100upx;
  1721. border: 1px solid #fafafa;
  1722. /* over */
  1723. }
  1724. .personInfo .content .row .right,
  1725. .advancePayment .content .row .right,
  1726. .appoint .content .row .right {
  1727. font-size: 28upx;
  1728. }
  1729. /* 人员信息End */
  1730. .checkButton {
  1731. margin: 0 20upx 0 20upx;
  1732. font-size: 24upx;
  1733. width: 80upx;
  1734. height: 50upx;
  1735. background: $themeColor;
  1736. font-weight: bold;
  1737. color: #FFFFFF;
  1738. border-radius: 5upx;
  1739. }
  1740. .uni-popup__wrapper-box {
  1741. display: block;
  1742. position: relative;
  1743. }
  1744. .uni-share {
  1745. display: flex;
  1746. flex-direction: column;
  1747. background-color: #fff;
  1748. position: fixed;
  1749. bottom: 0;
  1750. left: 0;
  1751. right: 0;
  1752. }
  1753. .uni-share-title {
  1754. line-height: 30px;
  1755. font-size: 12px;
  1756. padding: 7px 0;
  1757. text-align: center;
  1758. }
  1759. .uni-share-content {
  1760. display: flex;
  1761. flex-direction: row;
  1762. flex-wrap: wrap;
  1763. justify-content: center;
  1764. padding: 15px;
  1765. }
  1766. .uni-share-content-box {
  1767. display: flex;
  1768. flex-direction: column;
  1769. align-items: center;
  1770. width: 100px;
  1771. }
  1772. .uni-share-content-image {
  1773. display: flex;
  1774. flex-direction: row;
  1775. justify-content: center;
  1776. align-items: center;
  1777. width: 30px;
  1778. height: 30px;
  1779. overflow: hidden;
  1780. border-radius: 5px;
  1781. }
  1782. .uni-share-content-text {
  1783. font-size: 13px;
  1784. color: #333;
  1785. padding-top: 5px;
  1786. padding-bottom: 10px;
  1787. }
  1788. .uni-share-btn {
  1789. height: 45px;
  1790. line-height: 45px;
  1791. font-size: 14px;
  1792. border-top-color: #f5f5f5;
  1793. border-top-width: 1px;
  1794. border-top-style: solid;
  1795. text-align: center;
  1796. color: #666;
  1797. }
  1798. uni-image>img {
  1799. display: block;
  1800. position: absolute;
  1801. top: 0;
  1802. left: 0;
  1803. opacity: 0;
  1804. }
  1805. uni-image>div,
  1806. uni-image>img {
  1807. width: 100%;
  1808. height: 100%;
  1809. }
  1810. </style>