fix(assets): show inventory operations managers and bump v1.1.19

This commit is contained in:
shishengliang
2026-10-10 21:56:06 +08:00
parent 7dd7e67602
commit 24984fe033
11 changed files with 30 additions and 9 deletions
@@ -41,3 +41,13 @@ test('one Excel workbook contains statistics and all details in two named sheets
const empty = await createAnalysisWorkbook([], []);
assert.deepEqual(empty.SheetNames, ['统计表', '详情表']);
});
test('inventory export uses assigned operations managers and a dash when unset', () => {
const vehicles = ['张三、李四', null, ' '].map(opsManagers => ({
opsManagers, customerManager: '业务负责人', customerName: '客户', status: 'Inventory',
} as VehicleListItem));
const rows = vehicleExportRows(vehicles, true);
assert.deepEqual(rows.map(row => row.运维负责人), ['张三、李四', '-', '-']);
assert.ok(rows.every(row => !('业务负责人' in row) && !('客户' in row)));
assert.equal(vehicleExportRows(vehicles)[0].业务负责人, '业务负责人');
});