|
|
@ -170,34 +170,34 @@ export const getOperstepsPage = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
return await request.post({ url: '/mes/workstation-process/senior', data }) |
|
|
|
return await request.post({ url: '/mes/workstation-opersteps/senior', data }) |
|
|
|
} else { |
|
|
|
return await request.get({ url: `/mes/workstation-process/pageListByWorkstationCode`, params }) |
|
|
|
return await request.get({ url: `/mes/workstation-opersteps/pageListByWorkstationCode`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
export const checkOperstepsPageList = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
return await request.post({ url: '/mes/workstation-process/senior', data }) |
|
|
|
return await request.post({ url: '/mes/workstation-opersteps/senior', data }) |
|
|
|
} else { |
|
|
|
return await request.get({ url: `/mes/workstation-process/pageCheckListByWorkstationCode`, params }) |
|
|
|
return await request.get({ url: `/mes/workstation-opersteps/pageCheckListByWorkstationCode`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
// 添加工序关联
|
|
|
|
// 添加操作步骤关联
|
|
|
|
export const createOperstepsRelation = async (processCodes:string[]) => { |
|
|
|
const data = { |
|
|
|
workstationCode : goalParams.workstationCode, |
|
|
|
processCodes : processCodes |
|
|
|
} |
|
|
|
return await request.post({ url: `/mes/workstation-process/createRelation`, data }) |
|
|
|
return await request.post({ url: `/mes/workstation-opersteps/createRelation`, data }) |
|
|
|
} |
|
|
|
|
|
|
|
// 删除工序关联
|
|
|
|
// 删除操作步骤关联
|
|
|
|
export const deleteOperstepsRelation = async (processCodes:string[]) => { |
|
|
|
const data = { |
|
|
|
workstationCode : goalParams.workstationCode, |
|
|
|
processCodes : processCodes |
|
|
|
} |
|
|
|
return await request.post({ url: `/mes/workstation-process/deleteRelation`, data }) |
|
|
|
return await request.post({ url: `/mes/workstation-opersteps/deleteRelation`, data }) |
|
|
|
} |
|
|
|