quoteDetail.vue 107 KB

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