home.vue 89 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075
  1. <template >
  2. <div id="" class="zap-home__main">
  3. <!-- 平台 -->
  4. <div v-if="company.scyType == '00'">
  5. <!-- 数据 -->
  6. <div v-hasPermi="['system:home:companyData']">
  7. <div class="zap-home__title">平台数据统计</div>
  8. <el-row :gutter="20">
  9. <!-- 第一行 -->
  10. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  11. <div class="zap-card">
  12. <div class="zap-card__title">入驻企业总数</div>
  13. <div class="zap-card__wrap zap-card__blue">
  14. <span class="zap-card__num">{{companyNum}}</span>
  15. <span class="zap-card__unit">家</span>
  16. </div>
  17. </div>
  18. </el-col>
  19. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  20. <div class="zap-card">
  21. <div class="zap-card__title">入驻核心企业数</div>
  22. <div class="zap-card__wrap zap-card__pink">
  23. <span class="zap-card__num">{{coreNum}}</span>
  24. <span class="zap-card__unit">家</span>
  25. </div>
  26. </div>
  27. </el-col>
  28. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  29. <div class="zap-card">
  30. <div class="zap-card__title">入驻供应商</div>
  31. <div class="zap-card__wrap zap-card__gold">
  32. <span class="zap-card__num">{{supplierNum}}</span>
  33. <span class="zap-card__unit">家</span>
  34. </div>
  35. </div>
  36. </el-col>
  37. <!-- 第二行 -->
  38. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  39. <div class="zap-card">
  40. <div class="zap-card__title">平台总授信额度</div>
  41. <div class="zap-card__wrap zap-card__gold">
  42. <span class="zap-card__num">{{handleInput(creditLineAll)}}</span>
  43. <span class="zap-card__unit">元</span>
  44. </div>
  45. </div>
  46. </el-col>
  47. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  48. <div class="zap-card">
  49. <div class="zap-card__title">平台可用授信额度</div>
  50. <div class="zap-card__wrap zap-card__pink">
  51. <span class="zap-card__num">{{handleInput(getsubNum())}}</span>
  52. <span class="zap-card__unit">元</span>
  53. </div>
  54. </div>
  55. </el-col>
  56. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  57. <div class="zap-card">
  58. <div class="zap-card__title">平台放款金额</div>
  59. <div class="zap-card__wrap zap-card__pink">
  60. <span class="zap-card__num">{{handleInput(getAllLoanBalance())}}</span>
  61. <span class="zap-card__unit">元</span>
  62. </div>
  63. </div>
  64. </el-col>
  65. <!-- 第三行 -->
  66. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  67. <div class="zap-card">
  68. <div class="zap-card__title">发起融资业务</div>
  69. <div class="zap-card__wrap zap-card__blue">
  70. <span class="zap-card__num">{{financeNum}}</span>
  71. <span class="zap-card__unit">笔</span>
  72. </div>
  73. </div>
  74. </el-col>
  75. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  76. <div class="zap-card">
  77. <div class="zap-card__title">平台开立融信</div>
  78. <div class="zap-card__wrap zap-card__gold">
  79. <span class="zap-card__num">{{handleInput(getFinancedNumAll())}}</span>
  80. <span class="zap-card__unit">元</span>
  81. </div>
  82. </div>
  83. </el-col>
  84. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  85. <div class="zap-card">
  86. <div class="zap-card__title">未融资额度</div>
  87. <div class="zap-card__wrap zap-card__pink">
  88. <span class="zap-card__num">{{handleInput(getNotUseAmt())}}</span>
  89. <span class="zap-card__unit">元</span>
  90. </div>
  91. </div>
  92. </el-col>
  93. </el-row>
  94. </div>
  95. <!-- 平台待办 -->
  96. <el-row style="margin-bottom: 20px" v-hasPermi="['system:home:companyWork']">
  97. <div class="zap-bg" style="padding: 0 30px;">
  98. <el-tabs v-model="activeName">
  99. <el-tab-pane label="我的待办" name="first" style="height:400px">
  100. <el-table :data="workList" :show-header="false">
  101. <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true">
  102. <template slot-scope="scope">
  103. <el-badge is-dot class="item" v-if="scope.row.snyrUserStatus == '0'"></el-badge>
  104. <span>{{ scope.row.noticeTitle }}</span>
  105. </template>
  106. </el-table-column>
  107. <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
  108. <template slot-scope="scope">
  109. <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
  110. </template>
  111. </el-table-column>
  112. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
  113. <template slot-scope="scope">
  114. <el-button
  115. size="mini"
  116. type="text"
  117. @click="handleDetail(scope.row)"
  118. style="color:red"
  119. >去办理</el-button>
  120. <!-- v-if="scope.row.openUrl" -->
  121. </template>
  122. </el-table-column>
  123. </el-table>
  124. <pagination
  125. v-show="workTotal>0"
  126. :total="workTotal"
  127. :page.sync="queryParamsWork.pageNum"
  128. :limit.sync="queryParamsWork.pageSize"
  129. :pager-count="5"
  130. :page-sizes="[5]"
  131. @pagination="getWorkList"
  132. />
  133. </el-tab-pane>
  134. <el-tab-pane label="消息" name="second" style="height:400px">
  135. <el-table :data="noticeList" :show-header="false">
  136. <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true"/>
  137. <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
  138. <template slot-scope="scope">
  139. <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
  140. </template>
  141. </el-table-column>
  142. </el-table>
  143. <pagination
  144. v-show="noticeTotal>0"
  145. :total="noticeTotal"
  146. :page.sync="queryParamsNotice.pageNum"
  147. :limit.sync="queryParamsNotice.pageSize"
  148. :pager-count="5"
  149. :page-sizes="[5]"
  150. @pagination="getNoticeList"
  151. />
  152. </el-tab-pane>
  153. <el-tab-pane label="已办记录" name="third" style="height:400px">
  154. <el-table :data="oldWorkList" :show-header="false">
  155. <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true"/>
  156. <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
  157. <template slot-scope="scope">
  158. <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
  159. </template>
  160. </el-table-column>
  161. </el-table>
  162. <pagination
  163. v-show="oldWorkTotal>0"
  164. :total="oldWorkTotal"
  165. :page.sync="queryParamsOldWork.pageNum"
  166. :limit.sync="queryParamsOldWork.pageSize"
  167. :pager-count="5"
  168. :page-sizes="[5]"
  169. @pagination="getOldWorkList"
  170. />
  171. </el-tab-pane>
  172. </el-tabs>
  173. </div>
  174. </el-row>
  175. <!-- 平台统计图 -->
  176. <div v-hasPermi="['system:home:companyChart']">
  177. <!-- 平台资金统计扇形图 -->
  178. <el-row class="zap-home-chart">
  179. <el-col>
  180. <div class="zap-home-chart__title">平台资金统计</div>
  181. <div id="echartPie" style="width: 100%;height: 490px"></div>
  182. </el-col>
  183. </el-row>
  184. <!-- 平台用户统计 -->
  185. <el-row class="zap-home-chart zap-home-chart--space">
  186. <el-col>
  187. <div class="zap-home-chart__title">
  188. <div class="zap-home-chart__wrap">
  189. 平台用户统计
  190. <el-select class="zap-home-chart__select" v-model="dateType" @change="getCompanyReport">
  191. <el-option v-for="(item,index) in dateTypeList" :key="index" :label="item.label" :value="item.value">
  192. </el-option>
  193. </el-select>
  194. </div>
  195. <div class="zap-home-chart__legend">
  196. <span class="zap-home-chart__circle zap-home-chart__circle--blue"></span>
  197. <span class="zap-home-chart__text">供应商</span>
  198. <span class="zap-home-chart__circle zap-home-chart__circle--green zap-home-chart__circle--margin"></span>
  199. <span class="zap-home-chart__text">核心企业</span>
  200. </div>
  201. </div>
  202. <div id="echarBarUser" style="width: 100%;height: 490px"></div>
  203. </el-col>
  204. </el-row>
  205. <!-- 平台业务统计 -->
  206. <el-row class="zap-home-chart zap-home-chart--space">
  207. <el-col>
  208. <div class="zap-home-chart__title">
  209. <div class="zap-home-chart__wrap">
  210. 平台业务统计
  211. <el-select class="zap-home-chart__select" v-model="financeDateType" @change="getFinanceRecordMonth">
  212. <el-option v-for="(item,index) in dateTypeList" :key="index" :label="item.label" :value="item.value">
  213. </el-option>
  214. </el-select>
  215. </div>
  216. <div class="zap-home-chart__legend">
  217. <span class="zap-home-chart__circle zap-home-chart__circle--blue"></span>
  218. <span class="zap-home-chart__text">融资开立</span>
  219. <span class="zap-home-chart__circle zap-home-chart__circle--green zap-home-chart__circle--margin"></span>
  220. <span class="zap-home-chart__text">融资还款</span>
  221. </div>
  222. </div>
  223. <div id="echarBarBusiness" style="width: 100%;height: 490px"></div>
  224. </el-col>
  225. </el-row>
  226. <!-- 核心企业可用额度比例 -->
  227. <el-row class="zap-home-chart zap-home-chart--space">
  228. <el-col>
  229. <div class="zap-home-chart__title">
  230. <div class="zap-home-chart__wrap">
  231. 核心企业可用额度比例
  232. <el-input
  233. class="zap-home-chart__search"
  234. placeholder="请输入"
  235. suffix-icon="el-icon-search"
  236. v-model="input1">
  237. </el-input>
  238. </div>
  239. <div class="zap-home-chart__legend">
  240. <span class="zap-home-chart__circle zap-home-chart__circle--blue"></span>
  241. <span class="zap-home-chart__text">可用额度</span>
  242. <span class="zap-home-chart__circle zap-home-chart__circle--green zap-home-chart__circle--margin"></span>
  243. <span class="zap-home-chart__text">已用额度</span>
  244. </div>
  245. </div>
  246. <div id="echarBarCore" style="width: 100%;height: 490px"></div>
  247. </el-col>
  248. </el-row>
  249. </div>
  250. </div>
  251. <!-- 核心企业 -->
  252. <div v-if="company.scyType == '01'" class="zap-margin">
  253. <el-button v-for="(item,index) in hxDateTypeList" :key="index" @click="changeFxHxDateType(item.value)">{{item.label}}</el-button>
  254. <el-row :gutter="20">
  255. <!-- 第一行 -->
  256. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  257. <div class="zap-card" @click="toCreditLine()">
  258. <div class="zap-card__title">总授信额度</div>
  259. <div class="zap-card__wrap zap-card__gold">
  260. <span class="zap-card__num">{{handleInput(hxCreditLineAll)}}</span>
  261. <span class="zap-card__unit">元</span>
  262. </div>
  263. </div>
  264. </el-col>
  265. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  266. <div class="zap-card" @click="toCreditLine()">
  267. <div class="zap-card__title">可用授信额度</div>
  268. <div class="zap-card__wrap zap-card__gold">
  269. <span class="zap-card__num">{{handleInput(usableAmount)}}</span>
  270. <span class="zap-card__unit">元</span>
  271. </div>
  272. </div>
  273. </el-col>
  274. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  275. <div class="zap-card" @click="toCredit()">
  276. <div class="zap-card__title">我开立的融信</div>
  277. <div class="zap-card__wrap zap-card__blue">
  278. <span class="zap-card__num">{{handleInput(hxCreditAll)}}</span>
  279. <span class="zap-card__unit">元</span>
  280. </div>
  281. </div>
  282. </el-col>
  283. <el-col :xs="24" :sm="12" :md="8" :lg="8" v-if="hxDateType == '00'">
  284. <div class="zap-card">
  285. <div class="zap-card__title">30天内待还款</div>
  286. <div class="zap-card__wrap zap-card__blue">
  287. <span class="zap-card__num">{{handleInput(hxPendingMoney)}}</span>
  288. <span class="zap-card__unit">元</span>
  289. </div>
  290. </div>
  291. </el-col>
  292. <el-col :xs="24" :sm="12" :md="8" :lg="8" v-if="hxDateType != '00'">
  293. <div class="zap-card">
  294. <div class="zap-card__title">还款金额</div>
  295. <div class="zap-card__wrap zap-card__blue">
  296. <span class="zap-card__num">{{handleInput(hxRepayment)}}</span>
  297. <span class="zap-card__unit">元</span>
  298. </div>
  299. </div>
  300. </el-col>
  301. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  302. <div class="zap-card">
  303. <div class="zap-card__title">已融资金额</div>
  304. <div class="zap-card__wrap zap-card__blue">
  305. <span class="zap-card__num">{{handleInput(hxHasRaised)}}</span>
  306. <span class="zap-card__unit">元</span>
  307. </div>
  308. </div>
  309. </el-col>
  310. <!-- <el-col :xs="24" :sm="12" :md="8" :lg="8">
  311. <div class="zap-card" @click="toRepayment()">
  312. <div class="zap-card__title">即将到期付款</div>
  313. <div class="zap-card__wrap zap-card__pink">
  314. <span class="zap-card__num">{{handleInput(expiredBalance)}}</span>
  315. <span class="zap-card__unit">元</span>
  316. </div>
  317. </div>
  318. </el-col> -->
  319. <!-- 第二行 -->
  320. <!-- <el-col :xs="24" :sm="12" :md="8" :lg="8">
  321. <div class="zap-card">
  322. <div class="zap-card__title">我的待办</div>
  323. <div class="zap-card__wrap zap-card__blue">
  324. <span class="zap-card__num">{{workTotal}}</span>
  325. <span class="zap-card__unit">个</span>
  326. </div>
  327. </div>
  328. </el-col>
  329. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  330. <div class="zap-card" @click="toCreditLine()">
  331. <div class="zap-card__title">可用授权额度(正向保理)</div>
  332. <div class="zap-card__wrap zap-card__gold">
  333. <span class="zap-card__num">{{handleInput(getsubNumForward())}}</span>
  334. <span class="zap-card__unit">元</span>
  335. </div>
  336. </div>
  337. </el-col>
  338. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  339. <div class="zap-card" @click="toCreditLine()">
  340. <div class="zap-card__title">总授权额度(正向保理)</div>
  341. <div class="zap-card__wrap zap-card__pink">
  342. <span class="zap-card__num">{{handleInput(creditLineAllForward)}}</span>
  343. <span class="zap-card__unit">元</span>
  344. </div>
  345. </div>
  346. </el-col> -->
  347. </el-row>
  348. <el-button v-for="(item,index) in hxDateTypeList" :key="index" @click="changeZxHxDateType(item.value)">{{item.label}}</el-button>
  349. <el-row :gutter="20">
  350. <!-- 第一行 -->
  351. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  352. <div class="zap-card">
  353. <div class="zap-card__title">总授信额度</div>
  354. <div class="zap-card__wrap zap-card__gold">
  355. <span class="zap-card__num">{{handleInput(hxCreditLineAllForward)}}</span>
  356. <span class="zap-card__unit">元</span>
  357. </div>
  358. </div>
  359. </el-col>
  360. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  361. <div class="zap-card" >
  362. <div class="zap-card__title">可用授信额度</div>
  363. <div class="zap-card__wrap zap-card__gold">
  364. <span class="zap-card__num">{{handleInput(usableAmountForward)}}</span>
  365. <span class="zap-card__unit">元</span>
  366. </div>
  367. </div>
  368. </el-col>
  369. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  370. <div class="zap-card" >
  371. <div class="zap-card__title">我确权的</div>
  372. <div class="zap-card__wrap zap-card__blue">
  373. <span class="zap-card__num">{{handleInput(hxCreditAllForward)}}</span>
  374. <span class="zap-card__unit">元</span>
  375. </div>
  376. </div>
  377. </el-col>
  378. <el-col :xs="24" :sm="12" :md="8" :lg="8" v-if="hxDateType == '00'">
  379. <div class="zap-card">
  380. <div class="zap-card__title">30天内待还款</div>
  381. <div class="zap-card__wrap zap-card__blue">
  382. <span class="zap-card__num">{{handleInput(hxPendingMoneyForward)}}</span>
  383. <span class="zap-card__unit">元</span>
  384. </div>
  385. </div>
  386. </el-col>
  387. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  388. <div class="zap-card">
  389. <div class="zap-card__title">已融资金额</div>
  390. <div class="zap-card__wrap zap-card__blue">
  391. <span class="zap-card__num">{{handleInput(hxHasRaisedForward)}}</span>
  392. <span class="zap-card__unit">元</span>
  393. </div>
  394. </div>
  395. </el-col>
  396. </el-row>
  397. <!-- 我的待办、消息 -->
  398. <el-row class="zap-list">
  399. <div class="text item">
  400. <el-tabs v-model="activeName">
  401. <el-tab-pane label="我的待办" name="first" style="height:400px">
  402. <el-table :data="workList" :show-header="false">
  403. <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true">
  404. <template slot-scope="scope">
  405. <el-badge is-dot class="item" v-if="scope.row.snyrUserStatus == '0'"></el-badge>
  406. <span>{{ scope.row.noticeTitle }}</span>
  407. </template>
  408. </el-table-column>
  409. <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
  410. <template slot-scope="scope">
  411. <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
  412. </template>
  413. </el-table-column>
  414. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
  415. <template slot-scope="scope">
  416. <el-button
  417. size="mini"
  418. type="text"
  419. @click="handleDetail(scope.row)"
  420. style="color:red"
  421. >去办理</el-button>
  422. <!-- v-if="scope.row.openUrl" -->
  423. </template>
  424. </el-table-column>
  425. </el-table>
  426. <pagination
  427. v-show="workTotal>0"
  428. :total="workTotal"
  429. :page.sync="queryParamsWork.pageNum"
  430. :limit.sync="queryParamsWork.pageSize"
  431. :pager-count="5"
  432. :page-sizes="[5]"
  433. @pagination="getWorkList"
  434. />
  435. </el-tab-pane>
  436. <el-tab-pane label="消息" name="second" style="height:400px">
  437. <el-table :data="noticeList" :show-header="false">
  438. <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true"/>
  439. <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
  440. <template slot-scope="scope">
  441. <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
  442. </template>
  443. </el-table-column>
  444. </el-table>
  445. <pagination
  446. v-show="noticeTotal>0"
  447. :total="noticeTotal"
  448. :page.sync="queryParamsNotice.pageNum"
  449. :limit.sync="queryParamsNotice.pageSize"
  450. :pager-count="5"
  451. :page-sizes="[5]"
  452. @pagination="getNoticeList"
  453. />
  454. </el-tab-pane>
  455. <el-tab-pane label="已办记录" name="third" style="height:400px">
  456. <el-table :data="oldWorkList" :show-header="false">
  457. <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true"/>
  458. <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
  459. <template slot-scope="scope">
  460. <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
  461. </template>
  462. </el-table-column>
  463. </el-table>
  464. <pagination
  465. v-show="oldWorkTotal>0"
  466. :total="oldWorkTotal"
  467. :page.sync="queryParamsOldWork.pageNum"
  468. :limit.sync="queryParamsOldWork.pageSize"
  469. :pager-count="5"
  470. :page-sizes="[5]"
  471. @pagination="getOldWorkList"
  472. />
  473. </el-tab-pane>
  474. <el-tab-pane label="30天内待还款汇总" name="fourth" style="height:400px">
  475. <el-table :data="expiredList" :show-header="true">
  476. <el-table-column label="融资编号" align="center" prop="zfiNumber" :show-overflow-tooltip="true"/>
  477. <el-table-column label="金额" align="center" prop="zfrLoanAmount" :show-overflow-tooltip="true"/>
  478. <el-table-column label="到期时间" align="center" prop="afiExpireDate" :show-overflow-tooltip="true">
  479. <template slot-scope="scope">
  480. <span>{{ parseTime(new Date(scope.row.afiExpireDate), '{y}-{m}-{d}') }}</span>
  481. </template>
  482. </el-table-column>
  483. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
  484. <template slot-scope="scope">
  485. <el-button
  486. size="mini"
  487. type="text"
  488. icon="el-icon-info"
  489. @click="handleInfo(scope.row)"
  490. >详情</el-button>
  491. </template>
  492. </el-table-column>
  493. </el-table>
  494. <pagination
  495. v-show="expiredTotal>0"
  496. :total="expiredTotal"
  497. :page.sync="queryParamsExpired.pageNum"
  498. :limit.sync="queryParamsExpired.pageSize"
  499. :pager-count="5"
  500. :page-sizes="[5]"
  501. @pagination="getExpiredList"
  502. />
  503. </el-tab-pane>
  504. </el-tabs>
  505. </div>
  506. </el-row>
  507. <!-- 融信授权额度、融信统计 -->
  508. <!-- <el-row class="zap-margin" :gutter="20">
  509. <el-col class="zap-chart-quto" :xs="24" :sm="16" :md="16" :lg="16">
  510. <div style="padding: 0 20px;background: #fff;" class="zap-home-chart__title zap-home-chart__title--align-left zap-padding-clear zap-home-chart__title--middle">
  511. 融信授权额度
  512. <span class="zap-home-chart__circle zap-home-chart__circle--blue" style="margin-left: 45px"></span>
  513. <span class="zap-home-chart__text">可用</span>
  514. <span class="zap-home-chart__circle zap-home-chart__circle--red zap-home-chart__circle--margin"></span>
  515. <span class="zap-home-chart__text">已用</span>
  516. </div>
  517. <el-row style="background: #fff;padding-right: 20px;height: 300px;">
  518. <el-col :span="12">
  519. <div id="echartPie" style="height: 300px;"></div>
  520. </el-col>
  521. <el-col :span="12">
  522. <div style="height:300px;">
  523. <el-table :data="creditLineList">
  524. <el-table-column label="渠道名称" align="center" prop="managementName" :show-overflow-tooltip="true"/>
  525. <el-table-column label="额度" align="center" prop="allAmount" :show-overflow-tooltip="true"/>
  526. <el-table-column label="可用金额" align="center" prop="subAmount" :show-overflow-tooltip="true"/>
  527. <el-table-column label="已用金额" align="center" prop="availableAmount" :show-overflow-tooltip="true"/>
  528. </el-table>
  529. <pagination
  530. v-show="creditLineTotal>0"
  531. :total="creditLineTotal"
  532. :page.sync="queryParams.pageNum"
  533. :limit.sync="queryParams.pageSize"
  534. :pager-count="5"
  535. :page-sizes="[5]"
  536. @pagination="getList"
  537. />
  538. </div>
  539. </el-col>
  540. </el-row>
  541. </el-col>
  542. <el-col class="zap-statistics" :xs="24" :sm="8" :md="8" :lg="8">
  543. <div style="background: #fff;padding: 0 20px;" class="zap-home-chart__title zap-home-chart__title--align-left zap-padding-clear zap-home-chart__title--middle">
  544. 融信统计
  545. </div>
  546. <div style="height:300px;background: #fff;padding: 0 20px;">
  547. <el-table :data="creditLineNumList">
  548. <el-table-column label="渠道名称" align="center" prop="managementName" :show-overflow-tooltip="true"/>
  549. <el-table-column label="数量" align="center" prop="num" :show-overflow-tooltip="true"/>
  550. <el-table-column label="额度" align="center" prop="allAmount" :show-overflow-tooltip="true"/>
  551. </el-table>
  552. <pagination
  553. v-show="creditLineNumTotal>0"
  554. :total="creditLineNumTotal"
  555. :page.sync="queryParamsNum.pageNum"
  556. :limit.sync="queryParamsNum.pageSize"
  557. :pager-count="5"
  558. :page-sizes="[5]"
  559. @pagination="getNumList"
  560. />
  561. </div>
  562. </el-col>
  563. </el-row>
  564. <el-row :gutter="20">
  565. <el-col :span="12">
  566. <div class="zap-bg zap-padding zap-home-chart__title zap-home-chart__title--align-left zap-padding-clear zap-home-chart__title--middle">
  567. 融资开立资金表(年)
  568. <span class="zap-home-chart__circle zap-home-chart__circle--blue" style="margin-left: 45px"></span>
  569. <span class="zap-home-chart__text">开立额度</span>
  570. <span class="zap-home-chart__circle zap-home-chart__circle--red zap-home-chart__circle--margin"></span>
  571. <span class="zap-home-chart__text">还款额度</span>
  572. </div>
  573. <div id="echartBarCapital" class="zap-bg " style="height: 300px"></div>
  574. </el-col>
  575. <el-col :span="12">
  576. <div class="zap-bg zap-padding zap-home-chart__title zap-home-chart__title--align-left zap-padding-clear zap-home-chart__title--middle">
  577. 融资开立资金表(30天内)
  578. <span class="zap-home-chart__circle zap-home-chart__circle--blue" style="margin-left: 45px"></span>
  579. <span class="zap-home-chart__text">开立额度</span>
  580. <span class="zap-home-chart__circle zap-home-chart__circle--red zap-home-chart__circle--margin"></span>
  581. <span class="zap-home-chart__text">还款额度</span>
  582. </div>
  583. <div id="echartBarCapitalDay" class="zap-bg " style="height: 300px"></div>
  584. </el-col>
  585. </el-row> -->
  586. </div>
  587. <!-- 融资企业 -->
  588. <div v-if="company.scyType == '02'" class="zap-margin">
  589. <el-row :gutter="20">
  590. <!-- 第一行 -->
  591. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  592. <div class="zap-card" @click="toCredit()">
  593. <div class="zap-card__title">持有融信额度</div>
  594. <div class="zap-card__wrap zap-card__blue">
  595. <span class="zap-card__num">{{handleInput(effectBalance)}}</span>
  596. <span class="zap-card__unit">元</span>
  597. </div>
  598. </div>
  599. </el-col>
  600. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  601. <div class="zap-card" @click="toFinanceRecord()">
  602. <div class="zap-card__title">融资中额度</div>
  603. <div class="zap-card__wrap zap-card__gold">
  604. <span class="zap-card__num">{{handleInput(availableBalance)}}</span>
  605. <span class="zap-card__unit">元</span>
  606. </div>
  607. </div>
  608. </el-col>
  609. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  610. <div class="zap-card" @click="toFinanceRecord()">
  611. <div class="zap-card__title">已融资额度</div>
  612. <div class="zap-card__wrap zap-card__pink">
  613. <span class="zap-card__num">{{handleInput(loanBalance)}}</span>
  614. <span class="zap-card__unit">元</span>
  615. </div>
  616. </div>
  617. </el-col>
  618. <!-- 第二行 -->
  619. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  620. <div class="zap-card" @click="toRepayment()">
  621. <div class="zap-card__title">即将到期融资额度(30天)</div>
  622. <div class="zap-card__wrap zap-card__blue">
  623. <span class="zap-card__num">{{handleInput(expiredBalance)}}</span>
  624. <span class="zap-card__unit">元</span>
  625. </div>
  626. </div>
  627. </el-col>
  628. </el-row>
  629. <el-card class="box-card" style="width:93%;margin:0.6%;float:left;">
  630. <!-- <div slot="header" class="clearfix">
  631. </div> -->
  632. <div class="text item" style="height:auto">
  633. <el-tabs v-model="activeName">
  634. <el-tab-pane label="我的待办" name="first" style="height:400px">
  635. <el-table :data="workList" :show-header="false">
  636. <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true">
  637. <template slot-scope="scope">
  638. <el-badge is-dot class="item" v-if="scope.row.snyrUserStatus == '0'"></el-badge>
  639. <span>{{ scope.row.noticeTitle }}</span>
  640. </template>
  641. </el-table-column>
  642. <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
  643. <template slot-scope="scope">
  644. <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
  645. </template>
  646. </el-table-column>
  647. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
  648. <template slot-scope="scope">
  649. <el-button
  650. size="mini"
  651. type="text"
  652. @click="handleDetail(scope.row)"
  653. style="color:red"
  654. >去办理</el-button>
  655. </template>
  656. </el-table-column>
  657. </el-table>
  658. <pagination
  659. v-show="workTotal>0"
  660. :total="workTotal"
  661. :page.sync="queryParamsWork.pageNum"
  662. :limit.sync="queryParamsWork.pageSize"
  663. :pager-count="5"
  664. :page-sizes="[5]"
  665. @pagination="getWorkList"
  666. />
  667. </el-tab-pane>
  668. <el-tab-pane label="消息" name="second" style="height:400px">
  669. <el-table :data="noticeList" :show-header="false">
  670. <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true"/>
  671. <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
  672. <template slot-scope="scope">
  673. <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
  674. </template>
  675. </el-table-column>
  676. </el-table>
  677. <pagination
  678. v-show="noticeTotal>0"
  679. :total="noticeTotal"
  680. :page.sync="queryParamsNotice.pageNum"
  681. :limit.sync="queryParamsNotice.pageSize"
  682. :pager-count="5"
  683. :page-sizes="[5]"
  684. @pagination="getNoticeList"
  685. />
  686. </el-tab-pane>
  687. <el-tab-pane label="已办记录" name="third" style="height:400px">
  688. <el-table :data="oldWorkList" :show-header="false">
  689. <el-table-column label="标题" align="center" prop="noticeTitle" :show-overflow-tooltip="true"/>
  690. <el-table-column label="时间" align="center" prop="createTime" :show-overflow-tooltip="true">
  691. <template slot-scope="scope">
  692. <span>{{ parseTime(new Date(scope.row.createTime)) }}</span>
  693. </template>
  694. </el-table-column>
  695. </el-table>
  696. <pagination
  697. v-show="oldWorkTotal>0"
  698. :total="oldWorkTotal"
  699. :page.sync="queryParamsOldWork.pageNum"
  700. :limit.sync="queryParamsOldWork.pageSize"
  701. :pager-count="5"
  702. :page-sizes="[5]"
  703. @pagination="getOldWorkList"
  704. />
  705. </el-tab-pane>
  706. <el-tab-pane label="30天内到期融信汇总" name="fourth" style="height:400px">
  707. <el-table :data="expiredList" :show-header="true">
  708. <el-table-column label="融资编号" align="center" prop="zfiNumber" :show-overflow-tooltip="true"/>
  709. <el-table-column label="金额" align="center" prop="afiAmount" :show-overflow-tooltip="true"/>
  710. <el-table-column label="到期时间" align="center" prop="afiExpireDate" :show-overflow-tooltip="true">
  711. <template slot-scope="scope">
  712. <span>{{ parseTime(new Date(scope.row.afiExpireDate), '{y}-{m}-{d}') }}</span>
  713. </template>
  714. </el-table-column>
  715. <el-table-column label="操作" align="center" class-name="small-padding fixed-width" fixed="right" width="200">
  716. <template slot-scope="scope">
  717. <el-button
  718. size="mini"
  719. type="text"
  720. icon="el-icon-info"
  721. @click="handleInfo(scope.row)"
  722. >详情</el-button>
  723. </template>
  724. </el-table-column>
  725. </el-table>
  726. <pagination
  727. v-show="expiredTotal>0"
  728. :total="expiredTotal"
  729. :page.sync="queryParamsExpired.pageNum"
  730. :limit.sync="queryParamsExpired.pageSize"
  731. :pager-count="5"
  732. :page-sizes="[5]"
  733. @pagination="getExpiredList"
  734. />
  735. </el-tab-pane>
  736. </el-tabs>
  737. </div>
  738. </el-card>
  739. </div>
  740. <!-- 资方 -->
  741. <div v-if="company.scyType == '03'" class="zap-margin">
  742. <el-row :gutter="20">
  743. <!-- 第一行 -->
  744. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  745. <div class="zap-card">
  746. <div class="zap-card__title">总授信额度</div>
  747. <div class="zap-card__wrap zap-card__blue">
  748. <span class="zap-card__num">{{handleInput(creditLineAll)}}</span>
  749. <span class="zap-card__unit">元</span>
  750. </div>
  751. </div>
  752. </el-col>
  753. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  754. <div class="zap-card">
  755. <div class="zap-card__title">已用额度</div>
  756. <div class="zap-card__wrap zap-card__gold">
  757. <span class="zap-card__num">{{handleInput(getFinancedNum())}}</span>
  758. <span class="zap-card__unit">元</span>
  759. </div>
  760. </div>
  761. </el-col>
  762. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  763. <div class="zap-card">
  764. <div class="zap-card__title">可用额度</div>
  765. <div class="zap-card__wrap zap-card__pink">
  766. <span class="zap-card__num">{{handleInput(getsubNum())}}</span>
  767. <span class="zap-card__unit">元</span>
  768. </div>
  769. </div>
  770. </el-col>
  771. <!-- 第二行 -->
  772. <el-col :xs="24" :sm="12" :md="8" :lg="8">
  773. <div class="zap-card">
  774. <div class="zap-card__title">即将到期融资额度(30天)</div>
  775. <div class="zap-card__wrap zap-card__blue">
  776. <span class="zap-card__num">{{handleInput(expiredBalance)}}</span>
  777. <span class="zap-card__unit">元</span>
  778. </div>
  779. </div>
  780. </el-col>
  781. </el-row>
  782. </div>
  783. <el-dialog title="待办处理" :visible.sync="openWork" width="500px" append-to-body>
  784. <work-deal :tableId="tableId" :workType="workType" :noticeId="noticeId" @cancelOpen="cancel"></work-deal>
  785. </el-dialog>
  786. </div>
  787. </template>
  788. <script>
  789. import * as echarts from 'echarts';
  790. import { getCreditLineAll, getAvailableBalance, getEffectBalance, getLoanBalance, getLoseEffectBalance,
  791. getReturnBalance, getFinanceAmount, getFinanceAmountAll, getExpiredBalance, getCoreCreditLine,
  792. getCreditLineList, getCreditLineNumList, financeRecordMonth, getExpiredList,
  793. listCreditLineAll,listCreditAll,listHasRaised,listRepayment,listPendingRepayment} from '@/api/service/report/credit'
  794. import { getCompanyNum, getFinanceSupplier, getFinanceNum, getCompanyReport } from '@/api/service/report/company'
  795. import { getOwnCompany } from "@/api/common/company";
  796. import { accAdd, accSub } from "@/utils/calculation";
  797. import { listNotice, readWork } from '@/api/system/notice'
  798. import { amtformat } from "@/utils/amtCommon"
  799. import EchartPie from '@/components/Echart/pie/index'
  800. import EchartBar from '@/components/Echart/bar/index'
  801. import { EventBus } from '@/util/event-bus.js'
  802. import WorkDeal from "@/views/workDeal";
  803. import { getRouters } from '@/api/menu'
  804. import Cookies from 'js-cookie'
  805. export default {
  806. components: {
  807. EchartPie,
  808. EchartBar,
  809. WorkDeal
  810. },
  811. data() {
  812. return {
  813. widthSize:'500px',
  814. heightSize:'280px',
  815. companyNum: 0,
  816. supplierNum: 0,
  817. coreNum: 0,
  818. financeSupplierNum: 0,
  819. availableBalance: 0,
  820. availableBalanceForward: 0,
  821. loanBalance: 0,
  822. loanBalanceForward: 0,
  823. effectBalance: 0,
  824. effectBalanceForward: 0,
  825. financeNum: 0,
  826. expiredBalance: 0,
  827. loseEffectBalance: 0,
  828. returnBalance: 0,
  829. financeAmountList: [],
  830. companyDataList:[],
  831. dateType: "00",
  832. financeDateType: "00",
  833. dateTypeList: [
  834. {label:"周",value:"00"},
  835. {label:"年",value:"01"}
  836. ],
  837. hxDateType:"00",
  838. hxDateTypeList: [
  839. {label:"实时",value:"00"},
  840. {label:"年度",value:"01"},
  841. {label:"历史",value:"02"}
  842. ],
  843. companyExtraOption:{
  844. xAxis: [
  845. {
  846. data: [],
  847. }
  848. ],
  849. legend: {
  850. },
  851. },
  852. coreFinanceAmountList: [],
  853. coreFinanceAmountExtraOption:{
  854. yAxis: [
  855. {
  856. type:"category",
  857. data: [],
  858. }
  859. ],
  860. xAxis: [
  861. {
  862. type: "value",
  863. }
  864. ],
  865. legend: {
  866. },
  867. axisLabel: {
  868. show: true,
  869. textStyle: {
  870. color: '#fff'
  871. },
  872. interval: 0,
  873. //设置字数限制
  874. formatter: function(value) {
  875. if (value.length > 8) {
  876. return value.substring(0, 7) + "...";
  877. } else {
  878. return value;
  879. }
  880. }
  881. },
  882. },
  883. dataList:[],
  884. yearDataList:[],
  885. monthDataList:[],
  886. extraOption:{
  887. legend: {
  888. type: 'scroll',
  889. orient: 'vertical',
  890. left: "left",
  891. right: 10,
  892. top: 20,
  893. bottom: 20,
  894. },
  895. },
  896. yearExtraOption:{
  897. xAxis: [
  898. {
  899. data: [],
  900. }
  901. ],
  902. legend: {
  903. },
  904. },
  905. monthExtraOption:{
  906. xAxis: [
  907. {
  908. data: [],
  909. }
  910. ],
  911. legend: {
  912. },
  913. },
  914. creditLineAll: 0,
  915. creditLineAllForward: 0,
  916. creditLineList:[],
  917. creditLineTotal:0,
  918. queryParams:{
  919. pageNum:1,
  920. pageSize:5
  921. },
  922. creditLineNumList:[],
  923. creditLineNumTotal:0,
  924. queryParamsNum:{
  925. pageNum:1,
  926. pageSize:5
  927. },
  928. workList:[],
  929. workTotal: 0,
  930. queryParamsWork:{
  931. pageNum:1,
  932. pageSize:5,
  933. type:'00'
  934. },
  935. noticeList:[],
  936. noticeTotal: 0,
  937. queryParamsNotice:{
  938. pageNum:1,
  939. pageSize:5,
  940. type:'01'
  941. },
  942. oldWorkList:[],
  943. oldWorkTotal: 0,
  944. queryParamsOldWork:{
  945. pageNum:1,
  946. pageSize:5,
  947. type:'00',
  948. status:'1'
  949. },
  950. expiredList:[],
  951. expiredTotal: 0,
  952. queryParamsExpired:{
  953. pageNum:1,
  954. pageSize:5,
  955. },
  956. activeName:'first',
  957. company:{},
  958. openWork:false,
  959. workUrl:null,
  960. workType:null,
  961. tableId:null,
  962. noticeId:null,
  963. //权限展示
  964. companyData:true,
  965. companyWork:true,
  966. companyChart:true,
  967. input1: '',
  968. //核心企业
  969. hxCreditLineAll: 0, //授信总额度反向
  970. hxCreditLineAllForward: 0, // 授信总额度正向
  971. usableAmount: 0 , //可用授信额度反向
  972. usableAmountForward: 0, //可用授信额度正向
  973. hxCreditAll: 0, //我开立的融信
  974. hxPendingMoney: 0, //30天内待还款反向
  975. hxPendingMoneyForward: 0, //30天内待还款正向
  976. hxCreditAllForward: 0, //我确权的
  977. hxHasRaised: 0, //已融资金额反向
  978. hxHasRaisedForward: 0, //已融资金额正向
  979. hxRepayment: 0, //已放款金额
  980. }
  981. },
  982. created: function () {
  983. var children = [];
  984. this.$store.state.permission.routes.map((item) => {
  985. if (this.$route.matched[0] && item.alwaysShow && this.$route.matched[0].path == item.path) {
  986. children = item.children
  987. }
  988. });
  989. if(children && children.length != 0){
  990. EventBus.$emit('on-click-higher', {children: children, basepath: this.$route.matched[0].path})
  991. }
  992. this.selectHome()
  993. },
  994. activated () {
  995. this.selectHome()
  996.    }, 
  997. mounted() {
  998. },
  999. methods: {
  1000. initChartPie (data, name, color, formatter) {
  1001. let chartPie = document.getElementById('echartPie');
  1002. let myChart = echarts.init(chartPie);
  1003. let option = {
  1004. tooltip: {
  1005. trigger: 'item',
  1006. formatter: '{b}: {d}%'
  1007. },
  1008. color: color,
  1009. label: {
  1010. alignTo: 'edge',
  1011. formatter: formatter,
  1012. minMargin: 5,
  1013. edgeDistance: 10,
  1014. rich: {
  1015. name: {
  1016. lineHeight: 14,
  1017. fontSize: 14,
  1018. color: '#333'
  1019. },
  1020. percent: {
  1021. lineHeight: 14,
  1022. fontSize: 14,
  1023. },
  1024. percentUnit: {
  1025. lineHeight: 34,
  1026. fontSize: 14,
  1027. },
  1028. unit: {
  1029. lineHeight: 46,
  1030. fontSize: 22,
  1031. }
  1032. }
  1033. },
  1034. series: [
  1035. {
  1036. name: name,
  1037. type: 'pie',
  1038. radius: '50%',
  1039. data: data,
  1040. emphasis: {
  1041. itemStyle: {
  1042. shadowBlur: 10,
  1043. shadowOffsetX: 0,
  1044. shadowColor: 'rgba(0, 0, 0, 0.5)'
  1045. }
  1046. }
  1047. }
  1048. ]
  1049. };
  1050. myChart.setOption(option);
  1051. },
  1052. getShow(){
  1053. getRouters().then(res => {
  1054. // this.data = res.data
  1055. this.setName(res.data)
  1056. this.expandedKeys.forEach(element => {
  1057. this.$set(this,element, true)
  1058. });
  1059. })
  1060. },
  1061. setName(datas){ //遍历树 获取id数组
  1062. for(var i in datas){
  1063. if(datas[i].path == 'reportStatistics'){
  1064. this.expandedKeys.push(datas[i].component)
  1065. }
  1066. if(datas[i].children){
  1067. this.setName(datas[i].children);
  1068. }
  1069. }
  1070. },
  1071. //查询各角色首页模块
  1072. selectHome(){
  1073. //查询企业类型
  1074. getOwnCompany().then((response) => {
  1075. this.company = response.data;
  1076. }).then((response) => {
  1077. //平台
  1078. if(this.company.scyType == '00'){
  1079. //入驻企业数量
  1080. this.getCompanyNum()
  1081. //入驻供应商数量
  1082. this.getSupplierNum()
  1083. //入驻核心企业数量
  1084. this.getCoreNum()
  1085. //融资开立月度统计 -- 柱状图
  1086. this.getFinanceRecordMonth()
  1087. //已融资供应商数量
  1088. this.getFinanceSupplier()
  1089. //融资中金额
  1090. this.getAvailableBalance()
  1091. //已放款金额
  1092. this.getLoanBalance()
  1093. //已生效金额
  1094. this.getEffectBalance()
  1095. //已失效金额
  1096. this.getLoseEffectBalance()
  1097. //已还款金额
  1098. this.getReturnBalance()
  1099. //融资业务数量
  1100. this.getFinanceNum()
  1101. //授信总额度
  1102. this.getCreditLineAll()
  1103. //平台资金 -- 饼图
  1104. this.getFinanceAmount()
  1105. //平台用户统计 -- 柱状图
  1106. this.getCompanyReport()
  1107. //核心企业额度比例 -- 柱状图
  1108. this.getFinanceAmountAll()
  1109. //查询待办
  1110. this.getWorkList()
  1111. //查询消息
  1112. this.getNoticeList()
  1113. //查询已办
  1114. this.getOldWorkList()
  1115. //核心企业
  1116. }else if(this.company.scyType == '01'){
  1117. this.changeFxHxDateType("00")
  1118. this.changeZxHxDateType("00")
  1119. //融资中金额
  1120. this.getAvailableBalance()
  1121. //融资中金额 -- 正向保理
  1122. this.getAvailableBalanceForward()
  1123. //已放款金额
  1124. this.getLoanBalance()
  1125. //已放款金额 -- 正向保理
  1126. this.getLoanBalanceForward()
  1127. //已生效金额
  1128. this.getEffectBalance()
  1129. //已生效金额 -- 正向保理
  1130. this.getEffectBalanceForward()
  1131. //融信授权额度 -- 饼图
  1132. this.getCreditLine()
  1133. //融信授权额度 -- 列表
  1134. this.getList()
  1135. //融信统计 -- 列表
  1136. this.getNumList()
  1137. //融资开立月度统计 -- 柱状图
  1138. this.getFinanceRecord()
  1139. //融资开立年度统计 -- 柱状图
  1140. this.getFinanceRecordYear()
  1141. //即将到期额度(30天)
  1142. this.getExpiredBalance()
  1143. //查询待办
  1144. this.getWorkList()
  1145. //查询消息
  1146. this.getNoticeList()
  1147. //查询已办
  1148. this.getOldWorkList()
  1149. //融资企业
  1150. }else if(this.company.scyType == '02'){
  1151. //授信总额度
  1152. this.getCreditLineAll()
  1153. //融资中金额
  1154. this.getAvailableBalance()
  1155. //已放款金额
  1156. this.getLoanBalance()
  1157. //已生效金额
  1158. this.getEffectBalance()
  1159. //即将到期额度(30天)
  1160. this.getExpiredBalance()
  1161. //即将到期额度(30天)-- 列表
  1162. this.getExpiredList()
  1163. //查询待办
  1164. this.getWorkList()
  1165. //查询消息
  1166. this.getNoticeList()
  1167. //查询已办
  1168. this.getOldWorkList()
  1169. //资方
  1170. }else if(this.company.scyType == '03'){
  1171. //授信总额度
  1172. this.getCreditLineAll()
  1173. //融资中金额
  1174. this.getAvailableBalance()
  1175. //已放款金额
  1176. this.getLoanBalance()
  1177. //已生效金额
  1178. this.getEffectBalance()
  1179. //即将到期额度(30天)
  1180. this.getExpiredBalance()
  1181. }
  1182. });
  1183. },
  1184. changeFxHxDateType(hxDateType){
  1185. this.hxDateType = hxDateType;
  1186. //授信总额度
  1187. this.listCreditLineAll()
  1188. //我开立的融信
  1189. this.listCreditAll()
  1190. //已融资金额
  1191. this.listHasRaised()
  1192. //已放款
  1193. this.listRepayment()
  1194. //30天内待还款反向
  1195. this.listPendingRepayment()
  1196. },
  1197. changeZxHxDateType(hxDateType){
  1198. this.hxDateType = hxDateType;
  1199. //授信总额度 -- 正向保理
  1200. this.listCreditLineAllForward()
  1201. //我确权的
  1202. this.listCreditAllForward()
  1203. //30天内待还款正向
  1204. this.listPendingRepaymentForward()
  1205. //已融资金额 正向
  1206. this.listHasRaisedForward()
  1207. },
  1208. //入驻企业数量
  1209. getCompanyNum(){
  1210. getCompanyNum().then((response) => {
  1211. this.companyNum = response.data.num
  1212. });
  1213. },
  1214. //入驻供应商数量
  1215. getSupplierNum(){
  1216. let queryParams = {}
  1217. queryParams.type = "02"
  1218. getCompanyNum(queryParams).then((response) => {
  1219. this.supplierNum = response.data.num
  1220. });
  1221. },
  1222. //入驻核心企业数量
  1223. getCoreNum(){
  1224. let queryParams = {}
  1225. queryParams.type = "01"
  1226. getCompanyNum(queryParams).then((response) => {
  1227. this.coreNum = response.data.num
  1228. });
  1229. },
  1230. //已融资供应商数量
  1231. getFinanceSupplier(){
  1232. getFinanceSupplier().then((response) => {
  1233. this.financeSupplierNum = response.data.num
  1234. });
  1235. },
  1236. //融资中金额
  1237. getAvailableBalance(){
  1238. getAvailableBalance().then(response => {
  1239. this.availableBalance = response.data.allAmount
  1240. })
  1241. },
  1242. //融资中金额 -- 正向保理
  1243. getAvailableBalanceForward(){
  1244. let queryParams = {}
  1245. queryParams.zfpType = "0"
  1246. getAvailableBalance(queryParams).then(res => {
  1247. this.availableBalanceForward = res.data.allAmount
  1248. })
  1249. },
  1250. //已生效金额
  1251. getEffectBalance(){
  1252. getEffectBalance().then(response => {
  1253. this.effectBalance = response.data.allAmount
  1254. })
  1255. },
  1256. //已生效金额 -- 正向保理
  1257. getEffectBalanceForward(){
  1258. let queryParams = {}
  1259. queryParams.zfpType = "0"
  1260. getEffectBalance(queryParams).then(res => {
  1261. this.effectBalanceForward = res.data.allAmount
  1262. })
  1263. },
  1264. //已放款金额
  1265. getLoanBalance(){
  1266. getLoanBalance().then(response => {
  1267. this.loanBalance = response.data.allAmount
  1268. })
  1269. },
  1270. //已放款金额 -- 正向保理
  1271. getLoanBalanceForward(){
  1272. let queryParams = {}
  1273. queryParams.zfpType = "0"
  1274. getLoanBalance(queryParams).then(res => {
  1275. this.loanBalanceForward = res.data.allAmount
  1276. })
  1277. },
  1278. //已失效金额
  1279. getLoseEffectBalance(){
  1280. getLoseEffectBalance().then(response => {
  1281. this.loseEffectBalance = response.data.allAmount
  1282. })
  1283. },
  1284. //已还款金额
  1285. getReturnBalance(){
  1286. getReturnBalance().then(response => {
  1287. this.returnBalance = response.data.allAmount
  1288. })
  1289. },
  1290. //融资业务数量
  1291. getFinanceNum(){
  1292. getFinanceNum().then(response => {
  1293. this.financeNum = response.data.num
  1294. })
  1295. },
  1296. //授信总额度
  1297. getCreditLineAll(){
  1298. getCreditLineAll().then(res => {
  1299. this.creditLineAll = res.data.allAmount
  1300. })
  1301. },
  1302. //授信总额度 -- 正向保理
  1303. getCreditLineAllForward(){
  1304. let queryParams = {}
  1305. queryParams.zfpType = "0"
  1306. getCreditLineAll(queryParams).then(res => {
  1307. this.creditLineAllForward = res.data.allAmount
  1308. })
  1309. },
  1310. //核心企业授信总额度 -- 反向
  1311. listCreditLineAll(){
  1312. let queryParams = {}
  1313. listCreditLineAll(queryParams).then(res => {
  1314. this.hxCreditLineAll = res.data.allAmount;
  1315. this.usableAmount = res.data.usableAmount;
  1316. })
  1317. },
  1318. //核心企业授信总额度 -- 正向保理
  1319. listCreditLineAllForward(){
  1320. let queryParams = {}
  1321. queryParams.zfpType = '0'
  1322. listCreditLineAll(queryParams).then(res => {
  1323. debugger
  1324. this.hxCreditLineAllForward = res.data.allAmountForward
  1325. this.usableAmountForward = res.data.usableAmountForward;
  1326. })
  1327. },
  1328. //核心企业我开立的融信
  1329. listCreditAll(){
  1330. let queryParams = {}
  1331. queryParams.hxDateType = this.hxDateType
  1332. listCreditAll(queryParams).then(res => {
  1333. debugger
  1334. this.hxCreditAll = res.data.allAmount;
  1335. })
  1336. },
  1337. //核心企业我确权的
  1338. listCreditAllForward(){
  1339. let queryParams = {}
  1340. queryParams.zfpType = '0'
  1341. queryParams.hxDateType = this.hxDateType
  1342. listCreditAll(queryParams).then(res => {
  1343. debugger
  1344. this.hxCreditAllForward = res.data.allAmount;
  1345. })
  1346. },
  1347. //核心企业已融资金额反向
  1348. listHasRaised(){
  1349. let queryParams = {}
  1350. queryParams.hxDateType = this.hxDateType
  1351. listHasRaised(queryParams).then(res => {
  1352. this.hxHasRaised = res.data.allAmount;
  1353. })
  1354. },
  1355. //核心企业已融资金额正向
  1356. listHasRaisedForward(){
  1357. let queryParams = {}
  1358. queryParams.zfpType = '0'
  1359. queryParams.hxDateType = this.hxDateType
  1360. listHasRaised(queryParams).then(res => {
  1361. this.hxHasRaisedForward = res.data.allAmount;
  1362. })
  1363. },
  1364. //核心企业已放款金额
  1365. listPendingRepayment(){
  1366. listPendingRepayment().then(res => {
  1367. this.hxPendingMoney = res.data.allAmount;
  1368. })
  1369. },
  1370. //核心企业已放款金额
  1371. listPendingRepaymentForward(){
  1372. let queryParams = {}
  1373. queryParams.zfpType = '0'
  1374. listPendingRepayment(queryParams).then(res => {
  1375. this.hxPendingMoneyForward = res.data.allAmount;
  1376. })
  1377. },
  1378. //核心企业已放款金额
  1379. listRepayment(){
  1380. let queryParams = {}
  1381. queryParams.hxDateType = this.hxDateType
  1382. listRepayment(queryParams).then(res => {
  1383. this.hxRepayment = res.data.allAmount;
  1384. })
  1385. },
  1386. //平台放款金额
  1387. getAllLoanBalance(){
  1388. return accAdd(this.loanBalance, this.returnBalance, 2)
  1389. },
  1390. //未融资金额
  1391. getNotUseAmt(){
  1392. return accAdd(this.effectBalance, this.loseEffectBalance, 2)
  1393. },
  1394. //平台开立融信
  1395. getFinancedNumAll(){
  1396. return accAdd(accAdd(accAdd(accAdd(this.effectBalance, this.availableBalance, 2), this.loanBalance, 2), this.loseEffectBalance, 2) ,this.returnBalance ,2)
  1397. },
  1398. //开立金额
  1399. getFinancedNum(){
  1400. return accAdd(accAdd(this.effectBalance, this.availableBalance, 2), this.loanBalance, 2)
  1401. },
  1402. //开立金额 -- 正向保理
  1403. getFinancedNumForward(){
  1404. return accAdd(accAdd(this.effectBalanceForward, this.availableBalanceForward, 2), this.loanBalanceForward, 2)
  1405. },
  1406. //剩余授信额度
  1407. getsubNum(){
  1408. return accSub(this.creditLineAll, this.getFinancedNum(), 2)
  1409. },
  1410. //剩余授信额度 -- 正向保理
  1411. getsubNumForward(){
  1412. return accSub(this.creditLineAllForward, this.getFinancedNumForward(), 2)
  1413. },
  1414. //平台资金 -- 饼图
  1415. getFinanceAmount(){
  1416. getFinanceAmount().then(response => {
  1417. this.financeAmountList = response.data;
  1418. this.initChartPie(response.data, '平台资金统计', ["#f9b51d", "#30d894", "#ff6d8a", "#4280f2"], '{name|{b}}\n{unit|{c} 元}')
  1419. })
  1420. },
  1421. //平台用户统计 -- 柱状图
  1422. getCompanyReport(){
  1423. let queryParams = {}
  1424. queryParams.dateType = this.dateType
  1425. getCompanyReport(queryParams).then((response) => {
  1426. this.companyDataList = response.data.dataList
  1427. this.companyExtraOption.xAxis[0].data = response.data.dateList
  1428. this.iniEcharBar('echarBarUser', response.data.dataList, response.data.dateList)
  1429. });
  1430. },
  1431. iniEcharBar (id, series, dateList) {
  1432. // 时间选择是周的时候进行转换 YYYY-MM-D 2 MM.D
  1433. if (this.dateType === '00') {
  1434. dateList = dateList.map(item => {
  1435. let arr = item.split('-').slice(1)
  1436. return arr.join('.')
  1437. })
  1438. }
  1439. let _series = series.map(item => {
  1440. item.type = 'bar'
  1441. item.barWidth = 12
  1442. item.barGap = '25%'
  1443. return item
  1444. })
  1445. // _series.push({
  1446. // name: '供应商',
  1447. // type: 'line',
  1448. // yAxisIndex: 1,
  1449. // data: _series[0].data.map(item => {
  1450. // return item / eval(_series[0].data.join('+')) * 100
  1451. // })
  1452. // })
  1453. // _series.push({
  1454. // name: '核心企业',
  1455. // type: 'line',
  1456. // yAxisIndex: 1,
  1457. // data: _series[1].data.map(item => {
  1458. // return item / eval(_series[1].data.join('+')) * 100
  1459. // })
  1460. // })
  1461. let option = {
  1462. tooltip: {
  1463. trigger: 'axis',
  1464. axisPointer: {
  1465. type: 'cross',
  1466. crossStyle: {
  1467. color: '#999'
  1468. }
  1469. }
  1470. },
  1471. color: ["#4280f2", "#30d894"],
  1472. xAxis: [
  1473. {
  1474. type: 'category',
  1475. axisLine: {
  1476. show: false
  1477. },
  1478. axisTick: {
  1479. show:false //y轴坐标点消失
  1480. },
  1481. data: dateList,
  1482. axisPointer: {
  1483. type: 'shadow'
  1484. },
  1485. axisLabel: {
  1486. margin: 34,
  1487. fontSize: 16,
  1488. color: '#666666',
  1489. },
  1490. }
  1491. ],
  1492. yAxis: [
  1493. {
  1494. type: 'value',
  1495. name: '',
  1496. axisLine:{
  1497. show:false //y轴线消失
  1498. },
  1499. axisTick: {
  1500. show:false //y轴坐标点消失
  1501. },
  1502. axisLabel: {
  1503. margin: 11,
  1504. fontSize: 16,
  1505. color: '#666666',
  1506. formatter: '{value}'
  1507. },
  1508. splitLine: {
  1509. lineStyle: {
  1510. color: ['#e5e5e5'],
  1511. width: 2
  1512. }
  1513. }
  1514. },
  1515. {
  1516. type: 'value',
  1517. name: '',
  1518. axisLine:{
  1519. show:false //y轴线消失
  1520. },
  1521. axisTick: {
  1522. show:false //y轴坐标点消失
  1523. },
  1524. // min: 0,
  1525. // max: 100,
  1526. // axisLabel: {
  1527. // margin: 11,
  1528. // fontSize: 16,
  1529. // color: '#666666',
  1530. // formatter: '{value}%'
  1531. // },
  1532. splitLine: {
  1533. lineStyle: {
  1534. color: ['#e5e5e5'],
  1535. width: 2
  1536. }
  1537. }
  1538. }
  1539. ],
  1540. series: _series
  1541. };
  1542. let chartBar = document.getElementById(id);
  1543. let myChart = echarts.init(chartBar);
  1544. myChart.clear()
  1545. myChart.setOption(option)
  1546. },
  1547. iniEchartBarCore (series, dateList) {
  1548. if (this.financeDateType === '00') {
  1549. dateList = dateList.map(item => {
  1550. let arr = item.split('-').slice(1)
  1551. return arr.join('.')
  1552. })
  1553. }
  1554. var barCore = document.getElementById('echarBarCore');
  1555. var myChart = echarts.init(barCore);
  1556. let _series = series.map(item => {
  1557. item.type = 'bar'
  1558. item.barWidth = 75
  1559. item.label = {show: true}
  1560. return item
  1561. })
  1562. var option = {
  1563. tooltip: {
  1564. trigger: 'axis',
  1565. axisPointer: {
  1566. type: 'shadow'
  1567. }
  1568. },
  1569. color: ["#4280f2", "#30d894"],
  1570. grid: {
  1571. left: '3%',
  1572. right: '4%',
  1573. bottom: '3%',
  1574. containLabel: true
  1575. },
  1576. xAxis: [
  1577. {
  1578. type: 'category',
  1579. data: dateList,
  1580. axisLine:{
  1581. show:false //y轴线消失
  1582. },
  1583. axisTick: {
  1584. show:false //y轴坐标点消失
  1585. },
  1586. axisLabel: {
  1587. margin: 34,
  1588. fontSize: 16,
  1589. color: '#666666',
  1590. },
  1591. }
  1592. ],
  1593. yAxis: [
  1594. {
  1595. show: false
  1596. }
  1597. ],
  1598. series: _series
  1599. };
  1600. option && myChart.setOption(option);
  1601. },
  1602. //核心企业额度比例 -- 柱状图
  1603. getFinanceAmountAll(){
  1604. let queryParams = {}
  1605. queryParams.pageNum = 1
  1606. queryParams.pageSize = 5
  1607. getFinanceAmountAll(queryParams).then((response) => {
  1608. this.coreFinanceAmountList = response.data.dataList
  1609. this.coreFinanceAmountExtraOption.yAxis[0].data = response.data.dateList
  1610. this.iniEchartBarCore(response.data.dataList, response.data.dateList)
  1611. });
  1612. },
  1613. //融资开立月度统计 -- 柱状图
  1614. getFinanceRecordMonth(){
  1615. let queryParams = {}
  1616. queryParams.dateType = this.financeDateType
  1617. financeRecordMonth(queryParams).then((response) => {
  1618. this.yearDataList = response.data.dataList
  1619. this.yearExtraOption.xAxis[0].data = response.data.dateList
  1620. this.iniEcharBar('echarBarBusiness', response.data.dataList, response.data.dateList)
  1621. });
  1622. },
  1623. //查询待办
  1624. getWorkList(){
  1625. listNotice(this.queryParamsWork).then((response) => {
  1626. this.workList = response.rows
  1627. this.workTotal = response.total
  1628. });
  1629. },
  1630. //查询消息
  1631. getNoticeList(){
  1632. listNotice(this.queryParamsNotice).then((response) => {
  1633. this.noticeList = response.rows
  1634. this.noticeTotal = response.total
  1635. });
  1636. },
  1637. //查询已办
  1638. getOldWorkList(){
  1639. listNotice(this.queryParamsOldWork).then((response) => {
  1640. this.oldWorkList = response.rows
  1641. this.oldWorkTotal = response.total
  1642. });
  1643. },
  1644. //企业即将到期额度(30天) -- 列表
  1645. getExpiredList(){
  1646. getExpiredList(this.queryParamsExpired).then(response => {
  1647. this.expiredList = response.data.records;
  1648. this.expiredTotal = response.data.total
  1649. })
  1650. },
  1651. //即将到期额度(30天)
  1652. getExpiredBalance(){
  1653. getExpiredBalance().then(response => {
  1654. this.expiredBalance = response.data.allAmount
  1655. })
  1656. },
  1657. //融资开立年度统计 -- 柱状图
  1658. getFinanceRecordYear(){
  1659. let queryParams = {}
  1660. queryParams.dateType = "01"
  1661. financeRecordMonth(queryParams).then((response) => {
  1662. this.monthDataList = response.data.dataList
  1663. this.monthExtraOption.xAxis[0].data = response.data.dateList
  1664. this.initEchartBarCapital('echartBarCapital', response.data.dataList, response.data.dateList)
  1665. });
  1666. },
  1667. //融资开立月度统计 -- 柱状图
  1668. getFinanceRecord(){
  1669. let queryParams = {}
  1670. queryParams.dateType = "03"
  1671. financeRecordMonth(queryParams).then((response) => {
  1672. this.monthDataList = response.data.dataList
  1673. this.monthExtraOption.xAxis[0].data = response.data.dateList
  1674. this.initEchartBarCapital('echartBarCapitalDay', response.data.dataList, response.data.dateList, true)
  1675. });
  1676. },
  1677. initEchartBarCapital (id, series, dateList, transform) {
  1678. if (transform) {
  1679. // 时间选择是周的时候进行转换 YYYY-MM-D 2 MM.D
  1680. dateList = dateList.map(item => {
  1681. let arr = item.split('-').slice(1)
  1682. return arr.join('.')
  1683. })
  1684. }
  1685. let _series = series.map(item => {
  1686. item.type = 'bar'
  1687. item.barWidth = 12
  1688. item.barGap = '20%'
  1689. return item
  1690. })
  1691. let option = {
  1692. tooltip: {
  1693. trigger: 'axis',
  1694. axisPointer: {
  1695. type: 'cross',
  1696. crossStyle: {
  1697. color: '#999'
  1698. }
  1699. }
  1700. },
  1701. grid: {
  1702. left: '20%'
  1703. },
  1704. color: ["#4280f2", "#fb738a"],
  1705. xAxis: [
  1706. {
  1707. type: 'category',
  1708. axisLine: {
  1709. show: false
  1710. },
  1711. axisTick: {
  1712. show:false //y轴坐标点消失
  1713. },
  1714. data: dateList,
  1715. axisPointer: {
  1716. type: 'shadow'
  1717. },
  1718. axisLabel: {
  1719. margin: 34,
  1720. fontSize: 16,
  1721. color: '#666666',
  1722. },
  1723. }
  1724. ],
  1725. yAxis: [
  1726. {
  1727. type: 'value',
  1728. name: '',
  1729. axisLine:{
  1730. show:false //y轴线消失
  1731. },
  1732. axisTick: {
  1733. show:false //y轴坐标点消失
  1734. },
  1735. axisLabel: {
  1736. margin: 11,
  1737. fontSize: 16,
  1738. color: '#666666',
  1739. formatter: '{value}'
  1740. },
  1741. splitLine: {
  1742. lineStyle: {
  1743. type: 'dashed',
  1744. color: ['#e5e5e5'],
  1745. }
  1746. }
  1747. },
  1748. {
  1749. type: 'value',
  1750. name: '',
  1751. axisLine:{
  1752. show:false //y轴线消失
  1753. },
  1754. axisTick: {
  1755. show:false //y轴坐标点消失
  1756. },
  1757. axisLabel: {
  1758. margin: 11,
  1759. fontSize: 16,
  1760. color: '#666666',
  1761. formatter: '{value}%'
  1762. },
  1763. splitLine: {
  1764. lineStyle: {
  1765. type: 'dashed',
  1766. color: ['#e5e5e5'],
  1767. }
  1768. }
  1769. }
  1770. ],
  1771. series: _series
  1772. };
  1773. let chartBar = document.getElementById(id);
  1774. let myChart = echarts.init(chartBar);
  1775. myChart.clear()
  1776. myChart.setOption(option)
  1777. },
  1778. //融信授权额度 -- 饼图
  1779. getCreditLine(){
  1780. getCoreCreditLine().then(response => {
  1781. this.dataList = response.data;
  1782. this.initChartPie(response.data, '融信授权额度', ['#ff6d8a', '#4280f2'], '{percent|{d}%}\n{percentUnit|{c} 元}')
  1783. })
  1784. },
  1785. //融信授权额度 -- 列表
  1786. getList(){
  1787. getCreditLineList(this.queryParams).then(response => {
  1788. this.creditLineList = response.data.records;
  1789. this.creditLineTotal = response.data.total
  1790. })
  1791. },
  1792. //融信统计 -- 列表
  1793. getNumList(){
  1794. getCreditLineNumList(this.queryParamsNum).then(response => {
  1795. this.creditLineNumList = response.data.records;
  1796. this.creditLineNumTotal = response.data.total
  1797. })
  1798. },
  1799. /* 金额展示 */
  1800. handleInput(str) {
  1801. return amtformat(str,2, ".", ",");
  1802. },
  1803. /** 详情按钮操作 */
  1804. handleDetail(row) {
  1805. if(row.openType == '00'){
  1806. this.openWork = true
  1807. this.noticeId = row.noticeId
  1808. this.workType = row.workType
  1809. this.tableId = row.tableId
  1810. readWork(row.noticeId).then(response => {
  1811. this.getWorkList()
  1812. });
  1813. }else if(row.openType == '01'){
  1814. this.$router.push({ path: row.openUrl });
  1815. readWork(row.noticeId).then(response => {
  1816. this.getWorkList()
  1817. });
  1818. }
  1819. },
  1820. // 取消按钮
  1821. cancel() {
  1822. this.getWorkList()
  1823. this.openWork = false;
  1824. },
  1825. //去融信
  1826. toCredit(){
  1827. this.$router.push({ path: "/Bill/credit" });
  1828. },
  1829. //去授信
  1830. toCreditLine(){
  1831. this.$router.push({ path: "/Bill/creditLine" });
  1832. },
  1833. //去还款
  1834. toRepayment(){
  1835. this.$router.push({ path: "/Bill/repayment" });
  1836. },
  1837. //去融资
  1838. toFinanceRecord(){
  1839. this.$router.push({ path: "/Bill/financeRecord" });
  1840. },
  1841. /** 详情按钮操作 */
  1842. handleInfo(row) {
  1843. const zfrId = row.zfrId;
  1844. Cookies.set("/repayment/detailRepayment/"+zfrId+"/", this.$route.fullPath);
  1845. this.$router.push({path:"/repayment/detailRepayment/"+zfrId+"/"});
  1846. },
  1847. },
  1848. };
  1849. </script>
  1850. <style>
  1851. .labelData .el-collapse-item__header{
  1852. height: 200px;
  1853. }
  1854. .app-main{
  1855. padding: 0 25px 30px 20px;
  1856. background-color: #f4f5f6;
  1857. }
  1858. </style>
  1859. <style lang="scss">
  1860. .zap-home__main .el-input--medium .el-input__inner{
  1861. font-size: 16px;
  1862. border-color: transparent;
  1863. }
  1864. .zap-card{
  1865. padding: 40px 28px 42px;
  1866. height: 160px;
  1867. background-color: #ffffff;
  1868. box-sizing: border-box;
  1869. }
  1870. .zap-card__title{
  1871. font-size: 18px;
  1872. font-weight: normal;
  1873. color: #666666;
  1874. }
  1875. .zap-card__wrap{
  1876. margin-top: 30px;
  1877. font-size: 0;
  1878. }
  1879. .zap-card__slash,
  1880. .zap-card__num{
  1881. display: inline-block;
  1882. line-height: 1;
  1883. font-size: 40px;
  1884. }
  1885. .zap-card__slash{
  1886. padding: 0 8px;
  1887. }
  1888. .zap-card__unit{
  1889. display: inline-block;
  1890. line-height: 1;
  1891. font-size: 20px;
  1892. }
  1893. .zap-card__blue{
  1894. color: #4280f2;
  1895. }
  1896. .zap-card__gold{
  1897. color: #e6a71b;
  1898. }
  1899. .zap-card__pink{
  1900. color: #fb738a;
  1901. }
  1902. .zap-home__main{
  1903. .el-col{
  1904. margin-bottom: 20px;
  1905. }
  1906. .zap-home__title{
  1907. display: flex;
  1908. align-items: center;
  1909. justify-content: space-between;
  1910. height: 78px;
  1911. font-size: 18px;
  1912. color: #333333;
  1913. }
  1914. .zap-home-chart{
  1915. background-color: #ffffff;
  1916. }
  1917. .zap-home-chart__title{
  1918. display: flex;
  1919. align-items: center;
  1920. justify-content: space-between;
  1921. height: 78px;
  1922. padding: 0 30px;
  1923. font-size: 18px;
  1924. color: #333333;
  1925. white-space: nowrap;
  1926. }
  1927. .zap-home-chart__title--middle{
  1928. height: 58px;
  1929. }
  1930. .zap-home-chart__title--align-left{
  1931. justify-content: flex-start;
  1932. }
  1933. .zap-home-chart--space{
  1934. margin-top: 20px;
  1935. }
  1936. .zap-home-chart__wrap{
  1937. display: flex;
  1938. align-items: center;
  1939. }
  1940. .zap-home-chart__select{
  1941. width: 116px;
  1942. height: 40px;
  1943. margin-left: 26px;
  1944. background-image: linear-gradient(
  1945. #ffffff,
  1946. #ffffff),
  1947. linear-gradient(
  1948. #71befe,
  1949. #71befe);
  1950. background-blend-mode: normal,
  1951. normal;
  1952. border: solid 1px #ebebeb;
  1953. .el-input--medium .el-input__inner{
  1954. line-height: 38px;
  1955. height: 38px;
  1956. font-size: 14px;
  1957. }
  1958. }
  1959. // 自定义图例
  1960. .zap-home-chart__legend{
  1961. display: flex;
  1962. align-items: center;
  1963. }
  1964. .zap-home-chart__circle{
  1965. display: inline-block;
  1966. width: 11px;
  1967. height: 11px;
  1968. border-radius: 50%;
  1969. }
  1970. .zap-home-chart__circle--blue{
  1971. background-color: #4280f2;
  1972. }
  1973. .zap-home-chart__circle--green{
  1974. background-color: #30d894;
  1975. }
  1976. .zap-home-chart__circle--red{
  1977. background-color: #ff6d8a;
  1978. }
  1979. .zap-home-chart__circle--margin{
  1980. margin-left: 25px;
  1981. }
  1982. .zap-home-chart__text{
  1983. margin-left: 10px;
  1984. font-size: 14px;
  1985. color: #666666;
  1986. }
  1987. .zap-home-chart__search{
  1988. width: 199px;
  1989. height: 40px;
  1990. margin-left: 30px;
  1991. background-image: linear-gradient(
  1992. #ffffff,
  1993. #ffffff),
  1994. linear-gradient(
  1995. #71befe,
  1996. #71befe);
  1997. background-blend-mode: normal,
  1998. normal;
  1999. border: solid 1px #ebebeb;
  2000. .zap-home .el-input--medium .el-input__inner{
  2001. height: 38px;
  2002. line-height: 38px;
  2003. font-size: 14px;
  2004. }
  2005. }
  2006. .zap-margin{
  2007. margin-top: 25px;
  2008. }
  2009. // 消息列表
  2010. .el-card__body{
  2011. padding: 0 18px;
  2012. }
  2013. .el-tabs__item{
  2014. height: 54px;
  2015. line-height: 54px;
  2016. font-size: 16px;
  2017. color: #666;
  2018. }
  2019. .el-table th.el-table__cell.is-leaf, .el-table td.el-table__cell{
  2020. border-bottom: 1px dashed #999999;
  2021. }
  2022. .zap-padding-clear{
  2023. padding: 0;
  2024. }
  2025. .zap-list{
  2026. padding: 0 18px;
  2027. background-color: #ffffff;
  2028. }
  2029. .zap-chart-quto{
  2030. height: 358px;
  2031. }
  2032. .zap-statistics{
  2033. height: 358px;
  2034. padding: 0 20px;
  2035. }
  2036. .zap-padding{
  2037. padding: 0 20px;
  2038. }
  2039. .zap-bg{
  2040. background-color: #fff;
  2041. }
  2042. }
  2043. </style>