quoteDetail.vue 103 KB

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