From c3699469495aecf135494e519a48f4b852ab0469 Mon Sep 17 00:00:00 2001 From: wangliang Date: Thu, 8 Sep 2022 17:17:43 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/PicketAcced.vue | 7 +- src/router/workbench.routing.ts | 13 +- .../DepositInterestTrial/CountResultB.vue | 2 +- .../DepositInterestTrial.vue | 23 +-- src/views/main/Main.vue | 81 ++++++---- src/views/workbench/AccommodDetails.vue | 4 +- src/views/workbench/AccommodMain.vue | 26 ++-- src/views/workbench/Accommodation.vue | 2 +- src/views/workbench/ContractDetail.vue | 140 ++++++++++++++++++ src/views/workbench/modifyPassword.vue | 34 +---- 10 files changed, 248 insertions(+), 84 deletions(-) create mode 100644 src/views/workbench/ContractDetail.vue diff --git a/src/components/common/PicketAcced.vue b/src/components/common/PicketAcced.vue index 74c282b..4f3f306 100644 --- a/src/components/common/PicketAcced.vue +++ b/src/components/common/PicketAcced.vue @@ -40,9 +40,10 @@ - + + + + diff --git a/src/router/workbench.routing.ts b/src/router/workbench.routing.ts index 81127e7..923f99e 100644 --- a/src/router/workbench.routing.ts +++ b/src/router/workbench.routing.ts @@ -11,6 +11,13 @@ import { propsConvert } from "@/services/props-convert"; const prefix = "/workbench"; const workbenchRoutes = [ + { + path: `/ContractDetail`, + name: 'ContractDetail', + component: () => import(/* webpackChunkName: "customer-mgt" */ "@/views/workbench/ContractDetail.vue"), + props: propsConvert, + meta: { keepAlive: false, requiresAuth: true, name: "合同信息" }, + }, { path: `/PersonLod`, name: 'PersonLod', @@ -33,7 +40,7 @@ const workbenchRoutes = [ meta: { keepAlive: false, requiresAuth: true, name: "业务进度" }, }, - + { path: `/modifyPassword`, name: 'modifyPassword', @@ -41,8 +48,8 @@ const workbenchRoutes = [ props: propsConvert, meta: { keepAlive: false, requiresAuth: true, name: "修改密码" }, }, - - + + { path: `/AccommodMain`, name: 'AccommodMain', diff --git a/src/views/DepositInterestTrial/CountResultB.vue b/src/views/DepositInterestTrial/CountResultB.vue index d2d968f..71a27d9 100644 --- a/src/views/DepositInterestTrial/CountResultB.vue +++ b/src/views/DepositInterestTrial/CountResultB.vue @@ -27,7 +27,7 @@
- 定期类型 + 存款类型 {{timeType}}
diff --git a/src/views/DepositInterestTrial/DepositInterestTrial.vue b/src/views/DepositInterestTrial/DepositInterestTrial.vue index a3f5eb7..1bbf8d6 100644 --- a/src/views/DepositInterestTrial/DepositInterestTrial.vue +++ b/src/views/DepositInterestTrial/DepositInterestTrial.vue @@ -55,7 +55,7 @@ - + - +
计划月还款(元)
+
贷款利率(%)
--> @@ -343,9 +343,10 @@ export default class DepositInterestTrial extends Vue{ this.flagB=true; } countA() { - let result = 0; - result = parseInt(this.test.depositAmt)*parseInt(this.test.yearRate)/100*parseInt(this.test.time=="一年"?"1":this.test.time=="两年"?"2":"3"); - console.log("@@@@"+this.test.depositAmt) + let resultFirst = 0; + let result = ""; + resultFirst = parseInt(this.test.depositAmt)*parseInt(this.test.yearRate)/100*parseInt(this.test.time=="一年"?"1":this.test.time=="两年"?"2":"3"); + result = resultFirst.toFixed(2); if(this.test.depositAmt==""||this.test.yearRate==""||this.test.time==""){ alert("请输入数据"); }else{ @@ -357,14 +358,16 @@ export default class DepositInterestTrial extends Vue{ time: this.test.time=="一年"?"1":this.test.time=="两年"?"2":"3", yearRate: this.test.yearRate, depositAmt: this.test.depositAmt, - result: result.toString(), + result: result, } }) } } countB() { - let result = 0; - result = parseInt(this.test2.loanAmt)*parseInt(this.test2.loanRate)/100*parseInt(this.test2.loanTime)/12; + let resultFirst = 0; + let result = ""; + resultFirst = parseInt(this.test2.loanAmt)*parseInt(this.test2.loanRate)/100*parseInt(this.test2.loanTime)/12; + result = resultFirst.toFixed(2); if(this.test2.loanAmt==""||this.test2.loanRate==""||this.test2.loanTime==""){ alert("请输入数据") }else{ @@ -378,7 +381,7 @@ export default class DepositInterestTrial extends Vue{ loanRate: this.test2.loanRate, loanType: this.test2.loanType, repayType: this.test2.repayType, - result: result.toString(), + result: result, } }) } diff --git a/src/views/main/Main.vue b/src/views/main/Main.vue index 7e28a31..978b6c2 100644 --- a/src/views/main/Main.vue +++ b/src/views/main/Main.vue @@ -8,7 +8,7 @@ --> - + --> - - + + - + -