Kaynağa Gözat

前台wap 本期实付应付开关及控制

laiguoran 3 yıl önce
ebeveyn
işleme
87480f4f52

+ 1 - 0
app/const/page_show.js

@@ -36,6 +36,7 @@ const defaultSetting = {
     openChangeRevise: 0,
     openMaterialTax: 0,
     addDataCollect: 1,
+    showWapYfSf: 1,
 };
 
 

+ 2 - 0
app/view/wap/dashboard.ejs

@@ -53,8 +53,10 @@
                                 <tr><th>本期完成计量</th><td class="text-right"><%- audit.gather_tp ? audit.gather_tp : 0 %></td></tr>
                                 <tr><th>截止上期完成计量</th><td class="text-right"><%- audit.pre_gather_tp ? audit.pre_gather_tp : 0 %></td></tr>
                                 <tr><th>截止本期完成计量</th><td class="text-right"><%- audit.end_gather_tp ? audit.end_gather_tp : 0 %></td></tr>
+                                <% if (ctx.session.sessionProject.page_show.showWapYfSf) { %>
                                 <tr><th>本期应付</th><td class="text-right"><%- audit.yf_tp ? audit.yf_tp : 0 %></td></tr>
                                 <tr><th>本期实付</th><td class="text-right"><%- audit.sf_tp ? audit.sf_tp : 0 %></td></tr>
+                                <% } %>
                             </table>
                         </div>
                         <div class="">

+ 4 - 0
app/view/wap/shenpi_stage.ejs

@@ -79,11 +79,14 @@
                                 <p class="mb-0">截止本期完成计量</p>
                                 <b>¥<%- stage.end_tp ? stage.end_tp : 0 %></b>
                             </td>
+                            <% if (ctx.session.sessionProject.page_show.showWapYfSf) { %>
                             <td>
                                 <p class="mb-0">本期应付</p>
                                 <b>¥<%- stage.yf_tp ? stage.yf_tp : 0 %></b>
                             </td>
+                            <% } %>
                         </tr>
+                        <% if (ctx.session.sessionProject.page_show.showWapYfSf) { %>
                         <tr>
                             <td>
                                 <p class="mb-0">本期实付</p>
@@ -92,6 +95,7 @@
                             <td>
                             </td>
                         </tr>
+                        <% } %>
                         </tbody></table>
                 </dd>
             </dl>

+ 4 - 0
app/view/wap/tender.ejs

@@ -173,11 +173,14 @@
                                     <p class="mb-0">截止本期完成计量</p>
                                     <b>¥<%- s.end_tp ? s.end_tp : 0 %></b>
                                 </td>
+                                <% if (ctx.session.sessionProject.page_show.showWapYfSf) { %>
                                 <td>
                                     <p class="mb-0">本期应付</p>
                                     <b>¥<%- s.yf_tp ? s.yf_tp : 0 %></b>
                                 </td>
+                                <% } %>
                             </tr>
+                            <% if (ctx.session.sessionProject.page_show.showWapYfSf) { %>
                             <tr>
                                 <td>
                                     <p class="mb-0">本期实付</p>
@@ -186,6 +189,7 @@
                                 <td>
                                 </td>
                             </tr>
+                            <% } %>
                             <% if (s.curAuditor && s.status == auditConst.status.checking && s.curAuditor.aid === ctx.session.sessionUser.accountId) { %>
                             <tr>
                                 <td colspan="2">