diff --git a/src/api/produce/castrate.js b/src/api/produce/castrate.js new file mode 100644 index 0000000..df5c6cd --- /dev/null +++ b/src/api/produce/castrate.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询去势列表 +export function listCastrate(query) { + return request({ + url: '/produce/castrate/list', + method: 'get', + params: query + }) +} + +// 查询去势详细 +export function getCastrate(id) { + return request({ + url: '/produce/castrate/' + id, + method: 'get' + }) +} + +// 新增去势 +export function addCastrate(data) { + return request({ + url: '/produce/castrate', + method: 'post', + data: data + }) +} + +// 修改去势 +export function updateCastrate(data) { + return request({ + url: '/produce/castrate', + method: 'put', + data: data + }) +} + +// 删除去势 +export function delCastrate(id) { + return request({ + url: '/produce/castrate/' + id, + method: 'delete' + }) +} diff --git a/src/views/produce/other/castrate/index.vue b/src/views/produce/other/castrate/index.vue new file mode 100644 index 0000000..87bc0d3 --- /dev/null +++ b/src/views/produce/other/castrate/index.vue @@ -0,0 +1,274 @@ + + +