96 lines
1.9 KiB
JavaScript
96 lines
1.9 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询羊只死淘记录列表
|
|
export function listDeath(query) {
|
|
return request({
|
|
url: '/sheep_death/death/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询羊只死淘记录详细
|
|
export function getDeath(id) {
|
|
return request({
|
|
url: '/sheep_death/death/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增羊只死淘记录
|
|
export function addDeath(data) {
|
|
return request({
|
|
url: '/sheep_death/death',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改羊只死淘记录
|
|
export function updateDeath(data) {
|
|
return request({
|
|
url: '/sheep_death/death',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除羊只死淘记录
|
|
export function delDeath(id) {
|
|
return request({
|
|
url: '/sheep_death/death/' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 根据耳号查询羊只信息
|
|
export function getSheepInfo(manageTags) {
|
|
return request({
|
|
url: '/sheep_death/death/sheepInfo/' + manageTags,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获取疾病树形列表
|
|
export function getDiseaseTree() {
|
|
return request({
|
|
url: '/sheep_death/death/disease/tree',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
<<<<<<< HEAD
|
|
// --- 远程搜索 API ---
|
|
|
|
// 搜索耳号
|
|
export function searchEarNo(query) {
|
|
return request({
|
|
url: '/sheep_death/death/search/earNo',
|
|
method: 'get',
|
|
params: { query }
|
|
})
|
|
}
|
|
|
|
// 搜索技术员
|
|
export function searchTechnician(query) {
|
|
return request({
|
|
url: '/sheep_death/death/search/technician',
|
|
method: 'get',
|
|
params: { query }
|
|
})
|
|
}
|
|
|
|
// 搜索处理人
|
|
export function searchHandler(query) {
|
|
return request({
|
|
url: '/sheep_death/death/search/handler',
|
|
=======
|
|
// 模糊查询母羊耳号列表
|
|
export function searchEarNumbers(query) {
|
|
return request({
|
|
url: '/sheep_death/death/search_ear_numbers', // 根据实际路径修改
|
|
>>>>>>> 685ce2654e63aa48459b87ee43e319a6e547a8a4
|
|
method: 'get',
|
|
params: { query }
|
|
})
|
|
} |