From 6d452394aad856a145067e36c8b650a95d2dfd0c Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Thu, 23 Oct 2025 18:18:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/PigBatchList.vue | 4 ++-- src/components/PigBatchPenCard.vue | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/PigBatchList.vue b/src/components/PigBatchList.vue index f81d4962..a7f58571 100644 --- a/src/components/PigBatchList.vue +++ b/src/components/PigBatchList.vue @@ -52,6 +52,7 @@ :key="pen.id" :pen="pen" :isBatchActive="batch.is_active" + :batchUnassignedPigCount="batch.unassigned_pig_count" @allocate-pigs="showAllocatePigsDialog($event, batch)" @remove="emitRemovePen" /> @@ -82,8 +83,7 @@ 存栏: {{ pen.current_pig_count || 0 }}
- 分配猪只 + 分配猪只 移除
@@ -29,6 +29,10 @@ export default { isBatchActive: { type: Boolean, default: true // 默认活跃,以防万一没有传递 + }, + batchUnassignedPigCount: { + type: Number, + default: 0 } }, emits: ['remove', 'allocate-pigs'],