This commit is contained in:
2025-07-18 18:13:18 +08:00
parent aeeff17498
commit 586252bbcb
12 changed files with 423 additions and 139 deletions

View File

@@ -135,7 +135,7 @@
<script setup>
import { ref, onMounted } from 'vue'
import request from '@/utils/request'
import { addSheep, exportSheepForm } from '@/api/produce/manage_sheep/add_sheep/add_sheep'
import { addSheep, exportSheepForm } from '@/api/produce/manage_sheep/add_sheep'
import { listSheepfold_management as listSheepfold } from '@/api/fileManagement/sheepfold_management'
import { getToken } from '@/utils/auth'
import { getCurrentInstance } from 'vue'
@@ -273,10 +273,10 @@ function handleImportError(err) {
/* -------------------- 初始化 -------------------- */
onMounted(() => {
getSheepfoldOptions()
getVarietyOptions()
})
</script>
<style scoped>

View File

@@ -175,7 +175,7 @@ import {
delTrans_group,
addTrans_group,
updateTrans_group
} from '@/api/produce/manage_sheep/trans_group/trans_group'
} from '@/api/produce/manage_sheep/trans_group'
import { listSheepfold_management as listSheepfold } from '@/api/fileManagement/sheepfold_management'
import request from '@/utils/request'
@@ -375,9 +375,8 @@ function getVarietyOptions() {
}
/* -------------------- 初始化 -------------------- */
onMounted(() => {
loadSheepfold()
getVarietyOptions()
getList()
})
</script>

View File

@@ -210,7 +210,7 @@
</template>
<script setup name="Transition_info">
import { listTransition_info, getTransition_info, delTransition_info, addTransition_info, updateTransition_info } from "@/api/produce/manage_sheep/transition_info/transition_info"
import { listTransition_info, getTransition_info, delTransition_info, addTransition_info, updateTransition_info } from "@/api/produce/manage_sheep/transition_info"
const { proxy } = getCurrentInstance()
const { status, trans_type } = proxy.useDict('status', 'trans_type')
@@ -409,5 +409,7 @@ function handleApproveReject() {
proxy.$modal.msgError(`审批失败:${error}`);
});
}
getList()
</script>

View File

@@ -110,7 +110,7 @@
</template>
<script setup name="castrate">
import { listCastrate, getCastrate, delCastrate, addCastrate, updateCastrate } from '@/api/produce/other/castrate/castrate'
import { listCastrate, getCastrate, delCastrate, addCastrate, updateCastrate } from '@/api/produce/other/castrate'
import { listSheepfold_management as listSheepfold } from '@/api/fileManagement/sheepfold_management'
import request from '@/utils/request'
@@ -276,9 +276,9 @@ function getVarietyOptions() {
})
}
onMounted(() => {
getList()
getSheepfoldOptions()
getVarietyOptions()
})
</script>

View File

@@ -118,7 +118,7 @@
</template>
<script setup name="FixHoof">
import { listFixHoof, getFixHoof, delFixHoof, addFixHoof, updateFixHoof } from '@/api/produce/other/fixHoof/fixHoof'
import { listFixHoof, getFixHoof, delFixHoof, addFixHoof, updateFixHoof } from '@/api/produce/other/fixHoof'
import { listSheepfold_management as listSheepfold } from '@/api/fileManagement/sheepfold_management'
import request from '@/utils/request'
@@ -287,9 +287,9 @@ function getVarietyOptions () {
}
/* 只保留一个 onMounted */
onMounted(() => {
getList()
getSheepfoldOptions()
getVarietyOptions()
})
</script>