修复财务页面竞态并整理采购与运输展示
This commit is contained in:
@@ -52,6 +52,21 @@ describe('finance status presentation', () => {
|
||||
expect(financeOperationActionLabel('NEW_ACTION')).toBe('未知操作')
|
||||
})
|
||||
|
||||
it.each([
|
||||
['OVERSEAS_INBOUND_FEE', '海外入仓费用'],
|
||||
['OVERSEAS_PROCUREMENT_FEE', '海外采购费用'],
|
||||
['OVERSEAS_TRUCK_FEE', '本土卡车费用'],
|
||||
['OVERSEAS_LOOSEBOARD_FEE', '本土散板费用'],
|
||||
['OVERSEAS_WAREHOUSE_FEE', '海外仓服务费'],
|
||||
['OVERSEAS_CONTAINER_FEE', '海外柜子费用'],
|
||||
['OVERSEAS_ORDER_FEE', '尾程订单费用'],
|
||||
['OVERSEAS_DELIVERY_FEE', '尾程派送费用'],
|
||||
['OVERSEAS_RELABEL_FEE', '换标费用'],
|
||||
])('labels the current overseas fee source %s consistently', (code, label) => {
|
||||
expect(financeSourceTypeLabel(code)).toBe(label)
|
||||
expect(financeSourceTypeLabel(` ${code.toLowerCase()} `)).toBe(label)
|
||||
})
|
||||
|
||||
it('uses review-status values for the customer AR/AP review filter', () => {
|
||||
expect(financeArapStatusOptions).toEqual([
|
||||
{ label: '草稿', value: 'DRAFT' },
|
||||
|
||||
Reference in New Issue
Block a user