|
|
@@ -232,7 +232,7 @@ Page({ |
|
|
|
this.setData({yfqNum:a}) |
|
|
|
let b = this.data.yfqList |
|
|
|
let c = res.rows.concat(b) |
|
|
|
for(let i = 0;i< c.lenght;i++){ |
|
|
|
for(let i = 0;i< c.length;i++){ |
|
|
|
c[i].totalAmount = Number(c[i].totalAmount).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, ($0, $1) => { |
|
|
|
return $1 + ","; }).replace(/\.$/, "") |
|
|
|
} |
|
|
@@ -258,7 +258,7 @@ Page({ |
|
|
|
success: (res) => { |
|
|
|
if (res.code == API.SUCCESS_CODE) { |
|
|
|
this.setData({yzdNum:res.total}) |
|
|
|
for(let i = 0;i< res.rows.lenght;i++){ |
|
|
|
for(let i = 0;i< res.rows.length;i++){ |
|
|
|
res.rows[i].totalAmount = Number(res.rows[i].totalAmount).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, ($0, $1) => { |
|
|
|
return $1 + ","; }).replace(/\.$/, "") |
|
|
|
} |
|
|
|