瀏覽代碼

修改还款展示等

cuixq 4 年之前
父節點
當前提交
f82c31679b

+ 7 - 0
front-vue/src/api/service/repayment/repayment.js

@@ -34,3 +34,10 @@ export function repaymentAmount(query) {
     params: query
   })
 }
+// 待还款金额
+export function listAmount() {
+  return request({
+    url: '/sc-service/repayment/amount',
+    method: 'get'
+  })
+}

+ 4 - 3
front-vue/src/views/service/credit/creditSeal.vue

@@ -342,6 +342,7 @@ export default {
             show:false,
             heid:false,
             auth_timer : null,
+             auth_pro_timer : null,
             //融资方审批状态
             zfiSupplierStatus:'',
             //核心审批状态
@@ -799,8 +800,10 @@ export default {
 
     //生成项目授权编号发送短信
     proSend(){
+        debugger;
         //发送
         projectSendMessage().then((response) => {
+            console.log(response,"response")
             if(response.data){
                 //手机号
                 var newIphone = response.data.newIphone;
@@ -813,6 +816,7 @@ export default {
                     this.proShow = false;
                     setTimeout(() => {
                             this.proTimer--;
+                            console.log(this.proTimer);
                             if(this.proTimer <= 0 ){
                                 this.proShow = true;
                                 clearInterval(this.auth_pro_timer);
@@ -890,7 +894,6 @@ export default {
         const pfiUrl = row.pfiUrl;
         const pfiFileName = row.pfiFileName;
         if (row.pfiUrl) {
-            console.log(pfiFileName.substr(-3));
             if (pfiFileName.substr(-3) == "pdf") {
                 this.wordUrl = pfiUrl + "/" + getToken();
                 this.show=false;
@@ -909,7 +912,6 @@ export default {
                     getToken();
                     this.show=true;
                     this.heid=false;
-                        console.log("====>",this.wordUrl);
             } else if (
                 pfiFileName.substr(-3) == "doc" ||
                 pfiFileName.substr(-3) == "DOC"||
@@ -925,7 +927,6 @@ export default {
                     pfiFileName;
                     this.show=false;
                     this.heid=true;
-                    console.log("====>",this.wordUrl);
             } else {
                 this.$message({
                     message: "暂不支持该类型文件预览",

+ 3 - 2
front-vue/src/views/service/credit/pdfShow.vue

@@ -459,6 +459,7 @@ export default {
 
     //生成项目授权编号发送短信
     proSend(){
+        debugger;
         //发送
         projectSendMessage().then((response) => {
             if(response.data){
@@ -472,8 +473,8 @@ export default {
                 this.auth_pro_timer = window.setInterval(() => {
                     this.proShow = false;
                     setTimeout(() => {
-                            this.timer--;
-                            if(this.timer <= 0 ){
+                            this.proTimer--;
+                            if(this.proTimer <= 0 ){
                                 this.proShow = true;
                                 clearInterval(this.auth_pro_timer);
                             }

+ 4 - 2
front-vue/src/views/service/financeRecord/pdfShow.vue

@@ -185,6 +185,7 @@ export default {
             show:false,
             heid:false,
             auth_timer : null,
+            auth_pro_timer : null,
             //融资方审批状态
             zfiSupplierStatus:'',
             //核心审批状态
@@ -456,6 +457,7 @@ export default {
 
     //生成项目授权编号发送短信
     proSend(){
+        debugger;
         //发送
         projectSendMessage().then((response) => {
             if(response.data){
@@ -469,8 +471,8 @@ export default {
                 this.auth_pro_timer = window.setInterval(() => {
                     this.proShow = false;
                     setTimeout(() => {
-                            this.timer--;
-                            if(this.timer <= 0 ){
+                            this.proTimer--;
+                            if(this.proTimer <= 0 ){
                                 this.proShow = true;
                                 clearInterval(this.auth_pro_timer);
                             }

+ 1 - 0
front-vue/src/views/service/rel/companyRel.vue

@@ -819,6 +819,7 @@ export default {
     },
     mounted() {
         this.columnQuery();
+        this.getCompanyList();
     },
     methods: {
         //获取当前客户是否之前设置过列展示隐藏

+ 52 - 2
front-vue/src/views/service/repayment/repayment.vue

@@ -203,6 +203,12 @@
                         </template>
                     </el-table-column>
                 </el-table>
+                <statistical-data>
+                <span class="label">总合计:<span class="value">¥{{allAmount}}</span></span>
+                <span class="label">待还款:¥{{dhkAmount}}</span>
+                <span class="label">已还款:¥{{yhkAmount}}</span>
+                <span class="label">逾期:¥{{yyqAmount}}</span>
+                </statistical-data>
                 <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
             </div>
         </el-tab-pane>
@@ -247,6 +253,10 @@
                     </template>
                 </el-table-column>
             </el-table>
+              <statistical-data>
+                <span class="label">总合计:<span class="value">¥{{allAmount}}</span></span>
+                <span class="label">待还款:¥{{dhkAmount}}</span>
+                </statistical-data>
             <pagination v-show="total>0" :total="total1" :page.sync="unRepayment.pageNum" :limit.sync="unRepayment.pageSize" @pagination="getList" />
         </el-tab-pane>
         <el-tab-pane label="已还款">
@@ -282,7 +292,10 @@
                     </template>
                 </el-table-column>
             </el-table>
-
+                <statistical-data>
+                <span class="label">总合计:<span class="value">¥{{allAmount}}</span></span>
+                <span class="label">已还款:¥{{yhkAmount}}</span>
+                </statistical-data>
             <pagination v-show="total>0" :total="total2" :page.sync="repayment.pageNum" :limit.sync="repayment.pageSize" @pagination="getList" />
         </el-tab-pane>
         <el-tab-pane label="逾期">
@@ -326,6 +339,10 @@
                     </template>
                 </el-table-column>
             </el-table>
+              <statistical-data>
+                <span class="label">总合计:<span class="value">¥{{allAmount}}</span></span>
+                <span class="label">逾期:¥{{yyqAmount}}</span>
+                </statistical-data>
             <pagination v-show="total>0" :total="total3" :page.sync="overdue.pageNum" :limit.sync="overdue.pageSize" @pagination="getList" />
         </el-tab-pane>
 
@@ -378,7 +395,8 @@
 import {
     listRepayment,
     RepaymentRegistration,
-    repaymentAmount
+    repaymentAmount,
+    listAmount
 } from "@/api/service/repayment/repayment";
 import ColumnSetting from "../../../components/Table/columnSetting.vue";
 import {
@@ -404,6 +422,10 @@ export default {
     },
     data() {
         return {
+            allAmount: '0.00',
+            dhkAmount: '0.00',
+            yhkAmount: '0.00',
+            yyqAmount: '0.00',
             activeIndex: "",
             //总代还款金额
             sumAmount: 0.0,
@@ -595,6 +617,13 @@ export default {
         /** 查询所有还款列表 */
         getList() {
             this.loading = true;
+           listAmount().then(response => {
+                debugger
+                this.allAmount = response.data.allAmount;
+                this.dhkAmount = response.data.dhkAmount;
+                this.yhkAmount = response.data.yhkAmount;
+                this.yyqAmount = response.data.yyqAmount;
+            })
             return getOwnCompany().then((response) => {
                 this.company = response.data;
                 return listRepayment(this.queryParams).then(response => {
@@ -612,6 +641,13 @@ export default {
         getUnpayList() {
             this.loading = true;
             this.unRepayment.status = "00";
+                   listAmount().then(response => {
+                debugger
+                this.allAmount = response.data.allAmount;
+                this.dhkAmount = response.data.dhkAmount;
+                this.yhkAmount = response.data.yhkAmount;
+                this.yyqAmount = response.data.yyqAmount;
+            })
             return getOwnCompany().then((response) => {
                 this.company = response.data;
                 return listRepayment(this.unRepayment).then(response => {
@@ -629,6 +665,13 @@ export default {
         getRepayList() {
             this.loading = true;
             this.repayment.status = "01";
+                   listAmount().then(response => {
+                debugger
+                this.allAmount = response.data.allAmount;
+                this.dhkAmount = response.data.dhkAmount;
+                this.yhkAmount = response.data.yhkAmount;
+                this.yyqAmount = response.data.yyqAmount;
+            })
             return getOwnCompany().then((response) => {
                 this.company = response.data;
                 return listRepayment(this.repayment).then(response => {
@@ -646,6 +689,13 @@ export default {
         getOverdueList() {
             this.loading = true;
             this.overdue.status = "02";
+                   listAmount().then(response => {
+                debugger
+                this.allAmount = response.data.allAmount;
+                this.dhkAmount = response.data.dhkAmount;
+                this.yhkAmount = response.data.yhkAmount;
+                this.yyqAmount = response.data.yyqAmount;
+            })
             return getOwnCompany().then((response) => {
                 console.log(response, "企业数据")
                 this.company = response.data;