新增羊只,转场,转群,修蹄,去势页面
This commit is contained in:
93
src/api/produce/other/fixHoof/fixHoof.js
Normal file
93
src/api/produce/other/fixHoof/fixHoof.js
Normal file
@@ -0,0 +1,93 @@
|
||||
// import request from '@/utils/request'
|
||||
|
||||
// // 查询修蹄列表
|
||||
// export function listFixHoof(query) {
|
||||
// return request({
|
||||
// url: '/produce/other/fixHoof/list',
|
||||
// method: 'get',
|
||||
// params: query
|
||||
// })
|
||||
// }
|
||||
|
||||
// // 查询修蹄详细
|
||||
// export function getFixHoof(id) {
|
||||
// return request({
|
||||
// url: '/produce/other/fixHoof' + id,
|
||||
// method: 'get'
|
||||
// })
|
||||
// }
|
||||
|
||||
// // 新增修蹄
|
||||
// export function addFixHoof(data) {
|
||||
// return request({
|
||||
// url: '/produce/other/fixHoof',
|
||||
// method: 'post',
|
||||
// data: data
|
||||
// })
|
||||
// }
|
||||
|
||||
// // 修改修蹄
|
||||
// export function updateFixHoof(data) {
|
||||
// return request({
|
||||
// url: '/produce/other/fixHoof/',
|
||||
// method: 'put',
|
||||
// data: data
|
||||
// })
|
||||
// }
|
||||
|
||||
// // 删除修蹄
|
||||
// export function delFixHoof(id) {
|
||||
// return request({
|
||||
// url: '/produce/other/fixHoof/' + id,
|
||||
// method: 'delete'
|
||||
// })
|
||||
// }
|
||||
// fixHoof.js
|
||||
import request from '@/utils/request'
|
||||
// 查询修蹄列表
|
||||
export function listFixHoof(query) {
|
||||
return request({
|
||||
url: '/produce/other/fixHoof/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 查询修蹄详细
|
||||
export function getFixHoof(id) {
|
||||
return request({
|
||||
url: '/produce/other/fixHoof/${id}',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
// 新增修蹄
|
||||
export function addFixHoof(data) {
|
||||
return request({
|
||||
url: '/produce/other/fixHoof',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 修改修蹄
|
||||
export function updateFixHoof(data) {
|
||||
return request({
|
||||
url: '/produce/other/fixHoof',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
// 删除修蹄
|
||||
export function delFixHoof(ids) {
|
||||
return request({
|
||||
url: `/produce/other/fixHoof/${ids.join(',')}`,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
//导出
|
||||
export function exportFixHoof(query) {
|
||||
return request({
|
||||
url: '/produce/other/fixHoof/export',
|
||||
method: 'post',
|
||||
params: query,
|
||||
responseType: 'blob' // 导出功能需要设置响应类型为blob
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user