Browse Source

修改请求路径

master
ljlong_2630 9 months ago
parent
commit
5fe3dcc07c
  1. 16
      src/api/eam/device/deviceInspectionDetail/index.ts
  2. 16
      src/api/eam/device/deviceInspectionMain/index.ts
  3. 16
      src/api/eam/device/deviceMaintainOrderDetail/index.ts
  4. 20
      src/api/eam/device/deviceMaintainOrderMain/index.ts
  5. 10
      src/api/eam/device/deviceMaintenanceDetail/index.ts
  6. 22
      src/api/eam/device/deviceMaintenanceMain/index.ts
  7. 18
      src/api/eam/device/deviceRepair/index.ts
  8. 16
      src/api/eam/mold/moldInspectionDetail/index.ts
  9. 16
      src/api/eam/mold/moldInspectionMain/index.ts
  10. 16
      src/api/eam/mold/moldMaintainOrderDetail/index.ts
  11. 20
      src/api/eam/mold/moldMaintainOrderMain/index.ts
  12. 10
      src/api/eam/mold/moldMaintenanceDetail/index.ts
  13. 22
      src/api/eam/mold/moldMaintenanceMain/index.ts
  14. 16
      src/api/eam/mold/moldRepair/index.ts
  15. 2
      src/views/eam/device/deviceInspectionMain/index.vue
  16. 2
      src/views/eam/device/deviceMaintainOrderMain/index.vue
  17. 2
      src/views/eam/device/deviceMaintenanceMain/index.vue
  18. 2
      src/views/eam/device/deviceRepair/index.vue
  19. 2
      src/views/eam/device/deviceSpotInspectionRecordMain/index.vue

16
src/api/eam/device/deviceInspectionDetail/index.ts

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

16
src/api/eam/device/deviceInspectionMain/index.ts

