dudm 3 anni fa
parent
commit
b7c47a5fc9
1 ha cambiato i file con 28 aggiunte e 22 eliminazioni
  1. 28 22
      front-vue/src/views/home.vue

+ 28 - 22
front-vue/src/views/home.vue

@@ -31,7 +31,7 @@
                     <span style="color: #666ee8; font-weight: bold;">总融资金额</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{getFinancedNum()}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(getFinancedNum())}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:30.2%;margin:0.6%;float:left;">
@@ -39,7 +39,7 @@
                     <span style="color: #666ee8; font-weight: bold;">融资中金额</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{availableBalance}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(availableBalance)}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:30.2%;margin:0.6%;float:left;">
@@ -47,7 +47,7 @@
                     <span style="color: #666ee8; font-weight: bold;">已放款金额</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{loanBalance}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(loanBalance)}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:30.2%;margin:0.6%;float:left;">
@@ -63,7 +63,7 @@
                     <span style="color: #666ee8; font-weight: bold;">核心企业总授信额度</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{creditLineAll}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(creditLineAll)}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:30.2%;margin:0.6%;float:left;">
@@ -71,7 +71,7 @@
                     <span style="color: #666ee8; font-weight: bold;">剩余可用授信</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{getsubNum()}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(getsubNum())}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:93%;margin:0.6%;float:left;">
@@ -123,7 +123,7 @@
                     <span style="color: #666ee8; font-weight: bold;">我开立的融信</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{getFinancedNum()}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(getFinancedNum())}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:30.2%;margin:0.6%;float:left;">
@@ -131,7 +131,7 @@
                     <span style="color: #666ee8; font-weight: bold;">可用授权额度</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{getsubNum()}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(getsubNum())}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:30.2%;margin:0.6%;float:left;">
@@ -139,7 +139,7 @@
                     <span style="color: #666ee8; font-weight: bold;">即将到期付款</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{expiredBalance}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(expiredBalance)}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:30.2%;margin:0.6%;float:left;">
@@ -155,7 +155,7 @@
                     <span style="color: #666ee8; font-weight: bold;">可用授权额度(正向保理)</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{getsubNumForward()}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(getsubNumForward())}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:30.2%;margin:0.6%;float:left;">
@@ -163,7 +163,7 @@
                     <span style="color: #666ee8; font-weight: bold;">总授权额度(正向保理)</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{getFinancedNumForward()}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(getFinancedNumForward())}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:93%;margin:0.6%;float:left;">
@@ -211,7 +211,7 @@
                 <div class="text item">
                     <echart-pie :series-data="dataList" :extra-option="extraOption" style="height:200px;width:40%;float:left"/>
                     <div style="height:300px;width:60%;float:right">
-                        <el-table :data="creditLineList" border >
+                        <el-table :data="creditLineList">
                             <el-table-column label="渠道名称" align="center" prop="managementName" :show-overflow-tooltip="true"/>
                             <el-table-column label="额度" align="center" prop="allAmount" :show-overflow-tooltip="true"/>
                             <el-table-column label="可用金额" align="center" prop="subAmount" :show-overflow-tooltip="true"/>
@@ -236,7 +236,7 @@
                 </div>
                 <div class="text item">
                     <div style="height:300px">
-                        <el-table :data="creditLineNumList" border >
+                        <el-table :data="creditLineNumList">
                             <el-table-column label="渠道名称" align="center" prop="managementName" :show-overflow-tooltip="true"/>
                             <el-table-column label="数量" align="center" prop="num" :show-overflow-tooltip="true"/>
                             <el-table-column label="额度" align="center" prop="allAmount" :show-overflow-tooltip="true"/>
@@ -279,7 +279,7 @@
                     <span style="color: #666ee8; font-weight: bold;">持有融信额度</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{creditLineAll}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(creditLineAll)}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:22.4%;margin:0.6%;float:left;">
@@ -287,7 +287,7 @@
                     <span style="color: #666ee8; font-weight: bold;">融资中额度</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{availableBalance}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(availableBalance)}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:22.4%;margin:0.6%;float:left;">
@@ -295,7 +295,7 @@
                     <span style="color: #666ee8; font-weight: bold;">已融资额度</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{loanBalance}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(loanBalance)}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:22.4%;margin:0.6%;float:left;">
@@ -303,7 +303,7 @@
                     <span style="color: #666ee8; font-weight: bold;">即将到期融资额度(30天)</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{expiredBalance}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(expiredBalance)}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:93%;margin:0.6%;float:left;">
@@ -355,7 +355,7 @@
                     <span style="color: #666ee8; font-weight: bold;">持有融信额度</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{creditLineAll}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(creditLineAll)}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:22.4%;margin:0.6%;float:left;">
@@ -363,7 +363,7 @@
                     <span style="color: #666ee8; font-weight: bold;">融资中额度</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{availableBalance}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(availableBalance)}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:22.4%;margin:0.6%;float:left;">
@@ -371,7 +371,7 @@
                     <span style="color: #666ee8; font-weight: bold;">已融资额度</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{loanBalance}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(loanBalance)}}</span>
                 </div>
             </el-card>
             <el-card class="box-card" style="width:22.4%;margin:0.6%;float:left;">
@@ -379,7 +379,7 @@
                     <span style="color: #666ee8; font-weight: bold;">即将到期融资额度(30天)</span>
                 </div>
                 <div class="text item" style="height:100px">
-                    <span style="color: #666ee8; font-weight: bold;">{{expiredBalance}}</span>
+                    <span style="color: #666ee8; font-weight: bold;">{{handleInput(expiredBalance)}}</span>
                 </div>
             </el-card>
         </div>
@@ -391,6 +391,7 @@ import { getCompanyNum, getFinanceSupplier, getFinanceNum, getCompanyReport } fr
 import { getOwnCompany } from "@/api/common/company";
 import { accAdd, accSub } from "@/utils/calculation";
 import { listNotice } from '@/api/system/notice'
+import { amtformat } from "@/utils/amtCommon"
 import  EchartPie  from '@/components/Echart/pie/index'
 import  EchartBar  from '@/components/Echart/bar/index'
 export default {
@@ -416,8 +417,8 @@ export default {
             expiredBalance: 0,
             financeAmountList: [],
             companyDataList:[],
-            dateType: '00',
-            financeDateType: '00',
+            dateType: "00",
+            financeDateType: "00",
             dateTypeList: [
                 {label:"周",value:"00"},
                 {label:"年",value:"01"}
@@ -734,6 +735,7 @@ export default {
         getCompanyReport(){
             let queryParams = {}
             queryParams.dateType = this.dateType
+            console.log(queryParams,"queryParams")
             getCompanyReport(queryParams).then((response) => {
                 this.companyDataList = response.data.dataList
                 this.companyExtraOption.xAxis[0].data = response.data.dateList
@@ -806,6 +808,10 @@ export default {
                 this.creditLineNumTotal = response.data.total
             })
         },
+        /* 金额展示 */
+        handleInput(str) {
+            return amtformat(str,2, ".", ",");
+        },
     },
 };
 </script>