fix(client): retain customs access after order completion

This commit is contained in:
2026-10-02 11:33:51 +08:00
parent c115f1c504
commit 605388e666
5 changed files with 108 additions and 6 deletions
@@ -684,8 +684,8 @@ test('opens the server-owned inbound-code association from the order detail', ()
assert.doesNotMatch(source, /openInboundCodeAssociation\([^)]*\.id\)/)
})
test('opens customer customs documents only for server-confirmed loaded tax-refund orders', () => {
assert.match(source, /order\.status !== 'LOADED'/)
test('opens customer customs documents only for server-confirmed tax-refund orders after loading', () => {
assert.match(source, /!isCustomsOrderCandidate\(order\)/)
assert.match(source, /item\.orderId === order\.id && item\.taxMode === 'TAX_REFUND'/)
assert.match(source, /getMerchantCustomsForOrder\(order\.id\)/)
assert.match(source, /if \(eligibleCustomsDetail\(order\)\) \{\s*actions\.push\(\{ key: 'customs', label: '报关资料'/)