KtOrder.vue 147 KB

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