// 生产订单页面接口
|
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: "/productionOrder/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: "/productionOrder/bindingRoute",
|
method: "post",
|
data,
|
});
|
}
|
|
// 生产订单-新增
|
export function addProductOrder(data) {
|
return request({
|
url: "/productionOrder/addOrder",
|
method: "post",
|
data: data,
|
});
|
}
|
|
// 生产订单-修改
|
export function updateProductOrder(data) {
|
return request({
|
url: "/productionOrder/updateOrder",
|
method: "post",
|
data: data,
|
});
|
}
|
|
export function delProductOrder(ids) {
|
return request({
|
url: `/productionOrder/delete`,
|
method: "delete",
|
data: ids,
|
});
|
}
|
|
// 生产订单-查询产品结构列表
|
export function listProcessBom(query) {
|
return request({
|
url: "/productOrder/listProcessBom",
|
method: "get",
|
params: query,
|
});
|
}
|
|
// 生产订单-领料台账列表
|
export function listMaterialPickingLedger(query) {
|
return request({
|
url: "/productOrderMaterial/list",
|
method: "get",
|
params: query,
|
});
|
}
|
|
// 生产订单-保存领料台账
|
// export function saveMaterialPickingLedger(data) {
|
// return request({
|
// url: "/productOrderMaterial/save",
|
// method: "post",
|
// data,
|
// });
|
// }
|
export function saveMaterialPickingLedger(data) {
|
return request({
|
url: "/productionOrderPick/savePick",
|
method: "post",
|
data,
|
});
|
}
|
export function updateMaterialPickingLedger(data) {
|
return request({
|
url: "/productionOrderPick/updatePick",
|
method: "post",
|
data,
|
});
|
}
|
|
// 生产订单溯源详情
|
export function getOrderDetail(npsNo) {
|
return request({
|
url: "/productionOrder/ordeDetail",
|
method: "get",
|
params: { npsNo },
|
});
|
}
|
// 生产订单-领料详情列表
|
// export function listMaterialPickingDetail(query) {
|
// return request({
|
// url: "/productOrderMaterial/detailList",
|
// method: "get",
|
// params: query,
|
// });
|
// }
|
export function listMaterialPickingBom(productionOrderId) {
|
return request({
|
url: "/productionOrder/pick/" + productionOrderId,
|
method: "get",
|
});
|
}
|
export function listMaterialPickingDetail(productionOrderId) {
|
return request({
|
url: "/productionOrderPick/detail/" + productionOrderId,
|
method: "get",
|
});
|
}
|
// 生产订单-补料记录列表
|
export function listMaterialSupplementRecord(query) {
|
return request({
|
url: "/productionOrderPickRecord/feeding",
|
method: "get",
|
params: query,
|
});
|
}
|
|
// 生产订单-获取来源数据
|
export function getProductOrderSource(id) {
|
return request({
|
url: `/productionOrder/source/${id}`,
|
method: "get",
|
});
|
}
|
|
// 生产订单-退料确认
|
export function confirmMaterialReturn(data) {
|
return request({
|
url: "/productOrderMaterial/confirmReturn",
|
method: "post",
|
data,
|
});
|
}
|
|
// 获取炒机正在工作量数据
|
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,
|
});
|
}
|