diff --git a/api/device.js b/api/device.js index 828b1b0..abab97d 100644 --- a/api/device.js +++ b/api/device.js @@ -11,7 +11,7 @@ export function getDeviceDetailsByNumber(params) { // 添加报修 export function deviceRepairCreate(data) { return request({ - url: '/eam/device-repair/create', + url: '/eam/device-repair-request/create', 'method': 'POST', data }) @@ -19,7 +19,7 @@ export function deviceRepairCreate(data) { // 报修列表 export function deviceRepairPage(params) { return request({ - url: '/eam/device-repair/getAppPage', + url: '/eam/device-repair-request/getAppPage', 'method': 'GET', params }) @@ -28,7 +28,7 @@ export function deviceRepairPage(params) { // 撤销 export function rejected(id) { return request({ - url: '/eam/device-repair/rejected?id='+id, + url: '/eam/device-repair-request/rejected?id='+id, 'method': 'DELETE', }) } diff --git a/api/sparePartsApplication.js b/api/sparePartsApplication.js index a27074d..d2793b8 100644 --- a/api/sparePartsApplication.js +++ b/api/sparePartsApplication.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 备件领用列表 export function sparePartsApplicationPage(params) { return request({ - url: '/eam/item-apply-main/getAppPage', + url: '/eam/item-apply-request-main/getAppPage', 'method': 'GET', params }) @@ -11,7 +11,7 @@ export function sparePartsApplicationPage(params) { // 领用备件 export function sparePartsApplicationCreate(data) { return request({ - url: '/eam/item-apply-main/create', + url: '/eam/item-apply-request-main/create', 'method': 'POST', data }) @@ -19,14 +19,14 @@ export function sparePartsApplicationCreate(data) { // 撤回领用备件 export function sparePartsApplicationCancle(id) { return request({ - url: '/eam/item-apply-main/backout?id=' + id, + url: '/eam/item-apply-request-main/backout?id=' + id, 'method': 'GET', }) } // 领用备件详情 export function sparePartsApplicationDetail(number) { return request({ - url: '/eam/item-apply-main/appGetByNumber?number=' + number, + url: '/eam/item-apply-request-main/appGetByNumber?number=' + number, 'method': 'GET', }) } \ No newline at end of file diff --git a/api/sparePartsApplicationApprove.js b/api/sparePartsApplicationApprove.js index 4f4a9df..5ea8e6c 100644 --- a/api/sparePartsApplicationApprove.js +++ b/api/sparePartsApplicationApprove.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 备件领用审批列表 export function sparePartsApplicationApprovePage(params) { return request({ - url: '/eam/item-apply-main/getAppApprovePage', + url: '/eam/item-apply-request-main/getAppApprovePage', 'method': 'GET', params }) @@ -11,14 +11,14 @@ export function sparePartsApplicationApprovePage(params) { // 通过申请 export function sparePartsApplicationAgree(id) { return request({ - url: '/eam/item-apply-main/agree?id='+id, + url: '/eam/item-apply-request-main/agree?id='+id, 'method': 'GET' }) } // 驳回申请 export function sparePartsApplicationReject(id) { return request({ - url: '/eam/item-apply-main/disAgree?id='+id, + url: '/eam/item-apply-request-main/disAgree?id='+id, 'method': 'GET' }) } diff --git a/api/sparePartsServiceWorkOrderList.js b/api/sparePartsServiceWorkOrderList.js index 9a5951a..ff10c93 100644 --- a/api/sparePartsServiceWorkOrderList.js +++ b/api/sparePartsServiceWorkOrderList.js @@ -3,7 +3,7 @@ import request from '@/utils/request' // 领用备件 export function sparePartsServiceWorkOrderListCreate(data) { return request({ - url: '/eam/item-maintenance/create', + url: '/eam/item-maintenance-record/create', 'method': 'POST', data }) @@ -11,7 +11,7 @@ export function sparePartsServiceWorkOrderListCreate(data) { // 备件维修列表 export function sparePartsServiceWorkOrderListPage(params) { return request({ - url: '/eam/item-maintenance/getAppPage', + url: '/eam/item-maintenance-record/getAppPage', 'method': 'GET', params })