接单平台:新增店铺筛选条件,过滤快手店铺

This commit is contained in:
2026-10-22 15:01:03 +08:00
parent 067d54fdd8
commit 35259bd643
@@ -206,6 +206,18 @@ function isConsignmentRevocableOrder(row: WorkOrder) {
)
}
/**
* 快手渠道自动生成的占位店铺名(`快手店铺-<sellerId>`)。
*
* 这类名字不是人工维护的门店,只是同步订单时没拿到店铺名兜底生成的;
* 后台「店铺」筛选中把它们隐藏掉,避免下拉里混进一串数字店铺。
*/
const AUTO_KUAISHOU_SHOP_NAME_PATTERN = /^快手店铺[--]?\s*\d*$/
function isAutoGeneratedKuaishouShopName(name: string) {
return AUTO_KUAISHOU_SHOP_NAME_PATTERN.test(String(name || '').trim())
}
export default function WorkOrdersPanel() {
const { message, modal } = App.useApp()
const navigate = useNavigate()
@@ -1886,10 +1898,12 @@ export default function WorkOrdersPanel() {
className="worker-orders-filter-select worker-orders-filter-select--wide"
maxTagCount="responsive"
loading={shopOptionsQuery.isLoading}
options={(shopOptionsQuery.data?.data.items || []).map((shopName) => ({
value: shopName,
label: shopName,
}))}
options={(shopOptionsQuery.data?.data.items || [])
.filter((shopName) => !isAutoGeneratedKuaishouShopName(shopName))
.map((shopName) => ({
value: shopName,
label: shopName,
}))}
onChange={(nextShopNames: string[]) => {
setShopNames(nextShopNames)
setPage(1)