quoteDetail.vue 105 KB

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