SHEETSPEC / CONTRACT VALIDATION
年度销售报表验收
examples\sales-report-broken.xlsx
FAILED
规则12
通过5
警告1
错误7
规则执行结果
| 规则 | 类型 | 状态 | 检查单元格 | 问题 |
|---|---|---|---|---|
required-sheets |
required_sheets | passed | 2 | 0 |
sales-columns |
required_columns | passed | 7 | 0 |
month-headers |
required_cells | failed | 14 | 1 |
raw-required |
no_blank_values | passed | 35 | 0 |
order-id-unique |
unique_values | failed | 5 | 1 |
status-allowed |
allowed_values | passed | 5 | 0 |
numeric-fields |
data_type | passed | 10 | 0 |
amount-formulas |
formulas_required | failed | 5 | 2 |
amount-formula-consistency |
formula_consistency | passed_with_warnings | 5 | 1 |
monthly-summary-formulas |
formulas_required | failed | 12 | 1 |
annual-total |
total_equals_sum | failed | 13 | 1 |
protect-summary-header |
unchanged_ranges | failed | 14 | 1 |
问题明细
| 级别 | 位置 | 规则 | 问题 | 建议 |
|---|---|---|---|---|
| warning | 原始数据!F6 |
amount-formula-consistency |
公式结构与同组多数公式不一致 期望:=R[0]C[-2]*R[0]C[-1];实际:=R[-3]C[-2]*R[0]C[-1] |
检查相对引用是否发生错位 |
| error | 原始数据!F4 |
amount-formulas |
目标单元格必须使用公式 期望:formula;实际:400 |
将硬编码结果替换为公式 |
| error | 原始数据!F5 |
amount-formulas |
目标单元格必须使用公式 期望:formula;实际:500 |
将硬编码结果替换为公式 |
| error | 月度汇总!N2 |
annual-total |
总计与源区域之和不一致 期望:900;实际:870 |
检查 N2 是否覆盖 B2:M2 |
| error | 月度汇总!I1 |
month-headers |
单元格内容与期望值不一致 期望:8月;实际:None |
— |
| error | 月度汇总!I3 |
monthly-summary-formulas |
目标单元格必须使用公式 期望:formula;实际:90 |
将硬编码结果替换为公式 |
| error | 原始数据!A4 |
order-id-unique |
发现重复值:SO-002 期望:unique;实际:SO-002 |
— |
| error | 月度汇总!I1 |
protect-summary-header |
受保护区域被修改 期望:8月;实际:None |
恢复受保护单元格,或更新契约允许的变更范围 |
契约 SHA-256:2e5130b52744865781512a281c537099979e7b4bbc6d1c43884cf94ec0b82605
工作簿 SHA-256:84a69e17a430cdaa4a4a1f4210f175048ee84c071be08c97fdfcded0ecb975ed
执行耗时:15 ms