quoteDetail.vue 104 KB

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