quoteDetail1.vue 54 KB

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