chore(shipping-notice): 统一货代发货生命周期阶段命名并优化全链路业务逻辑
This commit is contained in:
1 parent
5ef8329bd8
commit
4ec4e57005
183 files changed
+14653
-3936
No files matched your search
@@ -23,6 +23,16 @@ describe('gateReasonLabel', () => {
|
||||
expect(resolveGateReasonLabel('customer_unresolved', i18n)).toBe('确认客户');
|
||||
});
|
||||
|
||||
it('resolveGateReasonLabel uses the existing Process Gate reason label', () => {
|
||||
const i18n = makeI18n({
|
||||
'workspace.shippingNotice.processGate.reasons.inventory_shortage_review_required': '存在库存缺口,需要人工处理',
|
||||
'chat.shippingProcessing.gateReasons.generic': '需要处理',
|
||||
});
|
||||
|
||||
// 当前任务卡和进度条必须共用该映射,不能把后端原因码直接展示给用户。
|
||||
expect(resolveGateReasonLabel('inventory_shortage_review_required', i18n)).toBe('存在库存缺口,需要人工处理');
|
||||
});
|
||||
|
||||
it('resolveCurrentNeedLabel uses blockingReasonCode first', () => {
|
||||
const i18n = makeI18n({
|
||||
'chat.shippingProcessing.gateReasons.customer_unresolved': '确认客户',
|
||||
|
||||
Reference in new issue
Block a user