// 生产订单页面接口
|
import request from "@/utils/request";
|
|
// 分页查询
|
export function schedulingListPage(query) {
|
return request({
|
url: "/salesLedger/scheduling/listPage",
|
method: "get",
|
params: query,
|
});
|
}
|
|
export function productOrderListPage(query) {
|
return request({
|
url: "/productOrder/page",
|
method: "get",
|
params: query,
|
});
|
}
|
|
// 生产订单-按产品型号查询可用工艺路线列表
|
export function listProcessRoute(query) {
|
return request({
|
url: "/productOrder/listProcessRoute",
|
method: "get",
|
params: query,
|
});
|
}
|
|
// 生产订单-绑定工艺路线
|
export function bindingRoute(data) {
|
return request({
|
url: "/productOrder/bindingRoute",
|
method: "post",
|
data,
|
});
|
}
|
|
// 生产订单-新增
|
export function addProductOrder(data) {
|
return request({
|
url: "/productOrder/addProductOrder",
|
method: "post",
|
data: data,
|
});
|
}
|
|
export function delProductOrder(ids) {
|
return request({
|
url: `/productOrder/${ids}`,
|
method: "delete",
|
});
|
}
|
|
// 生产订单-查询产品结构列表
|
export function listProcessBom(query) {
|
return request({
|
url: "/productOrder/listProcessBom",
|
method: "get",
|
params: query,
|
});
|
}
|
|
// 获取炒机正在工作量数据
|
export function schedulingList(query) {
|
return request({
|
url: "/salesLedger/scheduling/list",
|
method: "get",
|
params: query,
|
});
|
}
|
|
// 保存炒机设置
|
export function addSpeculatTrading(data) {
|
return request({
|
url: "/salesLedger/scheduling/addSpeculatTrading",
|
method: "post",
|
data: data,
|
});
|
}
|
|
// 修改炒机设置
|
export function updateSpeculatTrading(data) {
|
return request({
|
url: "/salesLedger/scheduling/updateSpeculatTrading",
|
method: "post",
|
data: data,
|
});
|
}
|
|
// 生产派工
|
export function productionDispatch(query) {
|
return request({
|
url: "/salesLedger/scheduling/productionDispatch",
|
method: "post",
|
data: query,
|
});
|
}
|
// 自动派工
|
export function productionDispatchList(query) {
|
return request({
|
url: "/salesLedger/scheduling/productionDispatchList",
|
method: "post",
|
data: query,
|
});
|
}
|
|
// 查询损耗率
|
export function getLossRate() {
|
return request({
|
url: "/salesLedger/scheduling/loss",
|
method: "get",
|
});
|
}
|
|
// 新增损耗率
|
export function addLossRate(data) {
|
return request({
|
url: "/salesLedger/scheduling/addLoss",
|
method: "post",
|
data: data,
|
});
|
}
|
|
// 修改损耗率
|
export function updateLossRate(data) {
|
return request({
|
url: "/salesLedger/scheduling/updateLoss",
|
method: "post",
|
data: data,
|
});
|
}
|
|
|
// 生产订单绑定兹定于工艺路线
|
// /productionProductInput/save
|
export function saveProductionProductInput(data) {
|
return request({
|
url: "/productionProductInput/save",
|
method: "post",
|
data,
|
})
|
}
|
|
// 生辰订单查看工艺路线
|
// /productionProductInput/getByProductWordId/{productOrderId}
|
export function viewGetByProductWordId(data) {
|
return request({
|
url: "/productionProductInput/getByProductWordId/"+data,
|
method: "post",
|
})
|
}
|
|
// 导出生产订单-导出工艺路线
|
// POST {{host}}/productionProductInput/export/282
|
export function exportProductInventory(id) {
|
return request({
|
url: `/productionProductInput/export/${id}`,
|
method: "post",
|
responseType: "blob",
|
})
|
}
|