import { ajax } from "../sdk/ajax";
/* 屠宰管控 */

// 企业采购 Quarantine
export const reqQuarantine = () => ajax("post", "/farm-huyang/screen/slaughter-system/quarantine/get")

export const reqSetQuarantine = (data) => ajax("post", "/farm-huyang/screen/slaughter-system/quarantine/save", data)


// 成本比例 Cost
export const reqCost = () => ajax("post", "/farm-huyang/screen/slaughter-system/cost/get")

export const reqSetCost = (data) => ajax("post", "/farm-huyang/screen/slaughter-system/cost/save", data)


// 检疫合格率 QuarantinePass
export const reqQuarantinePass = () => ajax("post", "/farm-huyang/screen/slaughter-system/quarantine-pass/get")

export const reqSetQuarantinePass = (data) => ajax("post", "/farm-huyang/screen/slaughter-system/quarantine-pass/save", data)


// 入栏待宰 WaitSlaughter
export const reqWaitSlaughter = () => ajax("post", "/farm-huyang/screen/slaughter-system/wait-slaughter/get")

export const reqSetWaitSlaughter = (data) => ajax("post", "/farm-huyang/screen/slaughter-system/wait-slaughter/save", data)


// 头部信息 Head
export const reqHead = () => ajax("post", "/farm-huyang/screen/slaughter-system/head/get")

export const reqSetHead = (data) => ajax("post", "/farm-huyang/screen/slaughter-system/head/save", data)


// 产品库存 ProductInventory
export const reqProductInventory = () => ajax("post", "/farm-huyang/screen/slaughter-system/product-inventory/get")

export const reqSetProductInventory = (data) => ajax("post", "/farm-huyang/screen/slaughter-system/product-inventory/save", data)


// 死淘数量 NumberDead
export const reqNumberDead = () => ajax("post", "/farm-huyang/screen/slaughter-system/number-dead/get")

export const reqSetNumberDead = (data) => ajax("post", "/farm-huyang/screen/slaughter-system/number-dead/save", data)


// 排酸损耗 AcidLoss
export const reqAcidLoss = () => ajax("post", "/farm-huyang/screen/slaughter-system/number-dead/get")

export const reqSetAcidLoss = (data) => ajax("post", "/farm-huyang/screen/slaughter-system/number-dead/save", data)


// 销售统计 SaleCount
export const reqSaleCount = () => ajax("post", "/farm-huyang/screen/slaughter-system/sale-count/get")

export const reqSetSaleCount = (data) => ajax("post", "/farm-huyang/screen/slaughter-system/sale-count/save", data)


// 在场批次 OnBatch
export const reqOnBatch = () => ajax("post", "/farm-huyang/screen/slaughter-system/on-batch/get")

export const reqSetOnBatch = (data) => ajax("post", "/farm-huyang/screen/slaughter-system/on-batch/save", data)
