Merge branch 'main' of http://e19510c831.iok.la/admin/zhyc-sheep-ui
This commit is contained in:
61
src/api/embryo/flush.js
Normal file
61
src/api/embryo/flush.js
Normal file
@@ -0,0 +1,61 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询冲胚记录列表
|
||||
export function listFlush(query) {
|
||||
return request({
|
||||
url: '/embryo/flush/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询冲胚记录详细
|
||||
export function getFlush(id) {
|
||||
return request({
|
||||
url: '/embryo/flush/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增冲胚记录
|
||||
export function addFlush(data) {
|
||||
return request({
|
||||
url: '/embryo/flush',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改冲胚记录
|
||||
export function updateFlush(data) {
|
||||
return request({
|
||||
url: '/embryo/flush',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除冲胚记录
|
||||
export function delFlush(id) {
|
||||
return request({
|
||||
url: '/embryo/flush/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据供体母羊耳号获取关联信息
|
||||
export function getDonorInfo(donorFemaleNo) {
|
||||
return request({
|
||||
url: '/embryo/flush/getDonorInfo',
|
||||
method: 'get',
|
||||
params: { donorFemaleNo }
|
||||
})
|
||||
}
|
||||
|
||||
// 获取供体母羊下拉列表
|
||||
export function getDonorFemaleList() {
|
||||
return request({
|
||||
url: '/embryo/flush/donorFemaleList',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
70
src/api/frozen/embryo.js
Normal file
70
src/api/frozen/embryo.js
Normal file
@@ -0,0 +1,70 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询冻胚库存列表
|
||||
export function listEmbryo(query) {
|
||||
return request({
|
||||
url: '/frozen/embryo/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询冻胚库存详细
|
||||
export function getEmbryo(id) {
|
||||
return request({
|
||||
url: '/frozen/embryo/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增冻胚库存
|
||||
export function addEmbryo(data) {
|
||||
return request({
|
||||
url: '/frozen/embryo',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改冻胚库存
|
||||
export function updateEmbryo(data) {
|
||||
return request({
|
||||
url: '/frozen/embryo',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除冻胚库存
|
||||
export function delEmbryo(id) {
|
||||
return request({
|
||||
url: '/frozen/embryo/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据供体母羊耳号回显冲胚信息(冻胚新增页面用)
|
||||
export function getFlushInfoByEwe(eweNo) {
|
||||
return request({
|
||||
url: '/frozen/embryo/getFlushInfoByEwe/' + eweNo,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据母羊+等级获取数量
|
||||
export function getQtyByGrade(eweNo, grade) {
|
||||
return request({
|
||||
url: '/frozen/embryo/getQtyByGrade',
|
||||
method: 'get',
|
||||
params: { eweNo, grade }
|
||||
})
|
||||
}
|
||||
|
||||
// 废弃冻胚
|
||||
export function discardEmbryo(data) {
|
||||
return request({
|
||||
url: '/frozen/embryo/discard',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
44
src/api/frozen/sale.js
Normal file
44
src/api/frozen/sale.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询销售主单列表
|
||||
export function listSale(query) {
|
||||
return request({
|
||||
url: '/sale/sale/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询销售主单详细
|
||||
export function getSale(id) {
|
||||
return request({
|
||||
url: '/sale/sale/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增销售主单
|
||||
export function addSale(data) {
|
||||
return request({
|
||||
url: '/sale/sale',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改销售主单
|
||||
export function updateSale(data) {
|
||||
return request({
|
||||
url: '/sale/sale',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除销售主单
|
||||
export function delSale(id) {
|
||||
return request({
|
||||
url: '/sale/sale/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
44
src/api/frozen/sperm.js
Normal file
44
src/api/frozen/sperm.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询冻精库存列表
|
||||
export function listSperm(query) {
|
||||
return request({
|
||||
url: '/sperm/sperm/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询冻精库存详细
|
||||
export function getSperm(id) {
|
||||
return request({
|
||||
url: '/sperm/sperm/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增冻精库存
|
||||
export function addSperm(data) {
|
||||
return request({
|
||||
url: '/sperm/sperm',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改冻精库存
|
||||
export function updateSperm(data) {
|
||||
return request({
|
||||
url: '/sperm/sperm',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除冻精库存
|
||||
export function delSperm(id) {
|
||||
return request({
|
||||
url: '/sperm/sperm/' + id,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user