qukaidi 3 rokov pred
rodič
commit
14965c172b

+ 2 - 2
src/components/finance/financialAccount.vue

@@ -398,13 +398,13 @@ export default {
           amountSum += Number(this.data[item].amount)
         }
         let res = await getApplyAmount({ srcBillId: this.srcBillId, billType: "申请" })
-        if ((Number(this.debitAmount) - Number(res.data.data)) <= amountSum) {
+        if ((Number(this.debitAmount) - Number(res.data.data)) < amountSum) {
           return '可结算金额:' + res.data.data + '元'
         }
       } else {
         for (let item in this.data) {
           let res = await getApplyAmount({ srcBillId: this.data[item].itemId, billType: "申请" })
-          if ((Number(this.data[item].itemorderAmount) - Number(res.data.data)) <= this.data[item].amount) {
+          if ((Number(this.data[item].itemorderAmount) - Number(res.data.data)) < this.data[item].amount) {
             return '合同号:' + this.data[item].srcOrderno + '可结算金额:' + res.data.data + '元'
           }
         }