优化逻辑

This commit is contained in:
2025-10-24 14:23:58 +08:00
parent d5f91b9b12
commit ab8ea6977f

View File

@@ -153,8 +153,8 @@ export default {
},
onDestBatchChange(batchId) {
this.form.toPenID = null; // 重置目标猪栏选择
// 过滤出目标批次下,且未满的猪栏
this.destinationPens = (this.pensByBatch[batchId] || []).filter(pen => pen.current_pig_count < pen.capacity);
// 允许选择目标批次下的所有猪栏,包括已满的
this.destinationPens = (this.pensByBatch[batchId] || []);
},
validateQuantity(rule, value, callback) {
if (value > this.maxTransferQuantity) {