|
@@ -1573,8 +1573,13 @@ function _chkIfAudit(role_rel, STAGE_AUDIT, STAGE_LIST) {
|
|
// 还有原报需要检测
|
|
// 还有原报需要检测
|
|
for (const stg_ort_rpt of STAGE_LIST) {
|
|
for (const stg_ort_rpt of STAGE_LIST) {
|
|
if (role_rel.acc_id === stg_ort_rpt.user_id) {
|
|
if (role_rel.acc_id === stg_ort_rpt.user_id) {
|
|
- rst = true;
|
|
|
|
- break; // 原报只要有就显示
|
|
|
|
|
|
+ if (stg_ort_rpt.status !== 2 && stg_ort_rpt.status !== 4) {
|
|
|
|
+ // 只要不是待上报(2)、退回审批(4) 状态,都需要显示
|
|
|
|
+ rst = true;
|
|
|
|
+ } else {
|
|
|
|
+ rst = false;
|
|
|
|
+ }
|
|
|
|
+ // break; //因为实际业务中会有反复,所以就不break了,一直判断,以最后一个为准
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|