|
@@ -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)) + '元'
|
|
|
}
|
|
|
}
|
|
|
}
|