保留客户端入库费用未发布原因
This commit is contained in:
@@ -452,6 +452,7 @@ test('loads merchant inbound billing as an isolated read-only detail section', (
|
|||||||
assert.match(source, /<InboundBillingPanel/)
|
assert.match(source, /<InboundBillingPanel/)
|
||||||
assert.match(source, /@retry="retryInboundBilling"/)
|
assert.match(source, /@retry="retryInboundBilling"/)
|
||||||
assert.match(source, /error instanceof ApiError && error\.code === 'A0404'/)
|
assert.match(source, /error instanceof ApiError && error\.code === 'A0404'/)
|
||||||
|
assert.match(source, /inboundBillingUnavailableMessage\.value = error\.message \|\| '入库及费用结果尚未发布'/)
|
||||||
assert.match(source, /order\.status === 'DRAFT'/)
|
assert.match(source, /order\.status === 'DRAFT'/)
|
||||||
assert.match(source, /订单提交后可查看入库结果/)
|
assert.match(source, /订单提交后可查看入库结果/)
|
||||||
assert.doesNotMatch(source, /confirmMerchantInbound|adjustMerchantInbound|sendMerchantInbound/)
|
assert.doesNotMatch(source, /confirmMerchantInbound|adjustMerchantInbound|sendMerchantInbound/)
|
||||||
|
|||||||
@@ -1161,7 +1161,7 @@ async function loadInboundBilling(order: FirstLegOrder) {
|
|||||||
if (!isCurrentInboundBillingRequest(sequence, order.id)) return
|
if (!isCurrentInboundBillingRequest(sequence, order.id)) return
|
||||||
if (error instanceof ApiError && error.code === 'A0404') {
|
if (error instanceof ApiError && error.code === 'A0404') {
|
||||||
inboundBillingUnavailable.value = true
|
inboundBillingUnavailable.value = true
|
||||||
inboundBillingUnavailableMessage.value = '入库及费用结果尚未发布'
|
inboundBillingUnavailableMessage.value = error.message || '入库及费用结果尚未发布'
|
||||||
} else {
|
} else {
|
||||||
inboundBillingError.value = error instanceof Error ? error.message : '入库与费用加载失败'
|
inboundBillingError.value = error instanceof Error ? error.message : '入库与费用加载失败'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user