合同应收金额、实收金额计算判断修改
This commit is contained in:
+3
-3
@@ -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(() => {
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user