diff --git a/package.json b/package.json index 929db2d..a50909e 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "nprogress": "0.2.0", "pinia": "2.1.7", "splitpanes": "3.1.5", - "vue": "3.4.31", + "vue": "^3.4.31", "vue-cropper": "1.1.1", "vue-router": "4.4.0", "vuedraggable": "4.1.0", diff --git a/src/api/Pregnancy_Test/Pregnancy_Test.js b/src/api/Pregnancy_Test/Pregnancy_Test.js index 345608e..8547e00 100644 --- a/src/api/Pregnancy_Test/Pregnancy_Test.js +++ b/src/api/Pregnancy_Test/Pregnancy_Test.js @@ -42,3 +42,14 @@ export function delPregnancy_Test(id) { method: 'delete' }) } + +// 根据耳号查询羊只信息 +export function getSheepByManageTags(manageTags) { + return request({ + url: '/Pregnancy_Test/Pregnancy_Test/getSheepByManageTags', + method: 'get', + params: { + manageTags: manageTags + } + }) +} \ No newline at end of file diff --git a/src/api/diagnosis/diagnosis.js b/src/api/biosafety/diagnosis.js similarity index 100% rename from src/api/diagnosis/diagnosis.js rename to src/api/biosafety/diagnosis.js diff --git a/src/api/biosafety/quarantine.js b/src/api/biosafety/quarantine.js index 0580462..5341286 100644 --- a/src/api/biosafety/quarantine.js +++ b/src/api/biosafety/quarantine.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询检疫记录列表 export function listQuarantine(query) { return request({ - url: '/bisosafety/quarantine/list', + url: '/biosafety/quarantine/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listQuarantine(query) { // 查询检疫记录详细 export function getQuarantine(id) { return request({ - url: '/bisosafety/quarantine/' + id, + url: '/biosafety/quarantine/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getQuarantine(id) { // 新增检疫记录 export function addQuarantine(data) { return request({ - url: '/bisosafety/quarantine', + url: '/biosafety/quarantine', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addQuarantine(data) { // 修改检疫记录 export function updateQuarantine(data) { return request({ - url: '/bisosafety/quarantine', + url: '/biosafety/quarantine', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updateQuarantine(data) { // 删除检疫记录 export function delQuarantine(id) { return request({ - url: '/bisosafety/quarantine/' + id, + url: '/biosafety/quarantine/' + id, method: 'delete' }) } diff --git a/src/api/fileManagement/sheep_grouping.js b/src/api/fileManagement/sheep_grouping.js index 2e74e58..fb7d871 100644 --- a/src/api/fileManagement/sheep_grouping.js +++ b/src/api/fileManagement/sheep_grouping.js @@ -52,3 +52,12 @@ export function delSheep_grouping(id) { method: 'delete' }) } + +// 根据耳号批量新增分组映射 +export function addByEarTags(data) { + return request({ + url: '/sheep_grouping/sheep_grouping/addByEarTags', + method: 'post', + data + }) +} diff --git a/src/api/produce/bodyManage/body_measure.js b/src/api/produce/bodyManage/body_measure.js new file mode 100644 index 0000000..66862eb --- /dev/null +++ b/src/api/produce/bodyManage/body_measure.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询体尺测量列表 +export function listBody_measure(query) { + return request({ + url: '/body_measure/body_measure/list', + method: 'get', + params: query + }) +} + +// 查询体尺测量详细 +export function getBody_measure(id) { + return request({ + url: '/body_measure/body_measure/' + id, + method: 'get' + }) +} + +// 新增体尺测量 +export function addBody_measure(data) { + return request({ + url: '/body_measure/body_measure', + method: 'post', + data: data + }) +} + +// 修改体尺测量 +export function updateBody_measure(data) { + return request({ + url: '/body_measure/body_measure', + method: 'put', + data: data + }) +} + +// 删除体尺测量 +export function delBody_measure(id) { + return request({ + url: '/body_measure/body_measure/' + id, + method: 'delete' + }) +} diff --git a/src/api/produce/bodyManage/body_score.js b/src/api/produce/bodyManage/body_score.js new file mode 100644 index 0000000..5953c19 --- /dev/null +++ b/src/api/produce/bodyManage/body_score.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询体况评分列表 +export function listBody_score(query) { + return request({ + url: '/body_score/body_score/list', + method: 'get', + params: query + }) +} + +// 查询体况评分详细 +export function getBody_score(id) { + return request({ + url: '/body_score/body_score/' + id, + method: 'get' + }) +} + +// 新增体况评分 +export function addBody_score(data) { + return request({ + url: '/body_score/body_score', + method: 'post', + data: data + }) +} + +// 修改体况评分 +export function updateBody_score(data) { + return request({ + url: '/body_score/body_score', + method: 'put', + data: data + }) +} + +// 删除体况评分 +export function delBody_score(id) { + return request({ + url: '/body_score/body_score/' + id, + method: 'delete' + }) +} diff --git a/src/api/produce/bodyManage/breast_rating.js b/src/api/produce/bodyManage/breast_rating.js new file mode 100644 index 0000000..39b6d03 --- /dev/null +++ b/src/api/produce/bodyManage/breast_rating.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询乳房评分列表 +export function listBreast_rating(query) { + return request({ + url: '/breast_rating/breast_rating/list', + method: 'get', + params: query + }) +} + +// 查询乳房评分详细 +export function getBreast_rating(id) { + return request({ + url: '/breast_rating/breast_rating/' + id, + method: 'get' + }) +} + +// 新增乳房评分 +export function addBreast_rating(data) { + return request({ + url: '/breast_rating/breast_rating', + method: 'post', + data: data + }) +} + +// 修改乳房评分 +export function updateBreast_rating(data) { + return request({ + url: '/breast_rating/breast_rating', + method: 'put', + data: data + }) +} + +// 删除乳房评分 +export function delBreast_rating(id) { + return request({ + url: '/breast_rating/breast_rating/' + id, + method: 'delete' + }) +} diff --git a/src/api/produce/manage_sheep/changeComment.js b/src/api/produce/manage_sheep/changeComment.js new file mode 100644 index 0000000..615a290 --- /dev/null +++ b/src/api/produce/manage_sheep/changeComment.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询改备注列表 +export function listChangeComment(query) { + return request({ + url: '/changeComment/changeComment/list', + method: 'get', + params: query + }) +} + +// 查询改备注详细 +export function getChangeComment(id) { + return request({ + url: '/changeComment/changeComment/' + id, + method: 'get' + }) +} + +// 新增改备注 +export function addChangeComment(data) { + return request({ + url: '/changeComment/changeComment', + method: 'post', + data: data + }) +} + +// 修改改备注 +export function updateChangeComment(data) { + return request({ + url: '/changeComment/changeComment', + method: 'put', + data: data + }) +} + +// 删除改备注 +export function delChangeComment(id) { + return request({ + url: '/changeComment/changeComment/' + id, + method: 'delete' + }) +} diff --git a/src/api/produce/manage_sheep/changeEar.js b/src/api/produce/manage_sheep/changeEar.js new file mode 100644 index 0000000..c2d4105 --- /dev/null +++ b/src/api/produce/manage_sheep/changeEar.js @@ -0,0 +1,71 @@ +import request from '@/utils/request' + +// 查询修改电子耳号记录列表 +export function listChangeEar(query) { + return request({ + url: '/changeEar/changeEar/list', + method: 'get', + params: query + }) +} + +// 查询修改电子耳号记录详细 +export function getChangeEar(id) { + return request({ + url: '/changeEar/changeEar/' + id, + method: 'get' + }) +} + +// 新增修改电子耳号记录 +export function addChangeEar(data) { + return request({ + url: '/changeEar/changeEar', + method: 'post', + data: data + }) +} + +// 修改修改电子耳号记录 +export function updateChangeEar(data) { + return request({ + url: '/changeEar/changeEar', + method: 'put', + data: data + }) +} + +// 删除修改电子耳号记录 +export function delChangeEar(id) { + return request({ + url: '/changeEar/changeEar/' + id, + method: 'delete' + }) +} + + +// 根据羊只ID查询基本信息 +export function getSheepById(id) { + return request({ + url: '/sheep/sheep/' + id, + method: 'get' + }); +} + +//根据耳号(管理耳号或电子耳号)查询羊只信息 +export function getSheepByEarNumber(earNumber, earType) { + return request({ + url: '/sheep/sheep/byEarNumber', + method: 'get', + params: { earNumber, earType } + }); +} + +//校验新管理/电子耳号 +export function checkTagExists(tag, earType) { + return request({ + url: '/sheep/sheep/existsByTag', + method: 'get', + params: { tag, earType } + }); +} \ No newline at end of file diff --git a/src/api/produce/manage_sheep/changeVariety.js b/src/api/produce/manage_sheep/changeVariety.js new file mode 100644 index 0000000..a0f9e1d --- /dev/null +++ b/src/api/produce/manage_sheep/changeVariety.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +// 查询改品种记录列表 +export function listChangeVariety(query) { + return request({ + url: '/changeVariety/changeVariety/list', + method: 'get', + params: query + }) +} + +// 查询改品种记录详细 +export function getChangeVariety(id) { + return request({ + url: '/changeVariety/changeVariety/' + id, + method: 'get' + }) +} + +// 新增改品种记录 +export function addChangeVariety(data) { + return request({ + url: '/changeVariety/changeVariety', + method: 'post', + data: data + }) +} + +// 修改改品种记录 +export function updateChangeVariety(data) { + return request({ + url: '/changeVariety/changeVariety', + method: 'put', + data: data + }) +} + +// 删除改品种记录 +export function delChangeVariety(id) { + return request({ + url: '/changeVariety/changeVariety/' + id, + method: 'delete' + }) +} + +//通过管理耳号获取羊只信息 +export function getSheepByManageTags(manageTags) { + return request({ + url: `/sheep/sheep/byManageTags/${manageTags}`, + method: 'get' + }); +} \ No newline at end of file diff --git a/src/api/produce/manage_sheep/trans_group.js b/src/api/produce/manage_sheep/trans_group.js index e8e3eba..0f0bba6 100644 --- a/src/api/produce/manage_sheep/trans_group.js +++ b/src/api/produce/manage_sheep/trans_group.js @@ -50,3 +50,13 @@ export function listSheepfold() { method: 'get', }); } + + +//审批转群记录 +export function approveScTransGroup(data) { + return request({ + url: '/produce/manage_sheep/trans_group/approve', + method: 'put', + data + }) +} diff --git a/src/api/produce/manage_sheep/transition_info.js b/src/api/produce/manage_sheep/transition_info.js index a86dbf4..0ee92d6 100644 --- a/src/api/produce/manage_sheep/transition_info.js +++ b/src/api/produce/manage_sheep/transition_info.js @@ -9,6 +9,23 @@ export function listTransition_info(query) { }) } +// 查询牧场列表(用于下拉框) +export function listRanch() { + return request({ + url: '/ranch/ranch/list', + method: 'get', + params: { pageNum: 1, pageSize: 9999 } + }); +} + +// 查询指定牧场下的所有羊只耳号 +export function getSheepByRanchId(ranchId) { + return request({ + url: `/ranch/ranch/getSheepByRanchId/${ranchId}`, + method: 'get' + }); +} + // 查询转场详细 export function getTransition_info(id) { return request({ @@ -17,15 +34,15 @@ export function getTransition_info(id) { }) } + // 新增转场 export function addTransition_info(data) { return request({ - url: 'produce/manage_sheep/transition_info', + url: '/produce/manage_sheep/transition_info/batch', method: 'post', - data: data + data: data }) } - // 修改转场 export function updateTransition_info(data) { return request({ @@ -42,3 +59,14 @@ export function delTransition_info(id) { method: 'delete' }) } + +/** + * 审批转场记录 + */ +export function approveTransitionInfo(data) { + return request({ + url: '/produce/manage_sheep/transition_info/approve', + method: 'put', + data + }) +} diff --git a/src/api/produce/other/fixHoof.js b/src/api/produce/other/fixHoof.js index a189a91..f1f3289 100644 --- a/src/api/produce/other/fixHoof.js +++ b/src/api/produce/other/fixHoof.js @@ -45,7 +45,7 @@ export function exportFixHoof(query) { url: '/produce/other/fixHoof/export', method: 'post', params: query, - responseType: 'blob' // 导出功能需要设置响应类型为blob + responseType: 'blob' }) } @@ -67,4 +67,13 @@ export function getVarietyOptions(query){ }) } +//通过羊舍获取羊只 +export function getSheepBySheepfoldId(id) { + return request({ + url: `/sheepfold_management/sheepfold_management/getSheepById`, + method: 'get', + params:{ id: String(id) } + }) +} + diff --git a/src/api/variety/variety.js b/src/api/variety/variety.js index 8c7ee14..5b3f49d 100644 --- a/src/api/variety/variety.js +++ b/src/api/variety/variety.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 查询羊只品种列表 export function listVariety(query) { return request({ - url: '/variety/variety/list', + url: '/base/variety/list', method: 'get', params: query }) @@ -12,7 +12,7 @@ export function listVariety(query) { // 查询羊只品种详细 export function getVariety(id) { return request({ - url: '/variety/variety/' + id, + url: '/base/variety/' + id, method: 'get' }) } @@ -20,7 +20,7 @@ export function getVariety(id) { // 新增羊只品种 export function addVariety(data) { return request({ - url: '/variety/variety', + url: '/base/variety', method: 'post', data: data }) @@ -29,7 +29,7 @@ export function addVariety(data) { // 修改羊只品种 export function updateVariety(data) { return request({ - url: '/variety/variety', + url: '/base/variety', method: 'put', data: data }) @@ -38,7 +38,7 @@ export function updateVariety(data) { // 删除羊只品种 export function delVariety(id) { return request({ - url: '/variety/variety/' + id, + url: '/base/variety/' + id, method: 'delete' }) } diff --git a/src/views/Pregnancy_Test/Pregnancy_Test/index.vue b/src/views/Pregnancy_Test/Pregnancy_Test/index.vue index 989d52f..9b423b9 100644 --- a/src/views/Pregnancy_Test/Pregnancy_Test/index.vue +++ b/src/views/Pregnancy_Test/Pregnancy_Test/index.vue @@ -1,45 +1,43 @@