You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
173 lines
3.7 KiB
JavaScript
173 lines
3.7 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询生产派工列表
|
|
export function listProductplan(query) {
|
|
return request({
|
|
url: '/mes/productplan/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询生产派工列表
|
|
export function listJoinProductplan(query) {
|
|
return request({
|
|
url: '/mes/productplan/joinList',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 查询生产派工详细
|
|
export function getProductplan(planId) {
|
|
return request({
|
|
url: '/mes/productplan/' + planId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增生产派工
|
|
export function addProductplan(data) {
|
|
return request({
|
|
url: '/mes/productplan',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改生产派工
|
|
export function updateProductplan(data) {
|
|
return request({
|
|
url: '/mes/productplan',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除生产派工
|
|
export function delProductplan(planId) {
|
|
return request({
|
|
url: '/mes/productplan/' + planId,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获取派工编号
|
|
export function getDispatchCode() {
|
|
return request({
|
|
url: '/mes/productplan/getDispatchCode',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
//生产派工校验
|
|
export function checkAddMesProductPlanList(data) {
|
|
return request({
|
|
url: '/mes/productplan/checkAddMesProductPlanList',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
// 生产工单新增生产派工List
|
|
export function orderAddMesProductPlanList(data) {
|
|
return request({
|
|
url: '/mes/productplan/orderAddMesProductPlanList',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 查询生产派工列表
|
|
export function selectProductPlans(query) {
|
|
return request({
|
|
url: '/mes/productplan/selectProductPlans',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
export function uploadFile(data) {
|
|
return request({
|
|
url: '/mes/baseAttachInfo/drawingFileUpload',
|
|
method: 'post',
|
|
timeout: 1000000,//超时时间需要设置的较大,否则容易上传失败
|
|
headers: {
|
|
'Content-Type': 'multipart/form-data'//文件上传需要设置该参数
|
|
},
|
|
data
|
|
})
|
|
}
|
|
|
|
// 获取生产派工图纸List列表
|
|
export function getDispatchDrawingList(dispatchCode,processId) {
|
|
return request({
|
|
url: '/mes/productplan/drawingList/' + dispatchCode+'/'+processId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获取生产派工SOP附件List列表
|
|
export function getDispatchSOPAttachList(dispatchCode,processId) {
|
|
return request({
|
|
url: '/mes/productplan/SOPAttachList/' + dispatchCode+'/'+processId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获取工艺路线的所有工艺步骤
|
|
export function getBaseRouteProcesses(query) {
|
|
return request({
|
|
url: '/mes/productplan/getBaseRouteProcesses' ,
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
|
|
|
|
// 获取工艺路线所有工序及关联生产人员信息
|
|
export function getProcessUsers(routeId) {
|
|
return request({
|
|
url: '/mes/productplan/getProcessUsers/' + routeId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
|
|
// 删除生产派工
|
|
export function deleteProductPlansByDispatchCode(data) {
|
|
return request({
|
|
url: '/mes/productplan/deleteProductPlansByDispatchCode/',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
// 获取用户列表
|
|
export function getUserList(query) {
|
|
return request({
|
|
url: '/system/user/getUserList',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 获取生产派工附件List列表
|
|
export function getAttachInfoList(attachType, dispatchCode, processId, userId) {
|
|
return request({
|
|
url: '/mes/productplan/attachInfoList/' + attachType + '/' + dispatchCode + '/' + processId + '/' + userId,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 校验生产派工是否已绑定附件
|
|
export function checkMesProductPlanAttachInfo(attachType, attachIds) {
|
|
return request({
|
|
url: '/mes/productplan/checkMesProductPlanAttachInfo/' + attachType + '/' + attachIds,
|
|
method: 'get'
|
|
})
|
|
}
|