quoteDetail.vue 105 KB

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