Commit 35e8dac9 authored by rencs's avatar rencs

9.14 bug

parent e938d74e
...@@ -350,14 +350,20 @@ export default { ...@@ -350,14 +350,20 @@ export default {
let list = []; let list = [];
let has_err = false; let has_err = false;
this.c_w_data.forEach((element) => { this.c_w_data.forEach((element) => {
if (element.withdraw_money != "" && element.withdraw_money != 0) { if (
element.withdraw_money &&
element.withdraw_money != "" &&
element.withdraw_money != 0
) {
if (element.withdraw_money <= element.balance) { if (element.withdraw_money <= element.balance) {
list.push({ list.push({
companyId: element.companyId, companyId: element.companyId,
amount: element.withdraw_money, amount: element.withdraw_money,
}); });
} else { } else {
console.log(element.withdraw_money, element.balance);
has_err = true; has_err = true;
return;
} }
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment