quoteDetail.vue 105 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514
  1. <template>
  2. <view :style="getHeight">
  3. <service-widget @btnClick="btn_click"></service-widget>
  4. <!-- 公共组件-每个页面必须引入 -->
  5. <public-module></public-module>
  6. <!-- 头部 -->
  7. <view class="" style="width: 100%;
  8. height: 210px;
  9. background: linear-gradient( 180deg, #0052FF 0%, #F8FAFE 100%);position: absolute;top: 0;">
  10. </view>
  11. <view class="headers ">
  12. <view class="price">
  13. <view class="price1 dis a-c j-s">
  14. <view class="dis f-c">
  15. <text class="font-weight"
  16. style="color: #232832;font-size: 18px;">{{orderInfo.inscompany}}</text>
  17. <view class="dis f-c" v-if="orderInfo.jqapplyno || orderInfo.syapplyno">
  18. <view class="dis a-c">
  19. <image src="../../static/image/car-insure/toubaodanhao.png" mode=""
  20. style="width: 16px;height: 16px;"></image>
  21. <text class="font-weight"
  22. style="color: #333;font-size: 14px;margin-left: 10px;">投保单号</text>
  23. </view>
  24. <view class="dis f-c">
  25. <text style="color: #666666;font-size: 12px;"
  26. v-if="orderInfo.jqapplyno">交强:{{orderInfo.jqapplyno}}</text>
  27. <text style="color: #666666;font-size: 12px;"
  28. v-if="orderInfo.syapplyno">商业:{{orderInfo.syapplyno}}</text>
  29. </view>
  30. </view>
  31. </view>
  32. <image src="../../static/image/car-insure/3D.png" mode="" style="width: 60px;height: 60px;"></image>
  33. </view>
  34. <view class="price2 dis j-end a-c">
  35. <text style="color: #666666;font-size: 12px;">订单编号:{{orderInfo.orderno}}</text>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="page">
  40. <view class="car">
  41. <view class="header d-flex a-center j-sb" @tap="showCarInfo = !showCarInfo">
  42. <view class="title">车辆信息</view>
  43. <text style="color: #0055FF;font-size: 12px;">{{showCarInfo?'收起':'展开'}}</text>
  44. </view>
  45. <view class="body" v-if="showCarInfo">
  46. <view class="row d-flex a-center j-sb">
  47. <view>车牌号</view>
  48. <view>{{carInfo.licenseNo}}</view>
  49. </view>
  50. <view class="row d-flex a-center j-sb">
  51. <view>品牌型号</view>
  52. <view>{{carInfo.modelcname}}</view>
  53. </view>
  54. <view class="row d-flex a-center j-sb">
  55. <view>车辆识别代码</view>
  56. <view>{{carInfo.vinNo}}</view>
  57. </view>
  58. <view class="row d-flex a-center j-sb">
  59. <view>发动机号</view>
  60. <view>{{carInfo.engineNo}}</view>
  61. </view>
  62. <view class="row d-flex a-center j-sb">
  63. <view>年款</view>
  64. <view>{{carInfo.caryear}}</view>
  65. </view>
  66. <view class="row d-flex a-center j-sb">
  67. <view>座位数</view>
  68. <view>{{carInfo.seatCount}}</view>
  69. </view>
  70. <view class="row d-flex a-center j-sb">
  71. <view>整备质量</view>
  72. <view>{{carInfo.completeKerbMass}}</view>
  73. </view>
  74. <view class="row d-flex a-center j-sb" v-if="carInfo.limitLoad">
  75. <view>核定载质量</view>
  76. <view>{{carInfo.limitLoad}}</view>
  77. </view>
  78. <view class="row d-flex a-center j-sb">
  79. <view>排量</view>
  80. <view>{{carInfo.enginedesc}}</view>
  81. </view>
  82. <view class="row d-flex a-center j-sb">
  83. <view>功率</view>
  84. <view>{{carInfo.powerScale}}</view>
  85. </view>
  86. <view class="row d-flex a-center j-sb">
  87. <view>新车购置价</view>
  88. <view>{{carInfo.purchasePrice}}</view>
  89. </view>
  90. <view class="row d-flex a-center j-sb">
  91. <view>使用性质</view>
  92. <view>{{carInfo.carnature}}</view>
  93. </view>
  94. <view class="row d-flex a-center j-sb">
  95. <view>车辆用途</view>
  96. <view>{{carInfo.vehicleUse}}</view>
  97. </view>
  98. <view class="row d-flex a-center j-sb">
  99. <view>车辆类型</view>
  100. <view>{{carInfo.cartype}}</view>
  101. </view>
  102. <view class="row d-flex a-center j-sb">
  103. <view>车辆种类</view>
  104. <view>{{carInfo.cimodelclass}}</view>
  105. </view>
  106. <view class="row d-flex a-center j-sb">
  107. <view>能源种类</view>
  108. <view>{{carInfo.energyType}}</view>
  109. </view>
  110. <view class="row d-flex a-center j-sb">
  111. <view>注册日期</view>
  112. <view>{{carInfo.registerDate }}</view>
  113. </view>
  114. <view class="row d-flex a-center j-sb">
  115. <view>发证日期</view>
  116. <view>{{carInfo.issueDate }}</view>
  117. </view>
  118. <view class="row d-flex a-center j-sb">
  119. <view>是否过户</view>
  120. <view>{{carInfo.transferFlag?'是':'否' }}</view>
  121. </view>
  122. <view class="row d-flex a-center j-sb" v-if="carInfo.transferFlag">
  123. <view>转移登记日期</view>
  124. <view>{{carInfo.transferDate }}</view>
  125. </view>
  126. <view class="row d-flex a-center j-sb">
  127. <view>商业是否过户</view>
  128. <view>{{carInfo.transferFlagBi?'是':'否' }}</view>
  129. </view>
  130. <view class="row d-flex a-center j-sb">
  131. <view>是否脱保</view>
  132. <view>{{carInfo.outOfInsurance?'是':'否' }}</view>
  133. </view>
  134. <view class="row d-flex a-center j-sb">
  135. <view>是否二手车</view>
  136. <view>{{carInfo.usedCar?'是':'否' }}</view>
  137. </view>
  138. </view>
  139. </view>
  140. <view class="car" style="padding: 0;">
  141. <view class="header d-flex a-center j-sb " @tap="showOwerInfo = !showOwerInfo"
  142. style="padding: 0 10px;background: linear-gradient( 180deg, #E0D5FF 0%, rgba(231,213,255,0) 100%);">
  143. <view class="title">人员信息</view>
  144. <text style="color: #7000FF;font-size: 12px;">{{showOwerInfo?'收起':'展开'}}</text>
  145. </view>
  146. <view class="body" v-if="showOwerInfo" style="padding: 8px;">
  147. <u-table border-color="#F0E3F8">
  148. <u-tr>
  149. <u-th class="fen">车主姓名</u-th>
  150. <u-th class="fen">身份证</u-th>
  151. <u-th class="fen">手机号</u-th>
  152. </u-tr>
  153. <u-tr>
  154. <u-td>{{ownerInfo.name}}</u-td>
  155. <u-td>{{ownerInfo.identifyNumber}}</u-td>
  156. <u-td>{{ownerInfo.mobile}}</u-td>
  157. </u-tr>
  158. </u-table>
  159. <view class="row d-flex a-center j-sb">
  160. <view style="width: 60px;">地址</view>
  161. <view>{{ownerInfo.addr}}</view>
  162. </view>
  163. <u-table border-color="#F0E3F8">
  164. <u-tr>
  165. <u-th class="fen">投保人姓名</u-th>
  166. <u-th class="fen">身份证</u-th>
  167. <u-th class="fen">手机号</u-th>
  168. </u-tr>
  169. <u-tr>
  170. <u-td>{{policyHolderInfo.name}}</u-td>
  171. <u-td>{{policyHolderInfo.identifyNumber}}</u-td>
  172. <u-td>{{policyHolderInfo.mobile}}</u-td>
  173. </u-tr>
  174. </u-table>
  175. <view class="row d-flex a-center j-sb">
  176. <view style="width: 60px;">地址</view>
  177. <view>{{policyHolderInfo.addr}}</view>
  178. </view>
  179. <u-table border-color="#F0E3F8">
  180. <u-tr>
  181. <u-th class="fen">被保人姓名</u-th>
  182. <u-th class="fen">身份证</u-th>
  183. <u-th class="fen">手机号</u-th>
  184. </u-tr>
  185. <u-tr>
  186. <u-td>{{insuredPersonInfo.name}}</u-td>
  187. <u-td>{{insuredPersonInfo.identifyNumber}}</u-td>
  188. <u-td>{{insuredPersonInfo.mobile}}</u-td>
  189. </u-tr>
  190. </u-table>
  191. <view class="row d-flex a-center j-sb">
  192. <view style="width: 60px;">地址</view>
  193. <view>{{insuredPersonInfo.addr}}</view>
  194. </view>
  195. </view>
  196. </view>
  197. <view class="car">
  198. <view class="header d-flex a-center j-sb" @tap="policyInfoDetailsInfo = !policyInfoDetailsInfo"
  199. style="background: linear-gradient( 180deg, #FFD7C2 0%, rgba(255,215,194,0) 100%);">
  200. <view class="title">保费信息</view>
  201. <text style="color: #FF8B50;font-size: 12px;">{{policyInfoDetailsInfo?'收起':'展开'}}</text>
  202. </view>
  203. <view class="body" v-if="policyInfoDetailsInfo" style="padding:5px 8px;">
  204. <view class="dis f-c " v-if="orderInfo.jqstartdate">
  205. <view class="dis j-s a-c">
  206. <text class="font-weight" style="color: #6B2709;font-size: 15px;">交强险</text>
  207. <text
  208. style="color: #8B563E;font-size: 13px;">{{orderInfo.jqstartdate}}至{{orderInfo.jqenddate}}</text>
  209. </view>
  210. <u-table border-color="#F8E9E3">
  211. <u-tr class="baodan">
  212. <u-th>保险产品</u-th>
  213. <u-th>总计(元)</u-th>
  214. </u-tr>
  215. <u-tr>
  216. <u-td>交通事故强制责任险</u-td>
  217. <u-td>¥{{orderInfo.jqpremium}}</u-td>
  218. </u-tr>
  219. </u-table>
  220. </view>
  221. <view class="dis f-c mt-1" v-if="orderInfo.systartdate">
  222. <view class="dis j-s a-c">
  223. <text class="font-weight" style="color: #6B2709;font-size: 15px;">商业险</text>
  224. <text
  225. style="color: #8B563E;font-size: 13px;">{{orderInfo.systartdate}}至{{orderInfo.syenddate}}</text>
  226. </view>
  227. <u-table border-color="#F8E9E3">
  228. <u-tr class="baodan">
  229. <u-th>险种</u-th>
  230. <u-th>保额</u-th>
  231. <u-th>保费(元)</u-th>
  232. </u-tr>
  233. <u-tr v-for="(item,index) in orderInfo.kindinfo" :key="index">
  234. <u-td>{{item.kindName}}</u-td>
  235. <u-td
  236. v-if="['D4', 'SY_FJ_YBW2'].includes(item.kindCode)">{{item.unitAmount}}/座*{{orderInfo.carinfo.seatCount-1}}</u-td>
  237. <u-td v-else-if="['D3'].includes(item.kindCode)">{{item.amount}}/座*1</u-td>
  238. <u-td
  239. v-else-if="['MJ1', 'MJ2', 'MJ3', 'MJ4'].includes(item.kindCode)">{{item.deductibleRate}}</u-td>
  240. <u-td
  241. v-else-if="['TY1', 'TY2', 'TY3', 'TY4'].includes(item.kindCode)">{{item.serviceTimes}}/次</u-td>
  242. <u-td v-else>{{item.amount}}</u-td>
  243. <u-td>¥{{item.coveragePremium}}</u-td>
  244. </u-tr>
  245. <u-tr>
  246. <u-td style="color: #8B563E">商业合计</u-td>
  247. <u-td>-</u-td>
  248. <u-td>¥{{orderInfo.sypremium}}</u-td>
  249. </u-tr>
  250. </u-table>
  251. </view>
  252. <view class="dis f-c mt-1 policyInfo" v-if="orderInfo.jyName">
  253. <view class="dis j-s a-c">
  254. <text class="font-weight" style="color: #6B2709;font-size: 15px;">驾意险</text>
  255. </view>
  256. <text class="tagHeader dis a-c">
  257. <text>{{orderInfo.jyName}}
  258. <view class="tag"></view>
  259. </text>
  260. </text>
  261. <u-table border-color="#F8E9E3" v-if="orderInfo.accidentInfo.length>0">
  262. <u-tr class="baodan">
  263. <u-th width="50%">保险责任</u-th>
  264. <u-th>保额</u-th>
  265. <u-th>保费(元)</u-th>
  266. </u-tr>
  267. <view class="dis">
  268. <view class="accident dis f-c">
  269. <view class="dis" v-for="(item,index) in orderInfo.accidentInfo" :key="index">
  270. <view style="width: 67%;">{{item.name}}</view>
  271. <view style="width: 33%;">{{item.amount}}</view>
  272. </view>
  273. </view>
  274. <view class="right dis j-c a-c">
  275. {{orderInfo.jypremium}}
  276. </view>
  277. </view>
  278. </u-table>
  279. <u-table border-color="#F8E9E3" v-if="orderInfo.jyName">
  280. <u-tr class="baodan">
  281. <u-th>座位数</u-th>
  282. <u-th>每份</u-th>
  283. <u-th>份数</u-th>
  284. <u-th>总计</u-th>
  285. </u-tr>
  286. <u-tr>
  287. <u-td>{{orderInfo.carinfo.seatCount}}</u-td>
  288. <u-td>{{orderInfo.jypremium / orderInfo.jyQuantity}}/每份</u-td>
  289. <u-td>{{orderInfo.jyQuantity}}份</u-td>
  290. <u-td>{{orderInfo.jypremium}}</u-td>
  291. </u-tr>
  292. </u-table>
  293. </view>
  294. </view>
  295. </view>
  296. <view class="car">
  297. <view class="header d-flex a-center j-sb"
  298. style="background: linear-gradient( 180deg, #FFD5D5 0%, rgba(255,213,213,0) 100%);"
  299. @tap="showPolicyHolderInfo = !showPolicyHolderInfo">
  300. <view class="title">优惠信息</view>
  301. <text style="color: #FF4D4D;font-size: 12px;">{{showPolicyHolderInfo?'收起':'展开'}}</text>
  302. </view>
  303. <view class="body" v-if="showPolicyHolderInfo" style="padding: 5px 8px ;">
  304. <view class=" dis f-c">
  305. <template v-if="orderInfo.jqpremium">
  306. <view class="dis a-c j-s " style="color: #232832;font-weight: bold;">
  307. <text>交强险:</text>
  308. <text
  309. style="font-size: 15px;color: #FF4D4D;font-weight: bold;">{{orderInfo.jqpremium}}元</text>
  310. </view>
  311. <view class="dis f-c "
  312. v-if="orderInfo.feeDisplay && orderInfo.jqpremium && orderInfo.feeOrderNewVo">
  313. <text style="color:#F54949;font-size: 13px;">优惠费用</text>
  314. <u-table border-color="#F8E9E3">
  315. <u-tr class="bili">
  316. <u-th>手续费比例</u-th>
  317. <u-th>跟单比例</u-th>
  318. <u-th>总比例</u-th>
  319. </u-tr>
  320. <u-tr>
  321. <u-td>{{orderInfo.feeOrderNewVo.exportFee[0].superviseCosts}}%</u-td>
  322. <u-td>{{orderInfo.feeOrderNewVo.exportFee[0].otherCostsProportion}}%</u-td>
  323. <u-td>{{orderInfo.feeOrderNewVo.exportFee[0].totalProportion}}%</u-td>
  324. </u-tr>
  325. </u-table>
  326. <u-table border-color="#F8E9E3">
  327. <u-tr class="feiyong">
  328. <u-th>{{orderInfo.feeView?'掌柜科技币1':'手续费用'}}</u-th>
  329. <u-th>{{orderInfo.feeView?'掌柜科技币2':'跟单费用'}}</u-th>
  330. <u-th>{{orderInfo.feeView?'总科技币':'总费用'}}</u-th>
  331. </u-tr>
  332. <u-tr>
  333. <u-td>¥{{orderInfo.feeOrderNewVo.exportFee[0].superviseCostsPremiums}}</u-td>
  334. <u-td>¥{{orderInfo.feeOrderNewVo.exportFee[0].otherCostsPremiums}}</u-td>
  335. <u-td>¥{{orderInfo.feeOrderNewVo.exportFee[0].totalAmount}}</u-td>
  336. </u-tr>
  337. </u-table>
  338. </view>
  339. </template>
  340. <template v-if="taxAmount">
  341. <view class="dis a-c j-s " style="color: #232832;font-weight: bold;">
  342. <text>车船税:</text>
  343. <text style="font-size: 15px;color: #FF4D4D;font-weight: bold;">{{taxAmount}}元</text>
  344. </view>
  345. <view class="dis f-c" v-if="orderInfo.taxArrears && orderInfo.taxArrears.length>0">
  346. <view class="body" style="padding: 10px 5px;">
  347. <u-table border-color="#F8E9E3">
  348. <u-tr class="baodan">
  349. <u-th>当年应缴</u-th>
  350. <u-th>去年补缴</u-th>
  351. <u-th>滞纳金</u-th>
  352. <u-th>总计</u-th>
  353. </u-tr>
  354. <u-tr v-for="(item,index) in orderInfo.taxArrears" :key="index">
  355. <u-td>{{item.dayYearTax}}</u-td>
  356. <u-td>{{item.taxDefault}}</u-td>
  357. <u-td>{{item.lateFee}}</u-td>
  358. <u-td>{{orderInfo.taxamount}}</u-td>
  359. </u-tr>
  360. </u-table>
  361. </view>
  362. </view>
  363. </template>
  364. <template v-if="sypremium">
  365. <view class="dis a-c j-s " style="color: #232832;font-weight: bold;">
  366. <text>商业险:</text>
  367. <text style="font-size: 15px;color: #FF4D4D;font-weight: bold;">{{sypremium}}元</text>
  368. </view>
  369. <view v-if="sypremium && orderInfo.feeOrderNewVo && orderInfo.feeDisplay">
  370. <text style="color:#F54949;font-size: 13px;">优惠费用</text>
  371. <u-table border-color="#F8E9E3">
  372. <u-tr class="bili">
  373. <u-th>手续费比例</u-th>
  374. <u-th>跟单比例</u-th>
  375. <u-th>总比例</u-th>
  376. </u-tr>
  377. <u-tr>
  378. <u-td>{{orderInfo.feeOrderNewVo.exportFee[1].superviseCosts}}%</u-td>
  379. <u-td>{{orderInfo.feeOrderNewVo.exportFee[1].otherCostsProportion}}%</u-td>
  380. <u-td>{{orderInfo.feeOrderNewVo.exportFee[1].totalProportion}}%</u-td>
  381. </u-tr>
  382. </u-table>
  383. <u-table border-color="#F8E9E3">
  384. <u-tr class="feiyong">
  385. <u-th>{{orderInfo.feeView?'掌柜科技币1':'手续费用'}}</u-th>
  386. <u-th>{{orderInfo.feeView?'掌柜科技币2':'跟单费用'}}</u-th>
  387. <u-th>{{orderInfo.feeView?'总科技币':'总费用'}}</u-th>
  388. </u-tr>
  389. <u-tr>
  390. <u-td>¥{{orderInfo.feeOrderNewVo.exportFee[1].superviseCostsPremiums}}</u-td>
  391. <u-td>¥{{orderInfo.feeOrderNewVo.exportFee[1].otherCostsPremiums}}</u-td>
  392. <u-td>¥{{orderInfo.feeOrderNewVo.exportFee[1].totalAmount}}</u-td>
  393. </u-tr>
  394. </u-table>
  395. </view>
  396. </template>
  397. <template v-if="jypremium">
  398. <view class="dis a-c j-s mt-1" style="color: #232832;font-weight: bold;">
  399. <text>非车险:驾意险</text>
  400. <text style="font-size: 15px;color: #FF4D4D;font-weight: bold;">{{jypremium}}元</text>
  401. </view>
  402. <view class="" v-if="jypremium && orderInfo.feeOrderNewVo && orderInfo.feeDisplay">
  403. <text style="color:#F54949;font-size: 13px;">优惠费用</text>
  404. <u-table border-color="#F8E9E3">
  405. <u-tr class="bili">
  406. <u-th>手续费比例</u-th>
  407. <u-th>跟单比例</u-th>
  408. <u-th>总比例</u-th>
  409. </u-tr>
  410. <u-tr>
  411. <u-td>{{orderInfo.feeOrderNewVo.exportFee[2].superviseCosts}}%</u-td>
  412. <u-td>{{orderInfo.feeOrderNewVo.exportFee[2].otherCostsProportion}}%</u-td>
  413. <u-td>{{orderInfo.feeOrderNewVo.exportFee[2].totalProportion}}%</u-td>
  414. </u-tr>
  415. </u-table>
  416. <u-table border-color="#F8E9E3">
  417. <u-tr class="feiyong">
  418. <u-th>{{orderInfo.feeView?'掌柜科技币1':'手续费用'}}</u-th>
  419. <u-th>{{orderInfo.feeView?'掌柜科技币2':'跟单费用'}}</u-th>
  420. <u-th>{{orderInfo.feeView?'总科技币':'总费用'}}</u-th>
  421. </u-tr>
  422. <u-tr>
  423. <u-td>¥{{orderInfo.feeOrderNewVo.exportFee[2].superviseCostsPremiums}}</u-td>
  424. <u-td>¥{{orderInfo.feeOrderNewVo.exportFee[2].otherCostsPremiums}}</u-td>
  425. <u-td>¥{{orderInfo.feeOrderNewVo.exportFee[2].totalAmount}}</u-td>
  426. </u-tr>
  427. </u-table>
  428. </view>
  429. </template>
  430. <view class="dis a-c j-s policyInfo mt-1">
  431. <text class="tagHeader dis a-c">
  432. <text class="font-weight" style="font-size: 15px;">应缴金额
  433. <view
  434. style="background:linear-gradient( 90deg, #FF564C 0%, rgba(255,86,76,0) 100%) ;"
  435. class="tag"></view>
  436. </text>
  437. </text>
  438. <text
  439. style="font-size: 16px;color: #FF4D4D;font-weight: bold;">{{orderInfo.sumpremium}}元</text>
  440. </view>
  441. </view>
  442. </view>
  443. </view>
  444. <view class="car">
  445. <view class="header d-flex a-center j-sb"
  446. style="background: linear-gradient( 180deg, #D5FFDB 0%, rgba(213,255,222,0) 100%)"
  447. @tap="showextendInfo = !showextendInfo">
  448. <view class="title">保费因素</view>
  449. <text style="color: #44DC2B;font-size: 12px;">{{showextendInfo?'收起':'展开'}}</text>
  450. </view>
  451. <view class="body" v-if="showextendInfo">
  452. <view class="row d-flex a-center j-sb">
  453. <view>评分</view>
  454. <view>{{extendInfo.score?extendInfo.score:"无"}}</view>
  455. </view>
  456. <view class="row d-flex a-center j-sb">
  457. <view>鼎然-车辆风险评分:</view>
  458. <view>{{orderInfo.ubiPredictedInfoScore?orderInfo.ubiPredictedInfoScore:"无"}}</view>
  459. </view>
  460. <view class="row d-flex a-center j-sb">
  461. <view>交强评分</view>
  462. <view style="color: #ff9000;">{{extendInfo.jqScore?extendInfo.jqScore:"无"}}</view>
  463. </view>
  464. <view class="row d-flex a-center j-sb">
  465. <view>商业评分</view>
  466. <view style="color: #ff9000;">{{extendInfo.syScore?extendInfo.syScore:"无"}}</view>
  467. </view>
  468. <view class="row d-flex a-center j-sb">
  469. <view>出险信息</view>
  470. <view style="width: 200px;text-align: right;">
  471. {{extendInfo.accidentInfoStr?extendInfo.accidentInfoStr:"无"}}
  472. </view>
  473. </view>
  474. <view class="row d-flex a-center j-sb">
  475. <view>总赔付率</view>
  476. <view>{{extendInfo.lossRation}}</view>
  477. </view>
  478. <view class="row d-flex a-center j-sb">
  479. <view>交强赔付率</view>
  480. <view>{{extendInfo.jqLossRation}}</view>
  481. </view>
  482. <view class="row d-flex a-center j-sb">
  483. <view>商业赔付率</view>
  484. <view>{{extendInfo.syLossRation}}</view>
  485. </view>
  486. <view class="row d-flex a-center j-sb">
  487. <view>总折扣率</view>
  488. <view>{{extendInfo.totalAdjustRate}}</view>
  489. </view>
  490. <view class="row d-flex a-center j-sb">
  491. <view>交强险折扣</view>
  492. <view>{{extendInfo.jqAdjustRate}}</view>
  493. </view>
  494. <view class="row d-flex a-center j-sb" v-if="orderInfo.inscompany=='诚泰财险'">
  495. <view>商业险折扣</view>
  496. <view>{{orderInfo.extendInfo1?JSON.parse(orderInfo.extendInfo1).hopeDiscount:'-'}}</view>
  497. </view>
  498. <view class="row d-flex a-center j-sb" v-else>
  499. <view>商业险折扣</view>
  500. <view>{{extendInfo.syAdjustRate}}</view>
  501. </view>
  502. <view class="row d-flex a-center j-sb" v-if="orderInfo.inscompany=='诚泰财险'">
  503. <view>自主定价系数</view>
  504. <view>{{ orderInfo.extendInfo1?JSON.parse(orderInfo.extendInfo1).hopeCoefficient:"-"}}</view>
  505. </view>
  506. </view>
  507. </view>
  508. <view class="car">
  509. <view class="header d-flex a-center j-sb"
  510. style="background: linear-gradient( 180deg, #D5FFFF 0%, rgba(213,255,247,0) 100%);"
  511. @tap="showCarImageInfo = !showCarImageInfo">
  512. <view class="title">影像信息</view>
  513. <text style="color: #00B2FF;font-size: 12px;">{{showCarImageInfo?'收起':'展开'}}</text>
  514. </view>
  515. <view class="body" style="padding: 0 8px 5px;" v-if="showCarImageInfo">
  516. <view class="uni-uploader">
  517. <view class="uni-uploader-body dis j-s a-c">
  518. <view class="uni-uploader__files dis f-c a-start ">
  519. <text style="color: #232832;font-size: 13px;margin-left: 5px;">行驶证主页</text>
  520. <block v-for="(image,index) in imgList1" :key="index">
  521. <view class="uni-uploader__file">
  522. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  523. @tap="previewImage($event,'imgList1')"></image>
  524. <view v-if="orderstatus!=3"
  525. class="delImgIcon iconfont icon-cuowu d-flex a-center j-center"
  526. @tap="delCheckImage(image,'carImageListId','imgList1')"></view>
  527. </view>
  528. </block>
  529. <view v-if="imgList1.length==0 " class="uni-uploader__input-box"
  530. style="box-sizing: border-box;">
  531. <view v-if="orderstatus!=3" class="uni-uploader__input"
  532. @tap="chooseImage('C01','carImageListId','imgList1')">
  533. </view>
  534. </view>
  535. </view>
  536. <view class="uni-uploader__files dis f-c a-start">
  537. <text style="color: #232832;font-size: 13px;margin-left: 5px;">行驶证副本</text>
  538. <block v-for="(image,index) in imgList2" :key="index">
  539. <view class="uni-uploader__file">
  540. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  541. @tap="previewImage($event,'imgList2')"></image>
  542. <view v-if="orderstatus!=3"
  543. class="delImgIcon iconfont icon-cuowu d-flex a-center j-center"
  544. @tap="delCheckImage(image,'carImageListId','imgList2')"></view>
  545. </view>
  546. </block>
  547. <view v-if="imgList2.length==0" class="uni-uploader__input-box"
  548. style="box-sizing: border-box;">
  549. <view v-if="orderstatus!=3" class="uni-uploader__input"
  550. @tap="chooseImage('D01','carImageListId','imgList2')">
  551. </view>
  552. </view>
  553. </view>
  554. </view>
  555. </view>
  556. <view class="uni-uploader">
  557. <view class="uni-uploader-body dis j-s a-c">
  558. <view class="uni-uploader__files dis f-c a-start">
  559. <text style="color: #232832;font-size: 13px;margin-left: 5px;">车主身份证正面</text>
  560. <block v-for="(image,index) in imgList3" :key="index">
  561. <view class="uni-uploader__file">
  562. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  563. @tap="previewImage($event,'imgList3')"></image>
  564. <view v-if="orderstatus!=3"
  565. class="delImgIcon iconfont icon-cuowu d-flex a-center j-center"
  566. @tap="delCheckImage(image,'ownerImageListId','imgList3')"></view>
  567. </view>
  568. </block>
  569. <view v-if="imgList3.length==0" class="uni-uploader__input-box"
  570. style="box-sizing: border-box;">
  571. <view v-if="orderstatus!=3" class="uni-uploader__input"
  572. @tap="chooseImage('C02','ownerImageListId','imgList3')"></view>
  573. </view>
  574. </view>
  575. <view class="uni-uploader__files dis f-c a-start">
  576. <text style="color: #232832;font-size: 13px;margin-left: 5px;">车主身份证反面</text>
  577. <block v-for="(image,index) in imgList4" :key="index">
  578. <view class="uni-uploader__file">
  579. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  580. @tap="previewImage($event,'imgList4')"></image>
  581. <view v-if="orderstatus!=3"
  582. class="delImgIcon iconfont icon-cuowu d-flex a-center j-center"
  583. @tap="delCheckImage(image,'ownerImageListId','imgList4')"></view>
  584. </view>
  585. </block>
  586. <view v-if="imgList4.length==0" class="uni-uploader__input-box"
  587. style="box-sizing: border-box;">
  588. <view v-if="orderstatus!=3" class="uni-uploader__input"
  589. @tap="chooseImage('D02','ownerImageListId','imgList4')"></view>
  590. </view>
  591. </view>
  592. </view>
  593. </view>
  594. <view class="uni-uploader">
  595. <view class="uni-uploader-body dis j-s a-c">
  596. <view class="uni-uploader__files dis f-c a-start">
  597. <text style="color: #232832;font-size: 13px;margin-left: 5px;">投保人身份证正面</text>
  598. <block v-for="(image,index) in imgList5" :key="index">
  599. <view class="uni-uploader__file">
  600. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  601. @tap="previewImage($event,'imgList5')"></image>
  602. <view v-if="orderstatus!=3"
  603. class="delImgIcon iconfont icon-cuowu d-flex a-center j-center"
  604. @tap="delCheckImage(image,'policyImageListId','imgList5')"></view>
  605. </view>
  606. </block>
  607. <view v-if="imgList5.length==0" class="uni-uploader__input-box"
  608. style="box-sizing: border-box;">
  609. <view v-if="orderstatus!=3" class="uni-uploader__input"
  610. @tap="chooseImage('C03','policyImageListId','imgList5')"></view>
  611. </view>
  612. </view>
  613. <view class="uni-uploader__files dis f-c a-start">
  614. <text style="color: #232832;font-size: 13px;margin-left: 5px;">投保人身份证反面</text>
  615. <block v-for="(image,index) in imgList6" :key="index">
  616. <view class="uni-uploader__file">
  617. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  618. @tap="previewImage($event,'imgList6')"></image>
  619. <view v-if="orderstatus!=3"
  620. class="delImgIcon iconfont icon-cuowu d-flex a-center j-center"
  621. @tap="delCheckImage(image,'policyImageListId','imgList6')"></view>
  622. </view>
  623. </block>
  624. <view v-if="imgList6.length==0" class="uni-uploader__input-box"
  625. style="box-sizing: border-box;">
  626. <view v-if="orderstatus!=3" class="uni-uploader__input"
  627. @tap="chooseImage('D03','policyImageListId','imgList6')"></view>
  628. </view>
  629. </view>
  630. </view>
  631. </view>
  632. <view class="uni-uploader">
  633. <view class="uni-uploader-body dis j-s a-c">
  634. <view class="uni-uploader__files dis f-c a-start">
  635. <text style="color: #232832;font-size: 13px;margin-left: 5px;">被保人身份证正面</text>
  636. <block v-for="(image,index) in imgList7" :key="index">
  637. <view class="uni-uploader__file">
  638. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  639. @tap="previewImage($event,'imgList7')"></image>
  640. <view v-if="orderstatus!=3"
  641. class="delImgIcon iconfont icon-cuowu d-flex a-center j-center"
  642. @tap="delCheckImage(image,'insuredImageListId','imgList7')"></view>
  643. </view>
  644. </block>
  645. <view v-if="imgList7.length==0" class="uni-uploader__input-box"
  646. style="box-sizing: border-box;">
  647. <view v-if="orderstatus!=3" class="uni-uploader__input"
  648. @tap="chooseImage('C04','insuredImageListId','imgList7')"></view>
  649. </view>
  650. </view>
  651. <view class="uni-uploader__files dis f-c a-start">
  652. <text style="color: #232832;font-size: 13px;margin-left: 5px;">被保人身份证反面</text>
  653. <block v-for="(image,index) in imgList8" :key="index">
  654. <view class="uni-uploader__file">
  655. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  656. @tap="previewImage($event,'imgList8')"></image>
  657. <view v-if="orderstatus!=3"
  658. class="delImgIcon iconfont icon-cuowu d-flex a-center j-center"
  659. @tap="delCheckImage(image,'insuredImageListId','imgList8')"></view>
  660. </view>
  661. </block>
  662. <view v-if="imgList8.length==0" class="uni-uploader__input-box"
  663. style="box-sizing: border-box;">
  664. <view v-if="orderstatus!=3" class="uni-uploader__input"
  665. @tap="chooseImage('D04','insuredImageListId','imgList8')"></view>
  666. </view>
  667. </view>
  668. </view>
  669. </view>
  670. <view class="uni-uploader">
  671. <view class="uni-uploader-body dis j-s a-c">
  672. <view class="uni-uploader__files dis f-c a-start">
  673. <text style="color: #232832;font-size: 13px;margin-left: 5px;">新车合格证</text>
  674. <block v-for="(image,index) in imgNewCarQualified" :key="index">
  675. <view class="uni-uploader__file">
  676. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  677. @tap="previewImage($event,'imgNewCarQualified')"></image>
  678. <view class="delImgIcon iconfont icon-cuowu d-flex a-center j-center"
  679. @tap="delCheckImage(image,'imgNewCarinvoiceId','imgNewCarQualified')">
  680. </view>
  681. </view>
  682. </block>
  683. <view v-if="imgNewCarQualified.length==0" class="uni-uploader__input-box"
  684. style="box-sizing: border-box;">
  685. <view v-if="orderstatus!=3" class="uni-uploader__input"
  686. @tap="chooseImage('XC00','imgNewCarinvoiceId','imgNewCarQualified')"></view>
  687. </view>
  688. </view>
  689. <view class="uni-uploader__files dis f-c a-start">
  690. <text style="color: #232832;font-size: 13px;margin-left: 5px;">购车发票</text>
  691. <block v-for="(image,index) in imgNewCarInvoice" :key="index">
  692. <view class="uni-uploader__file">
  693. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  694. @tap="previewImage($event,'imgNewCarInvoice')"></image>
  695. <view class="delImgIcon iconfont icon-cuowu d-flex a-center j-center"
  696. @tap="delCheckImage(image,'imgNewCarinvoiceId','imgNewCarInvoice')"></view>
  697. </view>
  698. </block>
  699. <view v-if="imgNewCarInvoice.length==0" class="uni-uploader__input-box"
  700. style="box-sizing: border-box;">
  701. <view v-if="orderstatus!=3" class="uni-uploader__input"
  702. @tap="chooseImage('GC00','imgNewCarinvoiceId','imgNewCarInvoice')"></view>
  703. </view>
  704. </view>
  705. </view>
  706. </view>
  707. <view class="uni-uploader">
  708. <view class="uni-uploader-body dis j-s a-c">
  709. <view class="uni-uploader__files dis f-c a-start">
  710. <text style="color: #232832;font-size: 13px;margin-left: 5px;">其他关系证明</text>
  711. <block v-for="(image,index) in imgRelationship" :key="index">
  712. <view class="uni-uploader__file">
  713. <image class="uni-uploader__img" :src="image.url" :data-src="image.url"
  714. @tap="previewImage($event,'imgRelationship')"></image>
  715. <view class="delImgIcon iconfont icon-cuowu d-flex a-center j-center "
  716. @tap="delCheckImage('imgRelationship',index)"></view>
  717. </view>
  718. </block>
  719. <view class="uni-uploader__input-box" style="box-sizing: border-box;">
  720. <view v-if="orderstatus!=3" class="uni-uploader__input"
  721. @tap="chooseImage('GX00','imgRelationshipid','imgRelationship')"></view>
  722. </view>
  723. </view>
  724. </view>
  725. </view>
  726. </view>
  727. </view>
  728. <view class="car" v-if="orderInfo.orderstatus ==3">
  729. <view class="header d-flex a-center j-sb"
  730. style="background: linear-gradient( 180deg, #DBFFBF 0%, rgba(219,255,191,0) 100%);"
  731. @tap="showApplyno = !showApplyno">
  732. <view class="title">保单信息</view>
  733. <text style="color: #0055FF;font-size: 12px;">{{showApplyno?'收起':'展开'}}</text>
  734. </view>
  735. <view class="body" v-if="showApplyno">
  736. <view class="row d-flex a-center j-sb" v-if="orderInfo.jqapplyno">
  737. <view>交强险投保单号:</view>
  738. <view>{{orderInfo.jqapplyno}}</view>
  739. </view>
  740. <view class="row d-flex a-center j-sb" v-if="orderInfo.syapplyno">
  741. <view>商业险投保单号:</view>
  742. <view>{{orderInfo.syapplyno}}</view>
  743. </view>
  744. <view class="row d-flex a-center j-sb" v-if="orderInfo.jqpolicyno">
  745. <view>交强险保单号:</view>
  746. <view>{{orderInfo.jqpolicyno}}</view>
  747. </view>
  748. <view class="row d-flex a-center j-sb" v-if="orderInfo.sypolicyno">
  749. <view>商业险保单号:</view>
  750. <view>{{orderInfo.sypolicyno}}</view>
  751. </view>
  752. <view class="row dis f-c">
  753. <view class=" dis a-c j-s" v-for="(policyListitem,policyListindex) in policyList"
  754. :key="policyListindex+'保单'">
  755. <view class="left">{{policyListitem.fileTitle}}:{{carInfo.licenseNo}}
  756. </view>
  757. <view class="right ">
  758. <text class="checkButton d-flex a-center j-center"
  759. style="font-size: 14px;color: #2CC93B;"
  760. @tap="downloadPolicy(policyListitem.fileurl)">下载</text>
  761. </view>
  762. </view>
  763. <view class="content" v-for="(policyListitem1,policyListindex1) in policyList1"
  764. :key="policyListindex1+'标志'">
  765. <view class=" dis a-c j-s">
  766. <view class="left">{{policyListitem1.fileTitle}}:{{carInfo.licenseNo}}
  767. </view>
  768. <view class="right ">
  769. <text class="checkButton d-flex a-center j-center"
  770. style="font-size: 14px;color: #2CC93B;"
  771. @tap="downloadPolicy(policyListitem1.fileurl)">下载</text>
  772. </view>
  773. </view>
  774. </view>
  775. </view>
  776. </view>
  777. </view>
  778. <view class="car" v-if="orderInfo.equityPackageVo && switchShow">
  779. <view class="header d-flex a-center j-sb"
  780. style="background: linear-gradient( 180deg, #DBFFBF 0%, rgba(219,255,191,0) 100%);"
  781. @click="toInterest">
  782. <view class="title">客户权益</view>
  783. <text class="title">{{ orderInfo.equityPackageVo.packageName }}</text>
  784. </view>
  785. </view>
  786. </view>
  787. <view class="bottomBtn dis f-c"
  788. v-if="orderstatus==0 && routepage!='pages/orders/subOrders' && routepage!='pages/orders/quoteHistory'">
  789. <!-- <view class="agree dis a-c ">
  790. <u-checkbox v-model="agree" active-color="#FF5600" size="28" @change="agreed"
  791. style="display: block;margin-right: 4px;" />
  792. 我已确认并同意 <text class="tip">保险条款</text> | <text class="tip">投保须知</text> | <text class="tip">隐私条款</text>
  793. </view> -->
  794. <view class="btnView dis a-c">
  795. <view class="btn dis j-start a-c">应付:<text
  796. style="font-size: 14px;font-weight: bold;">¥{{sumPermium}}</text> </view>
  797. <!-- <view class="btn dis j-c a-c" @tap="toolPopupshow=true">修改</view> -->
  798. <view class="btn dis a-c j-c" @tap="redirect">修改方案</view>
  799. <view class="btn dis a-c j-c" @tap="submitAudit">确认核保</view>
  800. </view>
  801. </view>
  802. <u-popup v-model="toolPopupshow" mode="bottom" border-radius="10" height="">
  803. <view class="tool">
  804. <!-- <view class="dis j-c a-c" @click="toCarInfo">修改车辆信息</view> -->
  805. <view class="dis j-c a-c" @click="toInsureItems">修改险种配置</view>
  806. </view>
  807. <view class="cancell dis a-c j-c" @click="toolPopupshow=false">取消</view>
  808. </u-popup>
  809. <u-modal v-model="ziJinshow" title="特约保险"
  810. :title-style="{fontWeight: 'bold',borderBottom:'1px solid #f2f2f2',padding:'10px'}"
  811. :scroll-height="{height: '300px'}" :confirm-style="{background:'#E6EEFF',color:'#0052FF'}">
  812. <view class="slot-content">
  813. <u-checkbox-group @change="ziJincontributingChange">
  814. <u-checkbox v-model="item.checked" active-color="rgb(255, 153, 0)"
  815. v-for="(item, index) in ziJinengageListData" :key="index"
  816. :name="item.clauseId">{{item.clauseName}}</u-checkbox>
  817. </u-checkbox-group>
  818. </view>
  819. </u-modal>
  820. <u-modal v-model="huaTaishow" title="华泰特约选择" :title-style="{fontWeight: 'bold'}"
  821. :scroll-height="{height: '300px'}">
  822. <view class="slot-content">
  823. <u-checkbox-group @change="huaTaicontributingChange">
  824. <u-checkbox v-model="item.checked" active-color="rgb(255, 153, 0)"
  825. v-for="(item, index) in huaTaiengageListData" :key="index"
  826. :name="item.engageCode">{{item.engageTitle}}</u-checkbox>
  827. </u-checkbox-group>
  828. </view>
  829. </u-modal>
  830. <u-modal v-model="auditNextShow" content="是否确认提交核保" :show-title="false"
  831. :confirm-style="{background:'#0052FF',color:'#fff'}" :mask-close-able='true' @confirm="auditNextconfirm"
  832. :show-cancel-button="true">
  833. </u-modal>
  834. <previewImage ref="previewImage" :opacity="0.8" :circular="true" :imgs="previewImgs"></previewImage>
  835. <u-modal v-model="underwriteShow" :title="underwriteTitle" :title-style="{fontWeight:'bold'}"
  836. :confirm-text="confirmText" :cancel-text="cancelText" :confirm-style="{background:'#0052FF',color:'#fff'}"
  837. :show-cancel-button="true" @confirm="underwriteconfirm" @cancel="underwritecancel">
  838. <view class="slot-content">
  839. <scroll-view class="scrollBar" scroll-y="true"
  840. style="max-height: 300px; padding: 10px 20px; box-sizing: border-box;">
  841. <view class="content">
  842. <rich-text :nodes="underwriteMsg"></rich-text>
  843. </view>
  844. </scroll-view>
  845. </view>
  846. </u-modal>
  847. </view>
  848. </template>
  849. <script>
  850. import {
  851. mapState,
  852. mapMutations
  853. } from "vuex"
  854. import {
  855. pathToBase64,
  856. base64ToPath
  857. } from '@/common/pdf.js'
  858. import uniPopup from '@/components/uni-popup/uni-popup.vue';
  859. import previewImage from '@/components/common/previewImage/previewImage.vue'; //引用插件
  860. export default {
  861. components: {
  862. uniPopup,
  863. previewImage
  864. },
  865. computed: {
  866. ...mapState(['userInfo', 'token', 'quotationType']),
  867. getHeight() {
  868. let height = uni.getSystemInfoSync().windowHeight;
  869. return `minHeight: ${height}px;`;
  870. }
  871. },
  872. data() {
  873. return {
  874. //核保提示
  875. underwriteShow: false,
  876. underwriteTitle: "订单自核成功", //核保状态
  877. confirmText: "立即缴费", //核保提示自定义按钮
  878. cancelText: "暂不缴费",
  879. underwriteMsg: "",
  880. //核保提示
  881. auditNextShow: false, //核保确认标识
  882. auditReturnInfoShow: false, //核保信息返回标识
  883. auditReturnInfoContent: "", //核保返回信息
  884. modificationFlag: false, //影响修改标识
  885. ziJinshow: false, //紫金特约
  886. huaTaishow: false, //紫金特约
  887. toolPopupshow: false, //底部弹窗
  888. agree: false,
  889. logoimg: "",
  890. companyId: "", //订单号
  891. cnName: "",
  892. orderInfo: {},
  893. licenseNo: "", //车牌号
  894. icon: "", //保险公司logo
  895. name: "", //保险公司名称
  896. carInfo: {}, //车辆信息
  897. ownerInfo: {}, //车主信息
  898. policyHolderInfo: {}, //投保人信息
  899. insuredPersonInfo: {}, //被保人信息
  900. riskList: [], //险种大类信息
  901. kindList: [], //商业险险别
  902. sumPermium: "", //报价金额
  903. taxAmount: "", //车船税金额
  904. jqpremium: "", //交强险金额
  905. sypremium: "", //商业险金额
  906. orderstatus: "0", //订单状态
  907. CIStartDate: "", //交强险日期
  908. BIStartDate: "", //商业险日期
  909. showCarInfo: true,
  910. showextendInfo: true,
  911. insureList: [{
  912. amount: "0",
  913. coveragePremium: "",
  914. amtList: [{
  915. "label": "投保",
  916. "value": "1"
  917. }],
  918. kindCode: "A",
  919. isMainRisk: true,
  920. kindName: "机动车损失险"
  921. },
  922. {
  923. amount: "0",
  924. coveragePremium: "",
  925. amtList: [{
  926. "label": "10万",
  927. "value": "100000"
  928. }, {
  929. "label": "15万",
  930. "value": "150000"
  931. }, {
  932. "label": "20万",
  933. "value": "200000"
  934. }, {
  935. "label": "30万",
  936. "value": "300000"
  937. }, {
  938. "label": "50万",
  939. "value": "500000"
  940. }, {
  941. "label": "100万",
  942. "value": "1000000"
  943. }, {
  944. "label": "150万",
  945. "value": "1500000"
  946. }, {
  947. "label": "200万",
  948. "value": "2000000"
  949. }, {
  950. "label": "250万",
  951. "value": "2500000"
  952. }, {
  953. "label": "300万",
  954. "value": "3000000"
  955. }, {
  956. "label": "500万",
  957. "value": "5000000"
  958. }, {
  959. "label": "1000万",
  960. "value": "10000000"
  961. }],
  962. kindCode: "B",
  963. isMainRisk: true,
  964. kindName: "第三者责任险"
  965. },
  966. {
  967. amount: "0",
  968. coveragePremium: "",
  969. amtList: [{
  970. "label": "1万",
  971. "value": "10000"
  972. }, {
  973. "label": "2万",
  974. "value": "20000"
  975. }, {
  976. "label": "5万",
  977. "value": "50000"
  978. }, {
  979. "label": "10万",
  980. "value": "100000"
  981. }, {
  982. "label": "15万",
  983. "value": "150000"
  984. }, {
  985. "label": "20万",
  986. "value": "200000"
  987. }],
  988. kindCode: "D3",
  989. isMainRisk: true,
  990. kindName: "司机责任险"
  991. },
  992. {
  993. amount: "0",
  994. coveragePremium: "",
  995. amtList: [{
  996. "label": "1万",
  997. "value": "10000"
  998. }, {
  999. "label": "2万",
  1000. "value": "20000"
  1001. }, {
  1002. "label": "5万",
  1003. "value": "50000"
  1004. }, {
  1005. "label": "10万",
  1006. "value": "100000"
  1007. }, {
  1008. "label": "15万",
  1009. "value": "150000"
  1010. }, {
  1011. "label": "20万",
  1012. "value": "200000"
  1013. }],
  1014. kindCode: "D4",
  1015. isMainRisk: true,
  1016. kindName: "乘客责任险"
  1017. },
  1018. {
  1019. amount: "0",
  1020. coveragePremium: "",
  1021. amtList: [{
  1022. "label": "2000",
  1023. "value": "2000"
  1024. }, {
  1025. "label": "5000",
  1026. "value": "5000"
  1027. }, {
  1028. "label": "1万",
  1029. "value": "10000"
  1030. }],
  1031. isMainRisk: false,
  1032. kindCode: "L",
  1033. kindName: "车身划痕险",
  1034. mainRiskCodeList: "A"
  1035. },
  1036. {
  1037. amount: "0",
  1038. coveragePremium: "",
  1039. amtList: [{
  1040. "label": "5%",
  1041. "value": "5"
  1042. }, {
  1043. "label": "10%",
  1044. "value": "10"
  1045. }, {
  1046. "label": "15%",
  1047. "value": "15"
  1048. }, {
  1049. "label": "20%",
  1050. "value": "20"
  1051. }],
  1052. isMainRisk: false,
  1053. kindCode: "MJ1",
  1054. kindName: "绝对免赔率特约险(车损)",
  1055. mainRiskCodeList: "A"
  1056. },
  1057. {
  1058. amount: "0",
  1059. coveragePremium: "",
  1060. amtList: [{
  1061. "label": "5%",
  1062. "value": "5"
  1063. }, {
  1064. "label": "10%",
  1065. "value": "10"
  1066. }, {
  1067. "label": "15%",
  1068. "value": "15"
  1069. }, {
  1070. "label": "20%",
  1071. "value": "20"
  1072. }],
  1073. isMainRisk: false,
  1074. kindCode: "MJ2",
  1075. kindName: "绝对免赔率特约险(三者)",
  1076. mainRiskCodeList: "B"
  1077. },
  1078. {
  1079. amount: "0",
  1080. coveragePremium: "",
  1081. amtList: [{
  1082. "label": "5%",
  1083. "value": "5"
  1084. }, {
  1085. "label": "10%",
  1086. "value": "10"
  1087. }, {
  1088. "label": "15%",
  1089. "value": "15"
  1090. }, {
  1091. "label": "20%",
  1092. "value": "20"
  1093. }],
  1094. isMainRisk: false,
  1095. kindCode: "MJ3",
  1096. kindName: "绝对免赔率特约险(司机)",
  1097. mainRiskCodeList: "D3"
  1098. },
  1099. {
  1100. amount: "0",
  1101. coveragePremium: "",
  1102. amtList: [{
  1103. "label": "5%",
  1104. "value": "5"
  1105. }, {
  1106. "label": "10%",
  1107. "value": "10"
  1108. }, {
  1109. "label": "15%",
  1110. "value": "15"
  1111. }, {
  1112. "label": "20%",
  1113. "value": "20"
  1114. }],
  1115. isMainRisk: false,
  1116. kindCode: "MJ4",
  1117. kindName: "绝对免赔率特约险(乘客)",
  1118. mainRiskCodeList: "D4"
  1119. },
  1120. {
  1121. amount: "0",
  1122. coveragePremium: "",
  1123. amtList: [{
  1124. "label": "投保",
  1125. "value": "1"
  1126. }],
  1127. isMainRisk: false,
  1128. kindCode: "BD",
  1129. kindName: "法定节假日限额翻倍险",
  1130. mainRiskCodeList: "B"
  1131. },
  1132. {
  1133. amount: "0",
  1134. amountDesc: "不投保",
  1135. coveragePremium: "",
  1136. amtList: [{
  1137. label: "不投保",
  1138. value: "0"
  1139. },
  1140. {
  1141. label: "1万",
  1142. value: "10000"
  1143. },
  1144. {
  1145. label: "2万",
  1146. value: "20000"
  1147. },
  1148. {
  1149. label: "5万",
  1150. value: "50000"
  1151. },
  1152. {
  1153. label: "10万",
  1154. value: "100000"
  1155. }
  1156. ],
  1157. kindCode: "SY_FJ_YBW1",
  1158. isMainRisk: false,
  1159. kindName: "附加医保-三者",
  1160. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  1161. },
  1162. {
  1163. amount: "0",
  1164. amountDesc: "不投保",
  1165. coveragePremium: 0,
  1166. amtList: [{
  1167. label: "不投保",
  1168. value: "0"
  1169. },
  1170. {
  1171. label: "1万",
  1172. value: "10000"
  1173. },
  1174. {
  1175. label: "2万",
  1176. value: "20000"
  1177. },
  1178. {
  1179. label: "5万",
  1180. value: "50000"
  1181. },
  1182. {
  1183. label: "10万",
  1184. value: "100000"
  1185. }
  1186. ],
  1187. kindCode: "SY_FJ_YBW2",
  1188. isMainRisk: false,
  1189. kindName: "附加医保-座位险(乘客)",
  1190. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  1191. },
  1192. {
  1193. amount: "0",
  1194. amountDesc: "不投保",
  1195. coveragePremium: 0,
  1196. amtList: [{
  1197. label: "不投保",
  1198. value: "0"
  1199. },
  1200. {
  1201. label: "1万",
  1202. value: "10000"
  1203. },
  1204. {
  1205. label: "2万",
  1206. value: "20000"
  1207. },
  1208. {
  1209. label: "5万",
  1210. value: "50000"
  1211. },
  1212. {
  1213. label: "10万",
  1214. value: "100000"
  1215. }
  1216. ],
  1217. kindCode: "SY_FJ_YBW3",
  1218. isMainRisk: false,
  1219. kindName: "附加医保-座位险(司机)",
  1220. desc: "附加医保外医疗费用责任险(机动车第三者责任保险)"
  1221. },
  1222. ],
  1223. vehicleModel: {}, //车型信息
  1224. showOwerInfo: true, //展示车主信息
  1225. showPolicyHolderInfo: true, //展示投保人信息
  1226. showAppoint: false, //展示特约
  1227. showApplyno: false, //展示投保单号
  1228. showPolicyno: false, //展示保单号
  1229. showPolicyFile: false, //展示电子保单
  1230. showPolicybzFile: false, //展示电子保单
  1231. policyInfoDetailsInfo: false,
  1232. policyList: [], //电子保单文件
  1233. policyList1: [], //电子标志文件
  1234. showCarImageInfo: false, //显示车辆影像
  1235. carImageListId: [],
  1236. ownerImageListId: [],
  1237. policyImageListId: [],
  1238. insuredImageListId: [],
  1239. imgRelationshipid: [],
  1240. imgNewCarinvoiceId: [],
  1241. imgList1: [],
  1242. imgList2: [],
  1243. imgList3: [],
  1244. imgList4: [],
  1245. imgList5: [],
  1246. imgList6: [],
  1247. imgList7: [],
  1248. imgList8: [],
  1249. imgRelationship: [], //其他证明
  1250. imgNewCarQualified: [], //合格证
  1251. imgNewCarInvoice: [], //发票
  1252. previewImgs: [],
  1253. dianzibaodan: "",
  1254. jypremium: "",
  1255. quoteno: "",
  1256. extendInfo: {},
  1257. routepage: "",
  1258. roadrescueList: [],
  1259. companyUnderwriting: "",
  1260. ziJinengageListData: [],
  1261. ziJinengageList: [],
  1262. huaTaiengageListData: [],
  1263. huaTaiengageList: [],
  1264. natureOfVehicleUseoptions: [],
  1265. vehicleTypeoptions: [],
  1266. trafficManagementVehicleTypeoptions: [],
  1267. energyTypeoptions: [],
  1268. businessVehicleUseoptions: [],
  1269. outOfBusinessVehicleUseoptions: [],
  1270. carInfo1: {},
  1271. vehicleAndVesselidentifyNumber: "", //纳税人证件号
  1272. switchShow: false, // 控制客户权益显示
  1273. }
  1274. },
  1275. async onLoad(params) {
  1276. this.$http.get('/sys/switch/isEnabled?keyWord=equityFlag').then(res => {
  1277. if (res.code === 200) {
  1278. this.switchShow = res.data
  1279. }
  1280. })
  1281. let pages = getCurrentPages(); // 当前页面路由
  1282. if (pages.length > 1) {
  1283. let beforePage = pages[pages.length - 2].route; // 上一个页面路由
  1284. this.routepage = beforePage;
  1285. }
  1286. await this.getDicType("businessVehicleUse"); //车辆用途(营业)
  1287. await this.getDicType("outOfBusinessVehicleUse"); //车辆用途(非营业)
  1288. await this.getDicType("natureOfVehicleUse"); //车辆性质
  1289. await this.getDicType("vehicleType"); //车辆种类
  1290. await this.getDicType("trafficManagementVehicleType"); //车辆类型
  1291. await this.getDicType("energyType"); //能源种类
  1292. const eventChannel = this.getOpenerEventChannel()
  1293. // 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
  1294. await eventChannel.on('acceptData', async (data) => {
  1295. if (!!data.companyId) {
  1296. this.companyId = data.companyId;
  1297. this.cnName = data.cnName;
  1298. if (data.quotableCompanyList) {
  1299. this.quotableCompanyList = data.quotableCompanyList;
  1300. }
  1301. let param = {
  1302. companyId: data.companyId
  1303. };
  1304. let res = await this.$http.post('/insurance/order/getByCompanyId', param);
  1305. if (res.code == 200) {
  1306. this.icon = "";
  1307. this.quoteno = res.data.quoteno;
  1308. this.name = res.data.inscompany;
  1309. this.carInfo = res.data.carinfo;
  1310. this.carInfo1 = JSON.parse(JSON.stringify(res.data.carinfo))
  1311. this.carInfo.carnature = this.dictionaryMatching(this.natureOfVehicleUseoptions,
  1312. this
  1313. .carInfo
  1314. .carnature)
  1315. this.carInfo.vehicleUse = this.carInfo.carnature == '非营业' ? this
  1316. .dictionaryMatching(
  1317. this
  1318. .outOfBusinessVehicleUseoptions,
  1319. this
  1320. .carInfo
  1321. .vehicleUse) : this.dictionaryMatching(this.businessVehicleUseoptions,
  1322. this
  1323. .carInfo
  1324. .vehicleUse)
  1325. this.carInfo.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
  1326. this
  1327. .carInfo
  1328. .cimodelclass)
  1329. this.carInfo.cartype = this.dictionaryMatching(this
  1330. .trafficManagementVehicleTypeoptions,
  1331. this
  1332. .carInfo
  1333. .cartype)
  1334. this.carInfo.energyType = this.dictionaryMatching(this.energyTypeoptions,
  1335. this
  1336. .carInfo
  1337. .energyType)
  1338. this.extendInfo = res.data.extendInfo;
  1339. this.licenseNo = res.data.licenseno;
  1340. // if (!!this.carInfo.loanStatus) {
  1341. // this.carInfo.loanStatus = 1;
  1342. // } else {
  1343. // this.carInfo.loanStatus = 0;
  1344. // }
  1345. if (this.carInfo.registerDate) {
  1346. let year1 = new Date(this.carInfo.registerDate).getFullYear()
  1347. let month1 = new Date(this.carInfo.registerDate).getMonth() + 1
  1348. if (month1 < 10) {
  1349. month1 = '0' + month1;
  1350. }
  1351. let day1 = new Date(this.carInfo.registerDate).getDate()
  1352. if (day1 < 10) {
  1353. day1 = '0' + day1;
  1354. }
  1355. this.carInfo.registerDate = year1 + '-' + month1 + '-' + day1
  1356. }
  1357. if (this.carInfo.issueDate) {
  1358. let year2 = new Date(this.carInfo.issueDate).getFullYear()
  1359. let month2 = new Date(this.carInfo.issueDate).getMonth() + 1
  1360. if (month2 < 10) {
  1361. month2 = '0' + month2;
  1362. }
  1363. let day2 = new Date(this.carInfo.issueDate).getDate()
  1364. if (day2 < 10) {
  1365. day2 = '0' + day2;
  1366. }
  1367. this.carInfo.issueDate = year2 + '-' + month2 + '-' + day2
  1368. }
  1369. if (this.carInfo.transferDate) {
  1370. let year3 = new Date(this.carInfo.transferDate).getFullYear()
  1371. let month3 = new Date(this.carInfo.transferDate).getMonth() + 1
  1372. if (month3 < 10) {
  1373. month3 = '0' + month3;
  1374. }
  1375. let day3 = new Date(this.carInfo.transferDate).getDate()
  1376. if (day3 < 10) {
  1377. day3 = '0' + day3;
  1378. }
  1379. this.carInfo.transferDate = year3 + '-' + month3 + '-' + day3
  1380. }
  1381. this.vehicleAndVesselidentifyNumber = JSON.parse(JSON.stringify(res.data.applyinfo
  1382. .identifyNumber));
  1383. res.data.ownerinfo.identifyNumber = res.data.ownerinfo.identifyNumber.slice(0, 4) +
  1384. '******' + res
  1385. .data.ownerinfo.identifyNumber.slice(14, 18);
  1386. res.data.applyinfo.identifyNumber = res.data.applyinfo.identifyNumber.slice(0, 4) +
  1387. '******' + res
  1388. .data.applyinfo.identifyNumber.slice(14, 18);
  1389. res.data.insureinfo.identifyNumber = res.data.insureinfo.identifyNumber.slice(0,
  1390. 4) +
  1391. '******' +
  1392. res.data.insureinfo.identifyNumber.slice(14, 18);
  1393. this.ownerInfo = res.data.ownerinfo;
  1394. this.policyHolderInfo = res.data.applyinfo;
  1395. this.insuredPersonInfo = res.data.insureinfo;
  1396. this.riskList = res.data.riskinfo;
  1397. this.kindList = res.data.kindinfo;
  1398. this.sumPermium = res.data.sumpremium;
  1399. this.taxAmount = res.data.taxamount;
  1400. this.sypremium = res.data.sypremium;
  1401. this.jqpremium = res.data.jqpremium;
  1402. this.jypremium = res.data.jypremium;
  1403. this.orderstatus = res.data.orderstatus;
  1404. this.orderInfo = Object.assign({}, res.data)
  1405. this.roadrescueList = this.kindList.filter((val) => {
  1406. return ["TY1", "TY2", "TY3", "TY4"].includes(val.kindCode)
  1407. })
  1408. this.imageEcho(this.quoteno) // 影像获取完毕
  1409. this.getPolicyPrint();
  1410. // switch (this.name) {
  1411. // case "永安财险":
  1412. // this.yonganprint(); //电子保单
  1413. // break;
  1414. // case "中煤财险":
  1415. // this.zhongMeigetPolicyPrint(); //电子保单
  1416. // break;
  1417. // case "恒邦财险":
  1418. // case "诚泰财险":
  1419. // case "安盛天平":
  1420. // case "众安平安":
  1421. // case "中国人寿":
  1422. // case "太平财险":
  1423. // case "华农财险":
  1424. // case "泰康财险":
  1425. // this.pythonprint(); //电子保单
  1426. // break;
  1427. // case "永诚财险":
  1428. // this.yongChenggetPolicyPrint(); //电子保单
  1429. // break;
  1430. // case "紫金财险":
  1431. // this.ziJingetPolicyPrint(); //电子保单
  1432. // break;
  1433. // case "华泰财险":
  1434. // this.huaTaigetPolicyPrint(); //电子保单
  1435. // break;
  1436. // case "国任财险":
  1437. // this.guoRengetPolicyPrint(); //电子保单
  1438. // break;
  1439. // case "大家财险":
  1440. // this.daJiagetPolicyPrint(); //电子保单
  1441. // break;
  1442. // default:
  1443. // this.externalOrder();
  1444. // }
  1445. this.$base.insCompanyList.map(ele => {
  1446. if (ele.name == res.data.inscompany) {
  1447. uni.getImageInfo({
  1448. src: ele.icon,
  1449. success: image => {
  1450. pathToBase64(image.path)
  1451. .then(base64 => {
  1452. this.logoimg = base64;
  1453. })
  1454. .catch(error => {});
  1455. },
  1456. fail: err => {}
  1457. });
  1458. }
  1459. return ele;
  1460. })
  1461. }
  1462. if (this.name == '紫金财险') {
  1463. let Zijinres = await this.$http.post('/order/zijin/queryClauseData', param);
  1464. this.ziJinengageListData = Zijinres.data;
  1465. let data = this.ziJinengageListData.find(val => val.optType == 3)
  1466. if (data) {
  1467. this.ziJinengageList.push({
  1468. clauseCode: data.clauseCode,
  1469. clauseName: data.clauseName,
  1470. clauses: data.clauseContent,
  1471. riskCode: data.riskCode,
  1472. modifyFlag: data.modifyFlag,
  1473. optType: data.optType,
  1474. })
  1475. }
  1476. }
  1477. if (this.name == '华泰财险') {
  1478. let huaTaires = await this.$http.post('/order/huaTaiApi/queryClauseData', param);
  1479. this.huaTaiengageListData = huaTaires.data;
  1480. huaTaires.data.map(val => {
  1481. if (val.optType == '2') {
  1482. this.huaTaiengageList.push({
  1483. engageCode: val.engageCode,
  1484. engageDetail: val.engageDetail,
  1485. engageTitle: val.engageTitle,
  1486. riskCode: val.riskCode,
  1487. modifyFlag: val.modifyFlag,
  1488. })
  1489. }
  1490. })
  1491. }
  1492. } else {
  1493. uni.showModal({
  1494. showCancel: false,
  1495. title: "未查询到该订单"
  1496. })
  1497. }
  1498. })
  1499. },
  1500. methods: {
  1501. ...mapMutations(['setOrderStage', 'setOrderType']),
  1502. underwritecancel() {
  1503. this.navigate({
  1504. url: "/pages/orders/orders"
  1505. }, "switchTab",
  1506. true);
  1507. },
  1508. btn_click() {
  1509. uni.navigateTo({
  1510. url: '/pages/chat/chat'
  1511. })
  1512. },
  1513. async getPolicyPrint() {
  1514. let res = await this.$http.get('/subOrder/readPdfUrlList?subOrderId=' + this.companyId);
  1515. if (res.code == '200') {
  1516. this.policyList = [];
  1517. this.policyList1 = [];
  1518. res.data.oldfileList.map(val => {
  1519. if (val.fileTitle == '交强电子保单') {
  1520. this.policyList.push({
  1521. fileTitle: val.fileTitle,
  1522. filename: val.filename,
  1523. fileurl: val.fileurl,
  1524. })
  1525. } else {
  1526. this.policyList1.push({
  1527. fileTitle: val.fileTitle,
  1528. filename: val.filename,
  1529. fileurl: val.fileurl,
  1530. })
  1531. }
  1532. return val;
  1533. })
  1534. res.data.accidentList.map(val => {
  1535. this.policyList.push({
  1536. fileTitle: val.fileTitle,
  1537. filename: val.filename,
  1538. fileurl: val.fileurl,
  1539. })
  1540. return val;
  1541. })
  1542. res.data.businessList.map(val => {
  1543. this.policyList.push({
  1544. fileTitle: val.fileTitle,
  1545. filename: val.filename,
  1546. fileurl: val.fileurl,
  1547. })
  1548. return val;
  1549. })
  1550. }
  1551. },
  1552. redirect() {
  1553. this.navigate({
  1554. url: '/pages/carInsure/chooseOption',
  1555. success: (res) => {
  1556. res.eventChannel.emit("acceptData", {
  1557. params: {
  1558. companyId: this.orderInfo.companyId,
  1559. productId: this.orderInfo.productid,
  1560. seatNum: this.carInfo1.seatCount,
  1561. vehicleType: this.carInfo1.cimodelclass,
  1562. energyType: this.carInfo1.energyType,
  1563. carnature: this.carInfo1.carnature,
  1564. },
  1565. namesimple: this.orderInfo.inscompany,
  1566. cnName: this.cnName,
  1567. jqstartDate: this.orderInfo.jqstartdate,
  1568. jqendDate: this.orderInfo.jqenddate,
  1569. systartDate: this.orderInfo.systartdate,
  1570. syendDate: this.orderInfo.syenddate,
  1571. productName: this.orderInfo.product,
  1572. quotableCompanyList: this.quotableCompanyList,
  1573. identifyNumber: this.vehicleAndVesselidentifyNumber,
  1574. taxpayerName: this.policyHolderInfo.name,
  1575. })
  1576. }
  1577. }, "navigateTo", true);
  1578. },
  1579. underwriteconfirm() {
  1580. switch (this.underwriteTitle) {
  1581. case '订单自核成功':
  1582. if (this.quotationType.themeCode == 'QD') {
  1583. uni.navigateTo({
  1584. url: "/pages/orders/paymentCode?companyId=" +
  1585. this
  1586. .companyId + '&apiType=' + this.orderInfo
  1587. .apiType,
  1588. })
  1589. } else {
  1590. uni.navigateTo({
  1591. url: "/pages/orders/paymentCode1?companyId=" +
  1592. this
  1593. .companyId + '&apiType=' + this.orderInfo
  1594. .apiType,
  1595. })
  1596. }
  1597. break;
  1598. case '核保失败':
  1599. // uni.navigateBack({
  1600. // delta: 1
  1601. // });
  1602. break;
  1603. case '影像上传失败':
  1604. break;
  1605. }
  1606. },
  1607. //字典name匹配
  1608. dictionaryMatching(list, value) {
  1609. let obj = list.find(val => val.dictValue == value);
  1610. return obj.dictTag;
  1611. },
  1612. async getDicType(type) {
  1613. let res = await this.$http.get('/sysDict/dictDetails/' + type);
  1614. if (res.code == 200) {
  1615. this[type + 'options'] = res.data.ddList;
  1616. // if (type == "trafficManagementVehicleType") {
  1617. //
  1618. // this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
  1619. // this
  1620. // .carInfo
  1621. // .cimodelclass)
  1622. // }
  1623. }
  1624. },
  1625. ziJincontributingChange(param) {
  1626. this.ziJinengageList = [];
  1627. param.map(val => {
  1628. let list = this.ziJinengageListData.find(item => item.clauseId == val)
  1629. this.ziJinengageList.push({
  1630. clauseCode: list.clauseCode,
  1631. clauseName: list.clauseName,
  1632. clauses: list.clauseContent,
  1633. riskCode: list.riskCode,
  1634. modifyFlag: list.modifyFlag,
  1635. })
  1636. })
  1637. },
  1638. huaTaicontributingChange(param) {
  1639. this.huaTaiengageList = [];
  1640. param.map(val => {
  1641. let list = this.huaTaiengageListData.find(item => item.engageCode == val)
  1642. this.huaTaiengageList.push({
  1643. engageCode: list.engageCode,
  1644. engageDetail: list.engageDetail,
  1645. engageTitle: list.engageTitle,
  1646. riskCode: list.riskCode,
  1647. modifyFlag: list.modifyFlag,
  1648. })
  1649. })
  1650. },
  1651. //阅读并同意协议
  1652. agreed(e) {
  1653. this.agree = e.value;
  1654. },
  1655. toCarInfo() {
  1656. this.navigate({
  1657. url: '/pages/carInsure/Information',
  1658. success: (res) => {
  1659. res.eventChannel.emit(
  1660. "acceptData", {
  1661. carInfo: this
  1662. .carInfo,
  1663. ownerInfo: this
  1664. .ownerInfo,
  1665. policyHolderInfo: this
  1666. .policyHolderInfo,
  1667. insuredPersonInfo: this
  1668. .insuredPersonInfo,
  1669. riskList: this
  1670. .riskList,
  1671. kindList: this
  1672. .kindList,
  1673. carInfoPositiveList: this
  1674. .carInfoPositiveList, //车辆
  1675. ownerInfoPositiveList: this
  1676. .ownerInfoPositiveList, //车主
  1677. policyHolderInfoPositiveList: this
  1678. .policyHolderInfoPositiveList, //投保
  1679. insuredPersonInfoPositiveList: this
  1680. .insuredPersonInfoPositiveList, //被保人
  1681. })
  1682. }
  1683. }, "navigateTo", true);
  1684. },
  1685. //去选择险种页面
  1686. toInsureItems() {
  1687. this.navigate({
  1688. url: '/pages/carInsure/insureItems',
  1689. success: (res) => {
  1690. res.eventChannel.emit("acceptData", {
  1691. carInfo: this.carInfo,
  1692. ownerInfo: this.ownerInfo,
  1693. policyHolderInfo: this.policyHolderInfo,
  1694. insuredPersonInfo: this.insuredPersonInfo,
  1695. riskList: this.riskList,
  1696. kindList: this.kindList
  1697. })
  1698. }
  1699. }, "navigateTo", true);
  1700. },
  1701. //删除图片
  1702. delCheckImage(param, IdList, srcList) {
  1703. this[IdList].map((ele, index) => {
  1704. if (param.imageId === ele.imageId) {
  1705. this[IdList].splice(index, 1);
  1706. }
  1707. return ele;
  1708. });
  1709. this[srcList].map((ele, index) => {
  1710. if (param.imageId === ele.imageId) {
  1711. this[srcList].splice(index, 1);
  1712. }
  1713. return ele;
  1714. });
  1715. },
  1716. //影像查询
  1717. async imageEcho(quotenos) {
  1718. let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
  1719. if (imgres.code == "200") {
  1720. Object.keys(imgres.data).forEach((keys) => {
  1721. console.log(imgres.data[keys]);
  1722. if (imgres.data[keys].url) {
  1723. imgres.data[keys].url = this.$base.baseUrl + imgres.data[keys].url;
  1724. switch (keys) {
  1725. case 'C01':
  1726. this.carImageListId.push({
  1727. imageId: imgres.data[keys].imageId,
  1728. imageType: imgres.data[keys].imageType,
  1729. })
  1730. this.imgList1.push(imgres.data[keys]);
  1731. break;
  1732. case 'D01':
  1733. this.carImageListId.push({
  1734. imageId: imgres.data[keys].imageId,
  1735. imageType: imgres.data[keys].imageType,
  1736. })
  1737. this.imgList2.push(imgres.data[keys]);
  1738. break;
  1739. case 'C02':
  1740. this.ownerImageListId.push({
  1741. imageId: imgres.data[keys].imageId,
  1742. imageType: imgres.data[keys].imageType,
  1743. })
  1744. this.imgList3.push(imgres.data[keys]);
  1745. break;
  1746. case 'D02':
  1747. this.ownerImageListId.push({
  1748. imageId: imgres.data[keys].imageId,
  1749. imageType: imgres.data[keys].imageType,
  1750. })
  1751. this.imgList4.push(imgres.data[keys]);
  1752. break;
  1753. case 'C03':
  1754. this.policyImageListId.push({
  1755. imageId: imgres.data[keys].imageId,
  1756. imageType: imgres.data[keys].imageType,
  1757. })
  1758. this.imgList5.push(imgres.data[keys]);
  1759. break;
  1760. case 'D03':
  1761. this.policyImageListId.push({
  1762. imageId: imgres.data[keys].imageId,
  1763. imageType: imgres.data[keys].imageType,
  1764. })
  1765. this.imgList6.push(imgres.data[keys]);
  1766. break;
  1767. case 'C04':
  1768. this.insuredImageListId.push({
  1769. imageId: imgres.data[keys].imageId,
  1770. imageType: imgres.data[keys].imageType,
  1771. })
  1772. this.imgList7.push(imgres.data[keys]);
  1773. break;
  1774. case 'D04':
  1775. this.insuredImageListId.push({
  1776. imageId: imgres.data[keys].imageId,
  1777. imageType: imgres.data[keys].imageType,
  1778. })
  1779. this.imgList8.push(imgres.data[keys]);
  1780. break;
  1781. default:
  1782. break;
  1783. }
  1784. }
  1785. });
  1786. }
  1787. },
  1788. async uploadRetry() {
  1789. const mergedArray = [...this.carImageListId, ...this.ownerImageListId, ...this
  1790. .policyImageListId, ...this.insuredImageListId, ...this
  1791. .imgRelationshipid
  1792. ];
  1793. if (mergedArray.length > 0) {
  1794. await this.$http.post('/ins/taskImage/uploadImages', {
  1795. imageList: mergedArray,
  1796. quoteNo: this.quoteno,
  1797. })
  1798. }
  1799. },
  1800. async auditNextconfirm() {
  1801. if (this.modificationFlag) {
  1802. await this.uploadRetry();
  1803. }
  1804. switch (this.name) {
  1805. case "永安财险":
  1806. let yaimage = await this.$http.post(
  1807. '/order/yongAn/submitImage', {
  1808. companyId: this.companyId
  1809. });
  1810. if (yaimage.code == '200') {
  1811. let yaaudit = await this.$http.post(
  1812. '/order/yongAn/audit', {
  1813. companyId: this.companyId,
  1814. jqappoint: "",
  1815. syappoint: ""
  1816. });
  1817. if (yaaudit.code == '200') {
  1818. this.underwriteTitle = '订单自核成功';
  1819. this.cancelText = '暂不缴费';
  1820. this.confirmText = '立即缴费';
  1821. this.underwriteMsg = "";
  1822. this.underwriteShow = true;
  1823. } else {
  1824. this.underwriteTitle = '核保失败';
  1825. this.cancelText = '返回订单';
  1826. this.confirmText = '关闭';
  1827. this.underwriteMsg = yaaudit.msg;
  1828. this.underwriteShow = true;
  1829. }
  1830. } else {
  1831. this.underwriteTitle = '影像上传失败';
  1832. this.cancelText = '返回订单';
  1833. this.confirmText = '关闭';
  1834. this.underwriteMsg = yaimage.msg;
  1835. this.underwriteShow = true;
  1836. }
  1837. break;
  1838. case "中煤财险":
  1839. let zmapiImage = this.orderInfo.apiType == "2" ? "/insurance/crawler/submitImage" :
  1840. '/order/zhongMeiApi/submitImage';
  1841. let zmimage = await this.$http.post(
  1842. `${zmapiImage}`, {
  1843. [this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
  1844. });
  1845. if (zmimage.code == '200') {
  1846. let zmapiAudit = this.orderInfo.apiType == "2" ? "/insurance/crawler/audit" :
  1847. '/order/zhongMeiApi/audit';
  1848. let zmaudit = await this.$http.post(
  1849. `${zmapiAudit}`, {
  1850. [this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
  1851. jqappoint: "",
  1852. syappoint: ""
  1853. });
  1854. if (zmaudit.code == '200') {
  1855. this.underwriteTitle = '订单自核成功';
  1856. this.cancelText = '暂不缴费';
  1857. this.confirmText = '立即缴费';
  1858. this.underwriteMsg = "";
  1859. this.underwriteShow = true;
  1860. } else {
  1861. this.underwriteTitle = '核保失败';
  1862. this.cancelText = '返回订单';
  1863. this.confirmText = '关闭';
  1864. this.underwriteMsg = zmaudit.msg;
  1865. this.underwriteShow = true;
  1866. }
  1867. } else {
  1868. this.underwriteTitle = '影像上传失败';
  1869. this.cancelText = '返回订单';
  1870. this.confirmText = '关闭';
  1871. this.underwriteMsg = zmimage.msg;
  1872. this.underwriteShow = true;
  1873. }
  1874. break;
  1875. case "永诚财险":
  1876. let ycimage = await this.$http.post(
  1877. '/api/yongCheng/uploadImage', {
  1878. companyId: this.companyId
  1879. });
  1880. if (ycimage.code == '200') {
  1881. let ycaudit = await this.$http.post(
  1882. '/api/yongCheng/audit', {
  1883. companyId: this.companyId,
  1884. });
  1885. if (ycaudit.code == '200') {
  1886. this.underwriteTitle = '订单自核成功';
  1887. this.cancelText = '暂不缴费';
  1888. this.confirmText = '立即缴费';
  1889. this.underwriteMsg = "";
  1890. this.underwriteShow = true;
  1891. } else {
  1892. this.underwriteTitle = '核保失败';
  1893. this.cancelText = '返回订单';
  1894. this.confirmText = '关闭';
  1895. this.underwriteMsg = ycaudit.msg;
  1896. this.underwriteShow = true;
  1897. }
  1898. } else {
  1899. this.underwriteTitle = '影像上传失败';
  1900. this.cancelText = '返回订单';
  1901. this.confirmText = '关闭';
  1902. this.underwriteMsg = ycimage.msg;
  1903. this.underwriteShow = true;
  1904. }
  1905. break;
  1906. case "阳光财险":
  1907. let ygimage = await this.$http.post(
  1908. '/order/yangGuangApi/upload', {
  1909. companyId: this.companyId
  1910. });
  1911. if (ygimage.code == '200') {
  1912. let ygaudit = await this.$http.post(
  1913. '/order/yangGuangApi/submit', {
  1914. companyId: this.companyId,
  1915. });
  1916. if (ygaudit.code == '200') {
  1917. this.underwriteTitle = '订单自核成功';
  1918. this.cancelText = '暂不缴费';
  1919. this.confirmText = '立即缴费';
  1920. this.underwriteMsg = "";
  1921. this.underwriteShow = true;
  1922. } else {
  1923. this.underwriteTitle = '核保失败';
  1924. this.cancelText = '返回订单';
  1925. this.confirmText = '关闭';
  1926. this.underwriteMsg = ygaudit.msg;
  1927. this.underwriteShow = true;
  1928. }
  1929. } else {
  1930. this.underwriteTitle = '影像上传失败';
  1931. this.cancelText = '返回订单';
  1932. this.confirmText = '关闭';
  1933. this.underwriteMsg = ygimage.msg;
  1934. this.underwriteShow = true;
  1935. }
  1936. break;
  1937. case "国任财险":
  1938. let grimage = await this.$http.post(
  1939. '/api/guoRen/uploadImage', {
  1940. companyId: this.companyId
  1941. });
  1942. if (grimage.code == '200') {
  1943. let graudit = await this.$http.post(
  1944. '/api/guoRen/audit', {
  1945. companyId: this.companyId,
  1946. });
  1947. if (graudit.code == '200') {
  1948. this.underwriteTitle = '订单自核成功';
  1949. this.cancelText = '暂不缴费';
  1950. this.confirmText = '立即缴费';
  1951. this.underwriteMsg = "";
  1952. this.underwriteShow = true;
  1953. } else {
  1954. this.underwriteTitle = '核保失败';
  1955. this.cancelText = '返回订单';
  1956. this.confirmText = '关闭';
  1957. this.underwriteMsg = graudit.msg;
  1958. this.underwriteShow = true;
  1959. }
  1960. } else {
  1961. this.underwriteTitle = '影像上传失败';
  1962. this.cancelText = '返回订单';
  1963. this.confirmText = '关闭';
  1964. this.underwriteMsg = grimage.msg;
  1965. this.underwriteShow = true;
  1966. }
  1967. break;
  1968. case "大家财险":
  1969. let djapiImage = this.orderInfo.apiType == "2" ? "/insurance/crawler/submitImage" :
  1970. "/api/dajia/submitImage";
  1971. let djimage = await this.$http.post(
  1972. `${djapiImage}`, {
  1973. [this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
  1974. });
  1975. if (djimage.code == '200') {
  1976. let djapiAudit = this.orderInfo.apiType == "2" ? "/insurance/crawler/audit" :
  1977. '/api/dajia/audit';
  1978. let djaudit = await this.$http.post(
  1979. `${djapiAudit}`, {
  1980. [this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
  1981. });
  1982. if (djaudit.code == '200') {
  1983. this.underwriteTitle = '订单自核成功';
  1984. this.cancelText = '暂不缴费';
  1985. this.confirmText = '立即缴费';
  1986. this.underwriteMsg = "";
  1987. this.underwriteShow = true;
  1988. } else {
  1989. this.underwriteTitle = '核保失败';
  1990. this.cancelText = '返回订单';
  1991. this.confirmText = '关闭';
  1992. this.underwriteMsg = djaudit.msg;
  1993. this.underwriteShow = true;
  1994. }
  1995. } else {
  1996. this.underwriteTitle = '影像上传失败';
  1997. this.cancelText = '返回订单';
  1998. this.confirmText = '关闭';
  1999. this.underwriteMsg = djimage.msg;
  2000. this.underwriteShow = true;
  2001. }
  2002. break;
  2003. case "紫金财险":
  2004. let zjimage = await this.$http.post(
  2005. '/order/zijin/submitImage', {
  2006. companyId: this.companyId
  2007. });
  2008. if (zjimage.code == '200') {
  2009. let zjaudit = await this.$http.post(
  2010. '/order/zijin/audit', {
  2011. companyId: this.companyId,
  2012. engageList: this.ziJinengageList,
  2013. });
  2014. if (zjaudit.code == '200') {
  2015. this.underwriteTitle = '订单自核成功';
  2016. this.cancelText = '暂不缴费';
  2017. this.confirmText = '立即缴费';
  2018. this.underwriteMsg = "";
  2019. this.underwriteShow = true;
  2020. } else {
  2021. this.underwriteTitle = '核保失败';
  2022. this.cancelText = '返回订单';
  2023. this.confirmText = '关闭';
  2024. this.underwriteMsg = zjaudit.msg;
  2025. this.underwriteShow = true;
  2026. }
  2027. } else {
  2028. this.underwriteTitle = '影像上传失败';
  2029. this.cancelText = '返回订单';
  2030. this.confirmText = '关闭';
  2031. this.underwriteMsg = zjimage.msg;
  2032. this.underwriteShow = true;
  2033. }
  2034. break;
  2035. case "华泰财险":
  2036. let htapiImage = this.orderInfo.apiType == "2" ? "/insurance/crawler/submitImage" :
  2037. "/order/huaTaiApi/submitImage";
  2038. let htimage = await this.$http.post(
  2039. `${htapiImage}`, {
  2040. [this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
  2041. });
  2042. if (htimage.code == '200') {
  2043. let htapiAudit = this.orderInfo.apiType == "2" ? "/insurance/crawler/audit" :
  2044. '/order/huaTaiApi/audit';
  2045. let htaudit = await this.$http.post(
  2046. `${htapiAudit}`, {
  2047. [this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
  2048. engageList: this.huaTaiengageList,
  2049. });
  2050. if (htaudit.code == '200') {
  2051. this.underwriteTitle = '订单自核成功';
  2052. this.cancelText = '暂不缴费';
  2053. this.confirmText = '立即缴费';
  2054. this.underwriteMsg = "";
  2055. this.underwriteShow = true;
  2056. } else {
  2057. this.underwriteTitle = '核保失败';
  2058. this.cancelText = '返回订单';
  2059. this.confirmText = '关闭';
  2060. this.underwriteMsg = htaudit.msg;
  2061. this.underwriteShow = true;
  2062. }
  2063. } else {
  2064. this.underwriteTitle = '影像上传失败';
  2065. this.cancelText = '返回订单';
  2066. this.confirmText = '关闭';
  2067. this.underwriteMsg = htimage.msg;
  2068. this.underwriteShow = true;
  2069. }
  2070. break;
  2071. case "渤海财险":
  2072. let bhimage = await this.$http.post(
  2073. '/order/boHaiApi/submitImage', {
  2074. companyId: this.companyId
  2075. });
  2076. if (bhimage.code == '200') {
  2077. let bhaudit = await this.$http.post(
  2078. '/order/boHaiApi/audit', {
  2079. companyId: this.companyId,
  2080. jqappoint: "",
  2081. syappoint: ""
  2082. });
  2083. if (bhaudit.code == '200') {
  2084. this.underwriteTitle = '订单自核成功';
  2085. this.cancelText = '暂不缴费';
  2086. this.confirmText = '立即缴费';
  2087. this.underwriteMsg = "";
  2088. this.underwriteShow = true;
  2089. } else {
  2090. this.underwriteTitle = '核保失败';
  2091. this.cancelText = '返回订单';
  2092. this.confirmText = '关闭';
  2093. this.underwriteMsg = bhaudit.msg;
  2094. this.underwriteShow = true;
  2095. }
  2096. } else {
  2097. this.underwriteTitle = '影像上传失败';
  2098. this.cancelText = '返回订单';
  2099. this.confirmText = '关闭';
  2100. this.underwriteMsg = bhimage.msg;
  2101. this.underwriteShow = true;
  2102. }
  2103. break;
  2104. case "恒邦财险":
  2105. case "诚泰财险":
  2106. case "安盛天平":
  2107. case "众安平安":
  2108. case "中国人寿":
  2109. case "太平财险":
  2110. case "华农财险":
  2111. case "华安财险":
  2112. case "泰山财险":
  2113. case "泰康财险":
  2114. let pythonimage = await this.$http.post(
  2115. '/insurance/crawler/submitImage', {
  2116. subOrderNo: this.companyId
  2117. });
  2118. if (pythonimage.code == '200') {
  2119. let pythonaudit = await this.$http.post(
  2120. '/insurance/crawler/audit', {
  2121. subOrderNo: this.companyId,
  2122. });
  2123. if (pythonaudit.code == '200') {
  2124. this.underwriteTitle = '订单自核成功';
  2125. this.cancelText = '暂不缴费';
  2126. this.confirmText = '立即缴费';
  2127. this.underwriteMsg = "";
  2128. this.underwriteShow = true;
  2129. } else {
  2130. this.underwriteTitle = '核保失败';
  2131. this.cancelText = '返回订单';
  2132. this.confirmText = '关闭';
  2133. this.underwriteMsg = pythonaudit.msg;
  2134. this.underwriteShow = true;
  2135. }
  2136. } else {
  2137. this.underwriteTitle = '影像上传失败';
  2138. this.cancelText = '返回订单';
  2139. this.confirmText = '关闭';
  2140. this.underwriteMsg = pythonimage.msg;
  2141. this.underwriteShow = true;
  2142. }
  2143. break;
  2144. }
  2145. },
  2146. // 上传影像并提交核保
  2147. async submitAudit() {
  2148. // if (!this.agree) {
  2149. // return uni.showToast({
  2150. // title: '请阅读并同意协议',
  2151. // icon: "none",
  2152. // duration: 2000
  2153. // });
  2154. // }
  2155. this.auditNextShow = true;
  2156. },
  2157. async chooseImage(type, imageIdList, imgurl) {
  2158. let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
  2159. count: 1,
  2160. sizeType: ['compressed']
  2161. });
  2162. chooseImageRes.tempFilePaths.map((ele, index) => {
  2163. uni.uploadFile({
  2164. url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
  2165. filePath: ele,
  2166. name: "multipartFile",
  2167. formData: {
  2168. 'type': 'image',
  2169. },
  2170. header: {
  2171. Authorization: this.token,
  2172. },
  2173. success: async (imgRes) => {
  2174. let data = JSON.parse(imgRes.data);
  2175. data.data.url = this.$base.baseUrl + data.data.url;
  2176. if (data.code == "200") {
  2177. if (this[imageIdList].some(v => v.imageType == type)) {
  2178. this[imageIdList].map(val => {
  2179. if (val.imageType == type) {
  2180. val.imageId = data.data.id;
  2181. }
  2182. })
  2183. } else {
  2184. this[imageIdList].push({
  2185. imageId: data.data.id,
  2186. imageType: type,
  2187. })
  2188. }
  2189. this[imgurl].push(data.data)
  2190. this.modificationFlag = true;
  2191. }
  2192. }
  2193. });
  2194. })
  2195. },
  2196. //影像预览
  2197. previewImage(e, type) {
  2198. this.previewImgs = this[type];
  2199. var current = e.currentTarget.dataset.src;
  2200. this.$refs.previewImage.open(current); // 传入当前选中的图片地址或序号
  2201. },
  2202. //查询电子保单
  2203. async yonganprint() {
  2204. this.policyList = [];
  2205. this.policyList1 = [];
  2206. let res = await this.$http.post('/order/yongAn/getPolicyPrint', {
  2207. companyId: this.companyId,
  2208. policytype: "jq"
  2209. }); //永安
  2210. if (res.data) {
  2211. let result = res.data.replace(/[\r\n]/g, "");
  2212. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2213. base64ToPath(pdfBase64)
  2214. .then(path => {
  2215. this.policyList.push({
  2216. fileTitle: "交强电子保单",
  2217. filename: this.orderInfo.jqpolicyno,
  2218. fileurl: path,
  2219. })
  2220. })
  2221. }
  2222. let res1 = await this.$http.post('/order/yongAn/getPolicyPrint2', {
  2223. companyId: this.companyId,
  2224. policytype: "jq"
  2225. }); //永安
  2226. if (res1.data) {
  2227. let result = res1.data.replace(/[\r\n]/g, "");
  2228. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2229. base64ToPath(pdfBase64)
  2230. .then(path => {
  2231. this.policyList1.push({
  2232. fileTitle: "交强电子标志",
  2233. filename: this.orderInfo.jqpolicyno,
  2234. fileurl: path,
  2235. })
  2236. })
  2237. }
  2238. if (this.orderInfo.sypolicyno) {
  2239. let res2 = await this.$http.post('/order/yongAn/getPolicyPrint2', {
  2240. companyId: this.companyId,
  2241. policytype: "sy"
  2242. }); //永安
  2243. if (res2.data) {
  2244. let result = res1.data.replace(/[\r\n]/g, "");
  2245. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2246. base64ToPath(pdfBase64)
  2247. .then(path => {
  2248. this.policyList.push({
  2249. fileTitle: "商业电子保单",
  2250. filename: this.orderInfo.sypolicyno,
  2251. fileurl: path,
  2252. })
  2253. })
  2254. }
  2255. }
  2256. },
  2257. async zhongMeigetPolicyPrint() {
  2258. let apiType = this.orderInfo.apiType;
  2259. switch (apiType) {
  2260. case 1:
  2261. this.policyList = [];
  2262. this.policyList1 = [];
  2263. if (this.orderInfo.jqpolicyno) {
  2264. let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  2265. companyId: this.companyId,
  2266. riskCode: "0507",
  2267. type: '2', //2:保单
  2268. });
  2269. if (res.code == '200') {
  2270. this.policyList.push({
  2271. fileTitle: "交强电子保单",
  2272. filename: this.orderInfo.jqpolicyno,
  2273. fileurl: res.data[0],
  2274. })
  2275. }
  2276. let res1 = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  2277. companyId: this.companyId,
  2278. riskCode: "0507",
  2279. type: '1', //1:标志
  2280. });
  2281. if (res1.code == '200') {
  2282. this.policyList1.push({
  2283. fileTitle: "交强电子标志",
  2284. filename: this.orderInfo.jqpolicyno,
  2285. fileurl: res1.data[0],
  2286. })
  2287. }
  2288. }
  2289. if (this.orderInfo.sypolicyno) {
  2290. let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  2291. companyId: this.companyId,
  2292. riskCode: "0510",
  2293. type: '2', //2:标志
  2294. });
  2295. if (res.code == '200') {
  2296. this.policyList.push({
  2297. fileTitle: "商业电子保单",
  2298. filename: this.orderInfo.sypolicyno,
  2299. fileurl: res.data[0],
  2300. })
  2301. }
  2302. }
  2303. if (this.orderInfo.crossInsurance.length > 0) {
  2304. this.orderInfo.crossInsurance.map(async ele => {
  2305. let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  2306. companyId: this.companyId,
  2307. ridePolicyNo: ele.ridePolicyNo,
  2308. riskCode: "0513",
  2309. type: '2', //2:保单
  2310. });
  2311. if (res.code == '200') {
  2312. this.policyList.push({
  2313. fileTitle: "驾意险保单",
  2314. filename: ele.ridePolicyNo,
  2315. fileurl: res.data[0],
  2316. })
  2317. }
  2318. })
  2319. }
  2320. break;
  2321. case 2:
  2322. if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
  2323. let params = {
  2324. subOrderNo: this.companyId,
  2325. };
  2326. let res1 = await this.$http.post(
  2327. '/insurance/crawler/getPolicyPrint', params);
  2328. if (res1.code == '200') {
  2329. this.policyList = [];
  2330. this.policyList1 = [];
  2331. this.policyList.push({
  2332. fileTitle: "交强电子保单",
  2333. filename: this.orderInfo.jqpolicyno,
  2334. fileurl: res1.data.jqxPolicyUrl,
  2335. })
  2336. this.policyList1.push({
  2337. fileTitle: "交强电子标志",
  2338. filename: this.orderInfo.jqpolicyno,
  2339. fileurl: res1.data.jqxFlagUrl,
  2340. })
  2341. if (res1.data.syxPolicyUrl) {
  2342. this.policyList.push({
  2343. fileTitle: "商业电子保单",
  2344. filename: this.orderInfo.sypolicyno,
  2345. fileurl: res1.data.syxPolicyUrl,
  2346. });
  2347. }
  2348. if (res1.data.jyxInfoList.length > 0) {
  2349. res1.data.jyxInfoList.map(ele => {
  2350. this.policyList.push({
  2351. fileTitle: "驾意险保单",
  2352. filename: ele.application,
  2353. fileurl: ele.jyx_policy_url,
  2354. });
  2355. return ele;
  2356. })
  2357. }
  2358. }
  2359. }
  2360. break;
  2361. }
  2362. },
  2363. async yongChenggetPolicyPrint() {
  2364. this.policyList = [];
  2365. this.policyList1 = [];
  2366. let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
  2367. companyId: this.companyId,
  2368. riskCode: "0507",
  2369. type: '2', //2:保单
  2370. }); //永诚财险
  2371. if (res.code == '200') {
  2372. this.policyList.push({
  2373. fileTitle: "交强电子保单",
  2374. filename: this.orderInfo.jqpolicyno,
  2375. fileurl: res.data.jqUrl,
  2376. })
  2377. if (res.data.jqFlagUrl) {
  2378. this.policyList1.push({
  2379. fileTitle: "交强电子标志",
  2380. filename: this.orderInfo.jqpolicyno,
  2381. fileurl: res.data.jqFlagUrl,
  2382. })
  2383. }
  2384. }
  2385. if (this.orderInfo.sypolicyno) {
  2386. let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
  2387. companyId: this.companyId,
  2388. riskCode: "0510",
  2389. type: '2', //2:保单
  2390. }); //永诚财险
  2391. if (res.code == '200') {
  2392. this.policyList.push({
  2393. fileTitle: "商业电子保单",
  2394. filename: this.orderInfo.sypolicyno,
  2395. fileurl: res.data.syUrl,
  2396. });
  2397. }
  2398. }
  2399. if (this.orderInfo.crossInsurance.length > 0) {
  2400. this.orderInfo.crossInsurance.map(async ele => {
  2401. let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
  2402. companyId: this.companyId,
  2403. policyNumber: ele.policyNumber,
  2404. riskCode: "0513",
  2405. type: '2', //2:保单
  2406. });
  2407. if (res.code == '200') {
  2408. this.policyList.push({
  2409. fileTitle: "驾意险保单",
  2410. filename: ele.policyNumber,
  2411. fileurl: res.data.jyUrl,
  2412. })
  2413. }
  2414. })
  2415. }
  2416. },
  2417. //爬虫电子保单统一调用
  2418. async pythonprint() {
  2419. if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
  2420. let params = {
  2421. subOrderNo: this.companyId,
  2422. };
  2423. let res1 = await this.$http.post('/insurance/crawler/getPolicyPrint', params);
  2424. if (res1.code == '200') {
  2425. this.policyList = [];
  2426. this.policyList1 = [];
  2427. this.policyList.push({
  2428. fileTitle: "交强电子保单",
  2429. filename: this.orderInfo.jqpolicyno,
  2430. fileurl: res1.data.jqxPolicyUrl,
  2431. })
  2432. this.policyList1.push({
  2433. fileTitle: "交强电子标志",
  2434. filename: this.orderInfo.jqpolicyno,
  2435. fileurl: res1.data.jqxFlagUrl,
  2436. })
  2437. if (res1.data.syxPolicyUrl) {
  2438. this.policyList.push({
  2439. fileTitle: "商业电子保单",
  2440. filename: this.orderInfo.sypolicyno,
  2441. fileurl: res1.data.syxPolicyUrl,
  2442. });
  2443. }
  2444. if (res1.data.jyxInfoList.length > 0) {
  2445. res1.data.jyxInfoList.map(ele => {
  2446. this.policyList.push({
  2447. fileTitle: "驾意险保单",
  2448. filename: ele.application,
  2449. fileurl: ele.jyx_policy_url,
  2450. });
  2451. return ele;
  2452. })
  2453. }
  2454. }
  2455. }
  2456. },
  2457. async externalOrder() {
  2458. let res = await this.$http.get('/api/externalOrder/getPolicyPrint?subOrderNo=' + this
  2459. .companyId);
  2460. this.policyList = [];
  2461. this.policyList1 = [];
  2462. if (res.data.jqPolicy) {
  2463. this.policyList.push({
  2464. fileTitle: "交强电子保单",
  2465. filename: this.orderInfo.jqpolicyno,
  2466. fileurl: this.$base.baseUrl + res.data.jqPolicy,
  2467. })
  2468. }
  2469. if (res.data.jqSign) {
  2470. this.policyList1.push({
  2471. fileTitle: "交强电子标志",
  2472. filename: this.orderInfo.jqpolicyno,
  2473. fileurl: this.$base.baseUrl + res.data.jqSign,
  2474. })
  2475. }
  2476. if (res.data.syPolicy) {
  2477. this.policyList.push({
  2478. fileTitle: "商业电子保单",
  2479. filename: this.orderInfo.sypolicyno,
  2480. fileurl: this.$base.baseUrl + res.data.syPolicy,
  2481. });
  2482. }
  2483. if (res.data.noPolicy) {
  2484. this.policyList.push({
  2485. fileTitle: "驾意险保单",
  2486. fileurl: this.$base.baseUrl + res.data.noPolicy,
  2487. });
  2488. }
  2489. },
  2490. async ziJingetPolicyPrint() {
  2491. this.policyList = [];
  2492. this.policyList1 = [];
  2493. if (this.orderInfo.jqpolicyno) {
  2494. let res = await this.$http.post('/order/zijin/getPolicyPrint', {
  2495. companyId: this.companyId,
  2496. riskCode: "0507",
  2497. type: '2', //2:保单
  2498. });
  2499. if (res.code == '200') {
  2500. this.policyList.push({
  2501. fileTitle: "交强电子保单",
  2502. filename: this.orderInfo.jqpolicyno,
  2503. fileurl: res.data,
  2504. })
  2505. }
  2506. let res1 = await this.$http.post('/order/zijin/getPolicyPrint', {
  2507. companyId: this.companyId,
  2508. riskCode: "0507",
  2509. type: '1', //1:标志
  2510. });
  2511. if (res1.code == '200') {
  2512. this.policyList1.push({
  2513. fileTitle: "交强电子标志",
  2514. filename: this.orderInfo.jqpolicyno,
  2515. fileurl: res1.data,
  2516. })
  2517. }
  2518. }
  2519. if (this.orderInfo.sypolicyno) {
  2520. let res = await this.$http.post('/order/zijin/getPolicyPrint', {
  2521. companyId: this.companyId,
  2522. riskCode: "0510",
  2523. type: '2', //2:标志
  2524. });
  2525. if (res.code == '200') {
  2526. this.policyList.push({
  2527. fileTitle: "商业电子保单",
  2528. filename: this.orderInfo.sypolicyno,
  2529. fileurl: res.data,
  2530. })
  2531. }
  2532. }
  2533. if (this.orderInfo.crossInsurance.length > 0) {
  2534. this.orderInfo.crossInsurance.map(async ele => {
  2535. let res = await this.$http.post(
  2536. '/order/zijin/getPolicyPrint', {
  2537. companyId: this.companyId,
  2538. policyNumber: ele.policyNumber,
  2539. riskCode: "0513",
  2540. type: '2', //2:保单
  2541. });
  2542. if (res.code == '200') {
  2543. this.policyList.push({
  2544. fileTitle: "驾意险保单",
  2545. filename: ele.policyNumber,
  2546. fileurl: res.data,
  2547. })
  2548. }
  2549. })
  2550. }
  2551. },
  2552. async daJiagetPolicyPrint() {
  2553. let apiType = this.orderInfo.apiType;
  2554. switch (apiType) {
  2555. case 1:
  2556. this.policyList = [];
  2557. this.policyList1 = [];
  2558. if (this.orderInfo.jqpolicyno) {
  2559. let res = await this.$http.post('/api/dajia/obtainWarranty', {
  2560. companyId: this.companyId,
  2561. riskCode: "0507",
  2562. type: '2', //2:保单
  2563. });
  2564. if (res.code == '200') {
  2565. this.policyList.push({
  2566. fileTitle: "交强电子保单",
  2567. filename: this.orderInfo.jqpolicyno,
  2568. fileurl: res.data,
  2569. })
  2570. }
  2571. let res1 = await this.$http.post('/api/dajia/obtainWarranty', {
  2572. companyId: this.companyId,
  2573. riskCode: "0507",
  2574. type: '1', //1:标志
  2575. });
  2576. if (res1.code == '200') {
  2577. this.policyList1.push({
  2578. fileTitle: "交强电子标志",
  2579. filename: this.orderInfo.jqpolicyno,
  2580. fileurl: res1.data,
  2581. })
  2582. }
  2583. }
  2584. if (this.orderInfo.sypolicyno) {
  2585. let res = await this.$http.post('/api/dajia/obtainWarranty', {
  2586. companyId: this.companyId,
  2587. riskCode: "0510",
  2588. type: '2', //2:标志
  2589. });
  2590. if (res.code == '200') {
  2591. this.policyList.push({
  2592. fileTitle: "商业电子保单",
  2593. filename: this.orderInfo.sypolicyno,
  2594. fileurl: res.data,
  2595. })
  2596. }
  2597. }
  2598. if (this.orderInfo.crossInsurance.length > 0) {
  2599. this.orderInfo.crossInsurance.map(async ele => {
  2600. let res = await this.$http.post(
  2601. '/api/dajia/obtainWarranty', {
  2602. companyId: this.companyId,
  2603. policyNumber: ele.policyNumber,
  2604. riskCode: "0513",
  2605. type: '2', //2:保单
  2606. });
  2607. if (res.code == '200') {
  2608. this.policyList.push({
  2609. fileTitle: "驾意险保单",
  2610. filename: ele.policyNumber,
  2611. fileurl: res.data,
  2612. })
  2613. }
  2614. })
  2615. }
  2616. break;
  2617. case 2:
  2618. if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
  2619. let params = {
  2620. subOrderNo: this.companyId,
  2621. };
  2622. let res1 = await this.$http.post(
  2623. '/insurance/crawler/getPolicyPrint', params);
  2624. if (res1.code == '200') {
  2625. this.policyList = [];
  2626. this.policyList1 = [];
  2627. this.policyList.push({
  2628. fileTitle: "交强电子保单",
  2629. filename: this.orderInfo.jqpolicyno,
  2630. fileurl: res1.data.jqxPolicyUrl,
  2631. })
  2632. this.policyList1.push({
  2633. fileTitle: "交强电子标志",
  2634. filename: this.orderInfo.jqpolicyno,
  2635. fileurl: res1.data.jqxFlagUrl,
  2636. })
  2637. if (res1.data.syxPolicyUrl) {
  2638. this.policyList.push({
  2639. fileTitle: "商业电子保单",
  2640. filename: this.orderInfo.sypolicyno,
  2641. fileurl: res1.data.syxPolicyUrl,
  2642. });
  2643. }
  2644. if (res1.data.jyxInfoList.length > 0) {
  2645. res1.data.jyxInfoList.map(ele => {
  2646. this.policyList.push({
  2647. fileTitle: "驾意险保单",
  2648. filename: ele.application,
  2649. fileurl: ele.jyx_policy_url,
  2650. });
  2651. return ele;
  2652. })
  2653. }
  2654. }
  2655. }
  2656. break;
  2657. }
  2658. },
  2659. async huaTaigetPolicyPrint() {
  2660. let apiType = this.orderInfo.apiType;
  2661. switch (apiType) {
  2662. case 1:
  2663. if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
  2664. let res = await this.$http.post(
  2665. '/order/huaTaiApi/getPolicyPrint', {
  2666. companyId: this.companyId,
  2667. riskCode: "0507",
  2668. });
  2669. if (res.code == '200') {
  2670. this.policyList = [];
  2671. this.policyList1 = [];
  2672. this.policyList.push({
  2673. fileTitle: "交强电子保单",
  2674. filename: this.orderInfo.jqpolicyno,
  2675. fileurl: res.data.jqxPolicyUrl,
  2676. })
  2677. this.policyList1.push({
  2678. fileTitle: "交强电子标志",
  2679. filename: this.orderInfo.jqpolicyno,
  2680. fileurl: res.data.jqxFlagUrl,
  2681. })
  2682. if (res.data.syxPolicyUrl) {
  2683. this.policyList.push({
  2684. fileTitle: "商业电子保单",
  2685. filename: this.orderInfo.sypolicyno,
  2686. fileurl: res.data.syxPolicyUrl,
  2687. });
  2688. }
  2689. }
  2690. }
  2691. break;
  2692. case 2:
  2693. if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
  2694. let params = {
  2695. subOrderNo: this.companyId,
  2696. };
  2697. let res1 = await this.$http.post(
  2698. '/insurance/crawler/getPolicyPrint', params);
  2699. if (res1.code == '200') {
  2700. this.policyList = [];
  2701. this.policyList1 = [];
  2702. this.policyList.push({
  2703. fileTitle: "交强电子保单",
  2704. filename: this.orderInfo.jqpolicyno,
  2705. fileurl: res1.data.jqxPolicyUrl,
  2706. })
  2707. this.policyList1.push({
  2708. fileTitle: "交强电子标志",
  2709. filename: this.orderInfo.jqpolicyno,
  2710. fileurl: res1.data.jqxFlagUrl,
  2711. })
  2712. if (res1.data.syxPolicyUrl) {
  2713. this.policyList.push({
  2714. fileTitle: "商业电子保单",
  2715. filename: this.orderInfo.sypolicyno,
  2716. fileurl: res1.data.syxPolicyUrl,
  2717. });
  2718. }
  2719. if (res1.data.jyxInfoList.length > 0) {
  2720. res1.data.jyxInfoList.map(ele => {
  2721. this.policyList.push({
  2722. fileTitle: "驾意险保单",
  2723. filename: ele.application,
  2724. fileurl: ele.jyx_policy_url,
  2725. });
  2726. return ele;
  2727. })
  2728. }
  2729. }
  2730. }
  2731. break;
  2732. }
  2733. },
  2734. async guoRengetPolicyPrint() {
  2735. this.policyList = [];
  2736. this.policyList1 = [];
  2737. if (this.orderInfo.jqpolicyno) {
  2738. let res = await this.$http.post('/api/guoRen/policyPrint', {
  2739. companyId: this.companyId,
  2740. riskCode: "0507",
  2741. type: '2', //2:保单
  2742. });
  2743. if (res.code == '200') {
  2744. this.policyList.push({
  2745. fileTitle: "交强电子保单",
  2746. filename: this.orderInfo.jqpolicyno,
  2747. fileurl: res.data,
  2748. })
  2749. }
  2750. let res1 = await this.$http.post('/api/guoRen/policyPrint', {
  2751. companyId: this.companyId,
  2752. riskCode: "0507",
  2753. type: '1', //1:标志
  2754. });
  2755. if (res1.code == '200') {
  2756. this.policyList1.push({
  2757. fileTitle: "交强电子标志",
  2758. filename: this.orderInfo.jqpolicyno,
  2759. fileurl: res1.data,
  2760. })
  2761. }
  2762. }
  2763. if (this.orderInfo.sypolicyno) {
  2764. let res = await this.$http.post('/api/guoRen/policyPrint', {
  2765. companyId: this.companyId,
  2766. riskCode: "0510",
  2767. type: '2', //2:标志
  2768. });
  2769. if (res.code == '200') {
  2770. this.policyList.push({
  2771. fileTitle: "商业电子保单",
  2772. filename: this.orderInfo.sypolicyno,
  2773. fileurl: res.data,
  2774. })
  2775. }
  2776. }
  2777. if (this.orderInfo.crossInsurance.length > 0) {
  2778. this.orderInfo.crossInsurance.map(async ele => {
  2779. let res = await this.$http.post(
  2780. '/api/guoRen/policyPrint', {
  2781. companyId: this.companyId,
  2782. policyNumber: ele.policyNumber,
  2783. riskCode: "0513",
  2784. type: '2', //2:保单
  2785. });
  2786. if (res.code == '200') {
  2787. this.policyList.push({
  2788. fileTitle: "驾意险保单",
  2789. filename: ele.policyNumber,
  2790. fileurl: res.data,
  2791. })
  2792. }
  2793. })
  2794. }
  2795. },
  2796. downloadPolicy(file) {
  2797. //#ifdef APP-PLUS
  2798. uni.showLoading({
  2799. title: '文件下载中'
  2800. });
  2801. let index = file.lastIndexOf("\/")
  2802. let licensename = file.substring(index + 1, file.length)
  2803. let dtask = plus.downloader.createDownload(file, {
  2804. filename: "_downloads/" + this.name + '-' + this
  2805. .insuredPersonInfo.name + '-' + licensename
  2806. }, function(d, status) {
  2807. if (status == 200) {
  2808. uni.hideLoading()
  2809. //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
  2810. let fileSaveUrl = plus.io.convertLocalFileSystemURL(d
  2811. .filename);
  2812. plus.runtime.openFile(d.filename); //选择软件打开文件
  2813. } else {
  2814. uni.hideLoading()
  2815. //下载失败
  2816. plus.downloader.clear(); //清除下载任务
  2817. }
  2818. })
  2819. dtask.start();
  2820. //#endif
  2821. //#ifdef H5
  2822. var win = window.open();
  2823. win.document.write(
  2824. '<body style="margin:0px;"><object data="' +
  2825. file +
  2826. '" type="application/pdf" width="100%" height="100%"><iframe src="' +
  2827. file +
  2828. '" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
  2829. );
  2830. //#endif
  2831. },
  2832. //选择缴费方式
  2833. openPayWay() {
  2834. this.navigate({
  2835. url: "/pages/carInsure/payWay?orderno=" + this.orderno
  2836. }, 'navigateTo', true)
  2837. },
  2838. cancelShare() {
  2839. this.$refs.showshare.close()
  2840. },
  2841. //控制详情的展开和收起
  2842. controlShow(type) {
  2843. this[type] = !this[type];
  2844. },
  2845. //撤销核保
  2846. cancelUnderwriting() {
  2847. uni.showModal({
  2848. content: '是否确认撤销核保?',
  2849. success: async (res) => {
  2850. if (res.confirm) {
  2851. let param = {
  2852. "auditid": this.userInfo.sysUser
  2853. .id, //核保人会员号
  2854. "auditopinion": '', //核保意见
  2855. "jqapplyno": "", //交强险投保单号
  2856. "jqappoint": "", //交强特别约定
  2857. "jqpolicyno": "", //交强保单号
  2858. "orderno": this.orderno, //订单号
  2859. "orderstatus": "0", //订单类型
  2860. "syapplyno": "", //商业险投保单号
  2861. "syappoint": "", //商业险特别约定
  2862. "sypolicyno": "" //商业保单号
  2863. }
  2864. let res = await this.$http.post(
  2865. '/insOrder/saveAudit', param);
  2866. uni.showToast({
  2867. title: '撤销成功',
  2868. icon: "none",
  2869. duration: 2000
  2870. });
  2871. setTimeout(() => {
  2872. this.setOrderStage(0);
  2873. this.setOrderType(0);
  2874. this.navigate({
  2875. url: "/pages/orders/orders"
  2876. }, "switchTab", true);
  2877. }, 2000);
  2878. } else if (res.cancel) {
  2879. console.log('用户点击取消');
  2880. }
  2881. }
  2882. });
  2883. },
  2884. toChinesNum(num) {
  2885. let overWan = Math.floor(num / 10000);
  2886. let result = overWan + "万";
  2887. return result;
  2888. },
  2889. toInterest() {
  2890. uni.navigateTo({
  2891. url: `/pages/carInsure/interest?id=${this.orderInfo.id}`
  2892. })
  2893. }
  2894. }
  2895. }
  2896. </script>
  2897. <style lang="scss" scoped>
  2898. @import '@/style/mixin.scss';
  2899. .page {
  2900. background: #F8FAFE;
  2901. padding: 0 16px 100px 16px;
  2902. }
  2903. .headers {
  2904. padding: 16px 16px 0 16px;
  2905. position: relative;
  2906. .price {
  2907. width: 100%;
  2908. height: auto;
  2909. border-radius: 6px;
  2910. .price1 {
  2911. padding: 12px;
  2912. background: linear-gradient(180deg, #DAE5FE 0%, #F2F6FF 100%);
  2913. border-radius: 6px 6px 0 0;
  2914. }
  2915. .price2 {
  2916. padding: 12px;
  2917. background: #fff;
  2918. border-radius: 0 0 6px 6px;
  2919. }
  2920. }
  2921. }
  2922. .header {
  2923. padding: 8px;
  2924. background: linear-gradient(180deg, #C7DAFF 0%, rgba(199, 218, 255, 0) 100%);
  2925. border-radius: 6px 6px 0 0;
  2926. height: 80upx;
  2927. position: relative;
  2928. }
  2929. .header .title {
  2930. font-size: 30upx;
  2931. font-weight: bold;
  2932. }
  2933. .welfare {
  2934. margin-bottom: 20upx;
  2935. width: 100%;
  2936. box-sizing: border-box;
  2937. background: #FFFFFF;
  2938. border-radius: 20upx;
  2939. }
  2940. .welfare .body {
  2941. padding: 0 30upx 30upx;
  2942. box-sizing: border-box;
  2943. flex-wrap: wrap;
  2944. }
  2945. .welfare .body>.welfareItem {
  2946. width: 320upx;
  2947. height: 120upx;
  2948. padding: 10upx 20upx;
  2949. margin: 20upx 10upx 0upx;
  2950. border: 1px solid rgba($themeColor, 0.6);
  2951. box-sizing: border-box;
  2952. background: rgba($themeColor, 0.4);
  2953. border-radius: 10upx;
  2954. }
  2955. .welfare .body>.welfareItem .name {
  2956. color: $themeColor;
  2957. font-size: 30upx;
  2958. width: 210upx;
  2959. overflow: hidden;
  2960. text-overflow: ellipsis;
  2961. white-space: nowrap;
  2962. }
  2963. .welfare .body>.welfareItem .content {
  2964. font-size: 24upx;
  2965. width: 260upx;
  2966. overflow: hidden;
  2967. text-overflow: ellipsis;
  2968. white-space: nowrap;
  2969. }
  2970. /* 报价方案Start */
  2971. .quotePlan {
  2972. margin-bottom: 20upx;
  2973. width: 100%;
  2974. position: relative;
  2975. }
  2976. .quotePlan .header .adjustPlan {
  2977. color: $themeColor;
  2978. }
  2979. .kindList {
  2980. background-color: #F9F9F9;
  2981. padding: 10px;
  2982. height: auto;
  2983. width: 100%;
  2984. border-radius: 10px;
  2985. font-size: 13px;
  2986. color: rgba(35, 40, 50, 0.8);
  2987. }
  2988. .quotePlan .body .insurance {
  2989. padding-bottom: 20upx;
  2990. }
  2991. .quotePlan .body .row {
  2992. padding: 5px;
  2993. border-bottom: 1px solid #F3F3F3;
  2994. }
  2995. .quotePlan .body .row:last-child {
  2996. border: none;
  2997. }
  2998. .quotePlan .body .row .date {
  2999. color: #A4A4A4;
  3000. font-size: 22upx;
  3001. }
  3002. .quotePlan .body .insurance .kindList {
  3003. background: #F3F3F3;
  3004. padding: 0 10upx;
  3005. }
  3006. .addedServices .kindList {
  3007. background: #F3F3F3;
  3008. padding: 0 10upx;
  3009. }
  3010. .quotePlan .body .insurance .kindList .kindItem {
  3011. padding: 2px 0;
  3012. }
  3013. .quotePlan .body .insurance .kindList .kindItem>view {
  3014. font-size: 24upx;
  3015. }
  3016. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(1) {
  3017. width: 310upx;
  3018. }
  3019. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(2) {
  3020. width: 170upx;
  3021. }
  3022. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(3) {
  3023. width: 170upx;
  3024. }
  3025. .addedServices .kindList .kindItem {
  3026. height: 65upx;
  3027. }
  3028. .addedServices .kindList .kindItem>view {
  3029. font-size: 24upx;
  3030. padding: 0upx 15upx;
  3031. }
  3032. /* 报价方案End */
  3033. .car {
  3034. width: 100%;
  3035. background-color: #fff;
  3036. border-radius: 6px;
  3037. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3038. margin-top: 10px;
  3039. position: relative;
  3040. .body {
  3041. .row {
  3042. padding: 5px 8px;
  3043. border-bottom: 1px solid #F3F3F3;
  3044. view:first-child {
  3045. color: #232832;
  3046. }
  3047. view:last-child {
  3048. color: #666;
  3049. }
  3050. }
  3051. .row:last-child {
  3052. border: none;
  3053. }
  3054. }
  3055. }
  3056. /* 预缴费Start */
  3057. .advancePaymentTotal {
  3058. margin-bottom: 20upx;
  3059. width: 100%;
  3060. box-sizing: border-box;
  3061. background: #FFFFFF;
  3062. border-radius: 20upx;
  3063. }
  3064. .advancePaymentTotal .body {
  3065. padding: 0upx 40upx 10upx;
  3066. }
  3067. .advancePaymentTotal .body .row {
  3068. height: 80upx;
  3069. border-bottom: 1px solid #F3F3F3;
  3070. }
  3071. /* 预缴费End */
  3072. /* 底部按钮Start */
  3073. .bottomBtn {
  3074. position: fixed;
  3075. bottom: 0;
  3076. left: 0;
  3077. right: 0;
  3078. height: auto;
  3079. z-index: 999;
  3080. background-color: #fff;
  3081. .agree {
  3082. padding: 4px 8px;
  3083. font-size: 22rpx;
  3084. color: #858585;
  3085. .tip {
  3086. color: #FF5600;
  3087. margin: 0upx 10upx;
  3088. }
  3089. }
  3090. .btnView {
  3091. width: 100%;
  3092. height: 38px;
  3093. background-color: #fff;
  3094. .btn {
  3095. height: 100%;
  3096. }
  3097. .btn:nth-child(1) {
  3098. width: 40%;
  3099. background-color: #E6EEFF;
  3100. color: #0052FF;
  3101. padding: 8px;
  3102. font-size: 13px;
  3103. }
  3104. .btn:nth-child(2) {
  3105. width: 30%;
  3106. color: #fff;
  3107. background-color: #0052FF;
  3108. font-weight: bold;
  3109. }
  3110. .btn:nth-child(3) {
  3111. width: 30%;
  3112. color: #fff;
  3113. background-color: #FF5600;
  3114. font-weight: bold;
  3115. }
  3116. }
  3117. }
  3118. .tool {
  3119. padding: 10px;
  3120. view {
  3121. width: 100%;
  3122. padding: 8px 0;
  3123. border-bottom: 1px solid #f2f2f2;
  3124. font-size: 14px;
  3125. color: #232832;
  3126. }
  3127. }
  3128. .cancell {
  3129. width: 100%;
  3130. height: 46px;
  3131. background-color: #E6EEFF;
  3132. font-size: 16px;
  3133. color: #0052FF;
  3134. }
  3135. /* 底部按钮End */
  3136. .contributing {
  3137. width: 100%;
  3138. margin: 4px 0;
  3139. font-size: 14px;
  3140. text:nth-child(1) {
  3141. font-weight: bold;
  3142. color: #ff9000;
  3143. }
  3144. }
  3145. /* 人员信息Start */
  3146. .personInfo,
  3147. .advancePayment,
  3148. .imageInfo,
  3149. .appoint {}
  3150. .personInfo,
  3151. .advancePayment,
  3152. .imageInfo,
  3153. .appoint {
  3154. .title {
  3155. height: 80upx;
  3156. font-size: 15px;
  3157. box-shadow: inset 0 -3upx 0px #fafafa;
  3158. }
  3159. .content {
  3160. padding: 0px 5px 0;
  3161. background-color: #fff;
  3162. border-radius: 6px;
  3163. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3164. }
  3165. .uni-uploader {
  3166. padding: 8px;
  3167. background-color: #fff;
  3168. border-radius: 6px;
  3169. height: auto;
  3170. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3171. margin-bottom: 10px;
  3172. }
  3173. }
  3174. .uni-uploader__file {
  3175. position: relative;
  3176. }
  3177. .delImgIcon {
  3178. width: 40upx;
  3179. height: 40upx;
  3180. position: absolute;
  3181. right: 0upx;
  3182. top: 0upx;
  3183. color: #FFFFFF;
  3184. }
  3185. .showStatus {
  3186. font-size: 26upx;
  3187. color: #007AFF;
  3188. }
  3189. .personInfo .content .row,
  3190. .advancePayment .content .row {
  3191. height: 80upx;
  3192. border-bottom: 1px solid #F9F9F9;
  3193. flex-wrap: nowrap;
  3194. }
  3195. .personInfo .content .row .left,
  3196. .advancePayment .content .row .left {
  3197. width: 170upx;
  3198. flex-shrink: 0;
  3199. font-size: 28upx;
  3200. }
  3201. .appoint .content .row {
  3202. height: auto;
  3203. margin-top: 10upx;
  3204. }
  3205. .appoint .content .row>view {
  3206. width: 240upx;
  3207. flex-shrink: 1;
  3208. font-size: 28upx;
  3209. }
  3210. .appoint .content .row>textarea {
  3211. /* background: #007AFF; */
  3212. padding: 15upx;
  3213. box-sizing: border-box;
  3214. font-size: 26upx;
  3215. min-height: 160upx;
  3216. height: 100upx;
  3217. border: 1px solid #fafafa;
  3218. /* over */
  3219. }
  3220. .personInfo .content .row .right,
  3221. .advancePayment .content .row .right,
  3222. .appoint .content .row .right {
  3223. font-size: 28upx;
  3224. }
  3225. /* 人员信息End */
  3226. .checkButton {
  3227. font-size: 14px;
  3228. color: #FF5600;
  3229. }
  3230. .uni-popup__wrapper-box {
  3231. display: block;
  3232. position: relative;
  3233. }
  3234. .uni-share {
  3235. display: flex;
  3236. flex-direction: column;
  3237. background-color: #fff;
  3238. position: fixed;
  3239. bottom: 0;
  3240. left: 0;
  3241. right: 0;
  3242. }
  3243. .uni-share-title {
  3244. line-height: 30px;
  3245. font-size: 12px;
  3246. padding: 7px 0;
  3247. text-align: center;
  3248. }
  3249. .uni-share-content {
  3250. display: flex;
  3251. flex-direction: row;
  3252. flex-wrap: wrap;
  3253. justify-content: center;
  3254. padding: 15px;
  3255. }
  3256. .uni-share-content-box {
  3257. display: flex;
  3258. flex-direction: column;
  3259. align-items: center;
  3260. width: 100px;
  3261. }
  3262. .uni-share-content-image {
  3263. display: flex;
  3264. flex-direction: row;
  3265. justify-content: center;
  3266. align-items: center;
  3267. width: 30px;
  3268. height: 30px;
  3269. overflow: hidden;
  3270. border-radius: 5px;
  3271. }
  3272. .uni-share-content-text {
  3273. font-size: 13px;
  3274. color: #333;
  3275. padding-top: 5px;
  3276. padding-bottom: 10px;
  3277. }
  3278. .uni-share-btn {
  3279. height: 45px;
  3280. line-height: 45px;
  3281. font-size: 14px;
  3282. border-top-color: #f5f5f5;
  3283. border-top-width: 1px;
  3284. border-top-style: solid;
  3285. text-align: center;
  3286. color: #666;
  3287. }
  3288. uni-image>img {
  3289. display: block;
  3290. position: absolute;
  3291. top: 0;
  3292. left: 0;
  3293. opacity: 0;
  3294. }
  3295. uni-image>div,
  3296. uni-image>img {
  3297. width: 100%;
  3298. height: 100%;
  3299. }
  3300. .Discount {
  3301. image {
  3302. width: 16px;
  3303. height: 16px;
  3304. }
  3305. text {
  3306. font-size: 12px;
  3307. color: #333333;
  3308. }
  3309. }
  3310. .costDetails {
  3311. width: 100%;
  3312. height: auto;
  3313. background: rgba(0, 82, 255, 0.05);
  3314. border-radius: 10px;
  3315. .text1 {
  3316. font-size: 22rpx;
  3317. }
  3318. .text2 {
  3319. font-size: 24rpx;
  3320. }
  3321. .text2-color {
  3322. color: rgba(0, 82, 255, 0.8);
  3323. }
  3324. }
  3325. .policyInfo {
  3326. .tagHeader {
  3327. font-family: Source Han Sans SC, Source Han Sans SC;
  3328. text {
  3329. position: relative;
  3330. font-weight: bold;
  3331. font-size: 13px;
  3332. color: #333;
  3333. }
  3334. .tag {
  3335. position: absolute;
  3336. left: 0;
  3337. bottom: -1px;
  3338. width: 50%;
  3339. height: 5px;
  3340. background: linear-gradient(90deg, #FF884C 0%, rgba(255, 136, 76, 0) 80%);
  3341. border-radius: 6px;
  3342. }
  3343. }
  3344. .accident {
  3345. width: 75%;
  3346. .dis {
  3347. border-bottom: 1px solid #F8E9E3;
  3348. view {
  3349. border-right: 1px solid #F8E9E3;
  3350. text-align: center;
  3351. padding: 5px 3px;
  3352. }
  3353. }
  3354. }
  3355. .right {
  3356. width: 25%;
  3357. border-right: 1px solid #F8E9E3;
  3358. border-bottom: 1px solid #F8E9E3;
  3359. padding: 5px 3px;
  3360. }
  3361. }
  3362. ::deep {
  3363. .fen {
  3364. background-color: #FBF6FE;
  3365. }
  3366. .baodan {
  3367. .u-th {
  3368. background: #FEF9F6;
  3369. }
  3370. }
  3371. .bili {
  3372. .u-th {
  3373. background: #FEF9F6;
  3374. }
  3375. }
  3376. .feiyong {
  3377. .u-th {
  3378. background: #FEF6F6;
  3379. }
  3380. }
  3381. }
  3382. </style>