home.vue 78 KB

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