This commit is contained in:
2026-08-12 10:59:39 +08:00
parent 91c6ebca5c
commit 4d0c245b60
16 changed files with 1368 additions and 12 deletions
@@ -19,8 +19,8 @@ export async function run(context) {
const voided = evidences.find((item) => id(item.id) === id(fixture.voidedEvidenceId))
context.assert(MODULE, '五类有效证据齐全且同类型多图追加不覆盖历史', response,
required.every((type) => active.some((item) => item.evidenceType === type))
&& active.filter((item) => item.evidenceType === 'PHOTO_STEP_1').length >= 1
&& active.some((item) => item.evidenceType === 'SEAL' && Boolean(String(item.sealNo || '').trim()))
&& evidences.filter((item) => item.evidenceType === 'PHOTO_STEP_1').length >= 2
&& active.some((item) => item.evidenceType === 'SEAL' && item.sealNo === fixture.sealNo)
&& active.every((item) => String(item.fileName || '').includes(context.marker)
&& String(item.remark || '').includes(context.marker)),
`active=${active.length}, types=${[...new Set(active.map((item) => item.evidenceType))].join(',')}`, OPTIONS)