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(() => {