quoteDetail.vue 103 KB

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