|
@@ -21,29 +21,29 @@ export interface PageParam {
|
|
|
|
|
|
|
|
// 查询设备工艺列表
|
|
// 查询设备工艺列表
|
|
|
export const listTechnology = async (params: PageParam) => {
|
|
export const listTechnology = async (params: PageParam) => {
|
|
|
- return await request.get({ url: '/iscs/machinery/getIsMachineryPage', params })
|
|
|
|
|
|
|
+ return await request.get({ url: '/iscs/machinery/getMachineryPage', params })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 查询设备工艺详情
|
|
// 查询设备工艺详情
|
|
|
export const getTechnologyInfo = async (id: number) => {
|
|
export const getTechnologyInfo = async (id: number) => {
|
|
|
- return await request.get({ url: '/iscs/machinery/selectIsMachineryById', params: { machineryId: id } })
|
|
|
|
|
|
|
+ return await request.get({ url: '/iscs/machinery/selectMachineryById', params: { id: id } })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 新增设备工艺
|
|
// 新增设备工艺
|
|
|
export const addTechnology = async (data: MachineryVO) => {
|
|
export const addTechnology = async (data: MachineryVO) => {
|
|
|
- return await request.post({ url: '/iscs/machinery/insertIsMachinery', data })
|
|
|
|
|
|
|
+ return await request.post({ url: '/iscs/machinery/insertMachinery', data })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 修改设备工艺
|
|
// 修改设备工艺
|
|
|
export const updateTechnology = async (data: MachineryVO) => {
|
|
export const updateTechnology = async (data: MachineryVO) => {
|
|
|
- return await request.post({ url: '/iscs/machinery/updateIsMachinery', data })
|
|
|
|
|
|
|
+ return await request.put({ url: '/iscs/machinery/updateMachinery', data })
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 删除设备工艺
|
|
// 删除设备工艺
|
|
|
export const delTechnology = async (id: number) => {
|
|
export const delTechnology = async (id: number) => {
|
|
|
- return await request.post({
|
|
|
|
|
- url: '/iscs/machinery/deleteIsMachineryByTechnologyIds',
|
|
|
|
|
- params: { machineryIds: id }
|
|
|
|
|
|
|
+ return await request.delete({
|
|
|
|
|
+ url: '/iscs/machinery/deleteMachineryList',
|
|
|
|
|
+ params: { ids: id }
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -51,3 +51,7 @@ export const delTechnology = async (id: number) => {
|
|
|
export const saveMachineryPoints = async (data: any) => {
|
|
export const saveMachineryPoints = async (data: any) => {
|
|
|
return await request.post({ url: '/iscs/machinery/saveMachineryPoints', data })
|
|
return await request.post({ url: '/iscs/machinery/saveMachineryPoints', data })
|
|
|
}
|
|
}
|
|
|
|
|
+// 导出设备工艺详情
|
|
|
|
|
+export const exportMachineryExcel = async (params: PageParam) => {
|
|
|
|
|
+ return await request.get({ url: '/iscs/machinery/exportMachineryExcel', params})
|
|
|
|
|
+}
|