|
@@ -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
|
|
|
}
|
|
|
}
|