home.vue 80 KB

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