This commit is contained in:
2026-09-20 11:23:35 +08:00
parent 40f2b2ba11
commit 653e79d3e7
2 changed files with 2 additions and 2 deletions
@@ -49,7 +49,7 @@ test('exposes real list, draft, submit, and detail workflow entries without canc
}) })
test('copies an order into the dedicated create page without reusing order identity', () => { test('copies an order into the dedicated create page without reusing order identity', () => {
assert.match(source, /key: 'copy', label: '一键复制'/) assert.match(source, /key: 'copy', label: '复制下单'/)
assert.match(source, /name: 'first-leg-order-create'[\s\S]*copyFrom: order\.id/) assert.match(source, /name: 'first-leg-order-create'[\s\S]*copyFrom: order\.id/)
assert.match(source, /order\.status === 'DRAFT' \? \{ copyDraft: '1' \}/) assert.match(source, /order\.status === 'DRAFT' \? \{ copyDraft: '1' \}/)
assert.match(source, /sourceIsDraft \? await store\.loadDraftDetail\(id\) : await store\.loadDetail\(id\)/) assert.match(source, /sourceIsDraft \? await store\.loadDraftDetail\(id\) : await store\.loadDetail\(id\)/)
@@ -1278,7 +1278,7 @@ function getOrderRowActions(row: object): TableAction[] {
{ key: 'detail', label: '详情', run: () => openDetail(order) }, { key: 'detail', label: '详情', run: () => openDetail(order) },
] ]
if (canCreateOrder.value) { if (canCreateOrder.value) {
actions.push({ key: 'copy', label: '一键复制', loading: copyingOrderId.value === order.id, run: () => copyOrder(order) }) actions.push({ key: 'copy', label: '复制下单', loading: copyingOrderId.value === order.id, run: () => copyOrder(order) })
} }
if (canConfirmInboundFee.value && order.businessSummary.customerFeeConfirmationRequired) { if (canConfirmInboundFee.value && order.businessSummary.customerFeeConfirmationRequired) {
actions.push({ key: 'fee', label: '确认计费重', run: () => openFeeConfirmation(order) }) actions.push({ key: 'fee', label: '确认计费重', run: () => openFeeConfirmation(order) })