fix(consignment): 内部库存匹配仅允许待分配和待抢单
This commit is contained in:
@@ -163,7 +163,6 @@ const ADMIN_NOTE_QUICK_TAGS = ['已通知加好友'] as const
|
||||
const FILTERABLE_WORK_ORDER_STATUSES = [
|
||||
'pending_material',
|
||||
'unassigned',
|
||||
'internal_matching',
|
||||
'open',
|
||||
'in_progress',
|
||||
'pending_acceptance',
|
||||
@@ -2071,19 +2070,13 @@ export default function WorkOrdersPanel() {
|
||||
寄卖匹配只保留新引擎入口:旧的 /fulfill 手动匹配不支持数量拆分,
|
||||
还会绕过 profile/重新匹配排除,已从 UI 收敛掉。
|
||||
*/}
|
||||
{canFulfillConsignment &&
|
||||
['internal_matching', 'unassigned', 'open'].includes(String(row.status || '')) ? (
|
||||
{canFulfillConsignment && ['unassigned', 'open'].includes(String(row.status || '')) ? (
|
||||
<Button
|
||||
type={String(row.status || '') === 'internal_matching' ? 'primary' : 'default'}
|
||||
icon={<ThunderboltOutlined />}
|
||||
onClick={() => setConsignmentMatchOrder(row)}
|
||||
title={
|
||||
String(row.status || '') === 'internal_matching'
|
||||
? '手动选择寄卖库存并立即匹配;拼单必须一次拼满'
|
||||
: '按寄卖配置精确匹配库存;拼单工单可选多条库存一起拼'
|
||||
}
|
||||
title="按寄卖配置匹配同配置库存;拼单工单可选多条库存一起拼"
|
||||
>
|
||||
{String(row.status || '') === 'internal_matching' ? '手动匹配寄卖' : '内部库存匹配'}
|
||||
内部库存匹配
|
||||
</Button>
|
||||
) : null}
|
||||
{canCustomerRefund &&
|
||||
|
||||
Reference in New Issue
Block a user