From 38b1613fee78d8a7647446da692f7123c5857409 Mon Sep 17 00:00:00 2001 From: zlwu <704541015@qq.com> Date: Tue, 28 Jul 2026 09:35:05 +0800 Subject: [PATCH] feat(web-admin): enter archive inbound/outbound qty by brand Co-authored-by: Cursor --- web-admin/src/api/pl/index.ts | 7 + .../business/pl-plan-archive-dialog/index.vue | 169 +++++++++++++++++- .../src/composables/usePlContractToPlan.ts | 4 + 3 files changed, 179 insertions(+), 1 deletion(-) diff --git a/web-admin/src/api/pl/index.ts b/web-admin/src/api/pl/index.ts index 428420549..f75b1a7f1 100644 --- a/web-admin/src/api/pl/index.ts +++ b/web-admin/src/api/pl/index.ts @@ -564,9 +564,16 @@ export interface PlanCreateFullPayload { export type PlanUpdatePayload = Partial> +export interface PlanArchiveBrandQtyItem { + brandId: string + brandName?: string + qty: number +} + export interface PlanArchiveProductItem { id: string actualQty: number + brandQtys?: PlanArchiveBrandQtyItem[] } export interface PlanArchiveFreightBlock { diff --git a/web-admin/src/components/business/pl-plan-archive-dialog/index.vue b/web-admin/src/components/business/pl-plan-archive-dialog/index.vue index e6a3fa8c9..6ff253c95 100644 --- a/web-admin/src/components/business/pl-plan-archive-dialog/index.vue +++ b/web-admin/src/components/business/pl-plan-archive-dialog/index.vue @@ -23,6 +23,43 @@ show-actual-qty editable-actual-qty-only /> +
+
+ {{ row.productName }} · 按品牌填量 + 指定品牌 + 不限品牌 + + 各品牌合计须等于实际数量({{ Number(row.actualQty ?? 0) }}) + +
+ + + + + + + + +
@@ -114,6 +151,7 @@