Tony Kang 2 năm trước cách đây
mục cha
commit
a7c97c5f12

+ 2 - 6
app/controller/report_controller.js

@@ -1573,12 +1573,8 @@ function _chkIfAudit(role_rel, STAGE_AUDIT, STAGE_LIST) {
         // 还有原报需要检测
         for (const stg_ort_rpt of STAGE_LIST) {
             if (role_rel.acc_id === stg_ort_rpt.user_id) {
-                if (stg_ort_rpt.status === 3) {
-                    rst = true;
-                } else {
-                    rst = false;
-                }
-                // break; //因为实际业务中会有反复,所以就不break了,一直判断,以最后一个为准
+                rst = true;
+                break; // 原报只要有就显示
             }
         }
     }

+ 2 - 6
app/public/report/js/rpt_signature.js

@@ -865,12 +865,8 @@ let rptSignatureHelper = {
             // 还有原报需要检测
             for (const stg_ort_rpt of STAGE_LIST) {
                 if (role_rel.acc_id === stg_ort_rpt.user_id) {
-                    if (stg_ort_rpt.status === 3) {
-                        rst = true;
-                    } else {
-                        rst = false;
-                    }
-                    // break;
+                    rst = true;
+                    break; // 原报只要有就显示
                 }
             }
         }