Merge branch 'main' of http://e19510c831.iok.la/admin/zhyc-sheep-ui
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -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'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
44
src/api/produce/bodyManage/body_measure.js
Normal file
44
src/api/produce/bodyManage/body_measure.js
Normal file
@@ -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'
|
||||
})
|
||||
}
|
||||
44
src/api/produce/bodyManage/body_score.js
Normal file
44
src/api/produce/bodyManage/body_score.js
Normal file
@@ -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'
|
||||
})
|
||||
}
|
||||
44
src/api/produce/bodyManage/breast_rating.js
Normal file
44
src/api/produce/bodyManage/breast_rating.js
Normal file
@@ -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'
|
||||
})
|
||||
}
|
||||
44
src/api/produce/manage_sheep/changeComment.js
Normal file
44
src/api/produce/manage_sheep/changeComment.js
Normal file
@@ -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'
|
||||
})
|
||||
}
|
||||
71
src/api/produce/manage_sheep/changeEar.js
Normal file
71
src/api/produce/manage_sheep/changeEar.js
Normal file
@@ -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 }
|
||||
});
|
||||
}
|
||||
52
src/api/produce/manage_sheep/changeVariety.js
Normal file
52
src/api/produce/manage_sheep/changeVariety.js
Normal file
@@ -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'
|
||||
});
|
||||
}
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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) }
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user