From fdaae3c56035b11da83b9389c64a5ee7a53320c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Thu, 15 Oct 2026 22:30:06 +0800 Subject: [PATCH] =?UTF-8?q?frontend-vue=20=E9=80=80=E5=BD=B9=EF=BC=9A?= =?UTF-8?q?=E5=88=A0=E6=96=B0=E7=89=88/=E6=97=A7=E7=89=88=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E6=8E=A7=E4=BB=B6=E4=B8=8E=E5=88=A0=E9=99=A4=E5=93=81?= =?UTF-8?q?=E7=89=8C/=E5=B7=A1=E5=BA=97=E5=88=A0=E9=99=A4=E5=85=A5?= =?UTF-8?q?=E5=8F=A3=EF=BC=8C=E7=94=A8=E4=BE=8B=E6=97=8F=E9=9A=8F=E5=AE=9E?= =?UTF-8?q?=E5=86=B5=E6=94=B6=E6=95=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删 ZiniaoVersionSetting.vue / ziniao-version.ts;9 个 Tab 摘 ziniao_version 载荷 - 删 BrandDeleteBrandTab.vue / BrandPatrolDeleteTab.vue 与 delete-brand 类型模块; 路由、工具目录(20→18)、端点表、progress-light 模块(12→10)、withdraw.ts 巡店段、 java-modules re-export 同步摘除 - 测试面:node --test 17 处红按实况收敛(端点冻结快照摘两组、适配器 16→14、窄集合台账 摘两页、六页→五页、reexport/快照随实况),modules-delete-brand.test.ts 整文件删 - vue-tsc+vite build 通过;node --test 837/837 绿 --- frontend-vue/src/pages/amazon/tool-catalog.ts | 30 +- .../brand/components/BrandDeleteBrandTab.vue | 1746 ----------------- .../brand/components/BrandPatrolDeleteTab.vue | 1375 ------------- .../brand/components/BrandPriceTrackTab.vue | 5 - .../brand/components/BrandProductRiskTab.vue | 13 +- .../brand/components/BrandPublishTab.vue | 8 - .../brand/components/BrandQueryAsinTab.vue | 5 - .../components/BrandShopDataCrawlTab.vue | 14 +- .../brand/components/BrandShopMatchTab.vue | 5 - .../pages/brand/components/BrandTopBar.vue | 4 - .../brand/components/BrandWithdrawTab.vue | 5 - frontend-vue/src/router/index.ts | 10 - frontend-vue/src/shared/api/endpoints.ts | 30 - frontend-vue/src/shared/api/java-modules.ts | 1 - .../src/shared/api/module-templates.ts | 1 - frontend-vue/src/shared/api/progress-light.ts | 2 - .../shared/api/types/modules/delete-brand.ts | 315 --- .../src/shared/api/types/modules/withdraw.ts | 257 --- .../components/ZiniaoVersionSetting.vue | 32 - .../shared/composables/useLiveTaskBoard.ts | 2 +- .../src/shared/utils/task-queue-state.ts | 2 +- .../src/shared/utils/task-status-text.ts | 2 +- .../src/shared/utils/task-terminal.ts | 4 +- .../src/shared/utils/ziniao-version.ts | 20 - .../tests/amazon-tool-catalog.test.ts | 6 +- .../tests/brand-rows-version-wiring.test.ts | 11 +- frontend-vue/tests/endpoints.test.ts | 34 - .../tests/enqueue-rejection-wiring.test.ts | 18 +- .../tests/java-modules-reexport.test.ts | 5 +- .../tests/modules-delete-brand.test.ts | 167 -- frontend-vue/tests/modules-withdraw.test.ts | 106 +- frontend-vue/tests/progress-light.test.ts | 7 +- .../tests/task-progress-view-wiring.test.ts | 6 +- .../task-terminal-set-single-source.test.ts | 6 +- 34 files changed, 42 insertions(+), 4212 deletions(-) delete mode 100644 frontend-vue/src/pages/brand/components/BrandDeleteBrandTab.vue delete mode 100644 frontend-vue/src/pages/brand/components/BrandPatrolDeleteTab.vue delete mode 100644 frontend-vue/src/shared/api/types/modules/delete-brand.ts delete mode 100644 frontend-vue/src/shared/components/ZiniaoVersionSetting.vue delete mode 100644 frontend-vue/src/shared/utils/ziniao-version.ts delete mode 100644 frontend-vue/tests/modules-delete-brand.test.ts diff --git a/frontend-vue/src/pages/amazon/tool-catalog.ts b/frontend-vue/src/pages/amazon/tool-catalog.ts index dafe19e02..5eff18cd9 100644 --- a/frontend-vue/src/pages/amazon/tool-catalog.ts +++ b/frontend-vue/src/pages/amazon/tool-catalog.ts @@ -146,11 +146,9 @@ export const TOOL_GROUPS: ReadonlyArray = [ workflowHint: '10步工作流 · 从上架到复盘,环环相扣', workflow: [ { name: '上架', desc: '安全数据批量上架', toolId: 'list' }, - { name: '指定删除ASIN', desc: '批量清理无效ASIN', toolId: 'delasin' }, - { name: '商品风险解决', desc: '4类风险一键处理', toolId: 'risk' }, + { name: '商品风险解决', desc: '3类风险一键处理', toolId: 'risk' }, { name: '定时匹配', desc: '定时价格匹配', toolId: 'time' }, { name: '跟价', desc: '跟价规则配置', toolId: 'follow' }, - { name: '巡店删除', desc: '巡检店铺状态', toolId: 'patrol' }, { name: '查询ASIN', desc: '排查ASIN在售状态', toolId: 'qasin' }, { name: '店铺数据抓取', desc: '抓取运营数据', toolId: 'scrape' }, { name: '取款', desc: '留足平台扣款费用', toolId: 'cash' }, @@ -164,17 +162,10 @@ export const TOOL_GROUPS: ReadonlyArray = [ href: '/publish', permissionKeys: ['publish'], }, - { - id: 'delasin', - name: '指定删除ASIN', - desc: '批量删除需清理的 ASIN(风险 / 优化 / 邮箱汇总)', - href: '/delete-brand', - permissionKeys: ['delete-brand'], - }, { id: 'risk', name: '商品风险解决', - desc: '4 类风险一键处理:禁止显示 / 需要批准 / 详情已删 / 账户状态', + desc: '3 类风险一键处理:禁止显示 / 需要批准 / 详情已删', tag: '高频', core: true, href: '/product-risk', @@ -196,13 +187,6 @@ export const TOOL_GROUPS: ReadonlyArray = [ href: '/price-track', permissionKeys: ['pricing', 'price-track'], }, - { - id: 'patrol', - name: '巡店删除', - desc: '按商品状态巡店清理,摸清店铺商品全貌', - href: '/patrol-delete', - permissionKeys: ['patrol-delete'], - }, { id: 'qasin', name: '查询ASIN', @@ -269,11 +253,9 @@ export const TOOL_ICON_GRADIENTS: Record = { split: 'linear-gradient(180deg, #86EFAC, #22C55E)', convert: 'linear-gradient(180deg, #FCA5A5, #EF4444)', list: 'linear-gradient(180deg, #5EEAD4, #14B8A6)', - delasin: 'linear-gradient(180deg, #93C5FD, #3B82F6)', risk: 'linear-gradient(180deg, #C4B5FD, #8B5CF6)', time: 'linear-gradient(180deg, #F9A8D4, #EC4899)', follow: 'linear-gradient(180deg, #FDBA74, #F97316)', - patrol: 'linear-gradient(180deg, #FDE047, #EAB308)', qasin: 'linear-gradient(180deg, #86EFAC, #22C55E)', scrape: 'linear-gradient(180deg, #FCA5A5, #EF4444)', cash: 'linear-gradient(180deg, #5EEAD4, #14B8A6)', @@ -305,16 +287,12 @@ export const TOOL_ICON_SHAPES: Record = { convert: '', // 上架:方框+向上箭头 list: '', - // 删除ASIN:垃圾桶 - delasin: '', // 商品风险解决:三角+感叹号 risk: '', // 定时匹配:时钟 time: '', // 跟价:标签 follow: '', - // 巡店删除:眼睛 - patrol: '', // 查询ASIN:放大镜 qasin: '', // 店铺数据抓取:立方体 @@ -340,12 +318,10 @@ export const TOOL_DETAILS: Readonly> = { collect: '默认勾选有排名和FBM这两个选择', dedupe: '去重之后,切记一定上传到数富后台去重数据库', brand: '核查上架数据品牌风险,先跑精确匹配,后跑嵌入式', - delasin: '收集统一要删除的ASIN,批量删除清理', risk: - 'A 搜索结果中禁止显示;B 需要批准(最通用、使用频率最高);C 详情页面已删除;D 账户状态处理(需要审批没有时候后台处理)。', + 'A 搜索结果中禁止显示;B 需要批准(最通用、使用频率最高);C 详情页面已删除。', follow: '一个虚拟桌面跟一个国家,错开跑即可时时跟价抢购物车。指定 ASIN 文档跟价:用后台有利润数据快速跟价,下班前跑一下,确保出单数据及时是我们的购物车。', - patrol: '巡店删除是按商品状态删除,如审核多次不通过的商品。不放任何状态跑一遍,可清楚掌握店铺数据情况。', qasin: '通过店小蜜导出出单 ASIN,上传后台,时不时排查是否还在店铺售卖,确保优质数据时刻在店。', scrape: '没排名、久未出单数据可优化删除;获取店铺所有数据的排名、品牌和销售情况。半个月到一个月复查一次品牌,确保数据没有被注册。', diff --git a/frontend-vue/src/pages/brand/components/BrandDeleteBrandTab.vue b/frontend-vue/src/pages/brand/components/BrandDeleteBrandTab.vue deleted file mode 100644 index 16c13eb24..000000000 --- a/frontend-vue/src/pages/brand/components/BrandDeleteBrandTab.vue +++ /dev/null @@ -1,1746 +0,0 @@ - - - - - - diff --git a/frontend-vue/src/pages/brand/components/BrandPatrolDeleteTab.vue b/frontend-vue/src/pages/brand/components/BrandPatrolDeleteTab.vue deleted file mode 100644 index 1b58a5b37..000000000 --- a/frontend-vue/src/pages/brand/components/BrandPatrolDeleteTab.vue +++ /dev/null @@ -1,1375 +0,0 @@ - - - - - diff --git a/frontend-vue/src/pages/brand/components/BrandPriceTrackTab.vue b/frontend-vue/src/pages/brand/components/BrandPriceTrackTab.vue index a342780f4..cb574af9c 100644 --- a/frontend-vue/src/pages/brand/components/BrandPriceTrackTab.vue +++ b/frontend-vue/src/pages/brand/components/BrandPriceTrackTab.vue @@ -118,7 +118,6 @@
保存中…
-
@@ -225,7 +224,6 @@ import { ElMessage } from 'element-plus' import type { TableInstance } from 'element-plus' import AmazonToolPageShell from '@/pages/amazon/components/AmazonToolPageShell.vue'; import ModuleTemplateDownload from '@/shared/components/ModuleTemplateDownload.vue' -import ZiniaoVersionSetting from '@/shared/components/ZiniaoVersionSetting.vue' import FileUploadZone from '@/shared/components/FileUploadZone.vue' import TaskCenterPanel from '@/shared/components/tasks/TaskCenterPanel.vue' import type { TaskItemView, TaskStatCard } from '@/shared/components/tasks/types' @@ -243,7 +241,6 @@ import { shouldDeferQueuePush, } from '@/shared/dispatch-guard' import { passGuard } from '@/shared/dispatch-guard-ui' -import { useZiniaoVersion } from '@/shared/utils/ziniao-version' import { addPriceTrackCandidate, completePriceTrackLoopChild, @@ -293,7 +290,6 @@ import { selectionNotice, } from '@/shared/utils/candidate-selection-memory' -const ziniaoVersion = useZiniaoVersion() // ========== 类型定义 ========== const COUNTRY_OPTIONS = [ @@ -1037,7 +1033,6 @@ async function buildQueuePayload(taskVo: PriceTrackCreateTaskVo, row: PriceTrack ts: Date.now(), data: { task_id: taskVo.taskId, - ziniao_version: ziniaoVersion.value, shop_name: shopName, country_codes: resolveCountryCodesForRequest(), mode: priceTrackModeForAppClient(), diff --git a/frontend-vue/src/pages/brand/components/BrandProductRiskTab.vue b/frontend-vue/src/pages/brand/components/BrandProductRiskTab.vue index e325913c3..d755d1f67 100644 --- a/frontend-vue/src/pages/brand/components/BrandProductRiskTab.vue +++ b/frontend-vue/src/pages/brand/components/BrandProductRiskTab.vue @@ -67,7 +67,6 @@
-
-
-
保存中...
-

启用后可按 `MM-DD HH:mm` 添加多个执行时间点。

-
@@ -125,7 +124,6 @@ import { ElMessage } from 'element-plus' import AmazonToolPageShell from '@/pages/amazon/components/AmazonToolPageShell.vue'; import TaskCenterPanel from '@/shared/components/tasks/TaskCenterPanel.vue' import type { TaskItemView, TaskStatCard } from '@/shared/components/tasks/types' -import ZiniaoVersionSetting from '@/shared/components/ZiniaoVersionSetting.vue' import { LISTING_FILTER_OPTIONS, type ListingFilterValue } from '@/pages/brand/components/listingFilters' import { activateShopMatchTask, addShopMatchCandidate, createShopMatchTask, deleteShopMatchCandidate, deleteShopMatchHistory, deleteShopMatchTask, getShopMatchCountryPreference, getShopMatchDashboard, getShopMatchHistory, getShopMatchResultDownloadUrl, getShopMatchTaskProgressBatch, listShopMatchCandidates, matchShopMatchShops, putShopMatchCountryPreference, type ShopMatchCandidateVo, type ShopMatchCreateTaskItem, type ShopMatchDashboardVo, type ShopMatchHistoryItem, type ShopMatchShopQueueItem, type ShopMatchTaskDetailVo } from '@/shared/api/java-modules' import { getPollingProgressBatch } from '@/shared/api/task-progress-polling.ts' @@ -136,7 +134,6 @@ import { createCategorizedTimers } from '@/shared/utils/categorized-timers' import { createRowId } from '@/shared/utils/row-id' import { saveUrlWithProgress } from '@/shared/utils/download-progress' import { taskStatusClass, taskStatusText } from '@/shared/utils/task-status-text' -import { useZiniaoVersion } from '@/shared/utils/ziniao-version' import { runBatchDelete } from '@/shared/utils/batch-delete' import { useTablePaging } from '@/shared/composables/useTablePaging.ts' import { confirmTaskDeletion } from '@/shared/task-delete-confirm' @@ -170,7 +167,6 @@ const queueWorkerRunning = ref(false) const autoQueueEnabled = ref(false) const queuePushResult = ref('') const queuePayloadText = ref('') -const ziniaoVersion = useZiniaoVersion() const orderedCountryCodes = ref(['DE', 'UK', 'FR', 'IT', 'ES']) const dragCountryIndex = ref(null) const countryPrefSaving = ref(false) @@ -418,7 +414,6 @@ function buildQueuePayload(taskId: number, item: Pick = [ label: '运营工具', items: [ { key: 'publish', label: '上架', href: '/publish' }, - { key: 'delete-brand', label: '删除ASIN', href: '/delete-brand' }, { key: 'product-risk', label: '商品风险解决', href: '/product-risk' }, { key: 'shop-match', label: '定时匹配', href: '/shop-match' }, { key: 'pricing', label: '跟价', href: '/price-track', aliases: ['price-track'] }, - { key: 'patrol-delete', label: '巡店删除', href: '/patrol-delete' }, { key: 'query-asin', label: '查询ASIN', href: '/query-asin' }, { key: 'shop-data-crawl', label: '店铺数据抓取', href: '/shop-data-crawl', columnKey: 'shop_data_crawl', aliases: ['shop-data-crawl'] }, { key: 'withdraw', label: '取款', href: '/withdraw' }, diff --git a/frontend-vue/src/pages/brand/components/BrandWithdrawTab.vue b/frontend-vue/src/pages/brand/components/BrandWithdrawTab.vue index 103d6e435..83a006c3f 100644 --- a/frontend-vue/src/pages/brand/components/BrandWithdrawTab.vue +++ b/frontend-vue/src/pages/brand/components/BrandWithdrawTab.vue @@ -79,7 +79,6 @@ v-model:current-page="candidatePage" /> -