quoteDetail.vue 103 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572
  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].superviseCosts}}%</text>
  231. </text>
  232. <text class="text1">跟单比例:<text
  233. class="text2">{{orderInfo.feeOrderNewVo.exportFee[0].otherCostsProportion}}%</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].superviseCostsPremiums">¥{{orderInfo.feeOrderNewVo.exportFee[0].superviseCostsPremiums}}</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].otherCostsPremiums">¥{{orderInfo.feeOrderNewVo.exportFee[0].otherCostsPremiums}}</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].superviseCosts}}%</text>
  309. </text>
  310. <text class="text1">跟单比例:<text
  311. class="text2">{{orderInfo.feeOrderNewVo.exportFee[1].otherCostsProportion}}%</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].superviseCostsPremiums">¥{{orderInfo.feeOrderNewVo.exportFee[1].superviseCostsPremiums}}</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].otherCostsPremiums">¥{{orderInfo.feeOrderNewVo.exportFee[1].otherCostsPremiums}}</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].superviseCosts}}%</text>
  395. </text>
  396. <text class="text1">跟单比例:<text
  397. class="text2">{{orderInfo.feeOrderNewVo.exportFee[2].otherCostsProportion}}%</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].superviseCostsPremiums">¥{{orderInfo.feeOrderNewVo.exportFee[2].superviseCostsPremiums}}</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].otherCostsPremiums">¥{{orderInfo.feeOrderNewVo.exportFee[2].otherCostsPremiums}}</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. if (this.orderstatus == '3') {
  1562. uni.setNavigationBarTitle({
  1563. title: "订单详情"
  1564. })
  1565. }
  1566. },
  1567. methods: {
  1568. ...mapMutations(['setOrderStage', 'setOrderType']),
  1569. //字典name匹配
  1570. dictionaryMatching(list, value) {
  1571. let obj = list.find(val => val.dictValue == value);
  1572. return obj.dictTag;
  1573. },
  1574. async getDicType(type) {
  1575. let res = await this.$http.get('/sysDict/dictDetails/' + type);
  1576. if (res.code == 200) {
  1577. this[type + 'options'] = res.data.ddList;
  1578. // if (type == "trafficManagementVehicleType") {
  1579. //
  1580. // this.carInfo1.cimodelclass = this.dictionaryMatching(this.vehicleTypeoptions,
  1581. // this
  1582. // .carInfo
  1583. // .cimodelclass)
  1584. // }
  1585. }
  1586. },
  1587. ziJincontributingChange(param) {
  1588. this.ziJinengageList = [];
  1589. param.map(val => {
  1590. let list = this.ziJinengageListData.find(item => item.clauseId == val)
  1591. this.ziJinengageList.push({
  1592. clauseCode: list.clauseCode,
  1593. clauseName: list.clauseName,
  1594. clauses: list.clauseContent,
  1595. riskCode: list.riskCode,
  1596. modifyFlag: list.modifyFlag,
  1597. })
  1598. })
  1599. },
  1600. huaTaicontributingChange(param) {
  1601. this.huaTaiengageList = [];
  1602. param.map(val => {
  1603. let list = this.huaTaiengageListData.find(item => item.engageCode == val)
  1604. this.huaTaiengageList.push({
  1605. engageCode: list.engageCode,
  1606. engageDetail: list.engageDetail,
  1607. engageTitle: list.engageTitle,
  1608. riskCode: list.riskCode,
  1609. modifyFlag: list.modifyFlag,
  1610. })
  1611. })
  1612. },
  1613. //阅读并同意协议
  1614. agreed(e) {
  1615. this.agree = e.value;
  1616. },
  1617. toCarInfo() {
  1618. this.navigate({
  1619. url: '/pages/carInsure2/Information',
  1620. success: (res) => {
  1621. res.eventChannel.emit(
  1622. "acceptData", {
  1623. carInfo: this
  1624. .carInfo,
  1625. ownerInfo: this
  1626. .ownerInfo,
  1627. policyHolderInfo: this
  1628. .policyHolderInfo,
  1629. insuredPersonInfo: this
  1630. .insuredPersonInfo,
  1631. riskList: this
  1632. .riskList,
  1633. kindList: this
  1634. .kindList,
  1635. carInfoPositiveList: this
  1636. .carInfoPositiveList, //车辆
  1637. ownerInfoPositiveList: this
  1638. .ownerInfoPositiveList, //车主
  1639. policyHolderInfoPositiveList: this
  1640. .policyHolderInfoPositiveList, //投保
  1641. insuredPersonInfoPositiveList: this
  1642. .insuredPersonInfoPositiveList, //被保人
  1643. })
  1644. }
  1645. }, "navigateTo", true);
  1646. },
  1647. //去选择险种页面
  1648. toInsureItems() {
  1649. console.log();
  1650. this.navigate({
  1651. url: '/pages/carInsure2/insureItems',
  1652. success: (res) => {
  1653. res.eventChannel.emit("acceptData", {
  1654. carInfo: this.carInfo,
  1655. ownerInfo: this.ownerInfo,
  1656. policyHolderInfo: this.policyHolderInfo,
  1657. insuredPersonInfo: this.insuredPersonInfo,
  1658. riskList: this.riskList,
  1659. kindList: this.kindList
  1660. })
  1661. }
  1662. }, "navigateTo", true);
  1663. },
  1664. //删除图片
  1665. delCheckImage(param, IdList, srcList) {
  1666. this[IdList].map((ele, index) => {
  1667. if (param.imageId === ele.imageId) {
  1668. this[IdList].splice(index, 1);
  1669. }
  1670. return ele;
  1671. });
  1672. this[srcList].map((ele, index) => {
  1673. if (param.imageId === ele.imageId) {
  1674. this[srcList].splice(index, 1);
  1675. }
  1676. return ele;
  1677. });
  1678. },
  1679. //影像查询
  1680. async imageEcho(quotenos) {
  1681. let imgres = await this.$http.get('/ins/taskImage/findByQuoteNo?quoteNo=' + quotenos);
  1682. if (imgres.code == "200") {
  1683. Object.keys(imgres.data).forEach((keys) => {
  1684. if (imgres.data[keys].url) {
  1685. imgres.data[keys].url = this.$base.baseUrl + imgres.data[keys].url;
  1686. switch (keys) {
  1687. case 'C01':
  1688. this.carImageListId.push({
  1689. imageId: imgres.data[keys].imageId,
  1690. imageType: imgres.data[keys].imageType,
  1691. })
  1692. this.imgList1.push(imgres.data[keys]);
  1693. break;
  1694. case 'D01':
  1695. this.carImageListId.push({
  1696. imageId: imgres.data[keys].imageId,
  1697. imageType: imgres.data[keys].imageType,
  1698. })
  1699. this.imgList2.push(imgres.data[keys]);
  1700. break;
  1701. case 'C02':
  1702. this.ownerImageListId.push({
  1703. imageId: imgres.data[keys].imageId,
  1704. imageType: imgres.data[keys].imageType,
  1705. })
  1706. this.imgList3.push(imgres.data[keys]);
  1707. break;
  1708. case 'D02':
  1709. this.ownerImageListId.push({
  1710. imageId: imgres.data[keys].imageId,
  1711. imageType: imgres.data[keys].imageType,
  1712. })
  1713. this.imgList4.push(imgres.data[keys]);
  1714. break;
  1715. case 'C03':
  1716. this.policyImageListId.push({
  1717. imageId: imgres.data[keys].imageId,
  1718. imageType: imgres.data[keys].imageType,
  1719. })
  1720. this.imgList5.push(imgres.data[keys]);
  1721. break;
  1722. case 'D03':
  1723. this.policyImageListId.push({
  1724. imageId: imgres.data[keys].imageId,
  1725. imageType: imgres.data[keys].imageType,
  1726. })
  1727. this.imgList6.push(imgres.data[keys]);
  1728. break;
  1729. case 'C04':
  1730. this.insuredImageListId.push({
  1731. imageId: imgres.data[keys].imageId,
  1732. imageType: imgres.data[keys].imageType,
  1733. })
  1734. this.imgList7.push(imgres.data[keys]);
  1735. break;
  1736. case 'D04':
  1737. this.insuredImageListId.push({
  1738. imageId: imgres.data[keys].imageId,
  1739. imageType: imgres.data[keys].imageType,
  1740. })
  1741. this.imgList8.push(imgres.data[keys]);
  1742. break;
  1743. default:
  1744. break;
  1745. }
  1746. }
  1747. });
  1748. }
  1749. },
  1750. async uploadRetry() {
  1751. const mergedArray = [...this.carImageListId, ...this.ownerImageListId, ...this
  1752. .policyImageListId, ...this.insuredImageListId, ...this
  1753. .imgRelationshipid
  1754. ];
  1755. if (mergedArray.length > 0) {
  1756. await this.$http.post('/ins/taskImage/uploadImages', {
  1757. imageList: mergedArray,
  1758. quoteNo: this.quoteno,
  1759. })
  1760. }
  1761. },
  1762. async auditNextconfirm() {
  1763. if (this.modificationFlag) {
  1764. await this.uploadRetry();
  1765. }
  1766. let pro = this.quotationType.themeCode;
  1767. switch (this.name) {
  1768. case "永安财险":
  1769. let yaimage = await this.$http.post(
  1770. '/order/yongAn/submitImage', {
  1771. companyId: this.companyId
  1772. });
  1773. if (yaimage.code == '200') {
  1774. let yaaudit = await this.$http.post(
  1775. '/order/yongAn/audit', {
  1776. companyId: this.companyId,
  1777. jqappoint: "",
  1778. syappoint: ""
  1779. });
  1780. if (yaaudit.code == '200') {
  1781. uni.showModal({
  1782. content: '订单自核成功',
  1783. cancelText: '暂不缴费',
  1784. confirmText: '立即缴费',
  1785. success: (res1) => {
  1786. if (res1.confirm) {
  1787. if (pro == "QD") {
  1788. uni.navigateTo({
  1789. url: "/pages/orders1/paymentCode?companyId=" +
  1790. this
  1791. .companyId
  1792. })
  1793. } else {
  1794. uni.navigateTo({
  1795. url: "/pages/orders1/paymentCode1?companyId=" +
  1796. this
  1797. .companyId
  1798. })
  1799. }
  1800. } else {
  1801. this.navigate({
  1802. url: "/pages/orders1/orders"
  1803. }, "switchTab",
  1804. true);
  1805. }
  1806. }
  1807. });
  1808. } else {
  1809. uni.showModal({
  1810. content: '核保失败(' + yaaudit.msg + ')',
  1811. cancelText: '返回订单',
  1812. confirmText: '修改',
  1813. success: async (res2) => {
  1814. if (res2.confirm) {
  1815. this.navigate({
  1816. url: "/pages/carInsure2/insureItems"
  1817. }, "switchTab",
  1818. true);
  1819. } else {
  1820. this.navigate({
  1821. url: "/pages/orders1/orders"
  1822. }, "switchTab",
  1823. true);
  1824. }
  1825. }
  1826. });
  1827. }
  1828. } else {
  1829. uni.showModal({
  1830. content: '影像上传失败(' + yaimage.msg + ')',
  1831. cancelText: '返回订单',
  1832. confirmText: '修改',
  1833. success: async (res3) => {
  1834. if (res3.confirm) {
  1835. } else {
  1836. this.navigate({
  1837. url: "/pages/orders1/orders"
  1838. }, "switchTab",
  1839. true);
  1840. }
  1841. }
  1842. });
  1843. }
  1844. break;
  1845. case "中煤财险":
  1846. let zmimage = await this.$http.post(
  1847. '/order/zhongMeiApi/submitImage', {
  1848. companyId: this.companyId
  1849. });
  1850. if (zmimage.code == '200') {
  1851. let zmaudit = await this.$http.post(
  1852. '/order/zhongMeiApi/audit', {
  1853. companyId: this.companyId,
  1854. jqappoint: "",
  1855. syappoint: ""
  1856. });
  1857. if (zmaudit.code == '200') {
  1858. uni.showModal({
  1859. content: '订单自核成功',
  1860. cancelText: '暂不缴费',
  1861. confirmText: '立即缴费',
  1862. success: (res1) => {
  1863. if (res1.confirm) {
  1864. if (pro == "QD") {
  1865. uni.navigateTo({
  1866. url: "/pages/orders1/paymentCode?companyId=" +
  1867. this
  1868. .companyId
  1869. })
  1870. } else {
  1871. uni.navigateTo({
  1872. url: "/pages/orders1/paymentCode1?companyId=" +
  1873. this
  1874. .companyId
  1875. })
  1876. }
  1877. } else {
  1878. this.navigate({
  1879. url: "/pages/orders1/orders"
  1880. }, "switchTab",
  1881. true);
  1882. }
  1883. }
  1884. });
  1885. } else {
  1886. uni.showModal({
  1887. content: '核保失败(' + zmaudit.msg + ')',
  1888. cancelText: '返回订单',
  1889. confirmText: '修改',
  1890. success: async (res2) => {
  1891. if (res2.confirm) {
  1892. this.navigate({
  1893. url: "/pages/carInsure2/insureItems"
  1894. }, "switchTab",
  1895. true);
  1896. } else {
  1897. this.navigate({
  1898. url: "/pages/orders1/orders"
  1899. }, "switchTab",
  1900. true);
  1901. }
  1902. }
  1903. });
  1904. }
  1905. } else {
  1906. uni.showModal({
  1907. content: '影像上传失败(' + zmimage.msg + ')',
  1908. cancelText: '返回订单',
  1909. confirmText: '修改',
  1910. success: async (res3) => {
  1911. if (res3.confirm) {
  1912. } else {
  1913. this.navigate({
  1914. url: "/pages/orders1/orders"
  1915. }, "switchTab",
  1916. true);
  1917. }
  1918. }
  1919. });
  1920. }
  1921. break;
  1922. case "永诚财险":
  1923. let ycimage = await this.$http.post(
  1924. '/api/yongCheng/uploadImage', {
  1925. companyId: this.companyId
  1926. });
  1927. if (ycimage.code == '200') {
  1928. let ycaudit = await this.$http.post(
  1929. '/api/yongCheng/audit', {
  1930. companyId: this.companyId,
  1931. });
  1932. if (ycaudit.code == '200') {
  1933. uni.showModal({
  1934. content: '订单自核成功',
  1935. cancelText: '暂不缴费',
  1936. confirmText: '立即缴费',
  1937. success: (res1) => {
  1938. if (res1.confirm) {
  1939. if (pro == "QD") {
  1940. uni.navigateTo({
  1941. url: "/pages/orders1/paymentCode?companyId=" +
  1942. this
  1943. .companyId
  1944. })
  1945. } else {
  1946. uni.navigateTo({
  1947. url: "/pages/orders1/paymentCode1?companyId=" +
  1948. this
  1949. .companyId
  1950. })
  1951. }
  1952. } else {
  1953. this.navigate({
  1954. url: "/pages/orders1/orders"
  1955. }, "switchTab",
  1956. true);
  1957. }
  1958. }
  1959. });
  1960. } else {
  1961. uni.showModal({
  1962. content: '核保失败(' + ycaudit.msg + ')',
  1963. cancelText: '返回订单',
  1964. confirmText: '修改',
  1965. success: async (res2) => {
  1966. if (res2.confirm) {
  1967. this.navigate({
  1968. url: "/pages/carInsure2/insureItems"
  1969. }, "switchTab",
  1970. true);
  1971. } else {
  1972. this.navigate({
  1973. url: "/pages/orders1/orders"
  1974. }, "switchTab",
  1975. true);
  1976. }
  1977. }
  1978. });
  1979. }
  1980. } else {
  1981. uni.showModal({
  1982. content: '影像上传失败(' + ycimage.msg + ')',
  1983. cancelText: '返回订单',
  1984. confirmText: '修改',
  1985. success: async (res3) => {
  1986. if (res3.confirm) {
  1987. } else {
  1988. this.navigate({
  1989. url: "/pages/orders1/orders"
  1990. }, "switchTab",
  1991. true);
  1992. }
  1993. }
  1994. });
  1995. }
  1996. break;
  1997. case "国任财险":
  1998. let grimage = await this.$http.post(
  1999. '/api/guoRen/uploadImage', {
  2000. companyId: this.companyId
  2001. });
  2002. if (grimage.code == '200') {
  2003. let graudit = await this.$http.post(
  2004. '/api/guoRen/audit', {
  2005. companyId: this.companyId,
  2006. });
  2007. if (graudit.code == '200') {
  2008. uni.showModal({
  2009. content: '订单自核成功',
  2010. cancelText: '暂不缴费',
  2011. confirmText: '立即缴费',
  2012. success: (res1) => {
  2013. if (res1.confirm) {
  2014. if (pro == "QD") {
  2015. uni.navigateTo({
  2016. url: "/pages/orders1/paymentCode?companyId=" +
  2017. this
  2018. .companyId
  2019. })
  2020. } else {
  2021. uni.navigateTo({
  2022. url: "/pages/orders1/paymentCode1?companyId=" +
  2023. this
  2024. .companyId
  2025. })
  2026. }
  2027. } else {
  2028. this.navigate({
  2029. url: "/pages/orders1/orders"
  2030. }, "switchTab",
  2031. true);
  2032. }
  2033. }
  2034. });
  2035. } else {
  2036. uni.showModal({
  2037. content: '核保失败(' + graudit.msg + ')',
  2038. cancelText: '返回订单',
  2039. confirmText: '修改',
  2040. success: async (res2) => {
  2041. if (res2.confirm) {
  2042. this.navigate({
  2043. url: "/pages/carInsure2/insureItems"
  2044. }, "switchTab",
  2045. true);
  2046. } else {
  2047. this.navigate({
  2048. url: "/pages/orders1/orders"
  2049. }, "switchTab",
  2050. true);
  2051. }
  2052. }
  2053. });
  2054. }
  2055. } else {
  2056. uni.showModal({
  2057. content: '影像上传失败(' + grimage.msg + ')',
  2058. cancelText: '返回订单',
  2059. confirmText: '修改',
  2060. success: async (res3) => {
  2061. if (res3.confirm) {
  2062. } else {
  2063. this.navigate({
  2064. url: "/pages/orders1/orders"
  2065. }, "switchTab",
  2066. true);
  2067. }
  2068. }
  2069. });
  2070. }
  2071. break;
  2072. case "大家财险":
  2073. let djimage = await this.$http.post(
  2074. '/api/dajia/submitImage', {
  2075. companyId: this.companyId
  2076. });
  2077. if (djimage.code == '200') {
  2078. let djaudit = await this.$http.post(
  2079. '/api/dajia/audit', {
  2080. companyId: this.companyId,
  2081. });
  2082. if (djaudit.code == '200') {
  2083. uni.showModal({
  2084. content: '订单自核成功',
  2085. cancelText: '暂不缴费',
  2086. confirmText: '立即缴费',
  2087. success: (res1) => {
  2088. if (res1.confirm) {
  2089. if (pro == "QD") {
  2090. uni.navigateTo({
  2091. url: "/pages/orders1/paymentCode?companyId=" +
  2092. this
  2093. .companyId
  2094. })
  2095. } else {
  2096. uni.navigateTo({
  2097. url: "/pages/orders1/paymentCode1?companyId=" +
  2098. this
  2099. .companyId
  2100. })
  2101. }
  2102. } else {
  2103. this.navigate({
  2104. url: "/pages/orders1/orders"
  2105. }, "switchTab",
  2106. true);
  2107. }
  2108. }
  2109. });
  2110. } else {
  2111. uni.showModal({
  2112. content: '核保失败(' + djaudit.msg + ')',
  2113. cancelText: '返回订单',
  2114. confirmText: '修改',
  2115. success: async (res2) => {
  2116. if (res2.confirm) {
  2117. this.navigate({
  2118. url: "/pages/carInsure2/insureItems"
  2119. }, "switchTab",
  2120. true);
  2121. } else {
  2122. this.navigate({
  2123. url: "/pages/orders1/orders"
  2124. }, "switchTab",
  2125. true);
  2126. }
  2127. }
  2128. });
  2129. }
  2130. } else {
  2131. uni.showModal({
  2132. content: '影像上传失败(' + djimage.msg + ')',
  2133. cancelText: '返回订单',
  2134. confirmText: '修改',
  2135. success: async (res3) => {
  2136. if (res3.confirm) {
  2137. } else {
  2138. this.navigate({
  2139. url: "/pages/orders1/orders"
  2140. }, "switchTab",
  2141. true);
  2142. }
  2143. }
  2144. });
  2145. }
  2146. break;
  2147. case "紫金财险":
  2148. let zjimage = await this.$http.post(
  2149. '/order/zijin/submitImage', {
  2150. companyId: this.companyId
  2151. });
  2152. if (zjimage.code == '200') {
  2153. let zjaudit = await this.$http.post(
  2154. '/order/zijin/audit', {
  2155. companyId: this.companyId,
  2156. engageList: this.ziJinengageList,
  2157. });
  2158. if (zjaudit.code == '200') {
  2159. uni.showModal({
  2160. content: '订单自核成功',
  2161. cancelText: '暂不缴费',
  2162. confirmText: '立即缴费',
  2163. success: (res1) => {
  2164. if (res1.confirm) {
  2165. if (pro == "QD") {
  2166. uni.navigateTo({
  2167. url: "/pages/orders1/paymentCode?companyId=" +
  2168. this
  2169. .companyId
  2170. })
  2171. } else {
  2172. uni.navigateTo({
  2173. url: "/pages/orders1/paymentCode1?companyId=" +
  2174. this
  2175. .companyId
  2176. })
  2177. }
  2178. } else {
  2179. this.navigate({
  2180. url: "/pages/orders1/orders"
  2181. }, "switchTab",
  2182. true);
  2183. }
  2184. }
  2185. });
  2186. } else {
  2187. uni.showModal({
  2188. content: '核保失败(' + zjaudit.msg + ')',
  2189. cancelText: '返回订单',
  2190. confirmText: '修改',
  2191. success: async (res2) => {
  2192. if (res2.confirm) {
  2193. this.navigate({
  2194. url: "/pages/carInsure2/insureItems"
  2195. }, "switchTab",
  2196. true);
  2197. } else {
  2198. this.navigate({
  2199. url: "/pages/orders1/orders"
  2200. }, "switchTab",
  2201. true);
  2202. }
  2203. }
  2204. });
  2205. }
  2206. } else {
  2207. uni.showModal({
  2208. content: '影像上传失败(' + zjimage.msg + ')',
  2209. cancelText: '返回订单',
  2210. confirmText: '修改',
  2211. success: async (res3) => {
  2212. if (res3.confirm) {
  2213. } else {
  2214. this.navigate({
  2215. url: "/pages/orders1/orders"
  2216. }, "switchTab",
  2217. true);
  2218. }
  2219. }
  2220. });
  2221. }
  2222. break;
  2223. case "华泰财险":
  2224. let apiImage = this.orderInfo.apiType == "2" ? "/insurance/crawler/submitImage" :
  2225. "/order/huaTaiApi/submitImage";
  2226. let htimage = await this.$http.post(
  2227. `${apiImage}`, {
  2228. [this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
  2229. });
  2230. if (htimage.code == '200') {
  2231. let apiAudit = this.orderInfo.apiType == "2" ? "/insurance/crawler/audit" :
  2232. '/order/huaTaiApi/audit';
  2233. let htaudit = await this.$http.post(
  2234. `${apiAudit}`, {
  2235. [this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
  2236. engageList: this.huaTaiengageList,
  2237. });
  2238. if (htaudit.code == '200') {
  2239. uni.showModal({
  2240. content: '订单自核成功',
  2241. cancelText: '暂不缴费',
  2242. confirmText: '立即缴费',
  2243. success: (res1) => {
  2244. if (res1.confirm) {
  2245. if (pro == "QD") {
  2246. uni.navigateTo({
  2247. url: "/pages/orders1/paymentCode?companyId=" +
  2248. this
  2249. .companyId
  2250. })
  2251. } else {
  2252. uni.navigateTo({
  2253. url: "/pages/orders1/paymentCode1?companyId=" +
  2254. this
  2255. .companyId
  2256. })
  2257. }
  2258. } else {
  2259. this.navigate({
  2260. url: "/pages/orders1/orders"
  2261. }, "switchTab",
  2262. true);
  2263. }
  2264. }
  2265. });
  2266. } else {
  2267. uni.showModal({
  2268. content: '核保失败(' + htaudit.msg + ')',
  2269. cancelText: '返回订单',
  2270. confirmText: '修改',
  2271. success: async (res2) => {
  2272. if (res2.confirm) {
  2273. this.navigate({
  2274. url: "/pages/carInsure2/insureItems"
  2275. }, "switchTab",
  2276. true);
  2277. } else {
  2278. this.navigate({
  2279. url: "/pages/orders1/orders"
  2280. }, "switchTab",
  2281. true);
  2282. }
  2283. }
  2284. });
  2285. }
  2286. } else {
  2287. uni.showModal({
  2288. content: '影像上传失败(' + htimage.msg + ')',
  2289. cancelText: '返回订单',
  2290. confirmText: '修改',
  2291. success: async (res3) => {
  2292. if (res3.confirm) {
  2293. } else {
  2294. this.navigate({
  2295. url: "/pages/orders1/orders"
  2296. }, "switchTab",
  2297. true);
  2298. }
  2299. }
  2300. });
  2301. }
  2302. break;
  2303. case "渤海财险":
  2304. let bhimage = await this.$http.post(
  2305. '/order/boHaiApi/submitImage', {
  2306. companyId: this.companyId
  2307. });
  2308. if (bhimage.code == '200') {
  2309. let bhaudit = await this.$http.post(
  2310. '/order/boHaiApi/audit', {
  2311. companyId: this.companyId,
  2312. jqappoint: "",
  2313. syappoint: ""
  2314. });
  2315. if (bhaudit.code == '200') {
  2316. uni.showModal({
  2317. content: '订单自核成功',
  2318. cancelText: '暂不缴费',
  2319. confirmText: '立即缴费',
  2320. success: (res1) => {
  2321. if (res1.confirm) {
  2322. if (pro == "QD") {
  2323. uni.navigateTo({
  2324. url: "/pages/orders1/paymentCode?companyId=" +
  2325. this
  2326. .companyId
  2327. })
  2328. } else {
  2329. uni.navigateTo({
  2330. url: "/pages/orders1/paymentCode1?companyId=" +
  2331. this
  2332. .companyId
  2333. })
  2334. }
  2335. } else {
  2336. this.navigate({
  2337. url: "/pages/orders1/orders"
  2338. }, "switchTab",
  2339. true);
  2340. }
  2341. }
  2342. });
  2343. } else {
  2344. uni.showModal({
  2345. content: '核保失败(' + bhaudit.msg + ')',
  2346. cancelText: '返回订单',
  2347. confirmText: '修改',
  2348. success: async (res2) => {
  2349. if (res2.confirm) {
  2350. this.navigate({
  2351. url: "/pages/carInsure2/insureItems"
  2352. }, "switchTab",
  2353. true);
  2354. } else {
  2355. this.navigate({
  2356. url: "/pages/orders1/orders"
  2357. }, "switchTab",
  2358. true);
  2359. }
  2360. }
  2361. });
  2362. }
  2363. } else {
  2364. uni.showModal({
  2365. content: '影像上传失败(' + bhimage.msg + ')',
  2366. cancelText: '返回订单',
  2367. confirmText: '修改',
  2368. success: async (res3) => {
  2369. if (res3.confirm) {
  2370. } else {
  2371. this.navigate({
  2372. url: "/pages/orders1/orders"
  2373. }, "switchTab",
  2374. true);
  2375. }
  2376. }
  2377. });
  2378. }
  2379. break;
  2380. case "恒邦财险":
  2381. case "安盛天平":
  2382. case "众安财险":
  2383. case "中国人寿":
  2384. case "太平财险":
  2385. case "华农财险":
  2386. let pythonimage = await this.$http.post(
  2387. '/insurance/crawler/submitImage', {
  2388. subOrderNo: this.companyId
  2389. });
  2390. if (pythonimage.code == '200') {
  2391. let pythonaudit = await this.$http.post(
  2392. '/insurance/crawler/audit', {
  2393. subOrderNo: this.companyId,
  2394. });
  2395. if (pythonaudit.code == '200') {
  2396. uni.showModal({
  2397. content: '订单自核成功',
  2398. cancelText: '暂不缴费',
  2399. confirmText: '立即缴费',
  2400. success: (res1) => {
  2401. if (res1.confirm) {
  2402. if (pro == "QD") {
  2403. uni.navigateTo({
  2404. url: "/pages/orders1/paymentCode?companyId=" +
  2405. this
  2406. .companyId
  2407. })
  2408. } else {
  2409. uni.navigateTo({
  2410. url: "/pages/orders1/paymentCode1?companyId=" +
  2411. this
  2412. .companyId
  2413. })
  2414. }
  2415. } else {
  2416. this.navigate({
  2417. url: "/pages/orders1/orders"
  2418. }, "switchTab",
  2419. true);
  2420. }
  2421. }
  2422. });
  2423. } else {
  2424. uni.showModal({
  2425. content: '核保失败(' + pythonaudit.msg + ')',
  2426. cancelText: '返回订单',
  2427. confirmText: '修改',
  2428. success: async (res2) => {
  2429. if (res2.confirm) {
  2430. this.navigate({
  2431. url: "/pages/carInsure2/insureItems"
  2432. }, "switchTab",
  2433. true);
  2434. } else {
  2435. this.navigate({
  2436. url: "/pages/orders1/orders"
  2437. }, "switchTab",
  2438. true);
  2439. }
  2440. }
  2441. });
  2442. }
  2443. } else {
  2444. uni.showModal({
  2445. content: '影像上传失败(' + pythonimage.msg + ')',
  2446. cancelText: '返回订单',
  2447. confirmText: '修改',
  2448. success: async (res3) => {
  2449. if (res3.confirm) {
  2450. } else {
  2451. this.navigate({
  2452. url: "/pages/orders1/orders"
  2453. }, "switchTab",
  2454. true);
  2455. }
  2456. }
  2457. });
  2458. }
  2459. break;
  2460. }
  2461. },
  2462. // 上传影像并提交核保
  2463. async submitAudit() {
  2464. // if (!this.agree) {
  2465. // return uni.showToast({
  2466. // title: '请阅读并同意协议',
  2467. // icon: "none",
  2468. // duration: 2000
  2469. // });
  2470. // }
  2471. this.auditNextShow = true;
  2472. },
  2473. async chooseImage(type, imageIdList, imgurl) {
  2474. let [chooseImageErr, chooseImageRes] = await uni.chooseImage({
  2475. count: 1,
  2476. sizeType: ['compressed']
  2477. });
  2478. chooseImageRes.tempFilePaths.map((ele, index) => {
  2479. uni.uploadFile({
  2480. url: this.$base.baseUrl + '/ins/taskImage/uploadFile',
  2481. filePath: ele,
  2482. name: "multipartFile",
  2483. formData: {
  2484. 'type': 'image',
  2485. },
  2486. header: {
  2487. Authorization: this.token,
  2488. },
  2489. success: async (imgRes) => {
  2490. let data = JSON.parse(imgRes.data);
  2491. data.data.url = this.$base.baseUrl + data.data.url;
  2492. if (data.code == "200") {
  2493. console.log()
  2494. if (this[imageIdList].some(v => v.imageType == type)) {
  2495. this[imageIdList].map(val => {
  2496. if (val.imageType == type) {
  2497. val.imageId = data.data.id;
  2498. }
  2499. })
  2500. } else {
  2501. this[imageIdList].push({
  2502. imageId: data.data.id,
  2503. imageType: type,
  2504. })
  2505. }
  2506. this[imgurl].push(data.data)
  2507. this.modificationFlag = true;
  2508. }
  2509. }
  2510. });
  2511. })
  2512. },
  2513. //影像预览
  2514. previewImage(e, type) {
  2515. this.previewImgs = this[type];
  2516. var current = e.currentTarget.dataset.src;
  2517. this.$refs.previewImage.open(current); // 传入当前选中的图片地址或序号
  2518. },
  2519. //查询电子保单
  2520. async yonganprint() {
  2521. this.policyList = [];
  2522. this.policyList1 = [];
  2523. let res = await this.$http.post('/order/yongAn/getPolicyPrint', {
  2524. companyId: this.companyId,
  2525. policytype: "jq"
  2526. }); //永安
  2527. if (res.data) {
  2528. let result = res.data.replace(/[\r\n]/g, "");
  2529. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2530. base64ToPath(pdfBase64)
  2531. .then(path => {
  2532. this.policyList.push({
  2533. fileTitle: "交强电子保单",
  2534. filename: this.orderInfo.jqpolicyno,
  2535. fileurl: path,
  2536. })
  2537. })
  2538. }
  2539. let res1 = await this.$http.post('/order/yongAn/getPolicyPrint2', {
  2540. companyId: this.companyId,
  2541. policytype: "jq"
  2542. }); //永安
  2543. if (res1.data) {
  2544. let result = res1.data.replace(/[\r\n]/g, "");
  2545. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2546. base64ToPath(pdfBase64)
  2547. .then(path => {
  2548. this.policyList1.push({
  2549. fileTitle: "交强电子标志",
  2550. filename: this.orderInfo.jqpolicyno,
  2551. fileurl: path,
  2552. })
  2553. })
  2554. }
  2555. if (this.orderInfo.sypolicyno) {
  2556. let res2 = await this.$http.post('/order/yongAn/getPolicyPrint2', {
  2557. companyId: this.companyId,
  2558. policytype: "sy"
  2559. }); //永安
  2560. if (res2.data) {
  2561. let result = res1.data.replace(/[\r\n]/g, "");
  2562. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2563. base64ToPath(pdfBase64)
  2564. .then(path => {
  2565. this.policyList.push({
  2566. fileTitle: "商业电子保单",
  2567. filename: this.orderInfo.sypolicyno,
  2568. fileurl: path,
  2569. })
  2570. })
  2571. }
  2572. }
  2573. },
  2574. async zhongMeigetPolicyPrint() {
  2575. this.policyList = [];
  2576. this.policyList1 = [];
  2577. if (this.orderInfo.jqpolicyno) {
  2578. let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  2579. companyId: this.companyId,
  2580. riskCode: "0507",
  2581. type: '2', //2:保单
  2582. });
  2583. if (res.code == '200') {
  2584. this.policyList.push({
  2585. fileTitle: "交强电子保单",
  2586. filename: this.orderInfo.jqpolicyno,
  2587. fileurl: res.data[0],
  2588. })
  2589. }
  2590. let res1 = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  2591. companyId: this.companyId,
  2592. riskCode: "0507",
  2593. type: '1', //1:标志
  2594. });
  2595. if (res1.code == '200') {
  2596. this.policyList1.push({
  2597. fileTitle: "交强电子标志",
  2598. filename: this.orderInfo.jqpolicyno,
  2599. fileurl: res1.data[0],
  2600. })
  2601. }
  2602. }
  2603. if (this.orderInfo.sypolicyno) {
  2604. let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
  2605. companyId: this.companyId,
  2606. riskCode: "0510",
  2607. type: '2', //2:标志
  2608. });
  2609. if (res.code == '200') {
  2610. this.policyList.push({
  2611. fileTitle: "商业电子保单",
  2612. filename: this.orderInfo.sypolicyno,
  2613. fileurl: res.data[0],
  2614. })
  2615. }
  2616. }
  2617. },
  2618. async yongChenggetPolicyPrint() {
  2619. this.policyList = [];
  2620. this.policyList1 = [];
  2621. let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
  2622. companyId: this.companyId,
  2623. riskCode: "0507",
  2624. type: '2', //2:保单
  2625. }); //永诚财险
  2626. if (res.code == '200') {
  2627. this.policyList.push({
  2628. fileTitle: "交强电子保单",
  2629. filename: this.orderInfo.jqpolicyno,
  2630. fileurl: res.data.jqUrl,
  2631. })
  2632. if (res.data.jqFlagUrl) {
  2633. this.policyList1.push({
  2634. fileTitle: "交强电子标志",
  2635. filename: this.orderInfo.jqpolicyno,
  2636. fileurl: res.data.jqFlagUrl,
  2637. })
  2638. }
  2639. }
  2640. if (this.orderInfo.sypolicyno) {
  2641. let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
  2642. companyId: this.companyId,
  2643. riskCode: "0510",
  2644. type: '2', //2:保单
  2645. }); //永诚财险
  2646. if (res.code == '200') {
  2647. this.policyList.push({
  2648. fileTitle: "商业电子保单",
  2649. filename: this.orderInfo.sypolicyno,
  2650. fileurl: res.data.syUrl,
  2651. });
  2652. }
  2653. }
  2654. if (this.orderInfo.crossInsurance.length > 0) {
  2655. this.orderInfo.crossInsurance.map(async ele => {
  2656. let res = await this.$http.post('/api/yongCheng/getPolicyPrint', {
  2657. companyId: this.companyId,
  2658. policyNumber: ele.policyNumber,
  2659. riskCode: "0513",
  2660. type: '2', //2:保单
  2661. });
  2662. if (res.code == '200') {
  2663. this.policyList.push({
  2664. fileTitle: "驾意险保单",
  2665. filename: ele.policyNumber,
  2666. fileurl: res.data.jyUrl,
  2667. })
  2668. }
  2669. })
  2670. }
  2671. },
  2672. //爬虫电子保单统一调用
  2673. async pythonprint() {
  2674. if (this.orderInfo.jqpolicyno) {
  2675. let params = {
  2676. subOrderNo: this.companyId,
  2677. };
  2678. let res1 = await this.$http.post('/insurance/crawler/getPolicyPrint', params);
  2679. if (res1.code == '200') {
  2680. this.policyList = [];
  2681. this.policyList1 = [];
  2682. this.policyList.push({
  2683. fileTitle: "交强电子保单",
  2684. filename: this.orderInfo.jqpolicyno,
  2685. fileurl: res1.data.jqxPolicyUrl,
  2686. })
  2687. this.policyList1.push({
  2688. fileTitle: "交强电子标志",
  2689. filename: this.orderInfo.jqpolicyno,
  2690. fileurl: res1.data.jqxFlagUrl,
  2691. })
  2692. if (res1.data.syxPolicyUrl) {
  2693. this.policyList.push({
  2694. fileTitle: "商业电子保单",
  2695. filename: this.orderInfo.sypolicyno,
  2696. fileurl: res1.data.syxPolicyUrl,
  2697. });
  2698. }
  2699. if (res1.data.jyxInfoList.length > 0) {
  2700. res1.data.jyxInfoList.map(ele => {
  2701. this.policyList.push({
  2702. fileTitle: "驾意险保单",
  2703. filename: ele.application,
  2704. fileurl: ele.jyx_policy_url,
  2705. });
  2706. return ele;
  2707. })
  2708. }
  2709. }
  2710. }
  2711. },
  2712. async ziJingetPolicyPrint() {
  2713. this.policyList = [];
  2714. this.policyList1 = [];
  2715. if (this.orderInfo.jqpolicyno) {
  2716. let res = await this.$http.post('/order/zijin/getPolicyPrint', {
  2717. companyId: this.companyId,
  2718. riskCode: "0507",
  2719. type: '2', //2:保单
  2720. });
  2721. if (res.code == '200') {
  2722. this.policyList.push({
  2723. fileTitle: "交强电子保单",
  2724. filename: this.orderInfo.jqpolicyno,
  2725. fileurl: res.data,
  2726. })
  2727. }
  2728. let res1 = await this.$http.post('/order/zijin/getPolicyPrint', {
  2729. companyId: this.companyId,
  2730. riskCode: "0507",
  2731. type: '1', //1:标志
  2732. });
  2733. if (res1.code == '200') {
  2734. this.policyList1.push({
  2735. fileTitle: "交强电子标志",
  2736. filename: this.orderInfo.jqpolicyno,
  2737. fileurl: res1.data,
  2738. })
  2739. }
  2740. }
  2741. if (this.orderInfo.sypolicyno) {
  2742. let res = await this.$http.post('/order/zijin/getPolicyPrint', {
  2743. companyId: this.companyId,
  2744. riskCode: "0510",
  2745. type: '2', //2:标志
  2746. });
  2747. if (res.code == '200') {
  2748. this.policyList.push({
  2749. fileTitle: "商业电子保单",
  2750. filename: this.orderInfo.sypolicyno,
  2751. fileurl: res.data,
  2752. })
  2753. }
  2754. }
  2755. if (this.orderInfo.crossInsurance.length > 0) {
  2756. this.orderInfo.crossInsurance.map(async ele => {
  2757. let res = await this.$http.post('/order/zijin/getPolicyPrint', {
  2758. companyId: this.companyId,
  2759. policyNumber: ele.policyNumber,
  2760. riskCode: "0513",
  2761. type: '2', //2:保单
  2762. });
  2763. if (res.code == '200') {
  2764. this.policyList.push({
  2765. fileTitle: "驾意险保单",
  2766. filename: ele.policyNumber,
  2767. fileurl: res.data,
  2768. })
  2769. }
  2770. })
  2771. }
  2772. },
  2773. async daJiagetPolicyPrint() {
  2774. this.policyList = [];
  2775. this.policyList1 = [];
  2776. if (this.orderInfo.jqpolicyno) {
  2777. let res = await this.$http.post('/api/dajia/obtainWarranty', {
  2778. companyId: this.companyId,
  2779. riskCode: "0507",
  2780. type: '2', //2:保单
  2781. });
  2782. if (res.code == '200') {
  2783. this.policyList.push({
  2784. fileTitle: "交强电子保单",
  2785. filename: this.orderInfo.jqpolicyno,
  2786. fileurl: res.data,
  2787. })
  2788. }
  2789. let res1 = await this.$http.post('/api/dajia/obtainWarranty', {
  2790. companyId: this.companyId,
  2791. riskCode: "0507",
  2792. type: '1', //1:标志
  2793. });
  2794. if (res1.code == '200') {
  2795. this.policyList1.push({
  2796. fileTitle: "交强电子标志",
  2797. filename: this.orderInfo.jqpolicyno,
  2798. fileurl: res1.data,
  2799. })
  2800. }
  2801. if (this.orderInfo.sypolicyno) {
  2802. let res = await this.$http.post('/api/dajia/obtainWarranty', {
  2803. companyId: this.companyId,
  2804. riskCode: "0510",
  2805. type: '2', //2:标志
  2806. });
  2807. if (res.code == '200') {
  2808. this.policyList.push({
  2809. fileTitle: "商业电子保单",
  2810. filename: this.orderInfo.sypolicyno,
  2811. fileurl: res.data,
  2812. })
  2813. }
  2814. }
  2815. }
  2816. },
  2817. async huaTaigetPolicyPrint() {
  2818. let apiType = this.orderInfo.apiType;
  2819. switch (apiType) {
  2820. case 1:
  2821. if (this.orderInfo.jqpolicyno) {
  2822. let res = await this.$http.post('/order/huaTaiApi/getPolicyPrint', {
  2823. companyId: this.companyId,
  2824. riskCode: "0507",
  2825. });
  2826. if (res.code == '200') {
  2827. this.policyList = [];
  2828. this.policyList1 = [];
  2829. this.policyList.push({
  2830. fileTitle: "交强电子保单",
  2831. filename: this.orderInfo.jqpolicyno,
  2832. fileurl: res.data.jqxPolicyUrl,
  2833. })
  2834. this.policyList1.push({
  2835. fileTitle: "交强电子标志",
  2836. filename: this.orderInfo.jqpolicyno,
  2837. fileurl: res.data.jqxFlagUrl,
  2838. })
  2839. if (res.data.syxPolicyUrl) {
  2840. this.policyList.push({
  2841. fileTitle: "商业电子保单",
  2842. filename: this.orderInfo.sypolicyno,
  2843. fileurl: res.data.syxPolicyUrl,
  2844. });
  2845. }
  2846. }
  2847. }
  2848. break;
  2849. case 2:
  2850. if (this.orderInfo.jqpolicyno) {
  2851. let params = {
  2852. subOrderNo: this.companyId,
  2853. };
  2854. let res1 = await this.$http.post('/insurance/crawler/getPolicyPrint', params);
  2855. if (res1.code == '200') {
  2856. this.policyList = [];
  2857. this.policyList1 = [];
  2858. this.policyList.push({
  2859. fileTitle: "交强电子保单",
  2860. filename: this.orderInfo.jqpolicyno,
  2861. fileurl: res1.data.jqxPolicyUrl,
  2862. })
  2863. this.policyList1.push({
  2864. fileTitle: "交强电子标志",
  2865. filename: this.orderInfo.jqpolicyno,
  2866. fileurl: res1.data.jqxFlagUrl,
  2867. })
  2868. if (res1.data.syxPolicyUrl) {
  2869. this.policyList.push({
  2870. fileTitle: "商业电子保单",
  2871. filename: this.orderInfo.sypolicyno,
  2872. fileurl: res1.data.syxPolicyUrl,
  2873. });
  2874. }
  2875. if (res1.data.jyxInfoList.length > 0) {
  2876. res1.data.jyxInfoList.map(ele => {
  2877. this.policyList.push({
  2878. fileTitle: "驾意险保单",
  2879. filename: ele.application,
  2880. fileurl: ele.jyx_policy_url,
  2881. });
  2882. return ele;
  2883. })
  2884. }
  2885. }
  2886. }
  2887. break;
  2888. }
  2889. },
  2890. async guoRengetPolicyPrint() {
  2891. this.policyList = [];
  2892. this.policyList1 = [];
  2893. if (this.orderInfo.jqpolicyno) {
  2894. let res = await this.$http.post('/api/guoRen/policyPrint', {
  2895. companyId: this.companyId,
  2896. riskCode: "0507",
  2897. type: '2', //2:保单
  2898. });
  2899. if (res.code == '200') {
  2900. this.policyList.push({
  2901. fileTitle: "交强电子保单",
  2902. filename: this.orderInfo.jqpolicyno,
  2903. fileurl: res.data,
  2904. })
  2905. }
  2906. let res1 = await this.$http.post('/api/guoRen/policyPrint', {
  2907. companyId: this.companyId,
  2908. riskCode: "0507",
  2909. type: '1', //1:标志
  2910. });
  2911. if (res1.code == '200') {
  2912. this.policyList1.push({
  2913. fileTitle: "交强电子标志",
  2914. filename: this.orderInfo.jqpolicyno,
  2915. fileurl: res1.data,
  2916. })
  2917. }
  2918. }
  2919. if (this.orderInfo.sypolicyno) {
  2920. let res = await this.$http.post('/api/guoRen/policyPrint', {
  2921. companyId: this.companyId,
  2922. riskCode: "0510",
  2923. type: '2', //2:标志
  2924. });
  2925. if (res.code == '200') {
  2926. this.policyList.push({
  2927. fileTitle: "商业电子保单",
  2928. filename: this.orderInfo.sypolicyno,
  2929. fileurl: res.data,
  2930. })
  2931. }
  2932. }
  2933. if (this.orderInfo.crossInsurance.length > 0) {
  2934. this.orderInfo.crossInsurance.map(async ele => {
  2935. let res = await this.$http.post('/api/guoRen/policyPrint', {
  2936. companyId: this.companyId,
  2937. policyNumber: ele.policyNumber,
  2938. riskCode: "0513",
  2939. type: '2', //2:保单
  2940. });
  2941. if (res.code == '200') {
  2942. this.policyList.push({
  2943. fileTitle: "驾意险保单",
  2944. filename: ele.policyNumber,
  2945. fileurl: res.data,
  2946. })
  2947. }
  2948. })
  2949. }
  2950. },
  2951. downloadPolicy(file) {
  2952. //#ifdef APP-PLUS
  2953. uni.showLoading({
  2954. title: '文件下载中'
  2955. });
  2956. let index = file.lastIndexOf("\/")
  2957. let licensename = file.substring(index + 1, file.length)
  2958. let dtask = plus.downloader.createDownload(file, {
  2959. filename: "_downloads/" + this.name + '-' + this.insuredPersonInfo.name + '-' + licensename
  2960. }, function(d, status) {
  2961. if (status == 200) {
  2962. uni.hideLoading()
  2963. //下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
  2964. let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
  2965. plus.runtime.openFile(d.filename); //选择软件打开文件
  2966. } else {
  2967. uni.hideLoading()
  2968. //下载失败
  2969. plus.downloader.clear(); //清除下载任务
  2970. }
  2971. })
  2972. dtask.start();
  2973. //#endif
  2974. //#ifdef H5
  2975. var win = window.open();
  2976. win.document.write(
  2977. '<body style="margin:0px;"><object data="' +
  2978. file +
  2979. '" type="application/pdf" width="100%" height="100%"><iframe src="' +
  2980. file +
  2981. '" scrolling="no" width="100%" height="100%" frameborder="0" ></iframe></object></body>'
  2982. );
  2983. //#endif
  2984. },
  2985. //选择缴费方式
  2986. openPayWay() {
  2987. this.navigate({
  2988. url: "/pages/carInsure/payWay?orderno=" + this.orderno
  2989. }, 'navigateTo', true)
  2990. },
  2991. cancelShare() {
  2992. this.$refs.showshare.close()
  2993. },
  2994. //控制详情的展开和收起
  2995. controlShow(type) {
  2996. this[type] = !this[type];
  2997. },
  2998. //撤销核保
  2999. cancelUnderwriting() {
  3000. uni.showModal({
  3001. content: '是否确认撤销核保?',
  3002. success: async (res) => {
  3003. if (res.confirm) {
  3004. let param = {
  3005. "auditid": this.userInfo.sysUser.id, //核保人会员号
  3006. "auditopinion": '', //核保意见
  3007. "jqapplyno": "", //交强险投保单号
  3008. "jqappoint": "", //交强特别约定
  3009. "jqpolicyno": "", //交强保单号
  3010. "orderno": this.orderno, //订单号
  3011. "orderstatus": "0", //订单类型
  3012. "syapplyno": "", //商业险投保单号
  3013. "syappoint": "", //商业险特别约定
  3014. "sypolicyno": "" //商业保单号
  3015. }
  3016. let res = await this.$http.post('/insOrder/saveAudit', param);
  3017. uni.showToast({
  3018. title: '撤销成功',
  3019. icon: "none",
  3020. duration: 2000
  3021. });
  3022. setTimeout(() => {
  3023. this.setOrderStage(0);
  3024. this.setOrderType(0);
  3025. this.navigate({
  3026. url: "/pages/orders1/orders"
  3027. }, "switchTab", true);
  3028. }, 2000);
  3029. } else if (res.cancel) {
  3030. console.log('用户点击取消');
  3031. }
  3032. }
  3033. });
  3034. },
  3035. toChinesNum(num) {
  3036. let overWan = Math.floor(num / 10000);
  3037. let result = overWan + "万";
  3038. return result;
  3039. },
  3040. }
  3041. }
  3042. </script>
  3043. <style lang="scss" scoped>
  3044. @import '@/style/mixin.scss';
  3045. .page {
  3046. background: #F8FAFE;
  3047. padding: 0 16px 100px 16px;
  3048. }
  3049. .headers {
  3050. padding: 16px 16px 0 16px;
  3051. position: relative;
  3052. .price {
  3053. width: 100%;
  3054. height: 40px;
  3055. background: #FFFFFF;
  3056. border-radius: 6px 6px 0px 0px;
  3057. }
  3058. }
  3059. .header {
  3060. height: 80upx;
  3061. position: relative;
  3062. }
  3063. .header .title {
  3064. font-size: 30upx;
  3065. font-weight: bold;
  3066. }
  3067. .welfare {
  3068. margin-bottom: 20upx;
  3069. width: 100%;
  3070. box-sizing: border-box;
  3071. background: #FFFFFF;
  3072. border-radius: 20upx;
  3073. }
  3074. .welfare .body {
  3075. padding: 0 30upx 30upx;
  3076. box-sizing: border-box;
  3077. flex-wrap: wrap;
  3078. }
  3079. .welfare .body>.welfareItem {
  3080. width: 320upx;
  3081. height: 120upx;
  3082. padding: 10upx 20upx;
  3083. margin: 20upx 10upx 0upx;
  3084. border: 1px solid rgba($themeColor, 0.6);
  3085. box-sizing: border-box;
  3086. background: rgba($themeColor, 0.4);
  3087. border-radius: 10upx;
  3088. }
  3089. .welfare .body>.welfareItem .name {
  3090. color: $themeColor;
  3091. font-size: 30upx;
  3092. width: 210upx;
  3093. overflow: hidden;
  3094. text-overflow: ellipsis;
  3095. white-space: nowrap;
  3096. }
  3097. .welfare .body>.welfareItem .content {
  3098. font-size: 24upx;
  3099. width: 260upx;
  3100. overflow: hidden;
  3101. text-overflow: ellipsis;
  3102. white-space: nowrap;
  3103. }
  3104. /* 报价方案Start */
  3105. .quotePlan {
  3106. margin-bottom: 20upx;
  3107. width: 100%;
  3108. position: relative;
  3109. }
  3110. .quotePlan .header .adjustPlan {
  3111. color: $themeColor;
  3112. }
  3113. .kindList {
  3114. background-color: #F9F9F9;
  3115. padding: 10px;
  3116. height: auto;
  3117. width: 100%;
  3118. border-radius: 10px;
  3119. font-size: 13px;
  3120. color: rgba(35, 40, 50, 0.8);
  3121. }
  3122. .quotePlan .body .insurance {
  3123. padding-bottom: 20upx;
  3124. }
  3125. .quotePlan .body .row {
  3126. padding: 5px;
  3127. border-bottom: 1px solid #F3F3F3;
  3128. }
  3129. .quotePlan .body .row:last-child {
  3130. border: none;
  3131. }
  3132. .quotePlan .body .row .date {
  3133. color: #A4A4A4;
  3134. font-size: 22upx;
  3135. }
  3136. .quotePlan .body .insurance .kindList {
  3137. background: #F3F3F3;
  3138. padding: 0 10upx;
  3139. }
  3140. .addedServices .kindList {
  3141. background: #F3F3F3;
  3142. padding: 0 10upx;
  3143. }
  3144. .quotePlan .body .insurance .kindList .kindItem {
  3145. padding: 2px 0;
  3146. }
  3147. .quotePlan .body .insurance .kindList .kindItem>view {
  3148. font-size: 24upx;
  3149. }
  3150. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(1) {
  3151. width: 310upx;
  3152. }
  3153. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(2) {
  3154. width: 170upx;
  3155. }
  3156. .quotePlan .body .insurance .kindList .kindItem>view:nth-of-type(3) {
  3157. width: 170upx;
  3158. }
  3159. .addedServices .kindList .kindItem {
  3160. height: 65upx;
  3161. }
  3162. .addedServices .kindList .kindItem>view {
  3163. font-size: 24upx;
  3164. padding: 0upx 15upx;
  3165. }
  3166. /* 报价方案End */
  3167. .car {
  3168. width: 100%;
  3169. padding: 0upx 10px 0;
  3170. background-color: #fff;
  3171. border-radius: 6px;
  3172. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3173. margin-top: 10px;
  3174. position: relative;
  3175. .body {
  3176. .row {
  3177. padding: 5px;
  3178. border-bottom: 1px solid #F3F3F3;
  3179. }
  3180. .row:last-child {
  3181. border: none;
  3182. }
  3183. }
  3184. }
  3185. /* 预缴费Start */
  3186. .advancePaymentTotal {
  3187. margin-bottom: 20upx;
  3188. width: 100%;
  3189. box-sizing: border-box;
  3190. background: #FFFFFF;
  3191. border-radius: 20upx;
  3192. }
  3193. .advancePaymentTotal .body {
  3194. padding: 0upx 40upx 10upx;
  3195. }
  3196. .advancePaymentTotal .body .row {
  3197. height: 80upx;
  3198. border-bottom: 1px solid #F3F3F3;
  3199. }
  3200. /* 预缴费End */
  3201. /* 底部按钮Start */
  3202. .bottomBtn {
  3203. position: fixed;
  3204. bottom: 0;
  3205. left: 0;
  3206. right: 0;
  3207. height: auto;
  3208. z-index: 999;
  3209. background-color: #fff;
  3210. .agree {
  3211. padding: 4px 8px;
  3212. font-size: 22rpx;
  3213. color: #858585;
  3214. .tip {
  3215. color: #FF5600;
  3216. margin: 0upx 10upx;
  3217. }
  3218. }
  3219. .btnView {
  3220. width: 100%;
  3221. height: 38px;
  3222. background-color: #fff;
  3223. .btn {
  3224. height: 100%;
  3225. }
  3226. .btn:nth-child(1) {
  3227. width: 50%;
  3228. background-color: #E6EEFF;
  3229. color: #0052FF;
  3230. padding: 8px;
  3231. font-size: 13px;
  3232. }
  3233. .btn:nth-child(2) {
  3234. width: 50%;
  3235. color: #fff;
  3236. background-color: #0038AF;
  3237. font-weight: bold;
  3238. }
  3239. }
  3240. }
  3241. .tool {
  3242. padding: 10px;
  3243. view {
  3244. width: 100%;
  3245. padding: 8px 0;
  3246. border-bottom: 1px solid #f2f2f2;
  3247. font-size: 14px;
  3248. color: #232832;
  3249. }
  3250. }
  3251. .cancell {
  3252. width: 100%;
  3253. height: 46px;
  3254. background-color: #E6EEFF;
  3255. font-size: 16px;
  3256. color: #0052FF;
  3257. }
  3258. /* 底部按钮End */
  3259. .contributing {
  3260. width: 100%;
  3261. margin: 4px 0;
  3262. font-size: 14px;
  3263. text:nth-child(1) {
  3264. font-weight: bold;
  3265. color: #ff9000;
  3266. }
  3267. }
  3268. /* 人员信息Start */
  3269. .personInfo,
  3270. .advancePayment,
  3271. .imageInfo,
  3272. .appoint {}
  3273. .personInfo,
  3274. .advancePayment,
  3275. .imageInfo,
  3276. .appoint {
  3277. .title {
  3278. height: 80upx;
  3279. font-size: 15px;
  3280. box-shadow: inset 0 -3upx 0px #fafafa;
  3281. }
  3282. .content {
  3283. padding: 0px 5px 0;
  3284. background-color: #fff;
  3285. border-radius: 6px;
  3286. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3287. }
  3288. .uni-uploader {
  3289. padding: 8px;
  3290. background-color: #fff;
  3291. border-radius: 6px;
  3292. height: auto;
  3293. box-shadow: 0px 4px 10px 0px #DAE3F4;
  3294. }
  3295. }
  3296. .uni-uploader__file {
  3297. position: relative;
  3298. }
  3299. .delImgIcon {
  3300. width: 40upx;
  3301. height: 40upx;
  3302. position: absolute;
  3303. right: 0upx;
  3304. top: 0upx;
  3305. color: #FFFFFF;
  3306. }
  3307. .showStatus {
  3308. font-size: 26upx;
  3309. color: #007AFF;
  3310. }
  3311. .personInfo .content .row,
  3312. .advancePayment .content .row {
  3313. height: 80upx;
  3314. border-bottom: 1px solid #F9F9F9;
  3315. flex-wrap: nowrap;
  3316. }
  3317. .personInfo .content .row .left,
  3318. .advancePayment .content .row .left {
  3319. width: 170upx;
  3320. flex-shrink: 0;
  3321. font-size: 28upx;
  3322. }
  3323. .appoint .content .row {
  3324. height: auto;
  3325. margin-top: 10upx;
  3326. }
  3327. .appoint .content .row>view {
  3328. width: 240upx;
  3329. flex-shrink: 1;
  3330. font-size: 28upx;
  3331. }
  3332. .appoint .content .row>textarea {
  3333. /* background: #007AFF; */
  3334. padding: 15upx;
  3335. box-sizing: border-box;
  3336. font-size: 26upx;
  3337. min-height: 160upx;
  3338. height: 100upx;
  3339. border: 1px solid #fafafa;
  3340. /* over */
  3341. }
  3342. .personInfo .content .row .right,
  3343. .advancePayment .content .row .right,
  3344. .appoint .content .row .right {
  3345. font-size: 28upx;
  3346. }
  3347. /* 人员信息End */
  3348. .checkButton {
  3349. font-size: 14px;
  3350. color: #FF5600;
  3351. }
  3352. .uni-popup__wrapper-box {
  3353. display: block;
  3354. position: relative;
  3355. }
  3356. .uni-share {
  3357. display: flex;
  3358. flex-direction: column;
  3359. background-color: #fff;
  3360. position: fixed;
  3361. bottom: 0;
  3362. left: 0;
  3363. right: 0;
  3364. }
  3365. .uni-share-title {
  3366. line-height: 30px;
  3367. font-size: 12px;
  3368. padding: 7px 0;
  3369. text-align: center;
  3370. }
  3371. .uni-share-content {
  3372. display: flex;
  3373. flex-direction: row;
  3374. flex-wrap: wrap;
  3375. justify-content: center;
  3376. padding: 15px;
  3377. }
  3378. .uni-share-content-box {
  3379. display: flex;
  3380. flex-direction: column;
  3381. align-items: center;
  3382. width: 100px;
  3383. }
  3384. .uni-share-content-image {
  3385. display: flex;
  3386. flex-direction: row;
  3387. justify-content: center;
  3388. align-items: center;
  3389. width: 30px;
  3390. height: 30px;
  3391. overflow: hidden;
  3392. border-radius: 5px;
  3393. }
  3394. .uni-share-content-text {
  3395. font-size: 13px;
  3396. color: #333;
  3397. padding-top: 5px;
  3398. padding-bottom: 10px;
  3399. }
  3400. .uni-share-btn {
  3401. height: 45px;
  3402. line-height: 45px;
  3403. font-size: 14px;
  3404. border-top-color: #f5f5f5;
  3405. border-top-width: 1px;
  3406. border-top-style: solid;
  3407. text-align: center;
  3408. color: #666;
  3409. }
  3410. uni-image>img {
  3411. display: block;
  3412. position: absolute;
  3413. top: 0;
  3414. left: 0;
  3415. opacity: 0;
  3416. }
  3417. uni-image>div,
  3418. uni-image>img {
  3419. width: 100%;
  3420. height: 100%;
  3421. }
  3422. .Discount {
  3423. image {
  3424. width: 16px;
  3425. height: 16px;
  3426. }
  3427. text {
  3428. font-size: 12px;
  3429. color: #333333;
  3430. }
  3431. }
  3432. .costDetails {
  3433. width: 100%;
  3434. height: auto;
  3435. background: rgba(0, 82, 255, 0.05);
  3436. border-radius: 10px;
  3437. .text1 {
  3438. font-size: 22rpx;
  3439. }
  3440. .text2 {
  3441. font-size: 24rpx;
  3442. }
  3443. .text2-color {
  3444. color: rgba(0, 82, 255, 0.8);
  3445. }
  3446. }
  3447. /deep/ {
  3448. .u-th {
  3449. background-color: #F2F6FF;
  3450. }
  3451. }
  3452. </style>