feat(assets): refine inventory presentation and abnormal vehicle details

This commit is contained in:
shishengliang
2026-09-23 16:00:59 +08:00
parent 3d4749f28f
commit 0a32392215
15 changed files with 652 additions and 483 deletions
@@ -27,3 +27,11 @@ test('completed movement retains its actual time and missing records stay distin
assert.equal(completed.abnormalMove?.work, null);
assert.equal(transformRow(row).abnormalMove, null);
});
test('applicant comes from the movement creator name and never falls back to contract manager', () => {
const base = { ...row, abnormal_move_id: 'move-1' };
assert.equal(transformRow({ ...base, abnormal_move_applicant: ' 测试申请人 ' }).abnormalMove?.applicant, '测试申请人');
assert.equal(transformRow({ ...base, abnormal_move_applicant: ' ' }).abnormalMove?.applicant, null);
assert.equal(transformRow(base).abnormalMove?.applicant, null);
});