quoteDetail.vue 103 KB

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