优化:完善分类规则与Excel配置维护并加速查询翻页
This commit is contained in:
@@ -140,3 +140,16 @@ test('本部报废原口径紧随扩散废,调整口径隐藏并在表格及Ex
|
||||
}
|
||||
assert.equal(data.bright.scrapWeight,100);
|
||||
});
|
||||
|
||||
test('合格率说明图标仅在去本部报废口径下显示,黑片总重说明始终保留', () => {
|
||||
for(const basis of ['original','withoutHeadquartersScrap']) {
|
||||
const ui=fixture({rows:[row],view:'overall',rateBasis:basis});
|
||||
const columns=find(ui.tree,n=>n.type==='Table').props.columns;
|
||||
const leaves=columns.flatMap(c=>c.children||[c]);
|
||||
for(const key of ['bright-rate','compositeRate']) {
|
||||
const header=leaves.find(c=>c.key===key).title;
|
||||
assert.equal(Boolean(find(header,n=>n.type==='Info')),basis!=='original');
|
||||
}
|
||||
assert.ok(find(leaves.find(c=>c.key==='black-totalWeight').title,n=>n.type==='Info'));
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user