@ -20,38 +20,38 @@ export const getDeviceInspectionMainPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/device-inspection-main/senior', data }) return await request.post({ url: '/eam/device-inspection-job-main/senior', data })
} else { } else {
return await request.get({ url: `/eam/device-inspection-main/page`, params }) return await request.get({ url: `/eam/device-inspection-job-main/page`, params })
} }
} }
// 查询检修工单主详情 // 查询检修工单主详情
export const getDeviceInspectionMain = async (id: number) => { export const getDeviceInspectionMain = async (id: number) => {
return await request.get({ url: `/eam/device-inspection-main/get?id=` + id }) return await request.get({ url: `/eam/device-inspection-job-main/get?id=` + id })
} }
// 新增检修工单主 // 新增检修工单主
export const createDeviceInspectionMain = async (data: DeviceInspectionMainVO) => { export const createDeviceInspectionMain = async (data: DeviceInspectionMainVO) => {
return await request.post({ url: `/eam/device-inspection-main/createPC`, data }) return await request.post({ url: `/eam/device-inspection-job-main/createPC`, data })
} }
// 修改检修工单主 // 修改检修工单主
export const updateDeviceInspectionMain = async (data: DeviceInspectionMainVO) => { export const updateDeviceInspectionMain = async (data: DeviceInspectionMainVO) => {
return await request.put({ url: `/eam/device-inspection-main/update`, data }) return await request.put({ url: `/eam/device-inspection-job-main/update`, data })
} }
// 删除检修工单主 // 删除检修工单主
export const deleteDeviceInspectionMain = async (id: number) => { export const deleteDeviceInspectionMain = async (id: number) => {
return await request.delete({ url: `/eam/device-inspection-main/delete?id=` + id }) return await request.delete({ url: `/eam/device-inspection-job-main/delete?id=` + id })
} }
// 导出检修工单主 Excel // 导出检修工单主 Excel
export const exportDeviceInspectionMain = async (params) => { export const exportDeviceInspectionMain = async (params) => {
return await request.download({ url: `/eam/device-inspection-main/export-excel`, params }) return await request.download({ url: `/eam/device-inspection-job-main/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/device-inspection-main/get-import-template' }) return request.download({ url: '/eam/device-inspection-job-main/get-import-template' })
} }

16
src/api/eam/device/deviceMaintainOrderDetail/index.ts

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

20
src/api/eam/device/deviceMaintainOrderMain/index.ts

@ -23,49 +23,49 @@ export const getDeviceMaintainOrderMainPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/device-maintain-order-main/senior', data }) return await request.post({ url: '/eam/device-maintain-job-main/senior', data })
} else { } else {
return await request.get({ url: `/eam/device-maintain-order-main/page`, params }) return await request.get({ url: `/eam/device-maintain-job-main/page`, params })
} }
} }
// 查询保养工单主详情 // 查询保养工单主详情
export const getDeviceMaintainOrderMain = async (id: number) => { export const getDeviceMaintainOrderMain = async (id: number) => {
return await request.get({ url: `/eam/device-maintain-order-main/get?id=` + id }) return await request.get({ url: `/eam/device-maintain-job-main/get?id=` + id })
} }
// 新增保养工单主 // 新增保养工单主
export const createDeviceMaintainOrderMain = async (data: DeviceMaintainOrderMainVO) => { export const createDeviceMaintainOrderMain = async (data: DeviceMaintainOrderMainVO) => {
return await request.post({ url: `/eam/device-maintain-order-main/create`, data }) return await request.post({ url: `/eam/device-maintain-job-main/create`, data })
} }
// 修改保养工单主 // 修改保养工单主
export const updateDeviceMaintainOrderMain = async (data: DeviceMaintainOrderMainVO) => { export const updateDeviceMaintainOrderMain = async (data: DeviceMaintainOrderMainVO) => {
return await request.put({ url: `/eam/device-maintain-order-main/update`, data }) return await request.put({ url: `/eam/device-maintain-job-main/update`, data })
} }
// 删除保养工单主 // 删除保养工单主
export const deleteDeviceMaintainOrderMain = async (id: number) => { export const deleteDeviceMaintainOrderMain = async (id: number) => {
return await request.delete({ url: `/eam/device-maintain-order-main/delete?id=` + id }) return await request.delete({ url: `/eam/device-maintain-job-main/delete?id=` + id })
} }
// 导出保养工单主 Excel // 导出保养工单主 Excel
export const exportDeviceMaintainOrderMain = async (params) => { export const exportDeviceMaintainOrderMain = async (params) => {
return await request.download({ url: `/eam/device-maintain-order-main/export-excel`, params }) return await request.download({ url: `/eam/device-maintain-job-main/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/device-maintain-order-main/get-import-template' }) return request.download({ url: '/eam/device-maintain-job-main/get-import-template' })
} }
// 保养接单 // 保养接单
export const orderClick = (id: number) => { export const orderClick = (id: number) => {
return request.get({ url: '/eam/device-maintain-order-main/orderClick?id=' + id }) return request.get({ url: '/eam/device-maintain-job-main/orderClick?id=' + id })
} }
// 保养完成 // 保养完成
export const orderClickFinish = (id: number) => { export const orderClickFinish = (id: number) => {
return request.get({ url: '/eam/device-maintain-order-main/orderClickFinish?id=' + id }) return request.get({ url: '/eam/device-maintain-job-main/orderClickFinish?id=' + id })
} }

10
src/api/eam/device/deviceMaintenanceDetail/index.ts

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

22
src/api/eam/device/deviceMaintenanceMain/index.ts

@ -22,53 +22,53 @@ export const getDeviceMaintenanceMainPage = async (params) => {
if (params.isSearch) { if (params.isSearch) {
delete params.isSearch delete params.isSearch
const data = {...params} const data = {...params}
return await request.post({ url: '/eam/device-maintenance-main/senior', data }) return await request.post({ url: '/eam/device-maintenance-job-main/senior', data })
} else { } else {
return await request.get({ url: `/eam/device-maintenance-main/page`, params }) return await request.get({ url: `/eam/device-maintenance-job-main/page`, params })
} }
} }
// 查询维修工单主详情 // 查询维修工单主详情
export const getDeviceMaintenanceMain = async (id: number) => { export const getDeviceMaintenanceMain = async (id: number) => {
return await request.get({ url: `/eam/device-maintenance-main/get?id=` + id }) return await request.get({ url: `/eam/device-maintenance-job-main/get?id=` + id })
} }
// 新增维修工单主 // 新增维修工单主
export const createDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => { export const createDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => {
return await request.post({ url: `/eam/device-maintenance-main/createPC`, data }) return await request.post({ url: `/eam/device-maintenance-job-main/createPC`, data })
} }
// 修改维修工单主 // 修改维修工单主
export const updateDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => { export const updateDeviceMaintenanceMain = async (data: DeviceMaintenanceMainVO) => {
return await request.put({ url: `/eam/device-maintenance-main/update`, data }) return await request.put({ url: `/eam/device-maintenance-job-main/update`, data })
} }
// 删除维修工单主 // 删除维修工单主
export const deleteDeviceMaintenanceMain = async (id: number) => { export const deleteDeviceMaintenanceMain = async (id: number) => {
return await request.delete({ url: `/eam/device-maintenance-main/delete?id=` + id }) return await request.delete({ url: `/eam/device-maintenance-job-main/delete?id=` + id })
} }
// 导出维修工单主 Excel // 导出维修工单主 Excel
export const exportDeviceMaintenanceMain = async (params) => { export const exportDeviceMaintenanceMain = async (params) => {
return await request.download({ url: `/eam/device-maintenance-main/export-excel`, params }) return await request.download({ url: `/eam/device-maintenance-job-main/export-excel`, params })
} }
// 下载用户导入模板 // 下载用户导入模板
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/eam/device-maintenance-main/get-import-template' }) return request.download({ url: '/eam/device-maintenance-job-main/get-import-template' })
} }
// 修改维修工单主 // 修改维修工单主
export const orderStepChange = async (data: DeviceMaintenanceMainVO) => { export const orderStepChange = async (data: DeviceMaintenanceMainVO) => {
return await request.get({ url: `/eam/device-maintenance-main/orderClick?number=`+data.number+`&status=`+data.status+`&id=`+data.id+`&requestNumber=`+data.requestNumber }) return await request.get({ url: `/eam/device-maintenance-job-main/orderClick?number=`+data.number+`&status=`+data.status+`&id=`+data.id+`&requestNumber=`+data.requestNumber })
} }
// 修改维修工单主 // 修改维修工单主
export const orderTurnTo = async (data: DeviceMaintenanceMainVO) => { export const orderTurnTo = async (data: DeviceMaintenanceMainVO) => {
return await request.get({ url: `/eam/device-maintenance-main/turnTo?deviceNumber=`+data.deviceNumber +`&id=`+data.id + `&receiverType=`+ data.type +`&receiverUserId=` + data.maintenance }) return await request.get({ url: `/eam/device-maintenance-job-main/turnTo?deviceNumber=`+data.deviceNumber +`&id=`+data.id + `&receiverType=`+ data.type +`&receiverUserId=` + data.maintenance })
} }
// 查询维修工单主列表不分页 // 查询维修工单主列表不分页
export const getDeviceMainTempList = async (type: String) => { export const getDeviceMainTempList = async (type: String) => {
return await request.get({ url: `/eam/device-maintenance-main/getList?type=` + type }) return await request.get({ url: `/eam/device-maintenance-job-main/getList?type=` + type })
} }

