From 07755b146037d536431a908fad6b0df1ead9b23d Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Sat, 22 Nov 2025 15:57:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/pms/PigBatchManagementView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/pms/PigBatchManagementView.vue b/src/views/pms/PigBatchManagementView.vue index 3caf9a18..83f2469c 100644 --- a/src/views/pms/PigBatchManagementView.vue +++ b/src/views/pms/PigBatchManagementView.vue @@ -180,8 +180,8 @@ export default { // Calculate unassigned_pig_count for each batch using currentTotalQuantity and currentTotalPigsInPens const assembledBatches = Array.from(batchMap.values()); assembledBatches.forEach(batch => { - // Use currentTotalQuantity and currentTotalPigsInPens directly from the batch object - batch.unassigned_pig_count = (batch.currentTotalQuantity || 0) - (batch.currentTotalPigsInPens || 0); + // Use currentTotalQuantity and currentTotalPigsInPens directly from the batch object + batch.unassigned_pig_count = (batch.current_total_quantity || 0) - (batch.current_total_pigs_in_pens || 0); }); return assembledBatches; },