优化逻辑
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user