优化逻辑
This commit is contained in:
@@ -153,8 +153,8 @@ export default {
|
|||||||
},
|
},
|
||||||
onDestBatchChange(batchId) {
|
onDestBatchChange(batchId) {
|
||||||
this.form.toPenID = null; // 重置目标猪栏选择
|
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) {
|
validateQuantity(rule, value, callback) {
|
||||||
if (value > this.maxTransferQuantity) {
|
if (value > this.maxTransferQuantity) {
|
||||||
|
|||||||
Reference in New Issue
Block a user