Просмотр исходного кода

fix: 安全计量界面调整 + 签名显示问题

Tony Kang 4 месяцев назад
Родитель
Сommit
5fd214ba33

+ 1 - 1
app/controller/report_controller.js

@@ -678,7 +678,7 @@ module.exports = app => {
                 const safeStage = ctx.safeStage;
                 const stage_times = safeStage.audit_times;
                 const stage_status = safeStage.audit_status;
-                const bglObj = {};
+                const bglObj = { status: stage_status };
                 bglObj.BUSINESS_ID = safeStage.id;
 
                 const renderData = {

+ 1 - 1
app/public/report/js/rpt_main.js

@@ -1536,7 +1536,7 @@ function getStageStatus() {
     } else {
         if ([-100, -200].includes(current_stage_id)) {
             return 3
-        } else if ([-300, -301, -302, -303].includes(current_stage_id)) {
+        } else if ([-150, -300, -301, -302, -303].includes(current_stage_id)) {
             // return 3; // 临时的
             return BGL_OBJ?.status || -1;
         }

+ 1 - 1
app/view/report/index.ejs

@@ -128,7 +128,7 @@
                 </div>
                 <% } %>
                 <% } %>
-                <% if (isAdmin) { %>
+                <% if (isAdmin && stg_id !== -150) { %>
                 <div class="d-inline-block">
                     <a href="/tender/<%- tender_id %>/report/format/setup" class=" btn btn-light btn-sm  text-primary">设置</a>
                 </div>