From 138788e91f553f37fb3579b500ed880dafb82b6d Mon Sep 17 00:00:00 2001 From: zyk Date: Thu, 21 Aug 2025 10:14:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=9B=B4=E6=96=B0=E4=BA=A7?= =?UTF-8?q?=E7=BE=94=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/breed/lambing_records.js | 8 ++ src/views/breed/lambing_records/index.vue | 147 ++++++++++++++++------ 2 files changed, 116 insertions(+), 39 deletions(-) diff --git a/src/api/breed/lambing_records.js b/src/api/breed/lambing_records.js index d28f266..1f40c1a 100644 --- a/src/api/breed/lambing_records.js +++ b/src/api/breed/lambing_records.js @@ -17,6 +17,14 @@ export function getLambing_records(id) { }) } +// 根据母羊耳号查询最新配种记录 +export function getBreedingInfo(earNumber) { + return request({ + url: '/breed/lambing_records/breeding_info/' + earNumber, + method: 'get' + }) +} + // 新增产羔记录(包含羔羊信息) export function addLambing_records(data) { return request({ diff --git a/src/views/breed/lambing_records/index.vue b/src/views/breed/lambing_records/index.vue index 02e84e0..1343c0d 100644 --- a/src/views/breed/lambing_records/index.vue +++ b/src/views/breed/lambing_records/index.vue @@ -155,17 +155,46 @@ /> - + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -187,32 +216,27 @@ - - - - - - - - + + placeholder="请选择产羔日期"> - + + + - + @@ -351,7 +375,7 @@