fix(client): align customs completion notice and warehouse labels

This commit is contained in:
2026-09-28 17:01:36 +01:00
parent 32c5241a01
commit ffbe3480a8
5 changed files with 25 additions and 5 deletions
@@ -76,7 +76,7 @@ test('退货签收详情使用独立路由和紧凑连续页面', () => {
test('待审核退货可编辑,完成入库后从独立新增页发起贴标', () => {
assert.match(view, /row\.status === 'PENDING_REVIEW'.*key: 'edit'/)
assert.match(view, /await updateReturnOrder\(editingReturnNo\.value, payload\)/)
assert.match(view, /await \(editingReturnNo\.value \? updateReturnOrder\(editingReturnNo\.value, payload\) : createReturnOrder\(payload\)\)/)
assert.match(view, /order\.status === 'COMPLETED' && order\.needRelabel === true/)
assert.match(view, /name: 'overseas-labeling-create'/)
assert.match(view, /query: \{ returnNo: order\.returnNo, warehouseId: String\(order\.overseasWarehouseId\) \}/)
@@ -810,7 +810,7 @@ function warehouseDisplay(value?: string) {
if (!value) return '—'
return value.split(',').map((code) => {
const warehouse = [...operationWarehouses.value, ...fbaWarehouses.value].find((item) => String(item.id) === code || item.warehouseCode === code)
return warehouse ? warehouseLabel(warehouse) : code
return warehouse ? warehouseLabel(warehouse) : '—'
}).join('、')
}
function statusLabel(value: string) {