Browse Source

调试

master
zhaoyiran 9 months ago
parent
commit
72f656a852
  1. 16
      src/api/eam/mold/moldInspectionDetail/index.ts
  2. 20
      src/api/eam/mold/moldInspectionMain/index.ts
  3. 16
      src/api/eam/mold/moldMaintainOrderDetail/index.ts
  4. 22
      src/api/eam/mold/moldMaintainOrderMain/index.ts
  5. 16
      src/api/eam/mold/moldMaintainPlan/index.ts
  6. 10
      src/api/eam/mold/moldMaintenanceDetail/index.ts
  7. 28
      src/api/eam/mold/moldMaintenanceMain/index.ts
  8. 18
      src/api/eam/mold/moldRepair/index.ts
  9. 16
      src/api/eam/mold/moldSpotInspectionRecordMain/index.ts

16
src/api/eam/mold/moldInspectionDetail/index.ts

@ -23,38 +23,38 @@ export const getMoldInspectionDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/device-inspection-job-detail/senior', data })
return await request.post({ url: '/eam/mold-inspection-job-detail/senior', data })
} else {
return await request.get({ url: `/eam/device-inspection-job-detail/page`, params })
return await request.get({ url: `/eam/mold-inspection-job-detail/page`, params })
}
}
// 查询检修工单子详情
export const getMoldInspectionDetail = async (id: number) => {
return await request.get({ url: `/eam/device-inspection-job-detail/get?id=` + id })
return await request.get({ url: `/eam/mold-inspection-job-detail/get?id=` + id })
}
// 新增检修工单子
export const createMoldInspectionDetail = async (data: MoldInspectionDetailVO) => {
return await request.post({ url: `/eam/device-inspection-job-detail/create`, data })
return await request.post({ url: `/eam/mold-inspection-job-detail/create`, data })
}
// 修改检修工单子
export const updateMoldInspectionDetail = async (data: MoldInspectionDetailVO) => {
return await request.put({ url: `/eam/device-inspection-job-detail/update`, data })
return await request.put({ url: `/eam/mold-inspection-job-detail/update`, data })
}
// 删除检修工单子
export const deleteMoldInspectionDetail = async (id: number) => {
return await request.delete({ url: `/eam/device-inspection-job-detail/delete?id=` + id })
return await request.delete({ url: `/eam/mold-inspection-job-detail/delete?id=` + id })
}
// 导出检修工单子 Excel
export const exportMoldInspectionDetail = async (params) => {
return await request.download({ url: `/eam/device-inspection-job-detail/export-excel`, params })
return await request.download({ url: `/eam/mold-inspection-job-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/device-inspection-job-detail/get-import-template' })
return request.download({ url: '/eam/mold-inspection-job-detail/get-import-template' })
}

20
src/api/eam/mold/moldInspectionMain/index.ts

@ -21,50 +21,50 @@ export const getMoldInspectionMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/device-inspection-job-main/senior', data })
return await request.post({ url: '/eam/mold-inspection-job-main/senior', data })
} else {
return await request.get({ url: `/eam/device-inspection-job-main/page`, params })
return await request.get({ url: `/eam/mold-inspection-job-main/page`, params })
}
}
// 查询检修工单主详情
export const getMoldInspectionMain = async (id: number) => {
return await request.get({ url: `/eam/device-inspection-job-main/get?id=` + id })
return await request.get({ url: `/eam/mold-inspection-job-main/get?id=` + id })
}
// 新增检修工单主
export const createMoldInspectionMain = async (data: MoldInspectionMainVO) => {
return await request.post({ url: `/eam/device-inspection-job-main/createPC`, data })
return await request.post({ url: `/eam/mold-inspection-job-main/createPC`, data })
}
// 修改检修工单主
export const updateMoldInspectionMain = async (data: MoldInspectionMainVO) => {
return await request.put({ url: `/eam/device-inspection-job-main/update`, data })
return await request.put({ url: `/eam/mold-inspection-job-main/update`, data })
}
// 删除检修工单主
export const deleteMoldInspectionMain = async (id: number) => {
return await request.delete({ url: `/eam/device-inspection-job-main/delete?id=` + id })
return await request.delete({ url: `/eam/mold-inspection-job-main/delete?id=` + id })
}
// 导出检修工单主 Excel
export const exportMoldInspectionMain = async (params) => {
return await request.download({ url: `/eam/device-inspection-job-main/export-excel`, params })
return await request.download({ url: `/eam/mold-inspection-job-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/device-inspection-job-main/get-import-template' })
return request.download({ url: '/eam/mold-inspection-job-main/get-import-template' })
}
// 查询检修工单主列表
export const getMoldInspectionMainNoPage = async (params) => {
return await request.get({ url: `/eam/device-inspection-job-main/noPage`, params })
return await request.get({ url: `/eam/mold-inspection-job-main/noPage`, params })
}
//验证
export const verifyOrder = async (id: number,verifyContent: string) => {
return await request.get({ url: `/eam/device-inspection-job-main/onVerify?id=`+id+`&verifyContent=` + verifyContent })
return await request.get({ url: `/eam/mold-inspection-job-main/onVerify?id=`+id+`&verifyContent=` + verifyContent })
}

16
src/api/eam/mold/moldMaintainOrderDetail/index.ts

@ -23,38 +23,38 @@ export const getMoldMaintainOrderDetailPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/device-maintain-job-detail/senior', data })
return await request.post({ url: '/eam/mold-maintain-job-detail/senior', data })
} else {
return await request.get({ url: `/eam/device-maintain-job-detail/page`, params })
return await request.get({ url: `/eam/mold-maintain-job-detail/page`, params })
}
}
// 查询保养工单子详情
export const getMoldMaintainOrderDetail = async (id: number) => {
return await request.get({ url: `/eam/device-maintain-job-detail/get?id=` + id })
return await request.get({ url: `/eam/mold-maintain-job-detail/get?id=` + id })
}
// 新增保养工单子
export const createMoldMaintainOrderDetail = async (data: MoldMaintainOrderDetailVO) => {
return await request.post({ url: `/eam/device-maintain-job-detail/create`, data })
return await request.post({ url: `/eam/mold-maintain-job-detail/create`, data })
}
// 修改保养工单子
export const updateMoldMaintainOrderDetail = async (data: MoldMaintainOrderDetailVO) => {
return await request.put({ url: `/eam/device-maintain-job-detail/update`, data })
return await request.put({ url: `/eam/mold-maintain-job-detail/update`, data })
}
// 删除保养工单子
export const deleteMoldMaintainOrderDetail = async (id: number) => {
return await request.delete({ url: `/eam/device-maintain-job-detail/delete?id=` + id })
return await request.delete({ url: `/eam/mold-maintain-job-detail/delete?id=` + id })
}
// 导出保养工单子 Excel
export const exportMoldMaintainOrderDetail = async (params) => {
return await request.download({ url: `/eam/device-maintain-job-detail/export-excel`, params })
return await request.download({ url: `/eam/mold-maintain-job-detail/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/device-maintain-job-detail/get-import-template' })
return request.download({ url: '/eam/mold-maintain-job-detail/get-import-template' })
}

22
src/api/eam/mold/moldMaintainOrderMain/index.ts

@ -24,56 +24,56 @@ export const getMoldMaintainOrderMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/device-maintain-job-main/senior', data })
return await request.post({ url: '/eam/mold-maintain-job-main/senior', data })
} else {
params.type = 'MOLD'
return await request.get({ url: `/eam/device-maintain-job-main/page`, params })
return await request.get({ url: `/eam/mold-maintain-job-main/page`, params })
}
}
// 查询保养工单主详情
export const getMoldMaintainOrderMain = async (id: number) => {
return await request.get({ url: `/eam/device-maintain-job-main/get?id=` + id })
return await request.get({ url: `/eam/mold-maintain-job-main/get?id=` + id })
}
// 新增保养工单主
export const createMoldMaintainOrderMain = async (data: MoldMaintainOrderMainVO) => {
return await request.post({ url: `/eam/device-maintain-job-main/create`, data })
return await request.post({ url: `/eam/mold-maintain-job-main/create`, data })
}
// 修改保养工单主
export const updateMoldMaintainOrderMain = async (data: MoldMaintainOrderMainVO) => {
return await request.put({ url: `/eam/device-maintain-job-main/update`, data })
return await request.put({ url: `/eam/mold-maintain-job-main/update`, data })
}
// 删除保养工单主
export const deleteMoldMaintainOrderMain = async (id: number) => {
return await request.delete({ url: `/eam/device-maintain-job-main/delete?id=` + id })
return await request.delete({ url: `/eam/mold-maintain-job-main/delete?id=` + id })
}
// 导出保养工单主 Excel
export const exportMoldMaintainOrderMain = async (params) => {
return await request.download({ url: `/eam/device-maintain-job-main/export-excel`, params })
return await request.download({ url: `/eam/mold-maintain-job-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/device-maintain-job-main/get-import-template' })
return request.download({ url: '/eam/mold-maintain-job-main/get-import-template' })
}
// 保养接单
export const orderClick = (id: number) => {
return request.get({ url: '/eam/device-maintain-job-main/orderClick?id=' + id })
return request.get({ url: '/eam/mold-maintain-job-main/orderClick?id=' + id })
}
// 保养完成
export const orderClickFinish = (id: number) => {
return request.get({ url: '/eam/device-maintain-job-main/orderClickFinish?id=' + id })
return request.get({ url: '/eam/mold-maintain-job-main/orderClickFinish?id=' + id })
}
// 验证
export const orderClickApprove = (id: number,status: string,verifyContent: string) => {
return request.get({ url: '/eam/device-maintain-job-main/orderClickVerify?id=' + id + '&status=' + status + '&verifyContent=' + verifyContent })
return request.get({ url: '/eam/mold-maintain-job-main/orderClickVerify?id=' + id + '&status=' + status + '&verifyContent=' + verifyContent })
}

16
src/api/eam/mold/moldMaintainPlan/index.ts

@ -18,38 +18,38 @@ export const getMoldMaintainPlanPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/device-maintain-plan/senior', data })
return await request.post({ url: '/eam/mold-maintain-plan/senior', data })
} else {
return await request.get({ url: `/eam/device-maintain-plan/page`, params })
return await request.get({ url: `/eam/mold-maintain-plan/page`, params })
}
}
// 查询保养计划详情
export const getMoldMaintainPlan = async (id: number) => {
return await request.get({ url: `/eam/device-maintain-plan/get?id=` + id })
return await request.get({ url: `/eam/mold-maintain-plan/get?id=` + id })
}
// 新增保养计划
export const createMoldMaintainPlan = async (data: MoldMaintainPlanVO) => {
return await request.post({ url: `/eam/device-maintain-plan/create`, data })
return await request.post({ url: `/eam/mold-maintain-plan/create`, data })
}
// 修改保养计划
export const updateMoldMaintainPlan = async (data: MoldMaintainPlanVO) => {
return await request.put({ url: `/eam/device-maintain-plan/update`, data })
return await request.put({ url: `/eam/mold-maintain-plan/update`, data })
}
// 删除保养计划
export const deleteMoldMaintainPlan = async (id: number) => {
return await request.delete({ url: `/eam/device-maintain-plan/delete?id=` + id })
return await request.delete({ url: `/eam/mold-maintain-plan/delete?id=` + id })
}
// 导出保养计划 Excel
export const exportMoldMaintainPlan = async (params) => {
return await request.download({ url: `/eam/device-maintain-plan/export-excel`, params })
return await request.download({ url: `/eam/mold-maintain-plan/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/device-maintain-plan/get-import-template' })
return request.download({ url: '/eam/mold-maintain-plan/get-import-template' })
}

10
src/api/eam/mold/moldMaintenanceDetail/index.ts

@ -14,28 +14,28 @@ export const getMoldMaintenanceDetailPage = async (params) => {
    const data = {...params}
    return await request.post({ url: '/wms/purchasereceipt-request-detail/senior', data })
  } else {
    return await request.get({ url: `/eam/device-maintenance-job-detail/page`, params })
    return await request.get({ url: `/eam/mold-maintenance-job-detail/page`, params })
  }
}
// 查询维修工单子详情
export const getPurchasereceiptRequestDetail = async (id) => {
  return await request.get({ url: `/eam/device-maintenance-job-detail/selectListByNumber?id=` + id })
  return await request.get({ url: `/eam/mold-maintenance-job-detail/selectListByNumber?id=` + id })
}
// 新增维修工单子
export const createMoldMaintenanceDetail = async (data: MoldMaintenanceDetailVO) => {
  return await request.post({ url: `/eam/device-maintenance-job-detail/create`, data })
  return await request.post({ url: `/eam/mold-maintenance-job-detail/create`, data })
}
// 修改维修工单子
export const updateMoldMaintenanceDetail = async (data: MoldMaintenanceDetailVO) => {
  return await request.put({ url: `/eam/device-maintenance-job-detail/update`, data })
  return await request.put({ url: `/eam/mold-maintenance-job-detail/update`, data })
}
// 删除维修工单子
export const deleteMoldMaintenanceDetail = async (id: number) => {
  return await request.delete({ url: `/eam/device-maintenance-job-detail/delete?id=` + id })
  return await request.delete({ url: `/eam/mold-maintenance-job-detail/delete?id=` + id })
}

28
src/api/eam/mold/moldMaintenanceMain/index.ts

@ -22,71 +22,71 @@ export const getMoldMaintenanceMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/device-maintenance-job-main/senior', data })
return await request.post({ url: '/eam/mold-maintenance-job-main/senior', data })
} else {
return await request.get({ url: `/eam/device-maintenance-job-main/page`, params })
return await request.get({ url: `/eam/mold-maintenance-job-main/page`, params })
}
}
// 查询维修工单主详情
export const getMoldMaintenanceMain = async (id: number) => {
return await request.get({ url: `/eam/device-maintenance-job-main/get?id=` + id })
return await request.get({ url: `/eam/mold-maintenance-job-main/get?id=` + id })
}
// 新增维修工单主
export const createMoldMaintenanceMain = async (data: MoldMaintenanceMainVO) => {
return await request.post({ url: `/eam/device-maintenance-job-main/createPC`, data })
return await request.post({ url: `/eam/mold-maintenance-job-main/createPC`, data })
}
// 修改维修工单主
export const updateMoldMaintenanceMain = async (data: MoldMaintenanceMainVO) => {
return await request.put({ url: `/eam/device-maintenance-job-main/update`, data })
return await request.put({ url: `/eam/mold-maintenance-job-main/update`, data })
}
// 删除维修工单主
export const deleteMoldMaintenanceMain = async (id: number) => {
return await request.delete({ url: `/eam/device-maintenance-job-main/delete?id=` + id })
return await request.delete({ url: `/eam/mold-maintenance-job-main/delete?id=` + id })
}
// 导出维修工单主 Excel
export const exportMoldMaintenanceMain = async (params) => {
return await request.download({ url: `/eam/device-maintenance-job-main/export-excel`, params })
return await request.download({ url: `/eam/mold-maintenance-job-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/device-maintenance-job-main/get-import-template' })
return request.download({ url: '/eam/mold-maintenance-job-main/get-import-template' })
}
// 修改维修工单主
export const orderStepChange = async (data: MoldMaintenanceMainVO) => {
return await request.get({ url: `/eam/device-maintenance-job-main/orderClick?number=`+data.number+`&status=`+data.status+`&id=`+data.id+`&requestNumber=`+data.requestNumber })
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClick?number=`+data.number+`&status=`+data.status+`&id=`+data.id+`&requestNumber=`+data.requestNumber })
}
// 修改维修工单主
export const orderTurnTo = async (data: MoldMaintenanceMainVO) => {
return await request.get({ url: `/eam/device-maintenance-job-main/turnTo?deviceNumber=`+data.deviceNumber +`&id=`+data.id + `&receiverType=`+ data.type +`&receiverUserId=` + data.maintenance })
return await request.get({ url: `/eam/mold-maintenance-job-main/turnTo?deviceNumber=`+data.deviceNumber +`&id=`+data.id + `&receiverType=`+ data.type +`&receiverUserId=` + data.maintenance })
}
// 查询维修工单主列表不分页
export const getMoldMainTempList = async (type: String) => {
return await request.get({ url: `/eam/device-maintenance-job-main/getList?type=` + type })
return await request.get({ url: `/eam/mold-maintenance-job-main/getList?type=` + type })
}
// 完成维修工单
export const finishOrder = async (params) => {
return await request.get({ url: `/eam/device-maintenance-job-main/orderClickFinish`, params})
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClickFinish`, params})
}
// 申请人确认工单
export const confirmOrder = async (params) => {
return await request.get({ url: `/eam/device-maintenance-job-main/orderClickConfirm`, params})
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClickConfirm`, params})
}
// 校验维修工单
export const verifyOrder = async (params) => {
return await request.get({ url: `/eam/device-maintenance-job-main/orderClickVerify`, params})
return await request.get({ url: `/eam/mold-maintenance-job-main/orderClickVerify`, params})
}

18
src/api/eam/mold/moldRepair/index.ts

@ -20,43 +20,43 @@ export const getMoldRepairPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.post({ url: '/eam/device-repair-request/senior', data })
return await request.post({ url: '/eam/mold-repair-request/senior', data })
} else {
return await request.get({ url: `/eam/device-repair-request/page`, params })
return await request.get({ url: `/eam/mold-repair-request/page`, params })
}
}
// 查询报修申请详情
export const getMoldRepair = async (id: number) => {
return await request.get({ url: `/eam/device-repair-request/get?id=` + id })
return await request.get({ url: `/eam/mold-repair-request/get?id=` + id })
}
// 新增报修申请
export const createMoldRepair = async (data: MoldRepairVO) => {
return await request.post({ url: `/eam/device-repair-request/create`, data })
return await request.post({ url: `/eam/mold-repair-request/create`, data })
}
// 修改报修申请
export const updateMoldRepair = async (data: MoldRepairVO) => {
return await request.put({ url: `/eam/device-repair-request/update`, data })
return await request.put({ url: `/eam/mold-repair-request/update`, data })
}
// 删除报修申请
export const deleteMoldRepair = async (id: number) => {
return await request.delete({ url: `/eam/device-repair-request/delete?id=` + id })
return await request.delete({ url: `/eam/mold-repair-request/delete?id=` + id })
}
// 导出报修申请 Excel
export const exportMoldRepair = async (params) => {
return await request.download({ url: `/eam/device-repair-request/export-excel`, params })
return await request.download({ url: `/eam/mold-repair-request/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/device-repair-request/get-import-template' })
return request.download({ url: '/eam/mold-repair-request/get-import-template' })
}
// 撤销申请
export const rejected = (id: Number) => {
return request.delete({ url: '/eam/device-repair-request/cancel?id=' + id })
return request.delete({ url: '/eam/mold-repair-request/cancel?id=' + id })
}

