|
@ -42,7 +42,7 @@ export const getEquipmentPage = async (params) => { |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/mes/equipment/senior', data }) |
|
|
return await request.post({ url: '/mes/equipment/senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.get({ url: `/mes/equipment/pageListByWorkstationCode`, params }) |
|
|
return await request.get({ url: `/mes/equipment/getEquipmentPage`, params }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 查询选择设备列表
|
|
|
// 查询选择设备列表
|
|
@ -53,11 +53,11 @@ export const checkEquipmentPageList = async (params) => { |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/mes/equipment/senior', data }) |
|
|
return await request.post({ url: '/mes/equipment/senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.get({ url: `/mes/equipment/pageCheckListByWorkstationCode`, params }) |
|
|
return await request.get({ url: `/mes/equipment/pageCheckList`, params }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 添加设备关联
|
|
|
// 添加设备关联
|
|
|
export const createEquipmentRelation = async (equipmentCodes:string[]) => { |
|
|
export const createEquipment = async (equipmentCodes:string[]) => { |
|
|
const data = { |
|
|
const data = { |
|
|
workstationCode : goalParams.workstationCode, |
|
|
workstationCode : goalParams.workstationCode, |
|
|
equipmentCodes : equipmentCodes |
|
|
equipmentCodes : equipmentCodes |
|
@ -66,7 +66,7 @@ export const createEquipmentRelation = async (equipmentCodes:string[]) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 删除设备关联
|
|
|
// 删除设备关联
|
|
|
export const deleteEquipmentRelation = async (equipmentCodes:string[]) => { |
|
|
export const deleteEquipment = async (equipmentCodes:string[]) => { |
|
|
const data = { |
|
|
const data = { |
|
|
workstationCode : goalParams.workstationCode, |
|
|
workstationCode : goalParams.workstationCode, |
|
|
equipmentCodes : equipmentCodes |
|
|
equipmentCodes : equipmentCodes |
|
@ -118,35 +118,25 @@ export const getOperstepsPage = async (params) => { |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/mes/workstation-opersteps/senior', data }) |
|
|
return await request.post({ url: '/mes/workstation-opersteps/senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.get({ url: `/mes/workstation-opersteps/pageListByWorkstationCode`, params }) |
|
|
return await request.get({ url: `/mes/workstation-opersteps/getWorkstationOperstepsPage`, params }) |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
export const checkOperstepsPageList = async (params) => { |
|
|
|
|
|
params.workstationCode = goalParams.workstationCode |
|
|
|
|
|
if (params.isSearch) { |
|
|
|
|
|
delete params.isSearch |
|
|
|
|
|
const data = {...params} |
|
|
|
|
|
return await request.post({ url: '/mes/workstation-opersteps/senior', data }) |
|
|
|
|
|
} else { |
|
|
|
|
|
return await request.get({ url: `/mes/workstation-opersteps/pageCheckListByWorkstationCode`, params }) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 添加操作步骤关联
|
|
|
// 添加操作步骤关联
|
|
|
export const createOperstepsRelation = async (codes:string[]) => { |
|
|
export const createOpersteps = async (codes:string[]) => { |
|
|
const data = { |
|
|
const data = { |
|
|
workstationCode : goalParams.workstationCode, |
|
|
workstationCode : goalParams.workstationCode, |
|
|
operstepsCodes : codes |
|
|
operstepsCodes : codes |
|
|
} |
|
|
} |
|
|
return await request.post({ url: `/mes/workstation-opersteps/createRelation`, data }) |
|
|
return await request.post({ url: `/mes/workstation-opersteps/create`, data }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 删除操作步骤关联
|
|
|
// 删除操作步骤关联
|
|
|
export const deleteOperstepsRelation = async (codes:string[]) => { |
|
|
export const deleteOpersteps = async (codes:string[]) => { |
|
|
const data = { |
|
|
const data = { |
|
|
workstationCode : goalParams.workstationCode, |
|
|
workstationCode : goalParams.workstationCode, |
|
|
operstepsCodes : codes |
|
|
operstepsCodes : codes |
|
|
} |
|
|
} |
|
|
return await request.post({ url: `/mes/workstation-opersteps/deleteRelation`, data }) |
|
|
return await request.post({ url: `/mes/workstation-opersteps/delete`, data }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -157,7 +147,7 @@ export const getAbilityPage = async (params) => { |
|
|
const data = {...params} |
|
|
const data = {...params} |
|
|
return await request.post({ url: '/mes/workstation-ability/senior', data }) |
|
|
return await request.post({ url: '/mes/workstation-ability/senior', data }) |
|
|
} else { |
|
|
} else { |
|
|
return await request.get({ url: `/mes/workstation-ability/page`, params }) |
|
|
return await request.get({ url: `/mes/workstation-ability/getWorkstationAbilityPage`, params }) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
// 添加能力关联
|
|
|
// 添加能力关联
|
|
|