Merge branch 'dev' into picture-feedback

This commit is contained in:
HTEWJ\26070045 committed 2026-10-29 11:04:59 +08:00
commit 34ad40778b
180 files changed
+13262 -5333

No files matched your search

@@ -179,7 +179,7 @@ def classify_monitor_status(
按已确认规则给出监控状态。入参已是标准 0=否、1=是。
核心逻辑:退回、无法验收、作废、归档、强制结束、撤销优先于未开始。
审批中、可以验收、未退回、已有计时起点才是计时中。
审批中、未退回、已有计时起点,且可以验收不是明确为否时计时。空和是都监控。
flowstatus 为 7、8、99、-99 时记为已撤销,有没有计时起点都不再提醒。
Args:
can_accept: 本地是否可以正常验收。0 否,1 是,空为未标明。
@@ -204,8 +204,8 @@ def classify_monitor_status(
return STOPPED_REVOKED
if not timer_started:
return NOT_STARTED
# [STEP 2] 只有审批中、可以验收、未退回时继续计时
if can_accept == 1 and flow_status == _FLOW_APPROVING and is_returned == 0:
# [STEP 2] 可以验收只有明确为否才停表,空和是都继续计时。0、1、空以外不猜。
if can_accept in (1, None) and flow_status == _FLOW_APPROVING and is_returned == 0:
return WATCHING
return EXCLUDED