fix(542): 修复添加页面接口参数和布局

- 在 AppDeathManage 和 AppOutManage 的 add.vue 文件中,为 ai-eartag-remote 组件添加 class="row",优化布局
- 在 AppOutManage 的 add.vue 文件中,修正出栏接口参数 outTime 之前错误使用 deathTime
- 在 AiEartagRemote 组件中,简化 API 请求参数结构
This commit is contained in:
aixianling
2025-01-14 11:50:45 +08:00
parent 9f6998e042
commit f4e2100882
3 changed files with 4 additions and 4 deletions

View File

@@ -89,7 +89,7 @@ export default {
<el-form size="small" label-width="120px" :model="detail" ref="detail">
<ai-card title="基础信息">
<div class="grid c-4">
<ai-eartag-remote :instance="instance" @enter="handlerAutocomplete"/>
<ai-eartag-remote :instance="instance" @enter="handlerAutocomplete" class="row"/>
<el-form-item label="生物芯片耳标号">
<b v-text="detail.biochipEarNumber"/>
</el-form-item>

View File

@@ -56,7 +56,7 @@ export default {
this.$refs.detail.validate().then(() => {
const {biochipEarNumber, id, outTime, heightPic, biochipPic, preventionPic, otherPic, reason, remarks} = this.detail
this.instance.post("/api/breed/out/addOrEdit", {
biochipEarNumber, id, deathTime, picture: JSON.stringify({heightPic, biochipPic, preventionPic, otherPic}), reason, remarks
biochipEarNumber, id, outTime, picture: JSON.stringify({heightPic, biochipPic, preventionPic, otherPic}), reason, remarks
}).then(res => {
if (res?.code == 0 && res?.data != 1) {
this.$confirm("是否返回列表页?", "提交成功").then(() => this.back()).catch(() => this.getDetail(biochipEarNumber))
@@ -91,7 +91,7 @@ export default {
<el-form size="small" label-width="120px" :model="detail" ref="detail">
<ai-card title="基础信息">
<div class="grid c-4">
<ai-eartag-remote :instance="instance" @enter="handlerAutocomplete"/>
<ai-eartag-remote :instance="instance" @enter="handlerAutocomplete" class="row"/>
<el-form-item label="生物芯片耳标号">
<b v-text="detail.biochipEarNumber"/>
</el-form-item>

View File

@@ -14,7 +14,7 @@ export default {
methods: {
getText(biochipEarNumber) {
this.info = {}
return this.instance.post("/api/breed/earTag/page", {params: {biochipEarNumber, pageSize: 10, pageNum: 1}}).then(res => {
return this.instance.post("/api/breed/earTag/page", {biochipEarNumber, pageSize: 10, pageNum: 1}).then(res => {
if (res?.data?.records) {
this.info = res.data.records[0]
this.$emit('enter', this.info)