|
@@ -38,7 +38,7 @@ module.exports = app => {
|
|
item.pay_ratio = this.ctx.helper.mul(this.ctx.helper.div(item.cur_amount, advancePayTotal), 100, 2) || 0;
|
|
item.pay_ratio = this.ctx.helper.mul(this.ctx.helper.div(item.cur_amount, advancePayTotal), 100, 2) || 0;
|
|
if (item.status === auditConst.status.uncheck || item.status === auditConst.status.checkNo) {
|
|
if (item.status === auditConst.status.uncheck || item.status === auditConst.status.checkNo) {
|
|
const s1 = item.cur_amount && parseFloat(item.cur_amount.toFixed(decimal)).toString().split('.')[1];
|
|
const s1 = item.cur_amount && parseFloat(item.cur_amount.toFixed(decimal)).toString().split('.')[1];
|
|
- const s2 = parseFloat(item.prev_amount.toFixed(decimal)).toString().split('.')[1];
|
|
|
|
|
|
+ const s2 = parseFloat(item.prev_amount).toString().split('.')[1];
|
|
const s3 = parseFloat(item.prev_total_amount.toFixed(decimal)).toString().split('.')[1];
|
|
const s3 = parseFloat(item.prev_total_amount.toFixed(decimal)).toString().split('.')[1];
|
|
item.cur_amount = this.ctx.helper.formatMoney(item.cur_amount, ',', s1 && s1.length || 0);
|
|
item.cur_amount = this.ctx.helper.formatMoney(item.cur_amount, ',', s1 && s1.length || 0);
|
|
item.prev_amount = this.ctx.helper.formatMoney(item.prev_amount, ',', s2 && s2.length || 0);
|
|
item.prev_amount = this.ctx.helper.formatMoney(item.prev_amount, ',', s2 && s2.length || 0);
|