From ed8cfa45c88ebb04af4e3089d8a2707781f612cc Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Fri, 8 Oct 2021 15:51:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8C=E5=BA=94=E6=94=B6=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E3=80=81=E5=AE=9E=E6=94=B6=E9=87=91=E9=A2=9D=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E5=88=A4=E6=96=AD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/ExpenditureContractModule.vue | 6 +++--- .../revenueContract/modules/RevenueContractModule.vue | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/contractManagement/expenditureContract/modules/ExpenditureContractModule.vue b/src/views/contractManagement/expenditureContract/modules/ExpenditureContractModule.vue index e7d47dd..bce35c2 100644 --- a/src/views/contractManagement/expenditureContract/modules/ExpenditureContractModule.vue +++ b/src/views/contractManagement/expenditureContract/modules/ExpenditureContractModule.vue @@ -601,11 +601,11 @@ export default { if (this.accountsReceivableNum !== null && this.amountReceivedNum !== null) { this.model.outstandingAmount = Number(this.accountsReceivableNum) - Number(this.amountReceivedNum) this.model.outstandingAmount = this.model.outstandingAmount.toFixed(2) - if (this.model.outstandingAmount === 0) { + if (Number(this.model.outstandingAmount) === 0) { this.model.accountStatus = '3' - } else if (this.model.outstandingAmount > 0 && this.model.outstandingAmount < Number(this.accountsReceivableNum)) { + } else if (Number(this.model.outstandingAmount) > 0 && Number(this.model.outstandingAmount) < Number(this.accountsReceivableNum)) { this.model.accountStatus = '2' - } else if (this.model.outstandingAmount === Number(this.accountsReceivableNum)) { + } else if (Number(this.model.outstandingAmount) === Number(this.accountsReceivableNum)) { this.model.accountStatus = '1' } this.$nextTick(() => { diff --git a/src/views/contractManagement/revenueContract/modules/RevenueContractModule.vue b/src/views/contractManagement/revenueContract/modules/RevenueContractModule.vue index b2a94d2..9a9dce4 100644 --- a/src/views/contractManagement/revenueContract/modules/RevenueContractModule.vue +++ b/src/views/contractManagement/revenueContract/modules/RevenueContractModule.vue @@ -666,13 +666,13 @@ export default { this.model.outstandingAmount = Number(this.accountsReceivableNum) - Number(this.amountReceivedNum) this.model.outstandingAmount = this.model.outstandingAmount.toFixed(2) // 未收金额 === 0,已付全款状态 - if (this.model.outstandingAmount <= 0) { + if (Number(this.model.outstandingAmount) === 0) { this.model.accountStatus = '3' // 未收金额 > 0 且 未收金额 < 应收金额,部分付款状态 - } else if (this.model.outstandingAmount > 0 && this.model.outstandingAmount < Number(this.accountsReceivableNum)) { + } else if (Number(this.model.outstandingAmount) > 0 && Number(this.model.outstandingAmount) < Number(this.accountsReceivableNum)) { this.model.accountStatus = '2' // 未收金额 === 应收金额,未付款状态 - } else if (this.model.outstandingAmount === Number(this.accountsReceivableNum)) { + } else if (Number(this.model.outstandingAmount) === Number(this.accountsReceivableNum)) { this.model.accountStatus = '1' } this.$nextTick(() => {