KtOrder.vue 141 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851
  1. <template>
  2. <div class="page">
  3. <el-form :inline="true" :model="pageRequest" class="demo-form-inline" size="small" label-width="130px">
  4. <el-row>
  5. <el-col :span="6">
  6. <el-form-item label="订单号">
  7. <el-input v-model="pageRequest.orderNo" placeholder="请输入订单号" class="widths" clearable></el-input>
  8. </el-form-item>
  9. </el-col>
  10. <el-col :span="6">
  11. <el-form-item label="车牌号">
  12. <el-input v-model="pageRequest.licenseNo" placeholder="请输入车牌号" class="widths" clearable></el-input>
  13. </el-form-item>
  14. </el-col>
  15. <el-col :span="6">
  16. <el-form-item label="车架号">
  17. <el-input v-model="pageRequest.frameNo" placeholder="请输入车架号" class="widths" clearable></el-input>
  18. </el-form-item>
  19. </el-col>
  20. <el-col :span="6">
  21. <el-form-item label="投保人姓名">
  22. <el-input v-model="pageRequest.insuredName" placeholder="请输入投保人姓名" class="widths" clearable></el-input>
  23. </el-form-item>
  24. </el-col>
  25. <el-col :span="6" v-if="isLetterOrder">
  26. <el-form-item label="机构名称">
  27. <el-cascader class="widths" :options="institutionOptions" v-model="pageRequest.deptId" :props="{
  28. checkStrictly: true,
  29. value: 'id',
  30. label: 'name',
  31. }" @change="handleChange" clearable></el-cascader>
  32. </el-form-item>
  33. </el-col>
  34. <el-col :span="6">
  35. <el-form-item label="录单日期">
  36. <el-date-picker v-model="value2" type="daterange" @change="monthChange" start-placeholder="开始日期"
  37. end-placeholder="结束日期" value-format="yyyy-MM-dd" clearable style="width: 200px"></el-date-picker>
  38. </el-form-item>
  39. </el-col>
  40. <el-col :span="6">
  41. <el-form-item label="保险公司">
  42. <el-select v-model="pageRequest.companyId" filterable class="widths" clearable>
  43. <el-option v-for="val in companyList" :key="val.id" :label="val.name" :value="val.id"></el-option>
  44. </el-select>
  45. </el-form-item>
  46. </el-col>
  47. <el-col :span="6">
  48. <el-form-item label="险种">
  49. <el-select v-model="pageRequest.productid" clearable filterable placeholder="选择险种" class="widths">
  50. <el-option v-for="item in productsTypeoptions" :key="item.dictValue" :label="item.dictTag"
  51. :value="item.dictValue"></el-option>
  52. </el-select>
  53. </el-form-item>
  54. </el-col>
  55. <el-col :span="12">
  56. <el-form-item label="险种选择">
  57. <el-radio-group v-model="pageRequest.productid">
  58. <el-radio label="">全部</el-radio>
  59. <el-radio v-for="val in productsTypeoptions" :key="val.dictValue" :label="val.dictValue">{{ val.dictTag
  60. }}</el-radio>
  61. </el-radio-group>
  62. </el-form-item>
  63. </el-col>
  64. </el-row>
  65. <el-row>
  66. <el-col :span="21" v-if="isLetterOrder">
  67. <el-form-item label="订单状态">
  68. <el-radio-group v-model="pageRequest.orderStatus">
  69. <el-radio label="888">全部</el-radio>
  70. <el-radio v-for="val in optionsStatus" :key="val.dictValue" :label="val.dictValue">{{ val.dictTag
  71. }}</el-radio>
  72. </el-radio-group>
  73. </el-form-item>
  74. </el-col>
  75. <el-col :span="3">
  76. <el-button type="primary" size="small" @click="onSubmit">查询</el-button>
  77. </el-col>
  78. </el-row>
  79. </el-form>
  80. <el-table size="small" :data="pageResult" border v-loading="orderLoaing" highlight-current-row stripe
  81. @expand-change="handleRowChange" ref="expandTable" :height="tabelHeight" :header-cell-style="{
  82. background: '#F2F7FC',
  83. fontWeight: '700',
  84. color: '#606266',
  85. }">
  86. <el-table-column type="expand">
  87. <template slot-scope="scope">
  88. <div class="demo-table-expand flex a-c j-s" :style="{ width: width, flexWrap: 'wrap' }"
  89. v-for="(item, index) in scope.row.insAreaCompanyList" :key="index">
  90. <div style="width: 12%">
  91. {{ item.inscompany }}
  92. <!-- <span style="color: #d42426">({{ item.agreementName }})</span> -->
  93. </div>
  94. <div class="flex a-c j-s demo-table-expand-time">
  95. <div>
  96. 总价:
  97. <span style="color: #d42426">{{ item.sumpremium }}</span>
  98. </div>
  99. <div>
  100. 交强险:
  101. <span style="color: #d42426">{{ item.jqpremium }}</span>
  102. </div>
  103. <div>
  104. 商业险:
  105. <span style="color: #d42426">{{ item.sypremium }}</span>
  106. </div>
  107. <div>
  108. 车船税:
  109. <span style="color: #d42426">{{ item.taxamount }}</span>
  110. </div>
  111. <div v-if="item.jypremium">
  112. 驾意险:
  113. <span style="color: #d42426">{{ item.jypremium }}</span>
  114. </div>
  115. <div>{{ item.createtime }}</div>
  116. </div>
  117. <div slot="reference" class="name-wrapper flex a-c j-c">
  118. <el-tag style="
  119. color: #33a08d;
  120. border-color: #33a08d;
  121. background: rgba(51, 160, 141, 0.1);
  122. " v-if="item.orderstatus == '0' || item.orderstatus == '1'" size="small">{{ item.orderstatus | cap
  123. }}</el-tag>
  124. <el-tag style="border-color: #e75b5d" type="danger" v-else-if="item.orderstatus == '3'" size="small">{{
  125. item.orderstatus | cap }}</el-tag>
  126. <el-tag v-else style="
  127. color: #2d4d89;
  128. border-color: #2d4d89;
  129. background: rgba(45, 77, 137, 0.1);
  130. " size="small">{{ item.orderstatus | cap }}</el-tag>
  131. </div>
  132. <div class="flex a-c">
  133. <el-button size="mini" type="text" v-if="item.orderstatus == '1' &&
  134. [
  135. '中煤财险',
  136. '大家财险',
  137. '永诚财险',
  138. '国任财险',
  139. '太平财险',
  140. '华农财险',
  141. '恒邦财险',
  142. '诚泰财险',
  143. '众安财险',
  144. '中国人寿',
  145. '安盛天平',
  146. '紫金财险',
  147. '渤海财险',
  148. '泰康财险',
  149. '华泰财险',
  150. ].includes(item.inscompany)
  151. " @click="refreshStatus(item)" class="red_color">更新订单</el-button>
  152. <el-button size="mini" type="text" v-if="item.orderstatus == '4' && item.inscompany == '华泰财险'"
  153. @click="updateStatusHuatai(item)" class="red_color">更新订单</el-button>
  154. <el-button size="mini" type="text" v-if="(item.orderstatus == '1' ||
  155. item.orderstatus == '2' ||
  156. item.orderstatus == '4') &&
  157. ['紫金财险'].includes(item.inscompany)
  158. " @click="cancelorder(item)" class="red_color">撤单</el-button>
  159. <el-button size="mini" type="text" v-if="item.orderstatus == '2'" @click="carcode(item)"
  160. class="red_color">二维码</el-button>
  161. <!-- <el-button size="mini" class="red_color" v-if="item.orderstatus == '2' && item.inscompany == '平安财险'" type="text" @click="signature(item)">生成签章</el-button> -->
  162. <el-button size="mini" type="text" class="green_color"
  163. @click="OrderDetails(scope.row, item)">查看详情</el-button>
  164. <el-button size="mini" type="text" :loading="querystatusLoaing" v-if="item.orderstatus == '2' &&
  165. [
  166. '太平财险',
  167. '华农财险',
  168. '恒邦财险',
  169. '诚泰财险',
  170. '众安财险',
  171. '中国人寿',
  172. '安盛天平',
  173. '紫金财险',
  174. '永诚财险',
  175. '大家财险',
  176. '华泰财险',
  177. '国任财险',
  178. '中煤财险',
  179. '渤海财险',
  180. '泰康财险',
  181. '平安财险',
  182. ].includes(item.inscompany)
  183. " class="blue_color" @click="querystatus(item, index)">状态更新</el-button>
  184. <el-button v-if="item.orderstatus !== '2'" size="mini" type="text" class="blue_color"
  185. @click="orderTrajectory(scope.row, item)">订单轨迹</el-button>
  186. <el-button size="mini" type="primary" @click="bjdpreview(item.id, scope.row.userid)">报价单</el-button>
  187. <el-button
  188. v-if="(item.orderstatus == '1' || item.orderstatus == '4') && item.inscompany == '平安财险' && item.fileStatus"
  189. size="mini" type="text" class="green_color"
  190. @click="additionalInformation(item.id, scope.row)">补充资料</el-button>
  191. <!-- <el-button size="mini" type="text" @click="CloseEdit(scope.$index, scope.row)">编辑</el-button> -->
  192. <el-button type="text" size="mini" v-if="item.orderstatus == '2'">
  193. <el-dropdown trigger="click">
  194. <span class="el-dropdown-link blue_color">
  195. 更多
  196. <i class="el-icon-arrow-down el-icon--right"></i>
  197. </span>
  198. <el-dropdown-menu slot="dropdown">
  199. <el-dropdown-item>
  200. <el-button size="mini" type="text" style="color: #2d4d89"
  201. @click="orderTrajectory(scope.row, item)">订单轨迹</el-button>
  202. </el-dropdown-item>
  203. <el-dropdown-item v-if="item.inscompany !== '平安财险'">
  204. <el-button type="text" size="mini" style="color: #2d4d89"
  205. @click="revokeCode(item.id)">撤销二维码</el-button>
  206. </el-dropdown-item>
  207. </el-dropdown-menu>
  208. </el-dropdown>
  209. </el-button>
  210. </div>
  211. </div>
  212. </template>
  213. </el-table-column>
  214. <el-table-column prop="orderno" label="订单号" align="center" width="160"></el-table-column>
  215. <el-table-column prop="username" :label="managementSource==1?'会员名称':'业务员'" align="center" width="80">
  216. <template slot-scope="scope">
  217. <span>{{ scope.row.username }}</span>
  218. </template>
  219. </el-table-column>
  220. <el-table-column prop="username" :label="managementSource==1?'会员号':'业务员工号'" align="center" width="150">
  221. <template slot-scope="scope">
  222. <span>{{ scope.row.userid }}</span>
  223. </template>
  224. </el-table-column>
  225. <el-table-column prop="insCompany" label="已承保的公司" width="100" align="center">
  226. <template slot-scope="scope">
  227. <span>{{ scope.row.insCompany ? scope.row.insCompany : "--" }}</span>
  228. </template>
  229. </el-table-column>
  230. <el-table-column prop="partnerCompaniesName" label="合作公司" width="80" align="center">
  231. <template slot-scope="scope">
  232. <span>{{ scope.row.partnerCompaniesName ? scope.row.partnerCompaniesName : "--" }}</span>
  233. </template>
  234. </el-table-column>
  235. <el-table-column prop="licenseno" label="车牌号" width="100" align="center"></el-table-column>
  236. <el-table-column prop="insuredname" label="投保人姓名" align="center" width="100"></el-table-column>
  237. <el-table-column prop="product" label="投保险种" align="center" width="100"></el-table-column>
  238. <el-table-column prop="orderstatus" label="状态" align="center" width="150">
  239. <template slot-scope="scope">
  240. <!-- <el-tag :type="capType(scope.row.orderstatus)" size="small">{{
  241. scope.row.orderstatus | cap
  242. }}</el-tag>-->
  243. <el-tag style="
  244. color: #33a08d;
  245. border-color: #33a08d;
  246. background: rgba(51, 160, 141, 0.1);
  247. " v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'" size="small">{{ scope.row.orderstatus
  248. | cap }}</el-tag>
  249. <el-tag type="danger" style="border-color: #e75b5d" v-else-if="scope.row.orderstatus == '3'" size="small">{{
  250. scope.row.orderstatus | cap }}</el-tag>
  251. <el-tag v-else style="
  252. color: #2d4d89;
  253. border-color: #2d4d89;
  254. background: rgba(45, 77, 137, 0.1);
  255. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  256. </template>
  257. </el-table-column>
  258. <el-table-column prop="createtime" label="录单日期" align="center" width="150"></el-table-column>
  259. <el-table-column prop="insureTime" label="承保确认时间" align="center" width="150"></el-table-column>
  260. <el-table-column label="操作" align="center" fixed="right" min-width="250">
  261. <template slot-scope="scope">
  262. <!-- <el-button v-if="scope.row.orderstatus != '3'" size="mini" type="text" style="color: #2d4d89"
  263. @click="resendData(scope.$index, scope.row)">补传资料</el-button> -->
  264. <el-button v-if="scope.row.orderstatus != '3'" size="mini" type="text" style="color: #2d4d89"
  265. @click="CloseEdit(scope.$index, scope.row)">重新报价</el-button>
  266. <el-button size="mini" style="color: #2d4d89" type="text"
  267. @click="onoffQuotationHistory(scope.row)">报价历史</el-button>
  268. <!-- <el-button size="mini" type="text" v-if="['0', '5'].includes(scope.row.orderstatus)"
  269. @click="CloseQoute(scope.$index, scope.row)" style="color:#f56c6c">关闭报价</el-button>-->
  270. <!-- <el-button size="mini" type="text" v-if="scope.row.orderstatus == '0'"
  271. @click="underwriting(scope.$index, scope.row)" style="color:#e6a23c">去核保</el-button>-->
  272. </template>
  273. </el-table-column>
  274. </el-table>
  275. <!-- 分页功能 -->
  276. <div class="block">
  277. <el-pagination @size-change="applyhandleSizeChange" @current-change="applyhandleCurrentChange"
  278. :current-page="pageNum" :page-size="pageSize" :page-sizes="[20, 30, 50, 100]"
  279. layout="total, sizes, prev, pager, next, jumper" :total="totalSize"></el-pagination>
  280. </div>
  281. <!--第一种 二维码 -->
  282. <el-dialog :visible.sync="codedialogVisible" width="430px" top="10vh" class="saomazhifucodeClass">
  283. <div class="ORcodebody" v-watermark="qrCodeId">
  284. <div slot="title" class="dialog-title">
  285. <span>扫码付款</span>
  286. </div>
  287. <div class="ORcode">
  288. <div style="padding: 13px; position: relative">
  289. <div v-if="['大家财险', '中煤财险', '华泰财险'].includes(inscompany)">
  290. <div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
  291. <img v-else :src="paycodeimg" alt style="width: 100%" />
  292. </div>
  293. <div v-else>
  294. <img v-if="['太平财险', '诚泰财险'].includes(inscompany)" :src="paycodeimg" alt style="width: 100%" />
  295. <div v-else id="qrcode" ref="qrcode"></div>
  296. </div>
  297. </div>
  298. </div>
  299. <img style="margin-left: -16px" src="../../../assets/image/divider.png" alt />
  300. <div style="
  301. font-size: 32px;
  302. text-align: center;
  303. color: #d42426;
  304. margin-top: 20px;
  305. ">
  306. <span style="font-size: 24px; font-weight: bold">¥</span>
  307. {{ sumpremium }}
  308. </div>
  309. <div class="ORtitle">
  310. <div>
  311. <span>保险公司:</span>
  312. <span>{{ inscompany }}</span>
  313. </div>
  314. <div>
  315. <span>车牌号:</span>
  316. <span>{{ licenseNo }}</span>
  317. </div>
  318. <div>
  319. <span>投保人:</span>
  320. <span>{{ applyName }}</span>
  321. </div>
  322. <div v-show="jqpremium">
  323. <span>交强:</span>
  324. <span>{{ jqpremium }}</span>
  325. </div>
  326. <div v-show="sypremium">
  327. <span>商业:</span>
  328. <span>{{ sypremium }}</span>
  329. </div>
  330. <div v-show="taxamount">
  331. <span>车船税:</span>
  332. <span>{{ taxamount }}</span>
  333. </div>
  334. <div v-show="jqstartdate">
  335. <span>交强险起保日期:</span>
  336. <span>{{ jqstartdate }}</span>
  337. </div>
  338. <div v-show="systartdate">
  339. <span>商业险起保日期:</span>
  340. <span>{{ systartdate }}</span>
  341. </div>
  342. <div v-if="jypremium">
  343. <span>驾意险:</span>
  344. <span>{{ jypremium }}</span>
  345. </div>
  346. <div v-if="jypremium">
  347. <span>驾意险险起保日期:</span>
  348. <span>{{ systartdate || jqstartdate }}</span>
  349. </div>
  350. </div>
  351. </div>
  352. <span slot="footer" class="dialog-footer display">
  353. <el-button size="small" style="width: 100px; border-color: #d42426; color: #d42426"
  354. @click="codedialogVisible = false">关闭</el-button>
  355. </span>
  356. </el-dialog>
  357. <!--第二种 二维码 -->
  358. <el-dialog :visible.sync="codedialogVisiblePro" width="660px" class="proSaomazhifucodeClass" top="10vh" title="扫码付款">
  359. <div class="flex j-s">
  360. <div class="scan-code">
  361. <div style="font-weight: bold">
  362. 总金额:
  363. <span style="color: #2d4d89">{{ sumpremium }}</span>
  364. </div>
  365. <div>交强险:{{ jqpremium }}</div>
  366. <div>车船税:{{ taxamount }}</div>
  367. <div>商业险:{{ sypremium }}</div>
  368. <div>驾意险:{{ jypremium }}</div>
  369. </div>
  370. <div v-if="['大家财险', '中煤财险', '华泰财险'].includes(inscompany)">
  371. <div v-if="apiType == 1" id="qrcode" ref="qrcode"></div>
  372. <img v-else :src="paycodeimg" alt style="width: 100%" />
  373. </div>
  374. <div v-else>
  375. <img v-if="['太平财险', '诚泰财险'].includes(inscompany)" :src="paycodeimg" alt style="width: 200px; height: 200px" />
  376. <div v-else id="qrcode" ref="qrcode"></div>
  377. </div>
  378. <div class="scan-code">
  379. <div>保险公司:{{ inscompany }}</div>
  380. <div>车牌号:{{ licenseNo }}</div>
  381. <div>投保人:{{ applyName }}</div>
  382. <div>交强险起保日期:{{ jqstartdate }}</div>
  383. <div>商业险起保日期:{{ systartdate }}</div>
  384. <div>驾意险起保日期:{{ systartdate || jqstartdate }}</div>
  385. </div>
  386. </div>
  387. <span slot="footer" class="dialog-footer">
  388. <el-button size="small" style="
  389. width: 100px;
  390. background: #eaedf1;
  391. border-color: #eaedf1;
  392. color: #2d4d89;
  393. " @click="codedialogVisiblePro = false">关闭</el-button>
  394. </span>
  395. </el-dialog>
  396. <!-- 车辆报价新页面 -->
  397. <detailsDialog ref="detailsDialog" :orderInfo.sync="orderInfo" :Feepermissions="false"></detailsDialog>
  398. <!-- 订单轨迹 -->
  399. <el-dialog :visible.sync="ddgjdialogVisible" width="430px">
  400. <div slot="title" class="dialog-title">
  401. <span>订单轨迹</span>
  402. </div>
  403. <div style="height: 300px; overflow-y: auto">
  404. <el-steps direction="vertical" :active="trajectoryTable.length - 1">
  405. <el-step :title="item.orderStatus | caps" :key="item.id" v-for="item in trajectoryTable">
  406. <template slot="description">
  407. <span>保险公司:{{ item.insCompany }}</span>
  408. <span>提交人:{{ item.operator }}</span>
  409. <div>创建时间:{{ item.createTime }}</div>
  410. <div v-if="item.remark">状态更新:{{ item.remark }}</div>
  411. </template>
  412. </el-step>
  413. </el-steps>
  414. </div>
  415. </el-dialog>
  416. <!-- 报价历史 -->
  417. <el-dialog :visible.sync="quotationhistorydialogVisible" v-dialogDrag width="90%">
  418. <div slot="title" class="dialog-title">
  419. <img src="../../../../src/icon/报价历史.png" alt class="icon-img" />
  420. <span>报价历史</span>
  421. </div>
  422. <div style="padding: 20px">
  423. <el-table size="small" :data="HistoryList" height="400" border style="width: 100%" v-loading="loading"
  424. :header-cell-style="{
  425. background: '#F2F7FC',
  426. }" highlight-current-row>
  427. <el-table-column prop="inscompany" label="保险公司" align="center"></el-table-column>
  428. <el-table-column prop="username" label="业务员" align="center">
  429. <template slot-scope="scope">
  430. <span>{{ scope.row.userName }}({{ scope.row.userId }})</span>
  431. </template>
  432. </el-table-column>
  433. <el-table-column prop="licenseno" label="车牌号" align="center"></el-table-column>
  434. <el-table-column prop="createtime" label="报价时间" align="center"></el-table-column>
  435. <el-table-column prop="jqpremium" label="交强险" align="center"></el-table-column>
  436. <el-table-column prop="sypremium" label="商业险" align="center"></el-table-column>
  437. <el-table-column prop="taxamount" label="车船税" align="center"></el-table-column>
  438. <el-table-column prop="sumpremium" label="总保费" align="center"></el-table-column>
  439. <el-table-column prop="orderstatus" label="状态" align="center">
  440. <template slot-scope="scope">
  441. <el-tag style="
  442. color: #33a08d;
  443. border-color: #33a08d;
  444. background: rgba(51, 160, 141, 0.1);
  445. " v-if="scope.row.orderstatus == '0' || scope.row.orderstatus == '1'
  446. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  447. <el-tag type="danger" style="border-color: #e75b5d" v-else-if="scope.row.orderstatus == '3'" size="small">{{
  448. scope.row.orderstatus | cap }}</el-tag>
  449. <el-tag v-else style="
  450. color: #2d4d89;
  451. border-color: #2d4d89;
  452. background: rgba(45, 77, 137, 0.1);
  453. " size="small">{{ scope.row.orderstatus | cap }}</el-tag>
  454. </template>
  455. </el-table-column>
  456. <el-table-column label="操作" align="center" min-width="180" fixed="right">
  457. <template slot-scope="scope">
  458. <el-button type="text" size="small" style="color: #2d4d89"
  459. @click="OrderDetails(quotationhistoryRow, scope.row)">查看详情</el-button>
  460. <el-button size="small" type="text" @click="bjdpreview(scope.row.id, scope.row.userId)">报价单</el-button>
  461. <el-button size="small" v-show="scope.row.orderstatus == '2'" type="text"
  462. @click="carcode(scope.row)">付款码</el-button>
  463. <!-- <el-button size="small" v-if="scope.row.orderstatus == '2' && scope.row.inscompany == '平安财险'" type="text" @click="signature(item)">生成签章</el-button> -->
  464. <el-button size="mini" type="text" v-if="(scope.row.orderstatus == '1' ||
  465. scope.row.orderstatus == '2' ||
  466. scope.row.orderstatus == '4') &&
  467. ['紫金财险'].includes(scope.row.inscompany)
  468. " @click="cancelorder(scope.row)">撤单</el-button>
  469. <el-button type="text" size="mini" style="color: #2d4d89"
  470. v-if="scope.row.orderstatus == '2' && scope.row.inscompany !== '平安财险'"
  471. @click="revokeCode(scope.row.id)">撤销二维码</el-button>
  472. <el-button type="text" size="mini" style="color: #2d4d89" v-if="scope.row.orderstatus == '2' &&
  473. [
  474. '太平财险',
  475. '华农财险',
  476. '恒邦财险',
  477. '诚泰财险',
  478. '众安财险',
  479. '中国人寿',
  480. '安盛天平',
  481. '紫金财险',
  482. '永诚财险',
  483. '大家财险',
  484. '华泰财险',
  485. '国任财险',
  486. '中煤财险',
  487. '渤海财险',
  488. '泰康财险',
  489. '平安财险',
  490. ].includes(scope.row.inscompany)
  491. " @click="querystatus(scope.row, 'history')">状态更新</el-button>
  492. </template>
  493. </el-table-column>
  494. </el-table>
  495. </div>
  496. </el-dialog>
  497. <!-- 生成签章 -->
  498. <el-dialog :visible.sync="signaturedialogVisible" title="生成签章" width="14%">
  499. <div>
  500. <img :src="resultMessageImg" alt style="width: 100%" />
  501. <!-- <div id="signaturecode" ref="signaturecode"></div> -->
  502. </div>
  503. </el-dialog>
  504. <el-dialog :visible.sync="imageUploaddialogVisible" width="1070px">
  505. <div slot="title" class="dialog-title">
  506. <span>影像上传</span>
  507. </div>
  508. <el-row>
  509. <el-col :span="3">
  510. <div class="tab-style">
  511. <li class="liMenu" :class="idx == tabLiIndex ? 'tabLi-style' : ''" @click="tabLiScroll(item.scroll, idx)"
  512. v-for="(item, idx) in tabLimenu" :key="idx">
  513. {{ item.name }}
  514. </li>
  515. </div>
  516. </el-col>
  517. <el-col :span="21" style="height: 320px; overflow-y: auto">
  518. <div class="flex" id="vehicle">
  519. <div class="aaa">
  520. <span>1.行驶证主页</span>
  521. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList1', 'C01')
  522. " :file-list="imgList1" ref="upload1" :class="{ styleB: imgList1.length == 1 }">
  523. <img v-show="imgList1.length == 0" src="../../../../static/carfront.png"
  524. style="width: 100%; height: 100%" />
  525. <div slot="file" slot-scope="{ file }" v-if="imgList1.length > 0">
  526. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  527. <span class="el-upload-list__item-actions">
  528. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList1')">
  529. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  530. <i class="el-icon-delete"></i>
  531. </span>
  532. </span>
  533. </div>
  534. </el-upload>
  535. </div>
  536. <div class="aaa">
  537. <span>2.行驶证副页</span>
  538. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList1', 'imgList2', 'D01')
  539. " :file-list="imgList2" ref="upload2" :class="{ styleB: imgList2.length === 1 }">
  540. <img v-show="imgList2.length == 0" src="../../../../static/carback.png"
  541. style="width: 100%; height: 100%" />
  542. <div slot="file" slot-scope="{ file }">
  543. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  544. <span class="el-upload-list__item-actions">
  545. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList1', 'imgList2')">
  546. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  547. <i class="el-icon-delete"></i>
  548. </span>
  549. </span>
  550. </div>
  551. </el-upload>
  552. </div>
  553. <div class="aaa">
  554. <span>1.新车合格证</span>
  555. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  556. drivingupload(file, 'imageList5', 'imgList9', 'XC00')
  557. " :file-list="imgList9" multiple ref="upload3" :class="{ styleB: imgList9.length === 1 }">
  558. <img v-show="imgList9.length == 0" src="../../../../static/userfront.png"
  559. style="width: 100%; height: 100%" />
  560. <div slot="file" slot-scope="{ file }">
  561. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  562. <span class="el-upload-list__item-actions">
  563. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList9')">
  564. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  565. <i class="el-icon-delete"></i>
  566. </span>
  567. </span>
  568. </div>
  569. </el-upload>
  570. </div>
  571. <div class="aaa">
  572. <span>2.购车发票</span>
  573. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  574. drivingupload(file, 'imageList5', 'imgList10', 'GC00')
  575. " :file-list="imgList10" multiple ref="upload4" :class="{ styleB: imgList10.length === 1 }">
  576. <img v-show="imgList10.length == 0" src="../../../../static/userfront.png"
  577. style="width: 100%; height: 100%" />
  578. <div slot="file" slot-scope="{ file }">
  579. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  580. <span class="el-upload-list__item-actions">
  581. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList10')">
  582. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  583. <i class="el-icon-delete"></i>
  584. </span>
  585. </span>
  586. </div>
  587. </el-upload>
  588. </div>
  589. </div>
  590. <div class="flex" id="owner">
  591. <div class="aaa">
  592. <span>1.车主身份证(正面)</span>
  593. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList2', 'imgList3', 'C02')
  594. " :file-list="imgList3" multiple ref="upload3" :class="{ styleB: imgList3.length === 1 }">
  595. <img v-show="imgList3.length == 0" src="../../../../static/userfront.png"
  596. style="width: 100%; height: 100%" />
  597. <div slot="file" slot-scope="{ file }">
  598. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  599. <span class="el-upload-list__item-actions">
  600. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList3')">
  601. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  602. <i class="el-icon-delete"></i>
  603. </span>
  604. </span>
  605. </div>
  606. </el-upload>
  607. </div>
  608. <div class="aaa">
  609. <span>2.车主身份证(反面)</span>
  610. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList2', 'imgList4', 'D02')
  611. " :file-list="imgList4" multiple ref="upload4" :class="{ styleB: imgList4.length === 1 }">
  612. <img v-show="imgList4.length == 0" src="../../../../static/userback.png"
  613. style="width: 100%; height: 100%" />
  614. <div slot="file" slot-scope="{ file }">
  615. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  616. <span class="el-upload-list__item-actions">
  617. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  618. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  619. <i class="el-icon-delete"></i>
  620. </span>
  621. </span>
  622. </div>
  623. </el-upload>
  624. </div>
  625. <div class="aaa">
  626. <span>3.营业执照</span>
  627. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  628. <img src="../../../../static/userfront.png" style="width: 100%; height: 100%" />
  629. <div slot="file" slot-scope="{ file }">
  630. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  631. <span class="el-upload-list__item-actions">
  632. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  633. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  634. <i class="el-icon-delete"></i>
  635. </span>
  636. </span>
  637. </div>
  638. </el-upload>
  639. </div>
  640. </div>
  641. <div class="flex" id="applicant">
  642. <div class="aaa">
  643. <span>1.投保人身份证(正面)</span>
  644. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList5', 'C03')
  645. " :file-list="imgList5" multiple ref="upload5" :class="{ styleB: imgList5.length === 1 }">
  646. <img v-show="imgList5.length == 0" src="../../../../static/userfront.png"
  647. style="width: 100%; height: 100%" />
  648. <div slot="file" slot-scope="{ file }">
  649. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  650. <span class="el-upload-list__item-actions">
  651. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList5')">
  652. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  653. <i class="el-icon-delete"></i>
  654. </span>
  655. </span>
  656. </div>
  657. </el-upload>
  658. </div>
  659. <div class="aaa">
  660. <span>2.投保人身份证(反面)</span>
  661. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList3', 'imgList6', 'D03')
  662. " :file-list="imgList6" multiple ref="upload6" :class="{ styleB: imgList6.length === 1 }">
  663. <img v-show="imgList6.length == 0" src="../../../../static/userback.png"
  664. style="width: 100%; height: 100%" />
  665. <div slot="file" slot-scope="{ file }">
  666. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  667. <span class="el-upload-list__item-actions">
  668. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList3', 'imgList6')">
  669. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  670. <i class="el-icon-delete"></i>
  671. </span>
  672. </span>
  673. </div>
  674. </el-upload>
  675. </div>
  676. <div class="aaa">
  677. <span>3.营业执照</span>
  678. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  679. <img src="../../../../static/userfront.png" style="width: 100%; height: 100%" />
  680. <div slot="file" slot-scope="{ file }">
  681. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  682. <span class="el-upload-list__item-actions">
  683. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  684. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  685. <i class="el-icon-delete"></i>
  686. </span>
  687. </span>
  688. </div>
  689. </el-upload>
  690. </div>
  691. </div>
  692. <div class="flex">
  693. <div class="aaa">
  694. <span id="insured">1.被保人身份证(正面)</span>
  695. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList7', 'C04')
  696. " :file-list="imgList7" multiple ref="upload7" :class="{ styleB: imgList7.length === 1 }">
  697. <img v-show="imgList7.length == 0" src="../../../../static/userfront.png"
  698. style="width: 100%; height: 100%" />
  699. <div slot="file" slot-scope="{ file }">
  700. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  701. <span class="el-upload-list__item-actions">
  702. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList7')">
  703. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  704. <i class="el-icon-delete"></i>
  705. </span>
  706. </span>
  707. </div>
  708. </el-upload>
  709. </div>
  710. <div class="aaa">
  711. <span>2.被保人身份证(反面)</span>
  712. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) => drivingupload(file, 'imageList4', 'imgList8', 'D04')
  713. " :file-list="imgList8" multiple ref="upload8" :class="{ styleB: imgList8.length === 1 }">
  714. <img v-show="imgList8.length == 0" src="../../../../static/userback.png"
  715. style="width: 100%; height: 100%" />
  716. <div slot="file" slot-scope="{ file }">
  717. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  718. <span class="el-upload-list__item-actions">
  719. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList4', 'imgList8')">
  720. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  721. <i class="el-icon-delete"></i>
  722. </span>
  723. </span>
  724. </div>
  725. </el-upload>
  726. </div>
  727. <div class="aaa">
  728. <span>3.营业执照</span>
  729. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag multiple ref="upload4">
  730. <img src="../../../../static/userfront.png" style="width: 100%; height: 100%" />
  731. <div slot="file" slot-scope="{ file }">
  732. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  733. <span class="el-upload-list__item-actions">
  734. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList2', 'imgList4')">
  735. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  736. <i class="el-icon-delete"></i>
  737. </span>
  738. </span>
  739. </div>
  740. </el-upload>
  741. </div>
  742. </div>
  743. <div class="flex" id="relationship">
  744. <div class="aaa">
  745. <span>1.关系证明</span>
  746. <el-upload action="#" list-type="picture-card" :auto-upload="false" :limit="1" drag :on-change="(file) =>
  747. drivingupload(file, 'imageList5', 'imgList11', 'GX00')
  748. " :file-list="imgList11" multiple ref="upload3" :class="{ styleB: imgList11.length === 1 }">
  749. <img v-show="imgList11.length == 0" src="../../../../static/userfront.png"
  750. style="width: 100%; height: 100%" />
  751. <div slot="file" slot-scope="{ file }">
  752. <img class="el-upload-list__item-thumbnail" :src="file.url" alt />
  753. <span class="el-upload-list__item-actions">
  754. <span class="el-upload-list__item-delete" @click="handleRemove1(file, 'imageList5', 'imgList11')">
  755. <i class="el-icon-zoom-in" @click.stop="handlePictureCardPreview(file.url)"></i>
  756. <i class="el-icon-delete"></i>
  757. </span>
  758. </span>
  759. </div>
  760. </el-upload>
  761. </div>
  762. </div>
  763. </el-col>
  764. </el-row>
  765. <span slot="footer" class="dialog-footer">
  766. <el-button size="small" @click="imageUploaddialogVisible = false">取 消</el-button>
  767. <el-button size="small" type="primary" @click="uploadinformation">上传资料</el-button>
  768. </span>
  769. </el-dialog>
  770. <el-image-viewer v-if="showViewer" :on-close="closeViewer" :z-index="9999" :url-list="[ProViewImg]" />
  771. <!-- 报价单 -->
  772. <quotationDialog ref="quotationDialog" :queryOrders="queryOrders"></quotationDialog>
  773. <quotationDialogPro ref="quotationDialogPro" :queryOrders="queryOrders"></quotationDialogPro>
  774. <imageDialog ref="imageDialog" :companyId="companyId" :type="2"></imageDialog>
  775. </div>
  776. </template>
  777. <script>
  778. let _self;
  779. import { pathToBase64, base64ToPath } from "@/common/image-tools-base64.js";
  780. import CommonUtil from "@/utils/comutil.js";
  781. import Cookies from "js-cookie";
  782. import QRCode from "qrcodejs2";
  783. import quotationDialog from "@/views/Core/components/quotationDialog.vue";
  784. import quotationDialogPro from "@/views/Core/components/quotationDialogPro.vue";
  785. import detailsDialog from "@/views/Core/components/detailsDialog.vue";
  786. import imageDialog from "@/views/Core/components/imageDialog.vue";
  787. import { debounce } from 'lodash';
  788. export default {
  789. data() {
  790. return {
  791. companyId: '',
  792. orderLoaing: false,
  793. qrcodeWidth: "180",
  794. qrcodeHeight: "180",
  795. qrCodeId: Cookies.get("user"),
  796. ddgjdialogVisible: false,
  797. signaturedialogVisible: false,
  798. signaturecode: null,
  799. trajectoryTable: [],
  800. queryOrders: {
  801. carinfo: {},
  802. ownerinfo: {},
  803. applyinfo: {},
  804. insureinfo: {},
  805. extendInfo: {},
  806. },
  807. logoImg: "", //报价单保险公司logo图
  808. value2: "",
  809. optionsStatus: [],
  810. optionsStatusAll: [],
  811. codedialogVisible: false,
  812. codedialogVisiblePro: false,
  813. loading: false,
  814. pageNum: 1, //页数
  815. pageSize: 20, //条数
  816. totalSize: null, //总数
  817. peopleid: "", //工号
  818. pageResult: [], //列表
  819. pageRequest: {
  820. //查询的默认条件
  821. orderNo: "",
  822. frameNo: "",
  823. insuredName: "",
  824. licenseNo: "",
  825. orderStatus: "",
  826. userId: "",
  827. endDate: "",
  828. startDate: "",
  829. pageNum: 1,
  830. pageSize: 20,
  831. deptId: "",
  832. },
  833. orderInfo: {
  834. //选中的订单
  835. ownerinfo: {},
  836. carinfo: {},
  837. applyinfo: {},
  838. insureinfo: {},
  839. kindinfo: [],
  840. riskinfo: [],
  841. ownerinfo: {},
  842. orderCommissionVo: {},
  843. extendInfo: {},
  844. },
  845. carImageList: [], //车辆影像
  846. ownerImageList: [], //车主影像
  847. policyImageList: [], //投保人影像
  848. insuredImageList: [], //被保人影像
  849. carCheckImageList: [], //验车照影像
  850. // 影像控制
  851. pic1Control: false,
  852. pic2Control: false,
  853. pic3Control: false,
  854. pic4Control: false,
  855. pic5Control: false,
  856. showInsureList: false, //是否展示具体险种信息
  857. oldfileList: [], //电子保单数据
  858. inscompany: "", //保险公司名称
  859. licenseNo: "", //车牌号
  860. applyName: "", //车主名字
  861. orderstatus: "", //订单状态
  862. sumpremium: "", //保费合计
  863. jqpremium: "", //交强
  864. sypremium: "", //商业
  865. taxamount: "", //车船税
  866. jypremium: "", //驾意险
  867. jqstartdate: "", //交强时间
  868. systartdate: "", //商业时间
  869. mobile: "", //投保人手机号
  870. qrcode: null,
  871. paycodeimg: "",
  872. userid: "",
  873. downloadstatus: 0,
  874. expands: [],
  875. productsTypeoptions: [],
  876. InsInsuranceKindoptions: [],
  877. width: document.documentElement.clientWidth,
  878. tabelHeight: document.documentElement.clientHeight - 440,
  879. insAreaCompanyList: [], //子订单list
  880. companyList: [], //保险公司
  881. querystatusLoaing: false,
  882. quotationhistorydialogVisible: false, //报价历史显示状态
  883. HistoryList: [], //报价历史数据
  884. natureOfVehicleUseoptions: [],
  885. businessVehicleUseoptions: [],
  886. energyTypeoptions: [],
  887. vehicleTypeoptions: [],
  888. trafficManagementVehicleTypeoptions: [],
  889. outOfBusinessVehicleUseoptions: [],
  890. userIdPor: Cookies.get("user"),
  891. statusPor: "",
  892. deptIdPor: "",
  893. apiType: "",
  894. resultMessageImg: '',
  895. institutionOptions: [],
  896. imageUploaddialogVisible: false,
  897. tabLiIndex: 0,
  898. tabLimenu: [
  899. {
  900. name: "车辆信息",
  901. scroll: "vehicle",
  902. },
  903. {
  904. name: "车主信息",
  905. scroll: "owner",
  906. },
  907. {
  908. name: "投保人信息",
  909. scroll: "applicant",
  910. },
  911. {
  912. name: "被保人信息",
  913. scroll: "insured",
  914. },
  915. {
  916. name: "关系证明",
  917. scroll: "relationship",
  918. },
  919. ],
  920. //影像回显列表
  921. imgList1: [],
  922. imgList2: [],
  923. imgList3: [],
  924. imgList4: [],
  925. imgList5: [],
  926. imgList6: [],
  927. imgList7: [],
  928. imgList8: [],
  929. imgList9: [],
  930. imgList10: [],
  931. imgList11: [],
  932. //影像上传列表
  933. imageList1: [],
  934. imageList2: [],
  935. imageList3: [],
  936. imageList4: [],
  937. imageList5: [],
  938. showViewer: false,
  939. ProViewImg: "",
  940. managementSource:"",
  941. };
  942. },
  943. components: {
  944. quotationDialog, detailsDialog, quotationDialogPro, imageDialog, "el-image-viewer": () =>
  945. import("element-ui/packages/image/src/image-viewer")
  946. },
  947. created() {
  948. this.managementSource = JSON.parse(localStorage.getItem("user_data")).managementSource;
  949. this.getDicType("natureOfVehicleUse"); //车辆使用性质
  950. this.getDicType("vehicleType"); //车辆种类
  951. this.getDicType("trafficManagementVehicleType"); //车辆类型
  952. this.getDicType("energyType"); //能源种类
  953. this.getDicType("businessVehicleUse"); //(车辆用途)营业
  954. this.getDicType("outOfBusinessVehicleUse"); //(车辆用途)非营业
  955. this.getDicType("productsType"); //(车辆用途)非营业
  956. this.$api.letter.gainTopList().then((res) => {
  957. this.companyList = res.data;
  958. });
  959. this.$api.insCompany.dicType("insOrderStatusAll").then((res) => {
  960. this.optionsStatusAll = res.data.ddList;
  961. });
  962. this.$api.insCompany.dicType("insOrderStatus").then((res) => {
  963. this.optionsStatus = res.data.ddList;
  964. });
  965. this.peopleid = Cookies.get("user");
  966. this.$api.dept.findDeptTree().then((res) => {
  967. this.institutionOptions = res.data;
  968. });
  969. // this.findPage();
  970. if (this.isLetterOrder) {
  971. this.$api.user.sysMenuRecordAdd(2,2).then((res) => {
  972. });
  973. this.pageRequest.deptId = JSON.parse(
  974. localStorage.getItem("user_data")
  975. ).deptId;
  976. if (this.peopleid != "admin") {
  977. this.pageRequest.userId = this.peopleid;
  978. this.findPage();
  979. } else {
  980. this.pageRequest.userId = "admin";
  981. }
  982. }
  983. },
  984. props: {
  985. isLetterOrder: {
  986. type: Boolean,
  987. default: true,
  988. },
  989. },
  990. mounted() {
  991. window.addEventListener("resize", this.getDimensions);
  992. },
  993. beforeCreate() {
  994. _self = this;
  995. },
  996. // props:{
  997. // isdisabled:{
  998. // type:Boolean,
  999. // default:true
  1000. // },
  1001. // },
  1002. filters: {
  1003. cap(ele) {
  1004. return _self.optionsStatus.find((item) => {
  1005. return item.dictValue === ele;
  1006. }).dictTag;
  1007. },
  1008. caps(ele) {
  1009. return _self.optionsStatusAll.find((item) => {
  1010. return item.dictValue === ele;
  1011. }).dictTag;
  1012. },
  1013. },
  1014. unmounted() {
  1015. window.removeEventListener("resize", this.getDimensions);
  1016. },
  1017. computed: {
  1018. allinsOption() {
  1019. let cloneData = JSON.parse(JSON.stringify(this.allIns)); // 对源数据深度克隆
  1020. return cloneData.filter((father) => {
  1021. // 循环所有项,并添加children属性
  1022. let branchArr = cloneData.filter(
  1023. (child) => father.id == child.parentId
  1024. ); // 返回每一项的子级数组
  1025. branchArr.length > 0 ? (father.children = branchArr) : ""; //给父级添加一个children属性,并赋值
  1026. return father.parentId == 0; //返回第一层
  1027. });
  1028. },
  1029. registerDateFormat() {
  1030. let date = new Date(this.orderInfo.carinfo.registerDate);
  1031. let year = date.getFullYear();
  1032. let month = date.getMonth() + 1;
  1033. let day = date.getDate();
  1034. return year + "-" + month + "-" + day;
  1035. },
  1036. issueDateFormat() {
  1037. let date = new Date(this.orderInfo.carinfo.issueDate);
  1038. let year = date.getFullYear();
  1039. let month = date.getMonth() + 1;
  1040. let day = date.getDate();
  1041. return year + "-" + month + "-" + day;
  1042. },
  1043. },
  1044. methods: {
  1045. additionalInformation(companyId, row) {
  1046. this.companyId = companyId
  1047. this.$refs.imageDialog.imageEcho(row.quoteno)
  1048. this.$refs.imageDialog.setBackupVisible(true);
  1049. },
  1050. // 关闭查看器
  1051. closeViewer() {
  1052. this.showViewer = false;
  1053. },
  1054. handlePictureCardPreview(img) {
  1055. this.ProViewImg = img;
  1056. this.showViewer = true;
  1057. },
  1058. //影像上传
  1059. drivingupload(file, imageIdList, imgurl, type) {
  1060. let that = this;
  1061. let size = file.size / 1024 / 1024 < 5;
  1062. const isJPG =
  1063. file.raw.type === "image/jpeg" || file.raw.type === "image/png";
  1064. if (!size) {
  1065. this.$message.error("上传图片大小不能超过 5MB!");
  1066. this[imgurl] = [];
  1067. return false;
  1068. }
  1069. if (!isJPG) {
  1070. this.$message.error("上传图片只能是 JPG、PNG 格式!");
  1071. this[imgurl] = [];
  1072. return false;
  1073. }
  1074. this[imgurl].push(file);
  1075. var file = file.raw;
  1076. const params = new FormData(); // 声明formData数据类型
  1077. params.append("multipartFile", file);
  1078. params.append("type", "image");
  1079. this.$api.letter.uploadFile(params).then((res) => {
  1080. if (res.code == "200") {
  1081. if (this[imageIdList].some((v) => v.imageType == type)) {
  1082. this[imageIdList].map((val) => {
  1083. if (val.imageType == type) {
  1084. val.imageId = res.data.id;
  1085. }
  1086. });
  1087. } else {
  1088. this[imageIdList].push({
  1089. imageId: res.data.id,
  1090. imageType: type,
  1091. });
  1092. }
  1093. }
  1094. });
  1095. },
  1096. handleRemove1(file, imageIdList, imgList) {
  1097. this[imageIdList].map((ele, index) => {
  1098. if (file.imageId === ele.imageId) {
  1099. this[imageIdList].splice(index, 1);
  1100. }
  1101. return ele;
  1102. });
  1103. if (file.imageId) {
  1104. this[imgList].map((ele, index) => {
  1105. if (file.imageId === ele.imageId) {
  1106. this[imgList].splice(index, 1);
  1107. }
  1108. return ele;
  1109. });
  1110. } else {
  1111. this[imgList].map((ele, index) => {
  1112. if (file.uid === ele.uid) {
  1113. this[imgList].splice(index, 1);
  1114. }
  1115. return ele;
  1116. });
  1117. }
  1118. },
  1119. //影像上传
  1120. uploadinformation() {
  1121. // //上传图片
  1122. const mergedArray = [
  1123. ...this.imageList1,
  1124. ...this.imageList2,
  1125. ...this.imageList3,
  1126. ...this.imageList4,
  1127. ...this.imageList5,
  1128. ];
  1129. let imageparam = {
  1130. imageList: mergedArray,
  1131. quoteNo: this.quoteno,
  1132. };
  1133. this.$api.letter.uploadImages(imageparam).then((responses) => {
  1134. if (responses.code == "200") {
  1135. this.imageEcho(this.quoteno);
  1136. this.$message({ message: responses.msg, type: "success" });
  1137. } else {
  1138. this.$message({ message: responses.msg, type: "error" });
  1139. }
  1140. });
  1141. this.imageUploaddialogVisible = false;
  1142. },
  1143. tabLiScroll(id, idx) {
  1144. this.tabLiIndex = idx;
  1145. document.getElementById(id).scrollIntoView({ behavior: "smooth" });
  1146. },
  1147. imageEcho(quotenos) {
  1148. //影像查询
  1149. this.$api.letter.findByQuoteNo(quotenos).then((res) => {
  1150. if (res.code == "200") {
  1151. this.imageList1 = [];
  1152. this.imageList2 = [];
  1153. this.imageList3 = [];
  1154. this.imageList4 = [];
  1155. this.imageList5 = [];
  1156. this.imgList1 = [];
  1157. this.imgList2 = [];
  1158. this.imgList3 = [];
  1159. this.imgList4 = [];
  1160. this.imgList5 = [];
  1161. this.imgList6 = [];
  1162. this.imgList7 = [];
  1163. this.imgList8 = [];
  1164. this.imgList9 = [];
  1165. this.imgList10 = [];
  1166. this.imgList11 = [];
  1167. Object.keys(res.data).forEach((keys) => {
  1168. if (res.data[keys].url) {
  1169. res.data[keys].url = process.env.BASE_URL + res.data[keys].url;
  1170. switch (keys) {
  1171. case "C01":
  1172. this.imageList1.push({
  1173. imageId: res.data[keys].imageId,
  1174. imageType: res.data[keys].imageType,
  1175. });
  1176. this.imgList1.push(res.data[keys]);
  1177. break;
  1178. case "D01":
  1179. this.imageList1.push({
  1180. imageId: res.data[keys].imageId,
  1181. imageType: res.data[keys].imageType,
  1182. });
  1183. this.imgList2.push(res.data[keys]);
  1184. break;
  1185. case "C02":
  1186. this.imageList2.push({
  1187. imageId: res.data[keys].imageId,
  1188. imageType: res.data[keys].imageType,
  1189. });
  1190. this.imgList3.push(res.data[keys]);
  1191. break;
  1192. case "D02":
  1193. this.imageList2.push({
  1194. imageId: res.data[keys].imageId,
  1195. imageType: res.data[keys].imageType,
  1196. });
  1197. this.imgList4.push(res.data[keys]);
  1198. break;
  1199. case "C03":
  1200. this.imageList3.push({
  1201. imageId: res.data[keys].imageId,
  1202. imageType: res.data[keys].imageType,
  1203. });
  1204. this.imgList5.push(res.data[keys]);
  1205. break;
  1206. case "D03":
  1207. this.imageList3.push({
  1208. imageId: res.data[keys].imageId,
  1209. imageType: res.data[keys].imageType,
  1210. });
  1211. this.imgList6.push(res.data[keys]);
  1212. break;
  1213. case "C04":
  1214. this.imageList4.push({
  1215. imageId: res.data[keys].imageId,
  1216. imageType: res.data[keys].imageType,
  1217. });
  1218. this.imgList7.push(res.data[keys]);
  1219. break;
  1220. case "D04":
  1221. this.imageList4.push({
  1222. imageId: res.data[keys].imageId,
  1223. imageType: res.data[keys].imageType,
  1224. });
  1225. this.imgList8.push(res.data[keys]);
  1226. break;
  1227. case "XC00":
  1228. this.imageList5.push({
  1229. imageId: res.data[keys].imageId,
  1230. imageType: res.data[keys].imageType,
  1231. });
  1232. this.imgList9.push(res.data[keys]);
  1233. break;
  1234. case "GC00":
  1235. this.imageList5.push({
  1236. imageId: res.data[keys].imageId,
  1237. imageType: res.data[keys].imageType,
  1238. });
  1239. this.imgList10.push(res.data[keys]);
  1240. break;
  1241. case "GX00":
  1242. this.imageList5.push({
  1243. imageId: res.data[keys].imageId,
  1244. imageType: res.data[keys].imageType,
  1245. });
  1246. this.imgList11.push(res.data[keys]);
  1247. break;
  1248. default:
  1249. break;
  1250. }
  1251. }
  1252. });
  1253. } else {
  1254. this.$message({ message: res.msg, type: "info" });
  1255. }
  1256. });
  1257. },
  1258. //报价历史点击事件
  1259. onoffQuotationHistory(row) {
  1260. this.quotationhistoryRow = row;
  1261. this.RadioHistoryChange();
  1262. this.quotationhistorydialogVisible = true;
  1263. },
  1264. //报价轨迹查询
  1265. RadioHistoryChange() {
  1266. let params = {
  1267. orderNo: this.quotationhistoryRow.orderno,
  1268. orderStatus: "",
  1269. };
  1270. this.$api.letter.queryQuoteHistory(params).then((res) => {
  1271. res.data.forEach((item) => {
  1272. if (item.accidentInfo) {
  1273. item.accidentInfo.constructor === Object
  1274. ? [item.accidentInfo]
  1275. : item.accidentInfo;
  1276. }
  1277. });
  1278. this.HistoryList = res.data;
  1279. });
  1280. },
  1281. getDicType(type) {
  1282. this.$api.insCompany.dicType(type).then((res) => {
  1283. if (res.code == 200) {
  1284. this[type + "options"] = res.data.ddList;
  1285. }
  1286. });
  1287. },
  1288. capType(val) {
  1289. if (val == "0") {
  1290. return "success";
  1291. }
  1292. if (val == "1") {
  1293. return "warning";
  1294. }
  1295. if (val == "2" || val == "3" || val == "4") {
  1296. return "danger";
  1297. }
  1298. },
  1299. // 撤销二维码
  1300. revokeCode(id) {
  1301. this.$confirm('确定撤销二维码?', '提示', {
  1302. confirmButtonText: '确定',
  1303. cancelButtonText: '取消',
  1304. type: 'warning'
  1305. }).then(() => {
  1306. this.$api.letter.getRevokeQrCode(id).then((res) => {
  1307. if (res.code == 200) {
  1308. this.$message({
  1309. message: res.msg,
  1310. type: "success",
  1311. });
  1312. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1313. this.findPage();
  1314. }
  1315. });
  1316. }).catch(() => {
  1317. this.$message({
  1318. type: 'info',
  1319. message: '已取消撤销二维码'
  1320. });
  1321. });
  1322. },
  1323. bjdpreview(companyId, userId) {
  1324. let params = {
  1325. companyId: companyId,
  1326. };
  1327. this.$api.letter.getByCompanyId(params).then((res) => {
  1328. if (res.code == "200") {
  1329. var data = res.data;
  1330. if (data.kindinfo != null) {
  1331. data.kindinfo.map((ele, index) => {
  1332. switch (ele.kindCode) {
  1333. case "A":
  1334. if (ele.amount == 1) {
  1335. ele.amount = "投保";
  1336. } else {
  1337. ele.amount = ele.amount;
  1338. }
  1339. break;
  1340. case "D4":
  1341. case "SY_FJ_YBW2":
  1342. ele.unitAmount = this.toChinesNum(ele.unitAmount);
  1343. break;
  1344. case "MJ1":
  1345. case "MJ2":
  1346. case "MJ3":
  1347. case "MJ4":
  1348. ele.deductibleRate = ele.deductibleRate + "%";
  1349. break;
  1350. default:
  1351. ele.amount = this.toChinesNum(ele.amount);
  1352. }
  1353. return ele;
  1354. });
  1355. }
  1356. data.logoImg = this.iconfftter(res.data.inscompany);
  1357. this.queryOrders = data;
  1358. this.$api.letter.getThemeByUserId(this.userIdPor).then((res) => {
  1359. if (res.code == 200) {
  1360. if (res.data[0] == "GD") {
  1361. this.$refs.quotationDialogPro.setBackupVisible(true);
  1362. } else {
  1363. this.$refs.quotationDialog.setBackupVisible(true);
  1364. }
  1365. }
  1366. });
  1367. }
  1368. });
  1369. },
  1370. toChinesNum(num) {
  1371. if (num.toString().length == 4) {
  1372. let overQian = Math.floor(num / 1000);
  1373. let result = overQian + "千";
  1374. return result;
  1375. } else {
  1376. let overWan = Math.floor(num / 10000);
  1377. let result = overWan + "万";
  1378. return result;
  1379. }
  1380. },
  1381. iconfftter(icon) {
  1382. return CommonUtil.getDataName({
  1383. dataList: this.global.insCompanyList,
  1384. value: "name",
  1385. label: "icon",
  1386. data: icon,
  1387. });
  1388. },
  1389. getRowClass(scope, rowIndex) {
  1390. if (scope.row.insAreaCompanyList.length == 0) {
  1391. //判断当前行是否有子数据或者根据实际情况设置
  1392. return "row-expand-cover";
  1393. }
  1394. },
  1395. getDimensions() {
  1396. this.width = document.documentElement.clientWidth - 350 + "px";
  1397. this.tabelHeight = document.documentElement.clientHeight - 330 + "px";
  1398. },
  1399. //订单修改
  1400. CloseEdit(index, row) {
  1401. this.$api.letter.getByOrderNo({ orderNo: row.orderno }).then((res) => {
  1402. if (res.code == 200) {
  1403. if (this.isLetterOrder) {
  1404. this.$router.push({
  1405. path: "/letter/letter",
  1406. query: { data: res.data },
  1407. });
  1408. } else {
  1409. res.data.activeName = "999";
  1410. this.$emit("orderEdit", res.data);
  1411. }
  1412. } else {
  1413. this.$message.error(res.msg);
  1414. }
  1415. });
  1416. },
  1417. resendData(index, row) {
  1418. this.quoteno = row.quoteno;
  1419. this.imageEcho(row.quoteno)
  1420. this.imageUploaddialogVisible = true;
  1421. },
  1422. //二维码生成插件
  1423. creatQrCode(text) {
  1424. // 查找并删除旧的二维码DOM元素
  1425. this.$refs['qrcode'].innerHTML = ''
  1426. let element = document.getElementById("qrcode");
  1427. while (element.firstChild) {
  1428. element.removeChild(element.firstChild);
  1429. }
  1430. // 创建新的QRCode实例
  1431. // this.qrcode = new QRCode("qrcode", {
  1432. this.qrcode = new QRCode(this.$refs['qrcode'], {
  1433. text: text,
  1434. width: this.qrcodeWidth,
  1435. height: this.qrcodeHeight,
  1436. colorDark: "#000000",
  1437. colorLight: "#ffffff",
  1438. correctLevel: QRCode.CorrectLevel.H,
  1439. });
  1440. },
  1441. //更新订单状态
  1442. refreshStatus(item) {
  1443. let inscompany = {
  1444. 国任财险: "updateOrderInfoGuoren",
  1445. 太平财险: "auditStatusQuery",
  1446. 泰康财险: "auditStatusQuery",
  1447. 华农财险: "auditStatusQuery",
  1448. 恒邦财险: "auditStatusQuery",
  1449. 众安财险: "auditStatusQuery",
  1450. 中国人寿: "auditStatusQuery",
  1451. 安盛天平: "auditStatusQuery",
  1452. 诚泰财险: "auditStatusQuery",
  1453. 紫金财险: "auditStatusQueryZijin",
  1454. 渤海财险: "orderStatusbohai",
  1455. };
  1456. Object.keys(inscompany).forEach((val) => {
  1457. if (val == item.inscompany) {
  1458. this.$api.letter[inscompany[val]]({ companyId: item.id }).then(
  1459. (res) => {
  1460. if (res.code == 200) {
  1461. this.$message({
  1462. message: res.msg ? res.msg : "已刷新状态",
  1463. type: "success",
  1464. });
  1465. this.findPage();
  1466. } else {
  1467. this.$message({
  1468. showClose: true,
  1469. dangerouslyUseHTMLString: true,
  1470. message: res.msg.replace(/\n/g, "<br><br>"),
  1471. type: "error",
  1472. duration: 7000,
  1473. });
  1474. // this.$message({ message: res.msg, type: "error" });
  1475. }
  1476. }
  1477. );
  1478. }
  1479. });
  1480. if (item.inscompany == "永诚财险") {
  1481. this.$api.letter.orderStatusyongcheng(item.id).then((res) => {
  1482. if (res.code == 200) {
  1483. this.$message({
  1484. message: res.msg ? res.msg : "已刷新状态",
  1485. type: "success",
  1486. });
  1487. this.findPage();
  1488. } else {
  1489. this.$message({
  1490. showClose: true,
  1491. dangerouslyUseHTMLString: true,
  1492. message: res.msg.replace(/\n/g, "<br><br>"),
  1493. type: "error",
  1494. duration: 7000,
  1495. });
  1496. }
  1497. });
  1498. }
  1499. if (item.inscompany == "华泰财险") {
  1500. let HtApiType =
  1501. item.apiType == 2 ? "auditStatusQuery" : "orderStatushuatai";
  1502. this.$api.letter[HtApiType]({ companyId: item.id }).then((res) => {
  1503. if (res.code == 200) {
  1504. this.$message({
  1505. message: res.msg ? res.msg : "已刷新状态",
  1506. type: "success",
  1507. });
  1508. this.findPage();
  1509. } else {
  1510. this.$message({
  1511. showClose: true,
  1512. dangerouslyUseHTMLString: true,
  1513. message: res.msg.replace(/\n/g, "<br><br>"),
  1514. type: "error",
  1515. duration: 7000,
  1516. });
  1517. }
  1518. });
  1519. }
  1520. if (item.inscompany == "大家财险") {
  1521. let HtApiType =
  1522. item.apiType == 2 ? "auditStatusQuery" : "updateOrderInfoDajia";
  1523. this.$api.letter[HtApiType]({ companyId: item.id }).then((res) => {
  1524. if (res.code == 200) {
  1525. this.$message({
  1526. message: res.msg ? res.msg : "已刷新状态",
  1527. type: "success",
  1528. });
  1529. this.findPage();
  1530. } else {
  1531. this.$message({
  1532. showClose: true,
  1533. dangerouslyUseHTMLString: true,
  1534. message: res.msg.replace(/\n/g, "<br><br>"),
  1535. type: "error",
  1536. duration: 7000,
  1537. });
  1538. }
  1539. });
  1540. }
  1541. // 中煤财险: "orderStatuszhongmei",
  1542. if (item.inscompany == "中煤财险") {
  1543. let ZMApiType =
  1544. item.apiType == 2 ? "auditStatusQuery" : "orderStatuszhongmei";
  1545. this.$api.letter[ZMApiType]({ companyId: item.id }).then((res) => {
  1546. if (res.code == 200) {
  1547. this.$message({
  1548. message: res.msg ? res.msg : "已刷新状态",
  1549. type: "success",
  1550. });
  1551. this.findPage();
  1552. } else {
  1553. this.$message({
  1554. showClose: true,
  1555. dangerouslyUseHTMLString: true,
  1556. message: res.msg.replace(/\n/g, "<br><br>"),
  1557. type: "error",
  1558. duration: 7000,
  1559. });
  1560. }
  1561. });
  1562. }
  1563. },
  1564. //华泰刷新核保状态
  1565. updateStatusHuatai(item) {
  1566. let HtApiType =
  1567. item.apiType == 2 ? "auditStatusQuery" : "orderStatushuatai";
  1568. this.$api.letter[HtApiType]({ companyId: item.id }).then((res) => {
  1569. if (res.code == 200) {
  1570. this.$message({
  1571. message: res.msg ? res.msg : "已刷新状态",
  1572. type: "success",
  1573. });
  1574. this.findPage();
  1575. } else {
  1576. this.$message({
  1577. showClose: true,
  1578. dangerouslyUseHTMLString: true,
  1579. message: res.msg.replace(/\n/g, "<br><br>"),
  1580. type: "error",
  1581. duration: 7000,
  1582. });
  1583. }
  1584. });
  1585. },
  1586. //查询缴费状态
  1587. querystatus(item, index) {
  1588. this.querystatusLoaing = true;
  1589. let inscompany = {
  1590. 国任财险: "updateOrderInfoGuoren",
  1591. 大家财险: "updateOrderInfoDajia",
  1592. 紫金财险: "getOrderDetail",
  1593. 渤海财险: "getOrderDetailboHai",
  1594. 平安财险: "getDocumentStatusList",
  1595. };
  1596. Object.keys(inscompany).forEach((val) => {
  1597. if (val == item.inscompany) {
  1598. this.$api.letter[inscompany[val]]({ companyId: item.id }).then(
  1599. (res) => {
  1600. if (res.code == 200) {
  1601. this.$message({
  1602. message: res.msg ? res.msg : "已刷新状态",
  1603. type: "success",
  1604. });
  1605. this.quotationhistorydialogVisible
  1606. ? this.RadioHistoryChange()
  1607. : "";
  1608. this.findPage();
  1609. this.querystatusLoaing = false;
  1610. } else {
  1611. this.querystatusLoaing = false;
  1612. this.$message({ message: res.msg, type: "error" });
  1613. }
  1614. }
  1615. );
  1616. }
  1617. });
  1618. if (item.inscompany == "永诚财险") {
  1619. this.$api.letter.orderStatusyongcheng(item.id).then((res) => {
  1620. if (res.code == 200) {
  1621. this.$message({
  1622. message: res.msg ? res.msg : "已刷新状态",
  1623. type: "success",
  1624. });
  1625. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1626. this.findPage();
  1627. this.querystatusLoaing = false;
  1628. } else {
  1629. this.querystatusLoaing = false;
  1630. this.$message({ message: res.msg, type: "error" });
  1631. }
  1632. });
  1633. }
  1634. if (item.inscompany == "华泰财险") {
  1635. let HtApiType =
  1636. item.apiType == 2 ? "pychonverifyPayment" : "updateOrderInfoHuatai";
  1637. this.$api.letter[HtApiType]({
  1638. [item.apiType == 2 ? "subOrderNo" : "companyId"]: item.id,
  1639. }).then((res) => {
  1640. if (res.code == 200) {
  1641. this.$message({
  1642. message: res.msg ? res.msg : "已刷新状态",
  1643. type: "success",
  1644. });
  1645. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1646. this.findPage();
  1647. this.querystatusLoaing = false;
  1648. } else {
  1649. this.querystatusLoaing = false;
  1650. this.$message({ message: res.msg, type: "error" });
  1651. }
  1652. });
  1653. }
  1654. if (item.inscompany == "大家财险") {
  1655. let DJApiType =
  1656. item.apiType == 2 ? "pychonverifyPayment" : "updateOrderInfoDajia";
  1657. this.$api.letter[DJApiType]({
  1658. [item.apiType == 2 ? "subOrderNo" : "companyId"]: item.id,
  1659. }).then((res) => {
  1660. if (res.code == 200) {
  1661. this.$message({
  1662. message: res.msg ? res.msg : "已刷新状态",
  1663. type: "success",
  1664. });
  1665. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1666. this.findPage();
  1667. this.querystatusLoaing = false;
  1668. } else {
  1669. this.querystatusLoaing = false;
  1670. this.$message({ message: res.msg, type: "error" });
  1671. }
  1672. });
  1673. }
  1674. if (item.inscompany == "中煤财险") {
  1675. // 中煤财险: "paymentEnquiry",
  1676. let ZMApiType =
  1677. item.apiType == 2 ? "pychonverifyPayment" : "paymentEnquiry";
  1678. this.$api.letter[ZMApiType]({
  1679. [item.apiType == 2 ? "subOrderNo" : "companyId"]: item.id,
  1680. }).then((res) => {
  1681. if (res.code == 200) {
  1682. this.$message({
  1683. message: res.msg ? res.msg : "已刷新状态",
  1684. type: "success",
  1685. });
  1686. this.quotationhistorydialogVisible ? this.RadioHistoryChange() : "";
  1687. this.findPage();
  1688. this.querystatusLoaing = false;
  1689. } else {
  1690. this.querystatusLoaing = false;
  1691. this.$message({ message: res.msg, type: "error" });
  1692. }
  1693. });
  1694. }
  1695. if (
  1696. item.inscompany == "诚泰财险" ||
  1697. item.inscompany == "恒邦财险" ||
  1698. item.inscompany == "众安财险" ||
  1699. item.inscompany == "中国人寿" ||
  1700. item.inscompany == "安盛天平" ||
  1701. item.inscompany == "太平财险" ||
  1702. item.inscompany == "泰康财险" ||
  1703. item.inscompany == "华农财险"
  1704. ) {
  1705. this.$api.letter
  1706. .pychonverifyPayment({ subOrderNo: item.id })
  1707. .then((res) => {
  1708. if (res.code == "200") {
  1709. this.$message({
  1710. message: "订单支付成功,正在更改状态",
  1711. type: "success",
  1712. });
  1713. this.quotationhistorydialogVisible
  1714. ? this.RadioHistoryChange()
  1715. : "";
  1716. this.findPage();
  1717. this.querystatusLoaing = false;
  1718. } else {
  1719. this.querystatusLoaing = false;
  1720. this.$message({ message: res.msg, type: "error" });
  1721. }
  1722. });
  1723. }
  1724. },
  1725. cancelorder(item) {
  1726. this.$api.letter.zijincancelorder({ companyId: item.id }).then((res) => {
  1727. if (res.code == 200) {
  1728. this.$message({
  1729. message: res.msg,
  1730. type: "success",
  1731. });
  1732. this.findPage();
  1733. }
  1734. });
  1735. },
  1736. //二维码
  1737. carcode(item) {
  1738. this.apiType = item.apiType;
  1739. this.$api.letter.getQrCode(item.id).then((res) => {
  1740. if (res.code == "200") {
  1741. this.inscompany = res.data.inscompany; //保险公司
  1742. this.sumpremium = res.data.sumpremium; //总价
  1743. this.licenseNo = res.data.cPlateNo; //车牌号
  1744. this.applyName = res.data.cApplyNme; //车主
  1745. this.jqpremium = res.data.jqpremium; //交强
  1746. this.sypremium = res.data.sypremium; //商业
  1747. this.taxamount = res.data.taxamount; //车船税
  1748. this.jypremium = res.data.jypremium; //驾意险
  1749. this.jqstartdate = res.data.jqStartDate; //交强起保日期
  1750. this.systartdate = res.data.syStartDate; //商业起保日期
  1751. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  1752. let qrCodeUrl = res.data.qrCodeUrl;
  1753. this.$api.letter.getThemeByUserId(this.userIdPor).then((res) => {
  1754. if (res.code == 200) {
  1755. if (res.data[0] == "GD") {
  1756. this.codedialogVisiblePro = true;
  1757. this.qrcodeWidth = "154";
  1758. this.qrcodeHeight = "154";
  1759. } else {
  1760. this.codedialogVisible = true;
  1761. }
  1762. this.$nextTick(function () {
  1763. if (item.inscompany == "太平财险" || item.inscompany == "诚泰财险") {
  1764. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  1765. let animgBase64 = `data:image/png;base64,${anresult}`;
  1766. base64ToPath(animgBase64).then((path) => {
  1767. this.paycodeimg = path;
  1768. });
  1769. } else if (item.inscompany == "华泰财险") {
  1770. switch (item.apiType) {
  1771. case 1:
  1772. this.creatQrCode(qrCodeUrl);
  1773. break;
  1774. case 2:
  1775. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  1776. let animgBase64 = `data:image/png;base64,${anresult}`;
  1777. base64ToPath(animgBase64).then((path) => {
  1778. console.log(path)
  1779. this.paycodeimg = path;
  1780. });
  1781. break;
  1782. }
  1783. } else if (item.inscompany == "大家财险") {
  1784. switch (item.apiType) {
  1785. case 1:
  1786. this.creatQrCode(qrCodeUrl);
  1787. break;
  1788. case 2:
  1789. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  1790. let animgBase64 = `data:image/png;base64,${anresult}`;
  1791. base64ToPath(animgBase64).then((path) => {
  1792. this.paycodeimg = path;
  1793. });
  1794. break;
  1795. }
  1796. } else if (item.inscompany == "中煤财险") {
  1797. switch (item.apiType) {
  1798. case 1:
  1799. this.creatQrCode(qrCodeUrl);
  1800. break;
  1801. case 2:
  1802. let anresult = qrCodeUrl.replace(/[\r\n]/g, "");
  1803. let animgBase64 = `data:image/png;base64,${anresult}`;
  1804. base64ToPath(animgBase64).then((path) => {
  1805. this.paycodeimg = path;
  1806. });
  1807. break;
  1808. }
  1809. } else {
  1810. this.creatQrCode(qrCodeUrl);
  1811. }
  1812. });
  1813. }
  1814. });
  1815. } else {
  1816. this.$message({ message: res.msg, type: "warning" });
  1817. }
  1818. });
  1819. // this.$api.letter.getByCompanyId(params).then(res => {
  1820. // if (res.code == '200') {
  1821. // this.inscompany = res.data.inscompany;//保险公司
  1822. // this.sumpremium = res.data.sumpremium;//总价
  1823. // this.licenseNo = res.data.carinfo.licenseNo;//车牌号
  1824. // this.applyName = res.data.insuredname;//车主
  1825. // this.jqpremium = res.data.jqpremium;//交强
  1826. // this.sypremium = res.data.sypremium;//商业
  1827. // this.taxamount = res.data.taxamount;//车船税
  1828. // this.jypremium = res.data.jypremium;//驾意险
  1829. // this.jqstartdate = res.data.jqstartdate;//交强起保日期
  1830. // this.systartdate = res.data.systartdate;//商业起保日期
  1831. // this.mobile = res.data.applyinfo.mobile;//投保人手机号
  1832. // switch (item.inscompany) {
  1833. // case "永安财险":
  1834. // let url = this.global.h5BaseUrl + '/#/pages/carInsure1/yonganCode?companyId=' + item.id + '&mobile=' + this.mobile;
  1835. // this.$nextTick(() => {
  1836. // this.creatQrCode(url);
  1837. // });
  1838. // break;
  1839. // case "人保财险":
  1840. // case "中煤财险":
  1841. // case "华泰财险":
  1842. // case "永诚财险":
  1843. // case "紫金财险":
  1844. // this.$nextTick(() => {
  1845. // this.creatQrCode(res.data.paymentLink);
  1846. // });
  1847. // break;
  1848. // case "众安财险":
  1849. // this.paycodeimg = res.data.paymentLink;
  1850. // break;
  1851. // case "中国人寿":
  1852. // this.$nextTick(() => {
  1853. // this.creatQrCode(res.data.paymentLink);
  1854. // });
  1855. // break;
  1856. // case "恒邦财险":
  1857. // this.paycodeimg = res.data.paymentLink;
  1858. // break;
  1859. // case "国任财险":
  1860. // this.paycodeimg = res.data.paymentLink;
  1861. // break;
  1862. // case "安盛天平":
  1863. // let anresult = res.data.paymentLink.replace(/[\r\n]/g, "");
  1864. // let animgBase64 = `data:image/png;base64,${anresult}`;
  1865. // base64ToPath(animgBase64)
  1866. // .then(path => {
  1867. // this.paycodeimg = path;
  1868. // })
  1869. // break;
  1870. // default:
  1871. // this.$message({ message: "识别不到保险公司,请检查", type: "warning" })
  1872. // }
  1873. // this.codedialogVisible = true;
  1874. // } else {
  1875. // this.$message({ message: res.msg, type: "warning" })
  1876. // }
  1877. // })
  1878. },
  1879. signature(row) {
  1880. this.$api.letter.pingAnsignEleApply({ companyId: row.id }).then((res) => {
  1881. if (res.code == 200 && res.data) {
  1882. this.resultMessageImg = process.env.BASE_URL + res.data.resultMessage
  1883. this.signaturedialogVisible = true;
  1884. // 查找并删除旧的二维码DOM元素
  1885. // let element = document.getElementById("signaturecode");
  1886. // while (element.firstChild) {
  1887. // element.removeChild(element.firstChild);
  1888. // }
  1889. // this.signaturecode = new QRCode("signaturecode", {
  1890. // text: resultMessage,
  1891. // width: 180,
  1892. // height: 180,
  1893. // colorDark: "#000000",
  1894. // colorLight: "#ffffff",
  1895. // correctLevel: QRCode.CorrectLevel.H,
  1896. // });
  1897. } else {
  1898. this.$message({
  1899. message: res.msg || "暂无数据!",
  1900. type: "warning",
  1901. });
  1902. }
  1903. });
  1904. },
  1905. orderTrajectory(row, item) {
  1906. this.$api.letter.queryBySuborder(item.id).then((res) => {
  1907. if (res.code == 200 && res.data.length > 0) {
  1908. this.ddgjdialogVisible = true;
  1909. this.trajectoryTable = res.data;
  1910. } else {
  1911. this.$message({
  1912. message: res.msg || "暂无数据!",
  1913. type: "warning",
  1914. });
  1915. }
  1916. });
  1917. },
  1918. capTypedictTag(val, option) {
  1919. if (option.find((item) => item.dictValue == val)) {
  1920. return option.find((item) => item.dictValue == val).dictTag;
  1921. } else {
  1922. return "-";
  1923. }
  1924. },
  1925. //应用详情
  1926. OrderDetails(dy, item) {
  1927. console.log(dy, item)
  1928. this.carImageList = [];
  1929. this.ownerImageList = []; //车主影像
  1930. this.policyImageList = []; //投保人影像
  1931. this.insuredImageList = []; //被保人影像
  1932. this.carCheckImageList = []; //验车照影像
  1933. // 影像控制
  1934. this.pic1Control = false;
  1935. this.pic2Control = false;
  1936. this.pic3Control = false;
  1937. this.pic4Control = false;
  1938. this.pic5Control = false;
  1939. for (let i = 0; i < this.global.insureList.length; i++) {
  1940. this.global.insureList[i].coveragePremium = "";
  1941. this.global.insureList[i].amount = 0;
  1942. }
  1943. let params = {
  1944. companyId: item.id,
  1945. };
  1946. this.$api.letter.getByCompanyId(params).then((res) => {
  1947. if (res.code == 200) {
  1948. this.licenseNo = res.data.licenseno; //车牌号
  1949. this.inscompany = res.data.inscompany; //保险公司
  1950. // res.data.carinfo.carnature = this.natureOfVehicleUseCap(
  1951. // res.data.carinfo.carnature
  1952. // );
  1953. if (
  1954. (res.data.carinfo.carnature &&
  1955. res.data.carinfo.carnature == "02") ||
  1956. res.data.carinfo.carnature == "非营业"
  1957. ) {
  1958. res.data.carinfo.vehicleUse = this.capTypedictTag(
  1959. res.data.carinfo.vehicleUse,
  1960. this.outOfBusinessVehicleUseoptions
  1961. );
  1962. } else {
  1963. res.data.carinfo.vehicleUse = this.capTypedictTag(
  1964. res.data.carinfo.vehicleUse,
  1965. this.businessVehicleUseoptions
  1966. );
  1967. }
  1968. res.data.carinfo.carnature = this.capTypedictTag(
  1969. res.data.carinfo.carnature,
  1970. this.natureOfVehicleUseoptions
  1971. );
  1972. res.data.carinfo.cartype = res.data.carinfo.cartype
  1973. ? this.capTypedictTag(
  1974. res.data.carinfo.cartype,
  1975. this.trafficManagementVehicleTypeoptions
  1976. )
  1977. : "";
  1978. res.data.carinfo.cimodelclass = res.data.carinfo.cimodelclass
  1979. ? this.capTypedictTag(
  1980. res.data.carinfo.cimodelclass,
  1981. this.vehicleTypeoptions
  1982. )
  1983. : "";
  1984. res.data.carinfo.energyType = res.data.carinfo.energyType
  1985. ? this.capTypedictTag(
  1986. res.data.carinfo.energyType,
  1987. this.energyTypeoptions
  1988. )
  1989. : "";
  1990. if (res.data.accidentInfo) {
  1991. res.data.accidentInfo.constructor === Object
  1992. ? [res.data.accidentInfo]
  1993. : res.data.accidentInfo;
  1994. }
  1995. Object.assign(this.orderInfo, res.data);
  1996. if (this.orderInfo.riskinfo && this.orderInfo.riskinfo.length > 0) {
  1997. for (let i = 0; i < this.orderInfo.riskinfo.length; i++) {
  1998. if (this.orderInfo.riskinfo[i].riskCode == "0510") {
  1999. for (let j = 0; j < this.orderInfo.kindinfo.length; j++) {
  2000. for (let m = 0; m < this.global.insureList.length; m++) {
  2001. if (
  2002. this.orderInfo.kindinfo[j].kindCode ==
  2003. this.global.insureList[m].kindCode
  2004. ) {
  2005. this.global.insureList[m].coveragePremium =
  2006. this.orderInfo.kindinfo[j].coveragePremium;
  2007. if (this.orderInfo.kindinfo[j].kindCode == "B") {
  2008. this.global.insureList[9].amtList[0].value =
  2009. this.orderInfo.kindinfo[j].amount;
  2010. }
  2011. if (this.orderInfo.kindinfo[j].kindCode == "A") {
  2012. this.global.insureList[m].amount = "1";
  2013. } else if (this.global.insureList[m].kindCode == "D4") {
  2014. this.global.insureList[m].amount =
  2015. this.orderInfo.kindinfo[j].unitAmount;
  2016. } else if (
  2017. this.global.insureList[m].isMainRisk ||
  2018. this.global.insureList[m].kindCode == "BD" ||
  2019. this.global.insureList[m].kindCode == "L"
  2020. ) {
  2021. this.global.insureList[m].amount =
  2022. this.orderInfo.kindinfo[j].amount;
  2023. } else {
  2024. this.global.insureList[m].amount =
  2025. this.orderInfo.kindinfo[j].deductibleRate;
  2026. }
  2027. }
  2028. }
  2029. }
  2030. }
  2031. }
  2032. }
  2033. // 获取影像
  2034. this.$api.letter.findByQuoteNo(dy.quoteno).then((resImage) => {
  2035. Object.keys(resImage.data).forEach((keys) => {
  2036. if (resImage.data[keys]) {
  2037. resImage.data[keys].url = resImage.data[keys].url
  2038. ? process.env.BASE_URL + resImage.data[keys].url
  2039. : null;
  2040. switch (keys) {
  2041. case "C01":
  2042. case "D01":
  2043. resImage.data[keys].url
  2044. ? this.carImageList.push(resImage.data[keys].url)
  2045. : "";
  2046. break;
  2047. case "C02":
  2048. case "D02":
  2049. resImage.data[keys].url
  2050. ? this.ownerImageList.push(resImage.data[keys].url)
  2051. : "";
  2052. break;
  2053. case "C03":
  2054. case "D03":
  2055. resImage.data[keys].url
  2056. ? this.policyImageList.push(resImage.data[keys].url)
  2057. : "";
  2058. break;
  2059. case "C04":
  2060. case "D04":
  2061. resImage.data[keys].url
  2062. ? this.insuredImageList.push(resImage.data[keys].url)
  2063. : "";
  2064. break;
  2065. case "XC00":
  2066. case "GC00":
  2067. case "GX00":
  2068. resImage.data[keys].url
  2069. ? this.carCheckImageList.push(resImage.data[keys].url)
  2070. : "";
  2071. break;
  2072. default:
  2073. break;
  2074. }
  2075. }
  2076. });
  2077. let obj = {
  2078. carImageList: this.carImageList,
  2079. ownerImageList: this.ownerImageList,
  2080. policyImageList: this.policyImageList,
  2081. insuredImageList: this.insuredImageList,
  2082. carCheckImageList: this.carCheckImageList,
  2083. };
  2084. this.$refs.detailsDialog.imageFun(obj);
  2085. });
  2086. this.pic1Control = false;
  2087. this.pic2Control = false;
  2088. this.pic3Control = false;
  2089. this.pic4Control = false;
  2090. this.pic5Control = false;
  2091. this.oldfileList = [];
  2092. let businessList = [];
  2093. let accidentList = [];
  2094. if (res.data.orderstatus == "3") {
  2095. if (res.data.isExternal == 1) {
  2096. this.$api.letter
  2097. .getPolicyPrintexternalOrder(res.data.id)
  2098. .then((res1) => {
  2099. if (res1.code == 200) {
  2100. if (res1.data.jqPolicy) {
  2101. this.oldfileList.push({
  2102. fileTitle: "交强电子保单",
  2103. filename: this.orderInfo.jqpolicyno,
  2104. fileurl: res1.data.jqPolicy,
  2105. });
  2106. }
  2107. if (res1.data.jqSign) {
  2108. this.oldfileList.push({
  2109. fileTitle: "交强电子标志",
  2110. filename: this.orderInfo.jqpolicyno,
  2111. fileurl: res1.data.jqSign,
  2112. });
  2113. }
  2114. if (res1.data.jqSign) {
  2115. accidentList.push({
  2116. fileTitle: "商业电子保单",
  2117. filename: this.orderInfo.sypolicyno,
  2118. fileurl: res1.data.jqSign,
  2119. });
  2120. }
  2121. if (res1.data.noPolicy) {
  2122. accidentList.push({
  2123. fileTitle: "驾意险保单",
  2124. filename: "驾意险保单",
  2125. fileurl: res1.data.noPolicy,
  2126. });
  2127. }
  2128. } else {
  2129. this.$message.error(res1.msg);
  2130. }
  2131. });
  2132. } else {
  2133. switch (res.data.inscompany) {
  2134. case "永安财险":
  2135. if (this.orderInfo.jqpolicyno) {
  2136. this.$api.letter
  2137. .getPolicyPrint({
  2138. companyId: item.id,
  2139. policytype: "jq",
  2140. })
  2141. .then((res) => {
  2142. //交强保单
  2143. if (res.data) {
  2144. let result = res.data.replace(/[\r\n]/g, "");
  2145. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2146. base64ToPath(pdfBase64).then((path) => {
  2147. if (path) {
  2148. this.oldfileList.push({
  2149. fileTitle: "交强电子保单",
  2150. filename: this.orderInfo.jqpolicyno,
  2151. fileurl: path,
  2152. });
  2153. }
  2154. });
  2155. }
  2156. });
  2157. this.$api.letter
  2158. .getPolicyPrint2({
  2159. companyId: item.id,
  2160. policytype: "jq",
  2161. })
  2162. .then((res) => {
  2163. //交强保单
  2164. if (res.data) {
  2165. let result = res.data.replace(/[\r\n]/g, "");
  2166. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2167. base64ToPath(pdfBase64).then((path) => {
  2168. if (path) {
  2169. this.oldfileList.push({
  2170. fileTitle: "交强电子标志",
  2171. filename: this.orderInfo.jqpolicyno,
  2172. fileurl: path,
  2173. });
  2174. }
  2175. });
  2176. }
  2177. });
  2178. }
  2179. if (this.orderInfo.sypolicyno) {
  2180. this.$api.letter
  2181. .getPolicyPrint({
  2182. companyId: item.id,
  2183. policytype: "sy",
  2184. })
  2185. .then((res) => {
  2186. //商业保单
  2187. if (res.data) {
  2188. let result = res.data.replace(/[\r\n]/g, "");
  2189. let pdfBase64 = `data:application/pdf;base64,${result}`;
  2190. base64ToPath(pdfBase64).then((path) => {
  2191. if (path) {
  2192. businessList.push({
  2193. fileTitle: "商业电子保单",
  2194. filename: this.orderInfo.sypolicyno,
  2195. fileurl: path,
  2196. });
  2197. }
  2198. });
  2199. }
  2200. });
  2201. }
  2202. break;
  2203. case "华泰财险":
  2204. switch (item.apiType) {
  2205. case 1:
  2206. if (this.orderInfo.jqpolicyno) {
  2207. this.$api.letter
  2208. .HuataigetPolicyPrint({
  2209. companyId: item.id,
  2210. riskCode: "0507",
  2211. type: "2", //2:保单
  2212. })
  2213. .then((res) => {
  2214. if (res.data) {
  2215. if (res.data.jqxPolicyUrl) {
  2216. this.oldfileList.push({
  2217. fileTitle: "交强电子保单",
  2218. filename: this.orderInfo.jqpolicyno,
  2219. fileurl: res.data.jqxPolicyUrl,
  2220. });
  2221. }
  2222. if (res.data.jqxFlagUrl) {
  2223. this.oldfileList.push({
  2224. fileTitle: "交强电子标志",
  2225. filename: this.orderInfo.jqpolicyno,
  2226. fileurl: res.data.jqxFlagUrl,
  2227. });
  2228. }
  2229. } else {
  2230. this.$message.error(res.msg);
  2231. }
  2232. });
  2233. }
  2234. if (this.orderInfo.sypolicyno) {
  2235. this.$api.letter
  2236. .HuataigetPolicyPrint({
  2237. companyId: item.id,
  2238. riskCode: "0510",
  2239. type: "2", //2:保单
  2240. })
  2241. .then((res) => {
  2242. if (res.data && res.data.syxPolicyUrl) {
  2243. businessList.push({
  2244. fileTitle: "商业电子保单",
  2245. filename: this.orderInfo.sypolicyno,
  2246. fileurl: res.data.syxPolicyUrl,
  2247. });
  2248. } else {
  2249. this.$message.error(res.msg);
  2250. }
  2251. });
  2252. }
  2253. break;
  2254. case 2:
  2255. if (
  2256. this.orderInfo.jqpolicyno ||
  2257. this.orderInfo.sypolicyno
  2258. ) {
  2259. this.$api.letter
  2260. .pythongetPolicyPrint({
  2261. subOrderNo: item.id,
  2262. })
  2263. .then((res) => {
  2264. if (res.code == 200 && res.data) {
  2265. if (res.data.jqxPolicyUrl) {
  2266. this.oldfileList.push({
  2267. fileTitle: "交强电子保单",
  2268. filename: this.orderInfo.jqpolicyno,
  2269. fileurl: res.data.jqxPolicyUrl,
  2270. });
  2271. }
  2272. if (res.data.jqxFlagUrl) {
  2273. this.oldfileList.push({
  2274. fileTitle: "交强电子标志",
  2275. filename: this.orderInfo.jqpolicyno,
  2276. fileurl: res.data.jqxFlagUrl,
  2277. });
  2278. }
  2279. if (res.data.syxPolicyUrl) {
  2280. businessList.push({
  2281. fileTitle: "商业电子保单",
  2282. filename: this.orderInfo.sypolicyno,
  2283. fileurl: res.data.syxPolicyUrl,
  2284. });
  2285. }
  2286. if (
  2287. res.data.jyxInfoList &&
  2288. res.data.jyxInfoList.length > 0
  2289. ) {
  2290. res.data.jyxInfoList.forEach((val) => {
  2291. accidentList.push({
  2292. fileTitle: "驾意险保单",
  2293. filename: "驾意险保单",
  2294. fileurl: val.jyx_policy_url,
  2295. });
  2296. });
  2297. }
  2298. } else {
  2299. this.$message.error(res.msg);
  2300. }
  2301. });
  2302. }
  2303. break;
  2304. }
  2305. break;
  2306. case "中煤财险":
  2307. switch (item.apiType) {
  2308. case 1:
  2309. if (this.orderInfo.jqpolicyno) {
  2310. this.$api.letter
  2311. .ZhongmeigetPolicyPrint({
  2312. companyId: item.id,
  2313. riskCode: "0507",
  2314. type: "2", //2:保单
  2315. })
  2316. .then((res) => {
  2317. if (res.data && res.data[0]) {
  2318. this.oldfileList.push({
  2319. fileTitle: "交强电子保单",
  2320. filename: this.orderInfo.jqpolicyno,
  2321. fileurl: res.data[0],
  2322. });
  2323. } else {
  2324. this.$message.error(res.msg);
  2325. }
  2326. });
  2327. this.$api.letter
  2328. .ZhongmeigetPolicyPrint({
  2329. companyId: item.id,
  2330. riskCode: "0507",
  2331. type: "1", // 1:标志
  2332. })
  2333. .then((res) => {
  2334. if (res.data && res.data[0]) {
  2335. this.oldfileList.push({
  2336. fileTitle: "交强电子标志",
  2337. filename: this.orderInfo.jqpolicyno,
  2338. fileurl: res.data[0],
  2339. });
  2340. } else {
  2341. this.$message.error(res.msg);
  2342. }
  2343. });
  2344. }
  2345. if (this.orderInfo.sypolicyno) {
  2346. this.$api.letter
  2347. .ZhongmeigetPolicyPrint({
  2348. companyId: item.id,
  2349. riskCode: "0510",
  2350. type: "2", //2:保单
  2351. })
  2352. .then((res) => {
  2353. if (res.data && res.data[0]) {
  2354. businessList.push({
  2355. fileTitle: "商业电子保单",
  2356. filename: this.orderInfo.sypolicyno,
  2357. fileurl: res.data[0],
  2358. });
  2359. } else {
  2360. this.$message.error(res.msg);
  2361. }
  2362. });
  2363. }
  2364. if (this.orderInfo.crossInsurance.length > 0) {
  2365. this.orderInfo.crossInsurance.map((ele) => {
  2366. this.$api.letter
  2367. .ZhongmeigetPolicyPrint({
  2368. ridePolicyNo: ele.ridePolicyNo,
  2369. companyId: item.id,
  2370. riskCode: "0513",
  2371. type: "2", //2:保单
  2372. })
  2373. .then((res) => {
  2374. if (res.code == 200 && res.data) {
  2375. accidentList.push({
  2376. fileTitle: "驾意险保单",
  2377. filename: this.orderInfo.sypolicyno,
  2378. fileurl: res.data[0],
  2379. });
  2380. } else {
  2381. this.$message.error(res.msg);
  2382. }
  2383. });
  2384. });
  2385. }
  2386. break;
  2387. case 2:
  2388. if (
  2389. this.orderInfo.jqpolicyno ||
  2390. this.orderInfo.sypolicyno
  2391. ) {
  2392. this.$api.letter
  2393. .pythongetPolicyPrint({
  2394. subOrderNo: item.id,
  2395. })
  2396. .then((res) => {
  2397. if (res.code == 200 && res.data) {
  2398. if (res.data.jqxPolicyUrl) {
  2399. this.oldfileList.push({
  2400. fileTitle: "交强电子保单",
  2401. filename: this.orderInfo.jqpolicyno,
  2402. fileurl: res.data.jqxPolicyUrl,
  2403. });
  2404. }
  2405. if (res.data.jqxFlagUrl) {
  2406. this.oldfileList.push({
  2407. fileTitle: "交强电子标志",
  2408. filename: this.orderInfo.jqpolicyno,
  2409. fileurl: res.data.jqxFlagUrl,
  2410. });
  2411. }
  2412. if (res.data.syxPolicyUrl) {
  2413. businessList.push({
  2414. fileTitle: "商业电子保单",
  2415. filename: this.orderInfo.sypolicyno,
  2416. fileurl: res.data.syxPolicyUrl,
  2417. });
  2418. }
  2419. if (
  2420. res.data.jyxInfoList &&
  2421. res.data.jyxInfoList.length > 0
  2422. ) {
  2423. res.data.jyxInfoList.forEach((val) => {
  2424. accidentList.push({
  2425. fileTitle: "驾意险保单",
  2426. filename: "驾意险保单",
  2427. fileurl: val.jyx_policy_url,
  2428. });
  2429. });
  2430. }
  2431. } else {
  2432. this.$message.error(res.msg);
  2433. }
  2434. });
  2435. }
  2436. break;
  2437. }
  2438. break;
  2439. case "永诚财险":
  2440. if (this.orderInfo.jqpolicyno) {
  2441. this.$api.letter
  2442. .yongchenggetPolicyPrint({
  2443. companyId: item.id,
  2444. riskCode: "0507",
  2445. type: "2", //2:保单
  2446. })
  2447. .then((res) => {
  2448. if (res.code == 200 && res.data) {
  2449. if (res.data.jqUrl) {
  2450. this.oldfileList.push({
  2451. fileTitle: "交强电子保单",
  2452. filename: this.orderInfo.jqpolicyno,
  2453. fileurl: res.data.jqUrl,
  2454. });
  2455. }
  2456. if (res.data.jqFlagUrl) {
  2457. this.oldfileList.push({
  2458. fileTitle: "交强电子标志",
  2459. filename: this.orderInfo.jqpolicyno,
  2460. fileurl: res.data.jqFlagUrl,
  2461. });
  2462. }
  2463. } else {
  2464. this.$message.error(res.msg);
  2465. }
  2466. });
  2467. }
  2468. if (this.orderInfo.sypolicyno) {
  2469. this.$api.letter
  2470. .yongchenggetPolicyPrint({
  2471. companyId: item.id,
  2472. riskCode: "0510",
  2473. type: "2", //2:保单
  2474. })
  2475. .then((res) => {
  2476. if (res.data && res.data.syUrl) {
  2477. businessList.push({
  2478. fileTitle: "商业电子保单",
  2479. filename: this.orderInfo.sypolicyno,
  2480. fileurl: res.data.syUrl,
  2481. });
  2482. } else {
  2483. this.$message.error(res.msg);
  2484. }
  2485. });
  2486. }
  2487. if (this.orderInfo.crossInsurance.length > 0) {
  2488. this.orderInfo.crossInsurance.map((ele) => {
  2489. this.$api.letter
  2490. .yongchenggetPolicyPrint({
  2491. companyId: item.id,
  2492. policyNumber: ele.policyNumber,
  2493. riskCode: "0513",
  2494. type: "2", //2:保单
  2495. })
  2496. .then((res) => {
  2497. if (res.code == 200 && res.data) {
  2498. accidentList.push({
  2499. fileTitle: "驾意险保单",
  2500. filename: ele.policyNumber,
  2501. fileurl: res.data.jyUrl,
  2502. });
  2503. } else {
  2504. this.$message.error(res.msg);
  2505. }
  2506. });
  2507. });
  2508. }
  2509. break;
  2510. case "国任财险":
  2511. if (this.orderInfo.jqpolicyno) {
  2512. this.$api.letter
  2513. .guoRengetPolicyPrint({
  2514. companyId: item.id,
  2515. riskCode: "0507",
  2516. type: "2", //2:保单
  2517. })
  2518. .then((res) => {
  2519. if (res.data) {
  2520. this.oldfileList.push({
  2521. fileTitle: "交强电子保单",
  2522. filename: this.orderInfo.jqpolicyno,
  2523. fileurl: res.data,
  2524. });
  2525. } else {
  2526. this.$message.error(res.msg);
  2527. }
  2528. });
  2529. this.$api.letter
  2530. .guoRengetPolicyPrint({
  2531. companyId: item.id,
  2532. riskCode: "0507",
  2533. type: "1", //1:标志
  2534. })
  2535. .then((res) => {
  2536. if (res.data) {
  2537. this.oldfileList.push({
  2538. fileTitle: "交强电子标志",
  2539. filename: this.orderInfo.jqpolicyno,
  2540. fileurl: res.data,
  2541. });
  2542. } else {
  2543. this.$message.error(res.msg);
  2544. }
  2545. });
  2546. }
  2547. if (this.orderInfo.sypolicyno) {
  2548. this.$api.letter
  2549. .guoRengetPolicyPrint({
  2550. companyId: item.id,
  2551. riskCode: "0510",
  2552. type: "2", //2:保单
  2553. })
  2554. .then((res) => {
  2555. if (res.data) {
  2556. businessList.push({
  2557. fileTitle: "商业电子保单",
  2558. filename: this.orderInfo.sypolicyno,
  2559. fileurl: res.data,
  2560. });
  2561. } else {
  2562. this.$message.error(res.msg);
  2563. }
  2564. });
  2565. }
  2566. if (this.orderInfo.crossInsurance.length > 0) {
  2567. this.orderInfo.crossInsurance.map((ele) => {
  2568. this.$api.letter
  2569. .guoRengetPolicyPrint({
  2570. companyId: item.id,
  2571. policyNumber: ele.policyNumber,
  2572. riskCode: "0513",
  2573. type: "2", //2:保单
  2574. })
  2575. .then((res) => {
  2576. if (res.data) {
  2577. accidentList.push({
  2578. fileTitle: "驾意险保单",
  2579. filename: ele.policyNumber,
  2580. fileurl: res.data,
  2581. });
  2582. } else {
  2583. this.$message.error(res.msg);
  2584. }
  2585. });
  2586. });
  2587. }
  2588. break;
  2589. case "紫金财险":
  2590. if (this.orderInfo.jqpolicyno) {
  2591. this.$api.letter
  2592. .zijingetPolicyPrint({
  2593. companyId: item.id,
  2594. riskCode: "0507",
  2595. type: "2", //2:保单
  2596. })
  2597. .then((res) => {
  2598. if (res.data) {
  2599. this.oldfileList.push({
  2600. fileTitle: "交强电子保单",
  2601. filename: this.orderInfo.jqpolicyno,
  2602. fileurl: res.data,
  2603. });
  2604. } else {
  2605. this.$message.error(res.msg);
  2606. }
  2607. });
  2608. this.$api.letter
  2609. .zijingetPolicyPrint({
  2610. companyId: item.id,
  2611. riskCode: "0507",
  2612. type: "1", //1:标志
  2613. })
  2614. .then((res) => {
  2615. if (res.data) {
  2616. this.oldfileList.push({
  2617. fileTitle: "交强电子标志",
  2618. filename: this.orderInfo.jqpolicyno,
  2619. fileurl: res.data,
  2620. });
  2621. } else {
  2622. this.$message.error(res.msg);
  2623. }
  2624. });
  2625. }
  2626. if (this.orderInfo.sypolicyno) {
  2627. this.$api.letter
  2628. .zijingetPolicyPrint({
  2629. companyId: item.id,
  2630. riskCode: "0510",
  2631. type: "2", //2:保单
  2632. })
  2633. .then((res) => {
  2634. if (res.data) {
  2635. businessList.push({
  2636. fileTitle: "商业电子保单",
  2637. filename: this.orderInfo.sypolicyno,
  2638. fileurl: res.data,
  2639. });
  2640. } else {
  2641. this.$message.error(res.msg);
  2642. }
  2643. });
  2644. }
  2645. if (this.orderInfo.crossInsurance.length > 0) {
  2646. this.orderInfo.crossInsurance.map((ele) => {
  2647. this.$api.letter
  2648. .zijingetPolicyPrint({
  2649. companyId: item.id,
  2650. policyNumber: ele.policyNumber,
  2651. riskCode: "0513",
  2652. type: "2", //2:保单
  2653. })
  2654. .then((res) => {
  2655. if (res.data) {
  2656. accidentList.push({
  2657. fileTitle: "驾意险保单",
  2658. filename: ele.policyNumber,
  2659. fileurl: res.data,
  2660. });
  2661. } else {
  2662. this.$message.error(res.msg);
  2663. }
  2664. });
  2665. });
  2666. }
  2667. break;
  2668. case "渤海财险":
  2669. if (this.orderInfo.jqpolicyno) {
  2670. this.$api.letter
  2671. .getPolicyPrintboHai({
  2672. companyId: item.id,
  2673. })
  2674. .then((res) => {
  2675. if (res.code == 200 && res.data) {
  2676. if (res.data.jqxPolicyUrl) {
  2677. this.oldfileList.push({
  2678. fileTitle: "交强电子保单",
  2679. filename: this.orderInfo.jqpolicyno,
  2680. fileurl: res.data.jqxPolicyUrl,
  2681. });
  2682. }
  2683. if (res.data.jqxFlagUrl) {
  2684. this.oldfileList.push({
  2685. fileTitle: "交强电子标志",
  2686. filename: this.orderInfo.jqpolicyno,
  2687. fileurl: res.data.jqxFlagUrl,
  2688. });
  2689. }
  2690. if (res.data.syxPolicyUrl) {
  2691. businessList.push({
  2692. fileTitle: "商业电子保单",
  2693. filename: this.orderInfo.sypolicyno,
  2694. fileurl: res.data.syxPolicyUrl,
  2695. });
  2696. }
  2697. if (
  2698. res.data.jyxInfoList &&
  2699. res.data.jyxInfoList.length > 0
  2700. ) {
  2701. res.data.jyxInfoList.forEach((val) => {
  2702. accidentList.push({
  2703. fileTitle: "驾意险保单",
  2704. filename: "驾意险保单",
  2705. fileurl: val.jyx_policy_url,
  2706. });
  2707. });
  2708. }
  2709. } else {
  2710. this.$message.error(res.msg);
  2711. }
  2712. });
  2713. }
  2714. break;
  2715. case "平安财险":
  2716. if (this.orderInfo.jqpolicyno) {
  2717. this.$api.letter
  2718. .pingangetPolicyPrint({
  2719. companyId: item.id,
  2720. })
  2721. .then((res) => {
  2722. if (res.code == 200 && res.data) {
  2723. if (res.data.jqxPolicyUrl) {
  2724. this.oldfileList.push({
  2725. fileTitle: "交强电子保单",
  2726. filename: this.orderInfo.jqpolicyno,
  2727. fileurl: process.env.BASE_URL + res.data.jqxPolicyUrl,
  2728. });
  2729. }
  2730. if (res.data.jqxFlagUrl) {
  2731. this.oldfileList.push({
  2732. fileTitle: "交强电子标志",
  2733. filename: this.orderInfo.jqpolicyno,
  2734. fileurl: process.env.BASE_URL + res.data.jqxFlagUrl,
  2735. });
  2736. }
  2737. if (res.data.syxPolicyUrl) {
  2738. businessList.push({
  2739. fileTitle: "商业电子保单",
  2740. filename: this.orderInfo.sypolicyno,
  2741. fileurl: process.env.BASE_URL + res.data.syxPolicyUrl,
  2742. });
  2743. }
  2744. if (
  2745. res.data.jyxInfoList &&
  2746. res.data.jyxInfoList.length > 0
  2747. ) {
  2748. res.data.jyxInfoList.forEach((val) => {
  2749. accidentList.push({
  2750. fileTitle: "驾意险保单",
  2751. filename: "驾意险保单",
  2752. fileurl: process.env.BASE_URL + val.jyx_policy_url,
  2753. });
  2754. });
  2755. }
  2756. } else {
  2757. this.$message.error(res.msg);
  2758. }
  2759. });
  2760. }
  2761. break;
  2762. case "诚泰财险":
  2763. case "恒邦财险":
  2764. case "安盛天平":
  2765. case "中国人寿":
  2766. case "太平财险":
  2767. case "华农财险":
  2768. case "众安财险":
  2769. case "泰康财险":
  2770. if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
  2771. this.$api.letter
  2772. .pythongetPolicyPrint({
  2773. subOrderNo: item.id,
  2774. })
  2775. .then((res) => {
  2776. if (res.code == 200 && res.data) {
  2777. if (res.data.jqxPolicyUrl) {
  2778. this.oldfileList.push({
  2779. fileTitle: "交强电子保单",
  2780. filename: this.orderInfo.jqpolicyno,
  2781. fileurl: res.data.jqxPolicyUrl,
  2782. });
  2783. }
  2784. if (res.data.jqxFlagUrl) {
  2785. this.oldfileList.push({
  2786. fileTitle: "交强电子标志",
  2787. filename: this.orderInfo.jqpolicyno,
  2788. fileurl: res.data.jqxFlagUrl,
  2789. });
  2790. }
  2791. if (res.data.syxPolicyUrl) {
  2792. businessList.push({
  2793. fileTitle: "商业电子保单",
  2794. filename: this.orderInfo.sypolicyno,
  2795. fileurl: res.data.syxPolicyUrl,
  2796. });
  2797. }
  2798. if (
  2799. res.data.jyxInfoList &&
  2800. res.data.jyxInfoList.length > 0
  2801. ) {
  2802. res.data.jyxInfoList.forEach((val) => {
  2803. accidentList.push({
  2804. fileTitle: "驾意险保单",
  2805. filename: "驾意险保单",
  2806. fileurl: val.jyx_policy_url,
  2807. });
  2808. });
  2809. }
  2810. } else {
  2811. this.$message.error(res.msg);
  2812. }
  2813. });
  2814. }
  2815. break;
  2816. case "大家财险":
  2817. switch (item.apiType) {
  2818. case 1:
  2819. if (this.orderInfo.jqpolicyno) {
  2820. this.$api.letter
  2821. .obtainWarranty({
  2822. companyId: item.id,
  2823. riskCode: "0507",
  2824. type: "2", //2:保单
  2825. })
  2826. .then((res) => {
  2827. if (res.data) {
  2828. this.oldfileList.push({
  2829. fileTitle: "交强电子保单",
  2830. filename: this.orderInfo.jqpolicyno,
  2831. fileurl: res.data,
  2832. });
  2833. } else {
  2834. this.$message.error(res.msg);
  2835. }
  2836. });
  2837. this.$api.letter
  2838. .obtainWarranty({
  2839. companyId: item.id,
  2840. riskCode: "0507",
  2841. type: "1", //1:标志
  2842. })
  2843. .then((res) => {
  2844. if (res.data) {
  2845. this.oldfileList.push({
  2846. fileTitle: "交强电子标志",
  2847. filename: this.orderInfo.jqpolicyno,
  2848. fileurl: res.data,
  2849. });
  2850. } else {
  2851. this.$message.error(res.msg);
  2852. }
  2853. });
  2854. }
  2855. if (this.orderInfo.sypolicyno) {
  2856. this.$api.letter
  2857. .obtainWarranty({
  2858. companyId: item.id,
  2859. riskCode: "0510",
  2860. type: "2", //2:保单
  2861. })
  2862. .then((res) => {
  2863. if (res.data) {
  2864. businessList.push({
  2865. fileTitle: "商业电子保单",
  2866. filename: this.orderInfo.sypolicyno,
  2867. fileurl: res.data,
  2868. });
  2869. }
  2870. });
  2871. }
  2872. if (this.orderInfo.crossInsurance.length > 0) {
  2873. this.orderInfo.crossInsurance.map((ele) => {
  2874. this.$api.letter
  2875. .obtainWarranty({
  2876. companyId: item.id,
  2877. policyNumber: ele.policyNumber,
  2878. riskCode: "0513",
  2879. type: "2", //2:保单
  2880. })
  2881. .then((res) => {
  2882. if (res.data) {
  2883. accidentList.push({
  2884. fileTitle: "驾意险保单",
  2885. filename: ele.policyNumber,
  2886. fileurl: res.data,
  2887. });
  2888. } else {
  2889. this.$message.error(res.msg);
  2890. }
  2891. });
  2892. });
  2893. }
  2894. break;
  2895. case 2:
  2896. if (
  2897. this.orderInfo.jqpolicyno ||
  2898. this.orderInfo.sypolicyno
  2899. ) {
  2900. this.$api.letter
  2901. .pythongetPolicyPrint({
  2902. subOrderNo: item.id,
  2903. })
  2904. .then((res) => {
  2905. if (res.code == 200 && res.data) {
  2906. if (res.data.jqxPolicyUrl) {
  2907. this.oldfileList.push({
  2908. fileTitle: "交强电子保单",
  2909. filename: this.orderInfo.jqpolicyno,
  2910. fileurl: res.data.jqxPolicyUrl,
  2911. });
  2912. }
  2913. if (res.data.jqxFlagUrl) {
  2914. this.oldfileList.push({
  2915. fileTitle: "交强电子标志",
  2916. filename: this.orderInfo.jqpolicyno,
  2917. fileurl: res.data.jqxFlagUrl,
  2918. });
  2919. }
  2920. if (res.data.syxPolicyUrl) {
  2921. businessList.push({
  2922. fileTitle: "商业电子保单",
  2923. filename: this.orderInfo.sypolicyno,
  2924. fileurl: res.data.syxPolicyUrl,
  2925. });
  2926. }
  2927. if (
  2928. res.data.jyxInfoList &&
  2929. res.data.jyxInfoList.length > 0
  2930. ) {
  2931. res.data.jyxInfoList.forEach((val) => {
  2932. accidentList.push({
  2933. fileTitle: "驾意险保单",
  2934. filename: "驾意险保单",
  2935. fileurl: val.jyx_policy_url,
  2936. });
  2937. });
  2938. }
  2939. } else {
  2940. this.$message.error(res.msg);
  2941. }
  2942. });
  2943. }
  2944. break;
  2945. }
  2946. break;
  2947. default:
  2948. }
  2949. }
  2950. let obj = {
  2951. oldfileList: this.oldfileList,
  2952. businessList,
  2953. accidentList,
  2954. };
  2955. this.$refs.detailsDialog.warrantyFun(obj);
  2956. }
  2957. console.log(this.orderInfo)
  2958. this.showInsureList = false;
  2959. this.$refs.detailsDialog.setBackupVisible(true);
  2960. } else {
  2961. this.$message.error("订单获取失败");
  2962. }
  2963. });
  2964. },
  2965. //联级选择器触发事件
  2966. handleChange(val) {
  2967. if (val.length !== 0) {
  2968. this.pageRequest.deptId = val.at(-1);
  2969. } else {
  2970. this.pageRequest.deptId = "";
  2971. }
  2972. },
  2973. handleClose(done) {
  2974. this.$confirm("确认关闭?")
  2975. .then((_) => {
  2976. done();
  2977. })
  2978. .catch((_) => { });
  2979. },
  2980. httpRequest(options) {
  2981. let file = options.file;
  2982. let filename = options.filename;
  2983. let reader = new FileReader();
  2984. if (file) {
  2985. reader.readAsDataURL(file);
  2986. }
  2987. reader.onload = () => {
  2988. let base64Str = reader.result;
  2989. this[options.filename].push(base64Str);
  2990. };
  2991. },
  2992. // 设置每页条数
  2993. applyhandleSizeChange(val) {
  2994. this.pageSize = val;
  2995. this.pageNum = 1;
  2996. this.pageRequest.pageNum = 1;
  2997. this.pageRequest.pageSize = val;
  2998. this.findPage();
  2999. },
  3000. // 当前页
  3001. applyhandleCurrentChange(val) {
  3002. this.pageNum = val;
  3003. this.pageRequest.pageNum = val;
  3004. this.findPage();
  3005. },
  3006. saveAs(blob, filename) {
  3007. var link = document.createElement("a");
  3008. link.href = window.URL.createObjectURL(blob);
  3009. link.target = "_ blank";
  3010. link.download = filename;
  3011. link.click();
  3012. },
  3013. //预览文件
  3014. viewfile(index) {
  3015. let name = index.fileurl.lastIndexOf("/");
  3016. fetch(index.fileurl)
  3017. .then((response) => response.blob())
  3018. .then((blob) => {
  3019. this.saveAs(
  3020. blob,
  3021. index.fileurl.substring(name + 1, index.fileurl.length)
  3022. );
  3023. })
  3024. .catch((error) => { });
  3025. // const a = document.createElement('a')
  3026. // a.style.display = 'none'
  3027. // a.href = index.fileurl
  3028. // a.target = '_ blank';
  3029. // a.download = this.licenseNo+ '.pdf'; // 下载文件的名字
  3030. // document.body.appendChild(a)
  3031. // a.click()
  3032. },
  3033. // jump(obj) {
  3034. // var s = document.getElementById(obj);
  3035. // var parent = s.parentNode;
  3036. // for (let i = 0; i < parent.childNodes.length; i++) {
  3037. // if (parent.childNodes[i].tagName == "DIV") {
  3038. // if (parent.childNodes[i].childNodes[0].classList.contains("active")) {
  3039. // parent.childNodes[i].childNodes[0].classList.remove("active");
  3040. // }
  3041. // }
  3042. // }
  3043. // s.childNodes[0].classList.add("active");
  3044. // },
  3045. // //表格行点击下拉事件
  3046. // handleRowClick(row) {
  3047. // if(!row.expanded){
  3048. // this.$api.letter.querySonOrders({orderNo:row.orderno}).then(res=>{
  3049. // if(res.code=='200' && res.data.length!=0){
  3050. // this.pageResult.map(item=>{
  3051. // if(item.orderno===row.orderno){
  3052. // item.insAreaCompanyList=res.data;
  3053. // }
  3054. // return item;
  3055. // })
  3056. // row.expanded = !row.expanded;
  3057. // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  3058. // }else{
  3059. // this.$message.info("暂无数据");
  3060. // }
  3061. // })
  3062. // }else{
  3063. // row.expanded = !row.expanded;
  3064. // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  3065. // }
  3066. // },
  3067. // handleRowChange:debounce(function(row,expandedRows) {
  3068. // console.log(expandedRows);
  3069. // if (expandedRows.length>0) {
  3070. // this.$api.letter
  3071. // .querySonOrders({ orderNo: row.orderno })
  3072. // .then((res) => {
  3073. // if (res.code == "200" && res.data.length != 0) {
  3074. // this.pageResult.map((item) => {
  3075. // if (item.orderno === row.orderno) {
  3076. // item.insAreaCompanyList = res.data;
  3077. // }
  3078. // return item;
  3079. // });
  3080. // row.expanded = !row.expanded;
  3081. // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  3082. // } else {
  3083. // this.$message.info("暂无数据");
  3084. // }
  3085. // });
  3086. // }
  3087. // // else {
  3088. // // row.expanded = !row.expanded;
  3089. // // this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  3090. // // }
  3091. // }, 500), // 300 毫秒内不会重复触发,
  3092. handleRowChange(row) {
  3093. if (!row.expanded) {
  3094. this.$api.letter.querySonOrders({ orderNo: row.orderno }).then(res => {
  3095. if (res.code == "200" && res.data.length != 0) {
  3096. this.pageResult.map(item => {
  3097. if (item.orderno === row.orderno) {
  3098. item.insAreaCompanyList = res.data;
  3099. }
  3100. return item;
  3101. });
  3102. row.expanded = !row.expanded;
  3103. this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  3104. } else {
  3105. this.$message.info("暂无数据");
  3106. }
  3107. });
  3108. } else {
  3109. row.expanded = !row.expanded;
  3110. this.$refs.expandTable.toggleRowExpansion(row, row.expanded);
  3111. }
  3112. },
  3113. //数据
  3114. findPage() {
  3115. this.orderLoaing = true;
  3116. let orderStatus = "";
  3117. if (this.isLetterOrder) {
  3118. orderStatus =
  3119. this.pageRequest.orderStatus == 888
  3120. ? ""
  3121. : this.pageRequest.orderStatus;
  3122. this.$api.letter
  3123. .queryOrders({ ...this.pageRequest, orderStatus })
  3124. .then((res) => {
  3125. if (res.code == "200") {
  3126. this.orderLoaing = false;
  3127. this.pageResult = res.data.content;
  3128. this.pageNum = res.data.pageNum;
  3129. this.totalSize = res.data.totalSize;
  3130. this.pageResult.forEach((val, index) => {
  3131. this.$set(val, "expanded", false);
  3132. });
  3133. } else {
  3134. this.$message.error(res.msg);
  3135. this.orderLoaing = false;
  3136. }
  3137. });
  3138. } else {
  3139. orderStatus = this.statusPor == 888 ? "" : this.statusPor;
  3140. this.$api.task
  3141. .queryPageHospitalityOrder({
  3142. ...this.pageRequest,
  3143. orderStatus,
  3144. userId: this.userIdPor,
  3145. deptId: this.deptIdPor,
  3146. })
  3147. .then((res) => {
  3148. if (res.code == "200") {
  3149. this.orderLoaing = false;
  3150. this.$nextTick(() => {
  3151. this.pageResult = res.data.content;
  3152. this.pageNum = res.data.pageNum;
  3153. this.totalSize = res.data.totalSize;
  3154. this.pageResult.forEach((val, index) => {
  3155. this.$set(val, "expanded", false);
  3156. });
  3157. });
  3158. } else {
  3159. this.$message.error(res.msg);
  3160. this.orderLoaing = false;
  3161. }
  3162. });
  3163. }
  3164. },
  3165. //查询
  3166. onSubmit() {
  3167. this.pageRequest.pageNum = 1;
  3168. this.pageRequest.pageSize = 20;
  3169. this.findPage();
  3170. },
  3171. //时间js
  3172. monthChange(e) {
  3173. if (e === null) {
  3174. this.pageRequest.startDate = e;
  3175. this.pageRequest.endDate = e;
  3176. } else {
  3177. this.pageRequest.startDate = e[0];
  3178. this.pageRequest.endDate = e[1];
  3179. }
  3180. },
  3181. // downloadFile(url, fileName, type) {
  3182. // const xhr = new XMLHttpRequest();
  3183. // xhr.open("GET", url, true);
  3184. // xhr.responseType = "blob"; // 获取文件blob数据
  3185. // xhr.onload = function() {
  3186. // if (xhr.status !== 200) {
  3187. // this.$notify.error({
  3188. // title: "错误",
  3189. // message: "下载出现错误"
  3190. // });
  3191. // return;
  3192. // }
  3193. // const newUrl = window.URL.createObjectURL(xhr.response); // 生成一个可用的临时url
  3194. // const a = document.createElement("a"); // 生成a标签调用点击事件
  3195. // a.setAttribute("href", newUrl);
  3196. // a.setAttribute("target", "_blank");
  3197. // a.setAttribute("download", fileName); // 自定义文件名
  3198. // document.body.appendChild(a);
  3199. // a.click();
  3200. // document.body.removeChild(a);
  3201. // };
  3202. // xhr.send();
  3203. // }
  3204. },
  3205. };
  3206. </script>
  3207. <style lang="scss" scoped>
  3208. .scan-code {
  3209. div {
  3210. margin-top: 10px;
  3211. }
  3212. }
  3213. .green_color {
  3214. color: #068069;
  3215. border: 1px solid #068069;
  3216. padding: 7px 8px;
  3217. }
  3218. .red_color {
  3219. color: var(--themeColor);
  3220. border: 1px solid var(--themeColor);
  3221. padding: 7px 8px;
  3222. }
  3223. .blue_color {
  3224. color: #2d4d89;
  3225. border: 1px solid #2d4d89;
  3226. padding: 7px 8px;
  3227. }
  3228. .el-dropdown {
  3229. font-size: 12px;
  3230. }
  3231. .el-step__description>span {
  3232. margin-right: 10px;
  3233. }
  3234. /deep/ {
  3235. .proSaomazhifucodeClass .el-dialog__header {
  3236. background: rgba(45, 77, 137, 0.1);
  3237. font-weight: bold;
  3238. }
  3239. .proSaomazhifucodeClass .el-dialog__footer {
  3240. border-top: 1px solid #eef1f6;
  3241. }
  3242. .el-step__head {
  3243. min-height: 90px;
  3244. }
  3245. .el-table .row-expand-cover .cell .el-table__expand-icon {
  3246. display: none;
  3247. }
  3248. .el-descriptions-item__label {
  3249. &:not(.is-bordered-label) {
  3250. color: #333;
  3251. }
  3252. }
  3253. .saomazhifucodeClass .el-dialog__body,
  3254. .saomazhifucodeClass .el-dialog__header,
  3255. .saomazhifucodeClass .el-dialog__footer {
  3256. padding: 0;
  3257. background: #f4e9e9;
  3258. }
  3259. .saomazhifucodeClass .el-dialog__body {
  3260. padding: 15px;
  3261. }
  3262. .saomazhifucodeClass .el-dialog__footer {
  3263. background: #f4e9e9;
  3264. padding-bottom: 15px;
  3265. }
  3266. .saomazhifucodeClass .el-dialog__headerbtn {
  3267. margin-top: 10px;
  3268. }
  3269. .el-input.is-disabled .el-input__inner {
  3270. color: #333;
  3271. }
  3272. }
  3273. .ORcodebody {
  3274. height: auto;
  3275. // background: url(../../../assets/image/group.png) #fff;
  3276. padding: 16px;
  3277. background-color: #fff;
  3278. }
  3279. .ORcode {
  3280. width: 100%;
  3281. height: auto;
  3282. display: flex;
  3283. justify-content: center;
  3284. align-items: center;
  3285. padding: 30px;
  3286. box-sizing: border-box;
  3287. &>div {
  3288. width: 176px;
  3289. height: 176px;
  3290. border: 1px solid var(--themeColor);
  3291. border-radius: 5px;
  3292. }
  3293. }
  3294. .ORtitle {
  3295. width: 100%;
  3296. padding-bottom: 20px;
  3297. box-sizing: border-box;
  3298. &>div {
  3299. width: 100%;
  3300. margin: 10px 0;
  3301. font-size: 14px;
  3302. &>span {
  3303. &:nth-child(1) {
  3304. color: #868b98;
  3305. text-align: end;
  3306. width: 150px;
  3307. }
  3308. &:nth-child(2) {
  3309. color: #333333;
  3310. }
  3311. }
  3312. }
  3313. }
  3314. </style>
  3315. <style scoped lang="scss">
  3316. #qqq {
  3317. background-color: #111;
  3318. width: 300px;
  3319. height: 300px;
  3320. margin: 0 auto;
  3321. /*水平居中*/
  3322. position: relative;
  3323. }
  3324. #qrCode {
  3325. display: inline-block;
  3326. margin: 0 auto;
  3327. /*水平居中*/
  3328. position: relative;
  3329. top: 15%;
  3330. }
  3331. #qrCode img {
  3332. width: 200px;
  3333. height: 200px;
  3334. background-color: #fff;
  3335. padding: 6px;
  3336. }
  3337. .leftContainer {
  3338. width: 80px;
  3339. position: fixed;
  3340. top: 79px;
  3341. left: 30px;
  3342. }
  3343. .leftContainer .el-col {
  3344. width: 80px;
  3345. height: 80px;
  3346. border-bottom: 1px solid #4d5c6f;
  3347. background: #526176;
  3348. cursor: pointer;
  3349. color: #a6aeb9;
  3350. border-radius: 0;
  3351. }
  3352. .leftContainer .el-col a {
  3353. display: block;
  3354. color: #a6aeb9;
  3355. text-decoration: none;
  3356. }
  3357. .leftContainer .el-col a:hover {
  3358. color: #fff;
  3359. }
  3360. .leftContainer .el-col a.active {
  3361. color: #fff;
  3362. }
  3363. .leftContainer .el-col i {
  3364. font-size: 30px;
  3365. margin: 15px 0px 5px;
  3366. }
  3367. .rightContainer {
  3368. width: calc(100vw - 160px);
  3369. margin-left: 100px;
  3370. }
  3371. .rightContainer .header .el-col {
  3372. font-size: 18px;
  3373. font-weight: bold;
  3374. }
  3375. .rightContainer .bodyTitle {
  3376. height: 40px;
  3377. background: #f3f3f3;
  3378. border: 1px solid #dddddd;
  3379. }
  3380. .rightContainer .bodyTitle>label {
  3381. margin: 0px 15px;
  3382. font-weight: bold;
  3383. }
  3384. .rightContainer #demo2 .body,
  3385. .rightContainer #demo6 .body {
  3386. border: 1px solid #ddd;
  3387. padding: 15px;
  3388. border-top: none;
  3389. }
  3390. .rightContainer .el-card {
  3391. margin-bottom: 15px;
  3392. }
  3393. .body .el-row .el-col label {
  3394. text-align: right;
  3395. width: 80px;
  3396. font-size: 14px;
  3397. width: 100%;
  3398. line-height: 36px;
  3399. display: inline-block;
  3400. box-sizing: border-box;
  3401. }
  3402. .disabledInput {
  3403. width: 80% !important;
  3404. background-color: #f5f7fa;
  3405. text-align: center !important;
  3406. max-width: 200px;
  3407. border: 1px solid #e4e7ed;
  3408. color: #c0c4cc;
  3409. cursor: not-allowed;
  3410. border-radius: 4px;
  3411. box-sizing: border-box;
  3412. padding: 0px 10px;
  3413. height: 36px;
  3414. margin: 20px 10%;
  3415. }
  3416. /* 上传图片样式Start */
  3417. .avatar-uploader .el-upload {
  3418. border: 1px dashed #d9d9d9;
  3419. border-radius: 6px;
  3420. cursor: pointer;
  3421. position: relative;
  3422. overflow: hidden;
  3423. }
  3424. .avatar-uploader .el-upload:hover {
  3425. border-color: #409eff;
  3426. }
  3427. .avatar-uploader-icon {
  3428. font-size: 28px;
  3429. color: #8c939d;
  3430. width: 100px;
  3431. height: 100px;
  3432. line-height: 100px;
  3433. text-align: center;
  3434. border: 1px dashed #d9d9d9;
  3435. }
  3436. .avatar {
  3437. border: 1px dashed #d9d9d9;
  3438. padding: 5px;
  3439. border-radius: 6px;
  3440. width: 100px;
  3441. height: 100px;
  3442. display: block;
  3443. }
  3444. .imageStyle {
  3445. display: inline-block;
  3446. width: 100px;
  3447. height: 100px;
  3448. box-shadow: #ddd 0px 0px 5px;
  3449. margin-right: 20px;
  3450. }
  3451. /* 上传图片样式End */
  3452. .dis {
  3453. display: flex;
  3454. }
  3455. .align {
  3456. align-items: center;
  3457. }
  3458. .jus {
  3459. justify-content: space-between;
  3460. }
  3461. .display {
  3462. display: flex;
  3463. justify-content: center;
  3464. align-items: center;
  3465. box-sizing: border-box;
  3466. }
  3467. .block {
  3468. margin-top: 10px;
  3469. }
  3470. .page {
  3471. padding: 14px;
  3472. box-sizing: border-box;
  3473. }
  3474. .el-select--medium {
  3475. vertical-align: bottom !important;
  3476. }
  3477. .widths {
  3478. width: 200px;
  3479. }
  3480. .demo-table-expand {
  3481. /* width:96vw; */
  3482. height: auto;
  3483. padding: 10px 20px 10px 50px;
  3484. font-size: 14px;
  3485. }
  3486. .demo-table-expand-time {
  3487. width: 40%;
  3488. }
  3489. .demo-table-expand-time>div {
  3490. margin: 0 10px;
  3491. }
  3492. .icon-img {
  3493. width: 30px;
  3494. height: 30px;
  3495. vertical-align: bottom;
  3496. }
  3497. .Enclosure {
  3498. width: 100%;
  3499. background-color: #fff;
  3500. padding: 20px;
  3501. box-sizing: border-box;
  3502. margin-bottom: 15px;
  3503. border-radius: 6px;
  3504. border: 1px solid #ebeef5;
  3505. transition: all 0.2s ease-in-out;
  3506. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  3507. }
  3508. .headers {
  3509. display: flex;
  3510. align-items: center;
  3511. justify-content: space-between;
  3512. flex-wrap: wrap;
  3513. margin: 5px 0;
  3514. font-weight: bold;
  3515. color: #333;
  3516. }
  3517. /* 内容待定 */
  3518. .headers_Custom {
  3519. div {
  3520. padding: 2px 0px;
  3521. font-size: 14px;
  3522. &>span {
  3523. color: rgb(226, 118, 10);
  3524. }
  3525. }
  3526. }
  3527. .back {
  3528. color: #303133;
  3529. font-weight: 700;
  3530. }
  3531. .u-f-ac {
  3532. -webkit-box-align: center;
  3533. align-items: center;
  3534. /* padding: 10px; */
  3535. }
  3536. .bodyTitle {
  3537. height: 40px;
  3538. background: #f3f3f3;
  3539. border: 1px solid #dddddd;
  3540. line-height: 40px;
  3541. padding: 0 20px;
  3542. box-sizing: border-box;
  3543. }
  3544. .Risk {
  3545. width: 100%;
  3546. height: auto;
  3547. display: flex;
  3548. flex-direction: column;
  3549. align-items: center;
  3550. font-size: 12px;
  3551. }
  3552. .Risk_title {
  3553. width: 100%;
  3554. height: 40px;
  3555. }
  3556. .Risk_title>div {
  3557. background: rgb(199, 20, 45);
  3558. color: rgb(255, 255, 255);
  3559. height: 100%;
  3560. font-weight: 500;
  3561. width: 33.3%;
  3562. padding: 10px 20px;
  3563. box-sizing: border-box;
  3564. border: #fff solid 1px;
  3565. display: flex;
  3566. justify-content: center;
  3567. align-items: center;
  3568. border-bottom: none;
  3569. }
  3570. .Risk_title>div:nth-child(2) {
  3571. border-left: none;
  3572. border-right: none;
  3573. }
  3574. .Risk_data {
  3575. width: 100%;
  3576. height: 40px;
  3577. }
  3578. .Risk_data>div {
  3579. background: #fbf6f7;
  3580. color: rgb(51, 51, 51);
  3581. height: 100%;
  3582. font-weight: 500;
  3583. width: 33.3%;
  3584. padding: 10px 20px;
  3585. box-sizing: border-box;
  3586. border: #fff solid 1px;
  3587. display: flex;
  3588. justify-content: center;
  3589. align-items: center;
  3590. border-bottom: none;
  3591. }
  3592. .Risk_data>div :nth-child(2) {
  3593. border-left: none;
  3594. border-right: none;
  3595. }
  3596. .Risk_title>div :nth-child(3) {
  3597. border-top-right-radius: 10px;
  3598. }
  3599. .jyxStyle>span {
  3600. display: inline-block;
  3601. text-align: center;
  3602. }
  3603. /* .el-step__description{
  3604. color:#333
  3605. } */
  3606. /deep/ {
  3607. .el-step__title,
  3608. .el-step__icon-inner {
  3609. color: var(--themeColor);
  3610. }
  3611. .el-step__description.is-finish,
  3612. .el-step__head.is-finish {
  3613. color: #333;
  3614. border: none;
  3615. }
  3616. .el-step__icon.is-text {
  3617. border: none;
  3618. box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.1);
  3619. }
  3620. .el-step__icon.is-text {
  3621. font-size: 22px;
  3622. }
  3623. .el-step__icon {
  3624. width: 28px;
  3625. height: 28px;
  3626. }
  3627. .el-step.is-vertical .el-step__main {
  3628. padding-left: 20px;
  3629. }
  3630. .el-step__line,
  3631. .el-step.is-vertical .el-step__line {
  3632. left: 14px;
  3633. background-color: #e2e5eb;
  3634. width: 1px;
  3635. }
  3636. .el-step__line-inner {
  3637. height: 0;
  3638. display: none;
  3639. }
  3640. .is-flex {
  3641. .el-step__icon {
  3642. background: var(--themeColor);
  3643. }
  3644. .el-step__icon-inner {
  3645. color: #fff;
  3646. }
  3647. }
  3648. .styleB {
  3649. height: 128px;
  3650. }
  3651. .styleB .el-upload--picture-card {
  3652. display: none;
  3653. }
  3654. }
  3655. .tab-style {
  3656. width: 110px;
  3657. li {
  3658. text-align: right;
  3659. padding-right: 20px;
  3660. line-height: 40px;
  3661. cursor: pointer;
  3662. box-sizing: border-box;
  3663. border-right: 1px solid #e2e5eb;
  3664. }
  3665. li:focus {
  3666. background: rgba(212, 36, 38, 0.1);
  3667. border-right: 2px solid var(--themeColor);
  3668. color: var(--themeColor);
  3669. }
  3670. }
  3671. .tabLi-style {
  3672. background: rgba(212, 36, 38, 0.1);
  3673. border-right: 2px solid var(--themeColor);
  3674. color: var(--themeColor);
  3675. }
  3676. .aaa {
  3677. /deep/ {
  3678. margin-bottom: 20px;
  3679. margin-right: 50px;
  3680. span {
  3681. display: inline-block;
  3682. margin-bottom: 10px;
  3683. }
  3684. .el-upload .el-upload-dragger {
  3685. width: 180px;
  3686. height: 120px;
  3687. border: 1px dashed #c0ccda;
  3688. padding: 0;
  3689. }
  3690. .el-upload-list--picture-card .el-upload-list__item {
  3691. width: 180px;
  3692. height: 120px;
  3693. }
  3694. .el-upload-list__item:first-child {
  3695. margin-top: 0;
  3696. }
  3697. .el-upload--picture-card {
  3698. width: 180px;
  3699. height: 120px;
  3700. }
  3701. .el-upload-list__item {
  3702. width: 180px;
  3703. height: 120px;
  3704. margin: 0 !important;
  3705. display: block !important;
  3706. }
  3707. .el-upload-list--picture-card .el-upload-list__item-thumbnail {
  3708. width: 180px;
  3709. height: 120px;
  3710. }
  3711. }
  3712. }
  3713. .styleB .el-upload--picture-card {
  3714. // display: none;
  3715. opacity: 0;
  3716. }
  3717. </style>