Browse Source

调试

master
zhaoyiran 7 months ago
parent
commit
9c70b5cfbf
  1. 6
      src/api/eam/device/deviceInspectionMain/index.ts
  2. 6
      src/api/eam/device/deviceMaintenanceMain/index.ts
  3. 4
      src/api/eam/device/deviceRepair/index.ts
  4. 4
      src/api/eam/mold/moldRepair/index.ts
  5. 4
      src/views/eam/device/deviceRepair/index.vue

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

@ -60,7 +60,7 @@ export const importTemplate = () => {
// 检修完成
export const finishInspection = (id: number) => {
return request.get({ url: `/eam/device-inspection-job-main/onClick?id=` + id })
return request.get({ url: `/eam/device-inspection-job-main/orderClickFinish?id=` + id })
}
@ -72,5 +72,5 @@ export const getDeviceInspectionMainNoPage = async (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/device-inspection-job-main/orderClickVerify?id=`+id+`&verifyContent=` + verifyContent })
}

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

@ -76,19 +76,19 @@ export const getDeviceMainTempList = async (type: String) => {
// 完成维修工单
export const finishOrder = async (params) => {
return await request.get({ url: `/eam/device-maintenance-job-main/orderClick`, params})
return await request.get({ url: `/eam/device-maintenance-job-main/orderClickFinish`, params})
}
// 校验维修工单
export const verifyOrder = async (params) => {
return await request.get({ url: `/eam/device-maintenance-job-main/orderClick`, params})
return await request.get({ url: `/eam/device-maintenance-job-main/orderClickVerify`, params})
}
// 确认维修工单
export const confirmOrder = async (params) => {
return await request.get({ url: `/eam/device-maintenance-job-main/orderClick`, params})
return await request.get({ url: `/eam/device-maintenance-job-main/orderClickConfirm`, params})
}

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

@ -57,8 +57,8 @@ export const importTemplate = () => {
}
// 撤销申请
export const rejected = (id: Number) => {
return request.delete({ url: '/eam/device-repair-request/rejected?id=' + id })
export const cancel = (id: Number) => {
return request.delete({ url: '/eam/device-repair-request/cancel?id=' + id })
}

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

@ -58,5 +58,5 @@ export const importTemplate = () => {
// 撤销申请
export const rejected = (id: Number) => {
return request.delete({ url: '/eam/device-repair-request/rejected?id=' + id })
}
return request.delete({ url: '/eam/device-repair-request/cancel?id=' + id })
}

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

@ -153,7 +153,7 @@ const butttondata = (row) => {
// defaultButtons.mainListEditBtn({hasPermi:'eam:deviceRepair:update'}), //
// defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:deviceRepair:delete' }), //
defaultButtons.backoutBtn({hasPermi:'eam:device-repair-request:rejected', hide: !(row.result == 'PENDING' && row.declarer == userStore.getUser.id )}), //
defaultButtons.backoutBtn({hasPermi:'eam:device-repair-request:cancel', hide: !(row.result == 'PENDING' && row.declarer == userStore.getUser.id )}), //
]
}
@ -292,7 +292,7 @@ function handleBackout(row) {
if (row.result != 'PENDING') {
message.error('该报修单正在处理中,不能撤销!')
}
DeviceRepairApi.rejected(row.id).then(res => {
DeviceRepairApi.cancel(row.id).then(res => {
console.log("撤销成功!")
getList() //
})

Loading…
Cancel
Save