qukaidi %!s(int64=3) %!d(string=hai) anos
pai
achega
cb4623de0b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/components/finance/financialAccount.vue

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

@@ -399,13 +399,13 @@ export default {
         }
         let res = await getApplyAmount({ srcBillId: this.srcBillId, billType: "申请" })
         if ((Number(this.debitAmount) - Number(res.data.data)) < amountSum) {
-          return '可结算金额:' + res.data.data + '元'
+          return '可结算金额:' + (Number(this.debitAmount) - Number(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) {
-            return '合同号:' + this.data[item].srcOrderno + '可结算金额:' + res.data.data + '元'
+            return '合同号:' + this.data[item].srcOrderno + '可结算金额:' + (Number(this.data[item].itemorderAmount) - Number(res.data.data)) + '元'
           }
         }
       }