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 @@