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'],