feat: 增加顺丰月结列表,支持导出、结算和补填运费

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zlwuandCursor committed 2026-10-21 20:17:45 +08:00
1 parent 77e8c78cb6
commit a81f177cb6
4 files changed
+532

No files matched your search

@@ -0,0 +1,17 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import { buildSfExpressExportRows } from './sf-express-settlement-export.ts'
test('export rows match the settlement list columns', () => {
const rows = buildSfExpressExportRows([
{
waybillNo: '',
createByName: '张三',
createTime: '2026-10-21 09:00:00',
settleStatusLabel: '未结算',
freightAmountLabel: '月结',
settleTime: ''
}
])
assert.deepEqual(rows[0], ['—', '张三', '2026-10-21 09:00:00', '未结算', '月结', '—'])
})