qukaidi 3 vuotta sitten
vanhempi
commit
b3a9841208
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      src/components/finance/financialAccount.vue

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

@@ -394,13 +394,13 @@ export default {
           amountSum += Number(this.data[item].amount)
         }
         let res = await getApplyAmount({ srcBillId: this.srcBillId, billType: "申请" })
-        if ((Number(this.form.debitAmount) - Number(res.data.data)) >= amountSum) {
+        if ((Number(this.form.debitAmount) - Number(res.data.data)) <= amountSum) {
           return true
         }
       } 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
           }
         }