| | |
| | | return; |
| | | } |
| | | |
| | | const hasLimit = item.upperLimit != null || item.lowerLimit != null; |
| | | if ( |
| | | hasLimit && |
| | | (!String(item.actualValue ?? '').trim() || !Number.isFinite(toNumber(item.actualValue))) |
| | | ) { |
| | | applyResult(item, undefined); |
| | | errors.push( |
| | | `第 ${index + 1} 项「${item.itemName ?? ''}」缺少有效数值结果,待补测或确认原始记录`, |
| | | ); |
| | | return; |
| | | } |
| | | const byLimit = evaluateByLimit(item); |
| | | if (byLimit !== undefined) { |
| | | applyResult(item, byLimit ? QUALITY_RESULT.PASS : QUALITY_RESULT.FAIL); |
| | |
| | | const node = parseRule(expression); |
| | | ruleCache.set(expression, node); |
| | | return node; |
| | | } |
| | | } |