From 5bf9f143ad38ef7a90ec673203d409ed338db041 Mon Sep 17 00:00:00 2001 From: lingxiao Date: Thu, 5 May 2022 17:30:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=B4=E8=B4=B9=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/property/pay.vue | 40 ++- src/views/reportform/financial.vue | 499 ++++++++++++++++++----------- 2 files changed, 350 insertions(+), 189 deletions(-) diff --git a/src/views/property/pay.vue b/src/views/property/pay.vue index 1dbc6d6..1fa7bd5 100644 --- a/src/views/property/pay.vue +++ b/src/views/property/pay.vue @@ -213,6 +213,18 @@

+
+ 其他缴费月数: + +
+
+
缴费方式:
- +
@@ -484,7 +496,8 @@ export default { }, handleQuery() { this.resetFees() - this.fewMonths = 0 + this.fewMonths = 0; + this.fewMonths2 = undefined; switch (this.queryParams.chargetype) { case 1: getPropertyTab(this.queryParams).then((res) => { @@ -517,12 +530,14 @@ export default { } }, handleClick(tab, event) { + this.fewMonths2 = undefined; this.queryParams.chargetype = parseInt(this.activeName) this.queryParams.contracttab = {} this.queryParams.phone1 = undefined this.queryParams.contact = undefined this.queryParams.constructionarea = undefined this.queryParams.unitprice = undefined + this.resetFees() }, resetFees() { @@ -613,6 +628,26 @@ export default { this.queryParams.enddate = newEndTime this.getCountMoney() }, + // 改变月数 + monthNumChange2(value) { + this.fewMonths2 = value + var pattern = /^[1-9][0-9]*$/ // 正整数的正则表达式 + if (!pattern.test(this.fewMonths2)) { // 不符合正整数时 + this.fewMonths2 = undefined + this.msgError('输入的月数必须为正整数') + + return + } + let endTime = this.createBeginDate(this.queryParams.begindate,parseInt(this.fewMonths2)) + let newEndTime = moment(endTime).add(this.fewDays,'d').format('YYYY-MM-DD') + this.queryParams.enddate = newEndTime + if (this.queryParams.chargetype === 2) { + this.queryParams.contracttab.chargedexpense = this.fewMonths2*12 + }else{ + this.queryParams.contracttab.chargedexpense = this.fewMonths2*80 + } + + }, // 改变天数 daysNumChange(value) { this.fewDays = value @@ -644,6 +679,7 @@ export default { } else { this.queryParams.contracttab.chargedexpense = value } + this.fewMonths2 = undefined }, getTableData(arg) { this.receiptDetails=arg; diff --git a/src/views/reportform/financial.vue b/src/views/reportform/financial.vue index 094ac47..5d2052d 100644 --- a/src/views/reportform/financial.vue +++ b/src/views/reportform/financial.vue @@ -1,48 +1,53 @@ --> - + - - + + - + - + - + - + - + -