bug修复
This commit is contained in:
parent
53b3efb432
commit
5df66f9b02
@ -481,6 +481,7 @@ async function loadSheepInfo() {
|
|||||||
const tagDetails = {};
|
const tagDetails = {};
|
||||||
const validResults = [];
|
const validResults = [];
|
||||||
let firstSheepfoldId = null;
|
let firstSheepfoldId = null;
|
||||||
|
let firstRanchId = null;
|
||||||
|
|
||||||
for (const tag of tags) {
|
for (const tag of tags) {
|
||||||
try {
|
try {
|
||||||
@ -498,6 +499,7 @@ async function loadSheepInfo() {
|
|||||||
};
|
};
|
||||||
if (!firstSheepfoldId) {
|
if (!firstSheepfoldId) {
|
||||||
firstSheepfoldId = sheepData.sheepfoldId;
|
firstSheepfoldId = sheepData.sheepfoldId;
|
||||||
|
firstRanchId = sheepData.ranchId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -513,6 +515,11 @@ async function loadSheepInfo() {
|
|||||||
}
|
}
|
||||||
form.value.tagDetails = tagDetails;
|
form.value.tagDetails = tagDetails;
|
||||||
|
|
||||||
|
if (firstRanchId && isAdd.value) {
|
||||||
|
form.value.ranchId = firstRanchId;
|
||||||
|
handleRanchChange(firstRanchId);
|
||||||
|
}
|
||||||
|
|
||||||
if (firstSheepfoldId && isAdd.value) {
|
if (firstSheepfoldId && isAdd.value) {
|
||||||
form.value.foldFrom = Number(firstSheepfoldId);
|
form.value.foldFrom = Number(firstSheepfoldId);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user