94 lines
1.9 KiB
JavaScript
94 lines
1.9 KiB
JavaScript
|
// 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
|
||
|
})
|
||
|
}
|