diff --git a/src/api/biosafety/disease.js b/src/api/biosafety/disease.js index 370ef69..7998936 100644 --- a/src/api/biosafety/disease.js +++ b/src/api/biosafety/disease.js @@ -38,7 +38,7 @@ export function updateDisease(data) { // 删除疾病 export function delDisease(id) { return request({ - url: '/disease/disease/' + id, + url: '/biosafety/disease/' + id, method: 'delete' }) } diff --git a/src/api/treatment/treatment.js b/src/api/biosafety/treatment.js similarity index 100% rename from src/api/treatment/treatment.js rename to src/api/biosafety/treatment.js diff --git a/src/api/fileManagement/group_management.js b/src/api/fileManagement/group_management.js index c8fc036..0484803 100644 --- a/src/api/fileManagement/group_management.js +++ b/src/api/fileManagement/group_management.js @@ -42,3 +42,11 @@ export function delGroup_management(groupId) { method: 'delete' }) } + +// 查询所有叶子分组 +export function listLeafGroup() { + return request({ + url: '/group_management/group_management/leaf', + method: 'get' + }) +} diff --git a/src/api/fileManagement/sheep_grouping.js b/src/api/fileManagement/sheep_grouping.js new file mode 100644 index 0000000..2af0cba --- /dev/null +++ b/src/api/fileManagement/sheep_grouping.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询羊只分组关联列表 +export function listSheep_grouping(query) { + return request({ + url: '/sheep_grouping/sheep_grouping/list', + method: 'get', + params: query + }) +} + +// 查询羊只分组关联详细 +export function getSheep_grouping(id) { + return request({ + url: '/sheep_grouping/sheep_grouping/' + id, + method: 'get' + }) +} + +// 新增羊只分组关联 +export function addSheep_grouping(data) { + return request({ + url: '/sheep_grouping/sheep_grouping', + method: 'post', + data: data + }) +} + +// 修改羊只分组关联 +export function updateSheep_grouping(data) { + return request({ + url: '/sheep_grouping/sheep_grouping', + method: 'put', + data: data + }) +} + +// 删除羊只分组关联 +export function delSheep_grouping(id) { + return request({ + url: '/sheep_grouping/sheep_grouping/' + id, + method: 'delete' + }) +} diff --git a/src/api/produce/manage_sheep/trans_group/trans_group.js b/src/api/produce/manage_sheep/trans_group/trans_group.js index e29e992..e8e3eba 100644 --- a/src/api/produce/manage_sheep/trans_group/trans_group.js +++ b/src/api/produce/manage_sheep/trans_group/trans_group.js @@ -36,17 +36,17 @@ export function updateTrans_group(data) { } // 删除转群记录 -export function delTrans_group(id) { +export function delTrans_group(ids) { + const idStr = Array.isArray(ids) ? ids.join(',') : String(ids) return request({ - url: '/produce/manage_sheep/trans_group/' + id, + url: `/produce/manage_sheep/trans_group/${idStr}`, method: 'delete' }) } - // 获取羊舍列表 export function listSheepfold() { return request({ - url: '/produce/sheepfold/list', + url: '/sheepfold_management/sheepfold_management/list', method: 'get', }); } diff --git a/src/api/produce/other/fixHoof/fixHoof.js b/src/api/produce/other/fixHoof/fixHoof.js index ed0a56c..a189a91 100644 --- a/src/api/produce/other/fixHoof/fixHoof.js +++ b/src/api/produce/other/fixHoof/fixHoof.js @@ -33,8 +33,9 @@ export function updateFixHoof(data) { } // 删除修蹄 export function delFixHoof(ids) { + const idStr = Array.isArray(ids) ? ids.join(',') : String(ids) return request({ - url: `/produce/other/fixHoof/${ids.join(',')}`, + url: `/produce/other/fixHoof/${idStr}`, method: 'delete' }) } @@ -47,3 +48,23 @@ export function exportFixHoof(query) { responseType: 'blob' // 导出功能需要设置响应类型为blob }) } + + +// 按管理耳号查羊只 +export function checkSheepByManageTags(manageTags) { + return request({ + url: '/sheep/sheep/byManageTags/' + encodeURIComponent(manageTags), + method: 'get' + }) +} + +//获取品种 +export function getVarietyOptions(query){ + return request({ + url:'/base/variety/list', + method:'get', + params:query + }) +} + + diff --git a/src/views/biosafety/quarantine/add.vue b/src/views/biosafety/quarantine/add.vue deleted file mode 100644 index d3c24ae..0000000 --- a/src/views/biosafety/quarantine/add.vue +++ /dev/null @@ -1,151 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ dict.label }} - - - - - - - 取 消 - 确 定 - - - - - \ No newline at end of file diff --git a/src/views/biosafety/quarantine/index.vue b/src/views/biosafety/quarantine/index.vue index 48fdf8d..5d603c5 100644 --- a/src/views/biosafety/quarantine/index.vue +++ b/src/views/biosafety/quarantine/index.vue @@ -1,13 +1,12 @@ - - + + start-placeholder="开始日期" end-placeholder="结束日期"> 搜索 @@ -17,8 +16,22 @@ - 新增 + 新增 + + 修改 + + + 删除 + + + 导出 + + @@ -30,6 +43,7 @@ + @@ -47,69 +61,226 @@ - + - 检疫 + 检疫 + 治疗 + 删除 - + - - + + + + + + + + + + + + + + + + + + {{ dict.label }} + + + + + + + - \ No newline at end of file diff --git a/src/views/biosafety/treatment/add.vue b/src/views/biosafety/treatment/add.vue new file mode 100644 index 0000000..a1756bb --- /dev/null +++ b/src/views/biosafety/treatment/add.vue @@ -0,0 +1,567 @@ + + + + + + 添加治疗记录 + + + + + + + + 耳号:{{ sheepInfo.sheepNo || '–' }} + + + + + 性别:{{ sheepInfo.gender || '–' }} + + + + + 品种:{{ sheepInfo.variety || '–' }} + + + + + + + + 羊只类别:{{ sheepInfo.name || '–' }} + + + + + 月龄:{{ sheepInfo.monthAge ?? '–' }} 月 + + + + + 胎次:{{ sheepInfo.parity ?? '–' }} + + + + + + + + 繁殖状态:{{ sheepInfo.breed || '–' }} + + + + + 怀孕天数:{{ sheepInfo.gestationDay ?? '–' }} 天 + + + + + 泌乳天数:{{ sheepInfo.lactationDay ?? '–' }} 天 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 治疗记录 + + + + 添加药品 + + + + + + + {{ scope.$index + 1 }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 删除 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/biosafety/treatment/hanld.vue b/src/views/biosafety/treatment/hanld.vue deleted file mode 100644 index 60a88b5..0000000 --- a/src/views/biosafety/treatment/hanld.vue +++ /dev/null @@ -1,15 +0,0 @@ - - - hanld - - - - - - \ No newline at end of file diff --git a/src/views/biosafety/treatment/index.vue b/src/views/biosafety/treatment/index.vue index 3bce7ee..05a7c38 100644 --- a/src/views/biosafety/treatment/index.vue +++ b/src/views/biosafety/treatment/index.vue @@ -170,7 +170,7 @@ diff --git a/src/views/produce/manage_sheep/add_sheep/index.vue b/src/views/produce/manage_sheep/add_sheep/index.vue index 2e41ad3..3a8846d 100644 --- a/src/views/produce/manage_sheep/add_sheep/index.vue +++ b/src/views/produce/manage_sheep/add_sheep/index.vue @@ -1,13 +1,16 @@ + 导出 导入 + + - + @@ -18,6 +21,7 @@ + @@ -30,9 +34,10 @@ + - + @@ -42,14 +47,15 @@ + - - - - + + + + @@ -59,10 +65,13 @@ + - + + + @@ -71,6 +80,7 @@ + @@ -78,6 +88,7 @@ + @@ -93,10 +104,11 @@ + - + 将文件拖到此处,或点击上传 @@ -107,10 +119,15 @@