feat(xumu): 新增免疫登记功能

- 添加免疫登记管理页面登记的新增、编辑和删除功能
- 集成耳标和相关组件
- 实现免疫号选择器组件
- 优化称重管理功能,修复相关问题
This commit is contained in:
aixianling
2024-12-27 12:12:02 +08:00
parent ab9ec446c7
commit 19a9486f48
7 changed files with 450 additions and 2 deletions

View File

@@ -61,7 +61,8 @@ export default {
},
submit() {
this.$refs.detail.validate().then(() => {
this.instance.post("/api/breed/weight/addOrEdit", this.detail).then(res => {
this.form.biochipEarNumber = this.detail.biochipEarNumber
this.instance.post("/api/breed/weight/addOrEdit", this.form).then(res => {
if (res?.code == 0) {
this.dialog = false
this.getDetail()

View File

@@ -81,7 +81,7 @@ export default {
<ai-download :instance="instance" url="/api/breed/weight/export" :params="{...search,...page}" :fileName="`称重导出表-${Date.now()}`"/>
</template>
</ai-search-bar>
<ai-table :tableData="tableData" :colConfigs="columns" :dict="dict" @gweightList="getTableData"
<ai-table :tableData="tableData" :colConfigs="columns" :dict="dict" @getList="getTableData"
:total="page.total" :current.sync="page.pageNum" :size.sync="page.pageSize">
<el-table-column slot="options" label="操作" fixed="right" align="center">
<template slot-scope="{row}">