优化
This commit is contained in:
@@ -56,7 +56,7 @@ function actionLabel(action: string) {
|
||||
CREATE: '创建计划', ASSIGN: '分配货物', ADJUST: '调整货物', DELETE: '移除货物',
|
||||
RECOMMEND: '智能排柜', PUSH_PRELOAD: '推送预装', UPDATE_TRANSPORT: '修改运输信息',
|
||||
START_LOADING: '开始拣货', COMPLETE: '完成装柜',
|
||||
} as Record<string, string>)[action] || action
|
||||
} as Record<string, string>)[action] || '状态更新'
|
||||
}
|
||||
|
||||
function formatDateTime(value?: string | null) {
|
||||
|
||||
@@ -71,4 +71,9 @@ describe('LoadingListsView', () => {
|
||||
expect(source).not.toContain('<StatusBadge :status="row.status" />')
|
||||
expect(detailSource).toContain('<StatusBadge :status="loadingListStatusLabel(summary.status)" />')
|
||||
})
|
||||
|
||||
it('does not expose unknown history action codes', () => {
|
||||
expect(detailSource).toContain("[action] || '状态更新'")
|
||||
expect(detailSource).not.toContain('[action] || action')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user