前端更新

This commit is contained in:
zyk
2025-08-06 15:37:45 +08:00
parent eb8f61377f
commit 8497dc273e
8 changed files with 2792 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
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 getSheepInfo(manageTags) {
return request({
url: '/sheep_death/death/sheepInfo/' + manageTags,
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'
})
}