18
src/api/eam/device/deviceRepair/index.ts

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2
src/views/eam/device/deviceInspectionMain/index.vue

@ -73,7 +73,7 @@
/> />
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/eam/device-inspection-main/import" :importTemplateData="importTemplateData" <ImportForm ref="importFormRef" url="/eam/device-inspection-job-main/import" :importTemplateData="importTemplateData"
@success="importSuccess" /> @success="importSuccess" />
</template> </template>

2
src/views/eam/device/deviceMaintainOrderMain/index.vue

@ -90,7 +90,7 @@
<!-- 导入 --> <!-- 导入 -->
<ImportForm <ImportForm
ref="importFormRef" ref="importFormRef"
url="/eam/device-maintenance-main/import" url="/eam/device-maintenance-job-main/import"
:importTemplateData="importTemplateData" :importTemplateData="importTemplateData"
@success="importSuccess" @success="importSuccess"
/> />

2
src/views/eam/device/deviceMaintenanceMain/index.vue

@ -87,7 +87,7 @@
<!-- 导入 --> <!-- 导入 -->
<ImportForm <ImportForm
ref="importFormRef" ref="importFormRef"
url="/eam/device-maintenance-main/import" url="/eam/device-maintenance-job-main/import"
:importTemplateData="importTemplateData" :importTemplateData="importTemplateData"
@success="importSuccess" @success="importSuccess"
/> />

2
src/views/eam/device/deviceRepair/index.vue

@ -48,7 +48,7 @@
</Dialog> </Dialog>
<!-- 导入 --> <!-- 导入 -->
<ImportForm ref="importFormRef" url="/eam/device-repair/import" :importTemplateData="importTemplateData" <ImportForm ref="importFormRef" url="/eam/device-repair-request/import" :importTemplateData="importTemplateData"
@success="importSuccess" /> @success="importSuccess" />
</template> </template>

2
src/views/eam/device/deviceSpotInspectionRecordMain/index.vue

@ -87,7 +87,7 @@
<!-- 导入 --> <!-- 导入 -->
<ImportForm <ImportForm
ref="importFormRef" ref="importFormRef"
url="/eam/device-maintenance-main/import" url="/eam/device-maintenance-job-main/import"
:importTemplateData="importTemplateData" :importTemplateData="importTemplateData"
@success="importSuccess" @success="importSuccess"
/> />

Loading…
Cancel
Save