quoteDetail.vue 104 KB

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