Browse Source

接口地址

master
zhang_li 9 months ago
parent
commit
9b029c79f4
  1. 6
      api/device.js
  2. 8
      api/sparePartsApplication.js
  3. 6
      api/sparePartsApplicationApprove.js
  4. 4
      api/sparePartsServiceWorkOrderList.js

6
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',
})
}

8
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',
})
}

6
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'
})
}

4
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
})

Loading…
Cancel
Save