feat(worker-platform): 支持拼多多订单匹配诊断与通用发单规则匹配
1. 修复匹配诊断日志仅记录快手发单凭证的问题,支持记录拼多多等全平台订单的商品匹配结果; 2. 匹配诊断来源商品聚合查询 order_items 与 orders,拼多多商品正常展示并在测试中可用; 3. 接单模板规则平台默认值改为留空,支持跨平台通用匹配; 4. 接单模板重匹配功能支持重扫数据库中未建工单的订单并自动生成接单工单。
This commit is contained in:
@@ -424,7 +424,7 @@ export default function ProductRulesPanel() {
|
||||
const response = await reprocessAdminKuaishouWorkOrderMatches()
|
||||
const result = response.data
|
||||
message.success(
|
||||
`已扫描 ${result.scannedCount} 笔快手订单,新增 ${result.createdCount} 个接单工单`,
|
||||
`已扫描 ${result.scannedCount} 笔订单,新增 ${result.createdCount} 个接单工单`,
|
||||
)
|
||||
await Promise.all([
|
||||
queryClient.invalidateQueries({ queryKey: ['admin-worker-platform-product-rules'] }),
|
||||
@@ -432,7 +432,7 @@ export default function ProductRulesPanel() {
|
||||
queryClient.invalidateQueries({ queryKey: ['admin-worker-platform-orders'] }),
|
||||
])
|
||||
} catch (error) {
|
||||
message.error(error instanceof Error ? error.message : '快手订单重匹配失败')
|
||||
message.error(error instanceof Error ? error.message : '订单重匹配失败')
|
||||
}
|
||||
}
|
||||
|
||||
@@ -744,7 +744,7 @@ export default function ProductRulesPanel() {
|
||||
layout="vertical"
|
||||
className="product-rule-main-form"
|
||||
initialValues={{
|
||||
platform: 'kuaishou',
|
||||
platform: '',
|
||||
matchType: 'contains',
|
||||
itemTitleMatchType: 'exact',
|
||||
skuNickMatchType: 'exact',
|
||||
@@ -914,7 +914,7 @@ export default function ProductRulesPanel() {
|
||||
</Form.Item>
|
||||
|
||||
<Form.Item label="平台" name="platform">
|
||||
<Input placeholder="如 kuaishou" />
|
||||
<Input placeholder="留空通用所有平台,或如 pdd / kuaishou" />
|
||||
</Form.Item>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user