Browse Source

fix: 预付款第一期截至本期金额数据异常

lanjianrong 5 years ago
parent
commit
bd6930b805
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/view/advance/detail.ejs

+ 3 - 1
app/view/advance/detail.ejs

@@ -68,7 +68,7 @@
                                 </td>
                                 <th>截止本期金额</th>
                                 <td class="text-right" id="p_total2">
-                                    <%- ctx.helper.formatMoney(prevAdvance && prevAdvance.prev_total_amount + advance.cur_amount || 0) %>
+                                    <%- ctx.helper.formatMoney(prevAdvance && prevAdvance.prev_total_amount + advance.cur_amount || (advance.cur_amount || 0)) %>
                                 </td>
                             </tr>
                             <tr>
@@ -359,6 +359,8 @@
     const fileList = JSON.parse('<%- JSON.stringify(fileList) %>') || [];
     const whiteList = JSON.parse('<%- JSON.stringify(whiteList) %>');
     const curAuditor = JSON.parse('<%- JSON.stringify(ctx.advance.curAuditor) %>');
+
+    // 展开/收起历史审核记录
     $('#fold-btn1').click(function() {
         $('.fold-btn').slideUp('swing', () => {
             $('#end-target').text('1#')