16
src/api/eam/mold/moldSpotInspectionRecordMain/index.ts

@ -20,38 +20,38 @@ export const getDeviceSpotInspectionRecordMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/device-spot-inspection-record-main/senior', data })
return await request.post({ url: '/eam/mold-spot-inspection-record-main/senior', data })
} else {
return await request.get({ url: `/eam/device-spot-inspection-record-main/page`, params })
return await request.get({ url: `/eam/mold-spot-inspection-record-main/page`, params })
}
}
// 查询检修工单主详情
export const getDeviceSpotInspectionRecordMain = async (id: number) => {
return await request.get({ url: `/eam/device-spot-inspection-record-main/get?id=` + id })
return await request.get({ url: `/eam/mold-spot-inspection-record-main/get?id=` + id })
}
// 新增检修工单主
export const createDeviceSpotInspectionRecordMain = async (data: DeviceSpotInspectionRecordMainVO) => {
return await request.post({ url: `/eam/device-spot-inspection-record-main/create`, data })
return await request.post({ url: `/eam/mold-spot-inspection-record-main/create`, data })
}
// 修改检修工单主
export const updateDeviceSpotInspectionRecordMain = async (data: DeviceSpotInspectionRecordMainVO) => {
return await request.put({ url: `/eam/device-spot-inspection-record-main/update`, data })
return await request.put({ url: `/eam/mold-spot-inspection-record-main/update`, data })
}
// 删除检修工单主
export const deleteDeviceSpotInspectionRecordMain = async (id: number) => {
return await request.delete({ url: `/eam/device-spot-inspection-record-main/delete?id=` + id })
return await request.delete({ url: `/eam/mold-spot-inspection-record-main/delete?id=` + id })
}
// 导出检修工单主 Excel
export const exportDeviceSpotInspectionRecordMain = async (params) => {
return await request.download({ url: `/eam/device-spot-inspection-record-main/export-excel`, params })
return await request.download({ url: `/eam/mold-spot-inspection-record-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/device-spot-inspection-record-main/get-import-template' })
return request.download({ url: '/eam/mold-spot-inspection-record-main/get-import-template' })
}
Loading…
Cancel
Save