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) { export function deviceRepairCreate(data) {
return request({ return request({
url: '/eam/device-repair/create', url: '/eam/device-repair-request/create',
'method': 'POST', 'method': 'POST',
data data
}) })
@ -19,7 +19,7 @@ export function deviceRepairCreate(data) {
// 报修列表 // 报修列表
export function deviceRepairPage(params) { export function deviceRepairPage(params) {
return request({ return request({
url: '/eam/device-repair/getAppPage', url: '/eam/device-repair-request/getAppPage',
'method': 'GET', 'method': 'GET',
params params
}) })
@ -28,7 +28,7 @@ export function deviceRepairPage(params) {
// 撤销 // 撤销
export function rejected(id) { export function rejected(id) {
return request({ return request({
url: '/eam/device-repair/rejected?id='+id, url: '/eam/device-repair-request/rejected?id='+id,
'method': 'DELETE', 'method': 'DELETE',
}) })
} }

8
api/sparePartsApplication.js

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 备件领用列表 // 备件领用列表
export function sparePartsApplicationPage(params) { export function sparePartsApplicationPage(params) {
return request({ return request({
url: '/eam/item-apply-main/getAppPage', url: '/eam/item-apply-request-main/getAppPage',
'method': 'GET', 'method': 'GET',
params params
}) })
@ -11,7 +11,7 @@ export function sparePartsApplicationPage(params) {
// 领用备件 // 领用备件
export function sparePartsApplicationCreate(data) { export function sparePartsApplicationCreate(data) {
return request({ return request({
url: '/eam/item-apply-main/create', url: '/eam/item-apply-request-main/create',
'method': 'POST', 'method': 'POST',
data data
}) })
@ -19,14 +19,14 @@ export function sparePartsApplicationCreate(data) {
// 撤回领用备件 // 撤回领用备件
export function sparePartsApplicationCancle(id) { export function sparePartsApplicationCancle(id) {
return request({ return request({
url: '/eam/item-apply-main/backout?id=' + id, url: '/eam/item-apply-request-main/backout?id=' + id,
'method': 'GET', 'method': 'GET',
}) })
} }
// 领用备件详情 // 领用备件详情
export function sparePartsApplicationDetail(number) { export function sparePartsApplicationDetail(number) {
return request({ return request({
url: '/eam/item-apply-main/appGetByNumber?number=' + number, url: '/eam/item-apply-request-main/appGetByNumber?number=' + number,
'method': 'GET', 'method': 'GET',
}) })
} }

6
api/sparePartsApplicationApprove.js

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 备件领用审批列表 // 备件领用审批列表
export function sparePartsApplicationApprovePage(params) { export function sparePartsApplicationApprovePage(params) {
return request({ return request({
url: '/eam/item-apply-main/getAppApprovePage', url: '/eam/item-apply-request-main/getAppApprovePage',
'method': 'GET', 'method': 'GET',
params params
}) })
@ -11,14 +11,14 @@ export function sparePartsApplicationApprovePage(params) {
// 通过申请 // 通过申请
export function sparePartsApplicationAgree(id) { export function sparePartsApplicationAgree(id) {
return request({ return request({
url: '/eam/item-apply-main/agree?id='+id, url: '/eam/item-apply-request-main/agree?id='+id,
'method': 'GET' 'method': 'GET'
}) })
} }
// 驳回申请 // 驳回申请
export function sparePartsApplicationReject(id) { export function sparePartsApplicationReject(id) {
return request({ return request({
url: '/eam/item-apply-main/disAgree?id='+id, url: '/eam/item-apply-request-main/disAgree?id='+id,
'method': 'GET' 'method': 'GET'
}) })
} }

4
api/sparePartsServiceWorkOrderList.js

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 领用备件 // 领用备件
export function sparePartsServiceWorkOrderListCreate(data) { export function sparePartsServiceWorkOrderListCreate(data) {
return request({ return request({
url: '/eam/item-maintenance/create', url: '/eam/item-maintenance-record/create',
'method': 'POST', 'method': 'POST',
data data
}) })
@ -11,7 +11,7 @@ export function sparePartsServiceWorkOrderListCreate(data) {
// 备件维修列表 // 备件维修列表
export function sparePartsServiceWorkOrderListPage(params) { export function sparePartsServiceWorkOrderListPage(params) {
return request({ return request({
url: '/eam/item-maintenance/getAppPage', url: '/eam/item-maintenance-record/getAppPage',
'method': 'GET', 'method': 'GET',
params params
}) })

Loading…
Cancel
Save