songguoqiang 7 months ago
parent
commit
18ce2bae7d
  1. 4
      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. 16
      src/api/eam/mold/moldInspectionDetail/index.ts
  5. 20
      src/api/eam/mold/moldInspectionMain/index.ts
  6. 16
      src/api/eam/mold/moldMaintainOrderDetail/index.ts
  7. 22
      src/api/eam/mold/moldMaintainOrderMain/index.ts
  8. 16
      src/api/eam/mold/moldMaintainPlan/index.ts
  9. 10
      src/api/eam/mold/moldMaintenanceDetail/index.ts
  10. 28
      src/api/eam/mold/moldMaintenanceMain/index.ts
  11. 18
      src/api/eam/mold/moldRepair/index.ts
  12. 16
      src/api/eam/mold/moldSpotInspectionRecordMain/index.ts
  13. 6
      src/views/eam/basic/basciYearEquipment/index.vue
  14. 4
      src/views/eam/basic/basicMonthEquipment/index.vue
  15. 8
      src/views/eam/basic/deviceMaintenance/index.vue
  16. 19
      src/views/eam/basic/fixedAssets/fixedAssets.data.ts
  17. 8
      src/views/eam/basic/inspection/index.vue
  18. 10
      src/views/eam/basic/item/index.vue
  19. 8
      src/views/eam/basic/location/index.vue
  20. 8
      src/views/eam/basic/locationArea/index.vue
  21. 8
      src/views/eam/basic/moldInspection/index.vue
  22. 8
      src/views/eam/basic/moldMaintenance/index.vue
  23. 8
      src/views/eam/basic/supplier/index.vue
  24. 9
      src/views/eam/device/deviceAccounts/index.vue
  25. 10
      src/views/eam/device/deviceInternalAudit/index.vue
  26. 6
      src/views/eam/device/deviceMaintainPlan/index.vue
  27. 10
      src/views/eam/device/deviceRepair/index.vue
  28. 4
      src/views/eam/device/deviceSpotInspectionRecordMain/index.vue
  29. 12
      src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts
  30. 12
      src/views/eam/device/deviceinspectionjob/index.vue
  31. 11
      src/views/eam/device/devicemaintainjob/index.vue
  32. 12
      src/views/eam/device/devicemaintenancejob/index.vue
  33. 8
      src/views/eam/device/problemSolving/index.vue
  34. 2
      src/views/eam/item/applicationRecord/index.vue
  35. 2
      src/views/eam/item/countRecord/index.vue
  36. 2
      src/views/eam/item/countadjustPlan/index.vue
  37. 4
      src/views/eam/item/countadjustWork/index.vue
  38. 12
      src/views/eam/item/itemAccounts/index.vue
  39. 4
      src/views/eam/item/itemApplyMain/index.vue
  40. 9
      src/views/eam/item/itemInLocation/index.vue
  41. 10
      src/views/eam/item/itemLocationReplace/index.vue
  42. 9
      src/views/eam/item/itemMaintenance/index.vue
  43. 4
      src/views/eam/item/itemOrderMain/index.vue
  44. 9
      src/views/eam/item/itemOutLocation/index.vue
  45. 6
      src/views/eam/item/replaceItemDes/index.vue
  46. 10
      src/views/eam/item/transaction/index.vue
  47. 8
      src/views/eam/mold/moldAccounts/index.vue
  48. 6
      src/views/eam/mold/moldMaintainPlan/index.vue
  49. 11
      src/views/eam/mold/moldRepair/index.vue
  50. 4
      src/views/eam/mold/moldSpotInspectionRecordMain/index.vue
  51. 10
      src/views/eam/mold/moldinspectionjob/index.vue
  52. 12
      src/views/eam/mold/moldinspectionjob/moldInspectionMain.data.ts
  53. 8
      src/views/eam/mold/moldmaintainjob/index.vue
  54. 12
      src/views/eam/mold/moldmaintenancejob/index.vue

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

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

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

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

@ -21,50 +21,50 @@ export const getMoldInspectionMainPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/device-inspection-job-main/senior', data })
return await request.post({ url: '/eam/mold-inspection-job-main/senior', data })
} else {
return await request.get({ url: `/eam/device-inspection-job-main/page`, params })
return await request.get({ url: `/eam/mold-inspection-job-main/page`, params })
}
}
// 查询检修工单主详情
export const getMoldInspectionMain = async (id: number) => {
return await request.get({ url: `/eam/device-inspection-job-main/get?id=` + id })
return await request.get({ url: `/eam/mold-inspection-job-main/get?id=` + id })
}
// 新增检修工单主
export const createMoldInspectionMain = async (data: MoldInspectionMainVO) => {
return await request.post({ url: `/eam/device-inspection-job-main/createPC`, data })
return await request.post({ url: `/eam/mold-inspection-job-main/createPC`, data })
}
// 修改检修工单主
export const updateMoldInspectionMain = async (data: MoldInspectionMainVO) => {
return await request.put({ url: `/eam/device-inspection-job-main/update`, data })
return await request.put({ url: `/eam/mold-inspection-job-main/update`, data })
}
// 删除检修工单主
export const deleteMoldInspectionMain = async (id: number) => {
return await request.delete({ url: `/eam/device-inspection-job-main/delete?id=` + id })
return await request.delete({ url: `/eam/mold-inspection-job-main/delete?id=` + id })
}
// 导出检修工单主 Excel
export const exportMoldInspectionMain = async (params) => {
return await request.download({ url: `/eam/device-inspection-job-main/export-excel`, params })
return await request.download({ url: `/eam/mold-inspection-job-main/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/device-inspection-job-main/get-import-template' })
return request.download({ url: '/eam/mold-inspection-job-main/get-import-template' })
}
// 查询检修工单主列表
export const getMoldInspectionMainNoPage = async (params) => {
return await request.get({ url: `/eam/device-inspection-job-main/noPage`, params })
return await request.get({ url: `/eam/mold-inspection-job-main/noPage`, 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/mold-inspection-job-main/onVerify?id=`+id+`&verifyContent=` + verifyContent })
}

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

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

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

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

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

@ -18,38 +18,38 @@ export const getMoldMaintainPlanPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/eam/device-maintain-plan/senior', data })
return await request.post({ url: '/eam/mold-maintain-plan/senior', data })
} else {
return await request.get({ url: `/eam/device-maintain-plan/page`, params })
return await request.get({ url: `/eam/mold-maintain-plan/page`, params })
}
}
// 查询保养计划详情
export const getMoldMaintainPlan = async (id: number) => {
return await request.get({ url: `/eam/device-maintain-plan/get?id=` + id })
return await request.get({ url: `/eam/mold-maintain-plan/get?id=` + id })
}
// 新增保养计划
export const createMoldMaintainPlan = async (data: MoldMaintainPlanVO) => {
return await request.post({ url: `/eam/device-maintain-plan/create`, data })
return await request.post({ url: `/eam/mold-maintain-plan/create`, data })
}
// 修改保养计划
export const updateMoldMaintainPlan = async (data: MoldMaintainPlanVO) => {
return await request.put({ url: `/eam/device-maintain-plan/update`, data })
return await request.put({ url: `/eam/mold-maintain-plan/update`, data })
}
// 删除保养计划
export const deleteMoldMaintainPlan = async (id: number) => {
return await request.delete({ url: `/eam/device-maintain-plan/delete?id=` + id })
return await request.delete({ url: `/eam/mold-maintain-plan/delete?id=` + id })
}
// 导出保养计划 Excel
export const exportMoldMaintainPlan = async (params) => {
return await request.download({ url: `/eam/device-maintain-plan/export-excel`, params })
return await request.download({ url: `/eam/mold-maintain-plan/export-excel`, params })
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/eam/device-maintain-plan/get-import-template' })
return request.download({ url: '/eam/mold-maintain-plan/get-import-template' })
}

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

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

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

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

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

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

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

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

6
src/views/eam/basic/basciYearEquipment/index.vue

@ -112,7 +112,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:BasciYearEquipment:create'}), //
// defaultButtons.defaultImportBtn(null), //
//defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
@ -152,8 +152,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null) //
defaultButtons.mainListEditBtn({hasPermi:'basic:BasciYearEquipment:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:BasciYearEquipment:delete'}) //
]
// -

4
src/views/eam/basic/basicMonthEquipment/index.vue

@ -98,7 +98,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
//defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'basic:BasicMonthEquipment:export'}), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
// defaultButtons.defaultFilterBtn(null), //
@ -132,7 +132,7 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
//defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:BasicMonthEquipment:delete'}), //
]
// -

8
src/views/eam/basic/deviceMaintenance/index.vue

@ -160,8 +160,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:deviceMaintenance:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:deviceMaintenance:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -191,8 +191,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:deviceMaintenance:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:deviceMaintenance:delete'}), //
]
// -

19
src/views/eam/basic/fixedAssets/fixedAssets.data.ts

@ -73,16 +73,16 @@ export const FixedAssets = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true,
},
{
label: '会计单位',
field: 'accountingUnit',
label: '规格型号',
field: 'specifications',
sort: 'custom',
table: {
width: '150',
},
},
{
label: '规格型号',
field: 'specifications',
label: '会计单位',
field: 'accountingUnit',
sort: 'custom',
table: {
width: '150',
@ -147,6 +147,17 @@ export const FixedAssets = useCrudSchemas(reactive<CrudSchema[]>([
}
}
},
{
label: '管理部门',
field: 'manageDept',
sort: 'custom',
isForm: false,
dictType: DICT_TYPE.SPECIAL_DEPT_ROLE,
dictClass: 'string',
table: {
width: '150',
},
},
{
label: '出厂日期',
field: 'productionDate',

8
src/views/eam/basic/inspection/index.vue

@ -133,8 +133,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:deviceMaintenance:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:deviceMaintenance:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -164,8 +164,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:deviceMaintenance:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:deviceMaintenance:delete'}), //
]
// -

10
src/views/eam/basic/item/index.vue

@ -83,8 +83,8 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:item:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:item:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -106,9 +106,9 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.chooseDeviceBtn(null),//
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:item:update'}), //
defaultButtons.chooseDeviceBtn({hasPermi:'basic:item:choose'}),//
defaultButtons.mainListDeleteBtn({hasPermi:'basic:item:delete'}), //
]
// -

8
src/views/eam/basic/location/index.vue

@ -88,8 +88,8 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:location:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:location:update'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -119,8 +119,8 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:location:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:location:delete'}), //
]
// -

8
src/views/eam/basic/locationArea/index.vue

@ -79,8 +79,8 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:locationArea:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:locationArea:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -110,8 +110,8 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:locationArea:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:locationArea:delete'}), //
]
// -

8
src/views/eam/basic/moldInspection/index.vue

@ -96,8 +96,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:deviceMaintenance:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:deviceMaintenance:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -127,8 +127,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:deviceMaintenance:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:deviceMaintenance:delete'}), //
]
// -

8
src/views/eam/basic/moldMaintenance/index.vue

@ -156,8 +156,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:deviceMaintenance:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:deviceMaintenance:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -187,8 +187,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:deviceMaintenance:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:deviceMaintenance:delete'}), //
]
// -

8
src/views/eam/basic/supplier/index.vue

@ -80,8 +80,8 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'basic:supplier:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'basic:supplier:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -111,8 +111,8 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'basic:supplier:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'basic:supplier:delete'}), //
]
// -

9
src/views/eam/device/deviceAccounts/index.vue

@ -80,6 +80,7 @@
DeviceMaintenanceDetail
} from '../devicemaintenancejob/deviceMaintenanceMain.data'
import { DICT_TYPE, getStrDictOptions } from '@/utils/dict'
import {hasPermi} from "@/directives/permission/hasPermi";
defineOptions({ name: 'DeviceAccounts' })
@ -126,10 +127,10 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'eam:device-accounts:create'}), //
defaultButtons.selectQrCodeBatchBtn(null), //
// defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'eam:device-accounts:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:device-accounts:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
@ -170,7 +171,7 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'eam:device-accounts:update'}), //
// defaultButtons.mainListDeleteBtn(null), //
defaultButtons.selectQrCodeBtn(null), //
defaultButtons.selectItemBtn(null) //

10
src/views/eam/device/deviceInternalAudit/index.vue

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'eam:deviceInternalAudit:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:deviceInternalAudit:export'}), //
defaultButtons.defaultAddBtn({hasPermi:'eam:device-Internal-Audit:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:device-Internal-Audit:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:device-Internal-Audit:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'eam:device-Internal-Audit:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:device-Internal-Audit:delete'}), //
]
// -

6
src/views/eam/device/deviceMaintainPlan/index.vue

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:deviceMaintainPlan:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:deviceMaintainPlan:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:deviceMaintainPlan:export'}), //
defaultButtons.defaultAddBtn({hasPermi:'eam:device-Maintain-Plan:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:device-Maintain-Plan:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:device-Maintain-Plan:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //

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

@ -115,9 +115,9 @@ const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'eam:deviceRepair:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'eam:deviceRepair:import'}), //
// defaultButtons.defaultExportBtn({ hasPermi: 'eam:deviceRepair:export' }), //
defaultButtons.defaultAddBtn(null), //
// defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'eam:device-repair-request:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:device-repair-request:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:device-repair-request:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -153,7 +153,7 @@ const butttondata = (row) => {
// defaultButtons.mainListEditBtn({hasPermi:'eam:deviceRepair:update'}), //
// defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:deviceRepair:delete' }), //
defaultButtons.backoutBtn({ 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() //
})

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

@ -218,6 +218,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
// defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'eam:device-spot-inspection-record-main:import'}),
defaultButtons.defaultExportBtn({hasPermi:'eam:device-spot-inspection-record-main:export'}),
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
@ -261,7 +263,7 @@ const isShowMainButton = (row, val) => {
// -
const butttondata = (row) => {
return [
defaultButtons.approveBtn({ hide: !(row.status == 'COMPLETED' && judgeIfDeviceRole())}), //
defaultButtons.approveBtn({ hasPermi:'eam:device-spot-inspection-record-main:approve', hide: !(row.status == 'COMPLETED')}), //
]
}
const onChange = (field, cur, item) => {

12
src/views/eam/device/deviceinspectionjob/deviceInspectionMain.data.ts

@ -417,6 +417,18 @@ export const DeviceInspectionDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false,
isTableForm: false,
},
{
label: '检修内容',
field: 'name',
sort: 'custom',
isSearch: true,
form: {
component: 'Input',
componentProps: {
type:'textarea'
}
},
},
{
label: '责任人',
field: 'chargePeoples',

12
src/views/eam/device/deviceinspectionjob/index.vue

@ -194,7 +194,9 @@ const judgeHasAddFunc = () => {
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hide: !(judgeHasAddFunc()) }), //
defaultButtons.defaultAddBtn({ hasPermi:'eam:device-inspection-job-main:create'}), //
defaultButtons.defaultImportBtn({ hasPermi:'eam:device-inspection-job-main:import'}), //
defaultButtons.defaultExportBtn({ hasPermi:'eam:device-inspection-job-main:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -237,12 +239,14 @@ const butttondata = (row) => {
// defaultButtons.mainListEditBtn({hasPermi:'eam:deviceInspectionMain:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'eam:deviceInspectionMain:delete'}), //
// defaultButtons.mainListEditBtn({ hide: !(row.status != 'COMPLETED' && row.status != 'VERIFIED' && row.status != 'REJECTED' && isReceiver(row.maintenance))}), //
defaultButtons.mainInspectionOrderBtn({ hide: !(row.status == 'PECEIVED' && (userStore.getUser.id == row.maintenance)) }), //
defaultButtons.finishOrderBtn({ hide: !(row.status == 'PECEIVED' && (userStore.getUser.id == row.maintenance)) }), //
defaultButtons.mainInspectionOrderBtn({hasPermi:'eam:device-inspection-job-main:inspection', hide: !(row.status == 'PECEIVED' && (userStore.getUser.id == row.maintenance)) }), //
defaultButtons.finishOrderBtn({ hasPermi:'eam:device-inspection-job-main:orderClickFinish', hide: !(row.status == 'PECEIVED' && (userStore.getUser.id == row.maintenance)) }), //
defaultButtons.verifyOrderBtn({
hide: !(row.status == 'COMPLETED' && judgeIsTheClassEngineer(row))
hasPermi:'eam:device-inspection-job-main:orderClickVerify',
hide: !(row.status == 'COMPLETED' )
}), //
defaultButtons.orderPrintBtn({
hasPermi:'eam:device-inspection-job-main:print',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id) || !((row.status == 'COMPLETED' || row.status == 'PECEIVED') && judgeIsTheClassEngineer(row))
}) //
]

11
src/views/eam/device/devicemaintainjob/index.vue

@ -221,6 +221,8 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [
// defaultButtons.defaultAddBtn({
// }), //
defaultButtons.defaultImportBtn({hasPermi:'eam:device-maintain-job-main:import'}),
defaultButtons.defaultExportBtn({hasPermi:'eam:device-maintain-job-main:export'}),
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
@ -260,20 +262,23 @@ const butttondata = (row) => {
return [
// defaultButtons.mainListEditBtn(null), //
defaultButtons.acceptOrderBtn({
hide: !(
row.status == 'PENDING' && judgeIsTheClass(row)
)
hasPermi:'eam:device-maintain-job-main:orderClick',
hide: !(row.status == 'PENDING')
}), //
defaultButtons.maintainBtn({
hasPermi:'eam:device-maintain-job-main:maintain',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id)
}),//
defaultButtons.finishOrderBtn({
hasPermi:'eam:device-maintain-job-main:orderClickFinish',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id)
}), //
defaultButtons.verifyOrderBtn({
hasPermi:'eam:device-maintain-job-main:orderClickVerify',
hide: !(row.status == 'COMPLETED' && judgeIsTheClassEngineer(row))
}), //
defaultButtons.orderPrintBtn({
hasPermi:'eam:device-maintain-job-main:print',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id) || !((row.status == 'COMPLETED' || row.status == 'PECEIVED') && judgeIsTheClassEngineer(row))
}) //

12
src/views/eam/device/devicemaintenancejob/index.vue

@ -439,7 +439,9 @@ const judgeIsTheClassWorker = (row) => {
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hide: !(judgeHasAddFunc()) }), //
defaultButtons.defaultAddBtn({ hasPermi:'eam:device-maintenance-job-main:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:device-maintenance-job-main:import'}),
defaultButtons.defaultExportBtn({hasPermi:'eam:device-maintenance-job-main:export'}),
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
@ -486,27 +488,33 @@ const isShowMainButton = (row, val) => {
// -
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({ hide: !(row.status != 'COMPLETED' && row.status != 'VERIFIED' && row.status != 'REJECTED' && row.status != 'APPLYPASS' && isReceiver(row.maintenance) )}), //
defaultButtons.mainListEditBtn({hasPermi:'eam:device-maintenance-job-main:update', hide: !(row.status != 'COMPLETED' && row.status != 'VERIFIED' && row.status != 'REJECTED' && row.status != 'APPLYPASS' && isReceiver(row.maintenance) )}), //
defaultButtons.acceptOrderBtn({
hasPermi:'eam:device-maintenance-job-main:orderClick',
hide: !(
row.status == 'PENDING' && judgeIsTheClass(row) && judgeIsTheFactory(row)
)
}), //
defaultButtons.turnOrderBtn({
hasPermi:'eam:device-maintenance-job-main:turnTo',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id && !row.hasDetails )
}), //
defaultButtons.repairBtn({
hasPermi:'eam:device-maintenance-job-main:repair',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id)
}), //
defaultButtons.verifyOrderBtn({
hasPermi:'eam:device-maintenance-job-main:orderClickVerify',
hide: !(
judgeIsTheClassEngineerAndApply(row,'VERIFY') && judgeIsTheFactory(row)
)
}), //
defaultButtons.finishOrderBtn({
hasPermi:'eam:device-maintenance-job-main:orderClickFinish',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id && row.hasDetails)
}), //
defaultButtons.confirmOrderBtn({
hasPermi:'eam:device-maintenance-job-main:orderClickConfirm',
hide: !(
judgeIsTheClassEngineerAndApply(row,'CONFIRM')
)

8
src/views/eam/device/problemSolving/index.vue

@ -108,7 +108,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null) //
defaultButtons.defaultAddBtn({hasPermi:'eam:problem-solving:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:problem-solving:import'}),
defaultButtons.defaultExportBtn({hasPermi:'eam:problem-solving:export'})
// {
// label: '',
// name: 'zdy',
@ -143,8 +145,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null) //
defaultButtons.mainListEditBtn({hasPermi:'eam:problem-solving:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:problem-solving:delete'}) //
]
// -

2
src/views/eam/item/applicationRecord/index.vue

@ -173,7 +173,7 @@
// -
const butttondata = (row) => {
return [
defaultButtons.approveBtn({ hide: isShowMainButton(row, ['0']) }), //
defaultButtons.approveBtn({ hide: isShowMainButton(row, ['0']) ,hasPermi:'item:itemApplyMain:approve'}), //
// defaultButtons.mainListEditBtn(null), //
// defaultButtons.mainListDeleteBtn(null), //
]

2
src/views/eam/item/countRecord/index.vue

@ -162,7 +162,7 @@
// -
const butttondata = (row) => {
return [
defaultButtons.mainAdjust({ hide: isShowMainButton(row, ['CANGENERATE']) }),//
defaultButtons.mainAdjust({ hide: isShowMainButton(row, ['CANGENERATE']),hasPermi:'item:countRecord:adjust' }),//
]
}

2
src/views/eam/item/countadjustPlan/index.vue

@ -99,7 +99,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'item:countadjustPlan:create'}), //
// defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //

4
src/views/eam/item/countadjustWork/index.vue

@ -156,8 +156,8 @@
// -
const butttondata = (row) => {
return [
defaultButtons.mainExport(null),//
defaultButtons.mainAdjustImport(null),//
defaultButtons.mainExport({hasPermi:'item:countadjustWork:export'}),//
defaultButtons.mainAdjustImport({hasPermi:'item:countadjustWork:import'}),//
]
}

12
src/views/eam/item/itemAccounts/index.vue

@ -85,9 +85,9 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi: 'eam:itemAccounts:create' }), //
defaultButtons.defaultImportBtn({ hasPermi: 'eam:itemAccounts:import' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'eam:itemAccounts:export' }), //
defaultButtons.defaultAddBtn({ hasPermi: 'item:itemAccounts:create' }), //
defaultButtons.defaultImportBtn({ hasPermi: 'item:itemAccounts:import' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'item:itemAccounts:export' }), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -119,9 +119,9 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn({ hasPermi: 'eam:itemAccounts:update' }), //
defaultButtons.replaceLocation(null), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:itemAccounts:delete' }), //
defaultButtons.mainListEditBtn({ hasPermi: 'item:itemAccounts:update' }), //
defaultButtons.replaceLocation({ hasPermi: 'item:itemAccounts:replaceLocation' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'item:itemAccounts:delete' }), //
]
// -

4
src/views/eam/item/itemApplyMain/index.vue

@ -143,7 +143,7 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'item:itemApplyMain:create'}), //
// defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
@ -185,7 +185,7 @@
// -
const butttondata = (row) => {
return [
defaultButtons.backoutBtn({ hide: isShowMainButton(row, ['0']) }), //
defaultButtons.backoutBtn({ hide: isShowMainButton(row, ['0']) ,hasPermi:'item:itemApplyMain:backout'}), //
// defaultButtons.mainListEditBtn(null), //
// defaultButtons.mainListDeleteBtn(null), //
]

9
src/views/eam/item/itemInLocation/index.vue

@ -81,9 +81,8 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi: 'eam:itemInLocation:create' }), //
defaultButtons.defaultImportBtn({ hasPermi: 'eam:itemInLocation:import' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'eam:itemInLocation:export' }), //
defaultButtons.defaultAddBtn({ hasPermi: 'item:itemInLocation:create' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'item:itemInLocation:export' }), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -115,8 +114,8 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn({ hasPermi: 'eam:itemInLocation:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:itemInLocation:delete' }), //
defaultButtons.mainListEditBtn({ hasPermi: 'item:itemInLocation:update' }), //
defaultButtons.mainListDeleteBtn({ hasPermi: 'item:itemInLocation:delete' }), //
]
// -

10
src/views/eam/item/itemLocationReplace/index.vue

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:itemLocationReplace:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:itemLocationReplace:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:itemLocationReplace:export'}), //
defaultButtons.defaultAddBtn({hasPermi:'item:itemLocationReplace:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'item:itemLocationReplace:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'item:itemLocationReplace:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -133,8 +133,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:itemLocationReplace:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:itemLocationReplace:delete'}), //
defaultButtons.mainListEditBtn({hasPermi:'item:itemLocationReplace:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'item:itemLocationReplace:delete'}), //
]
// -

9
src/views/eam/item/itemMaintenance/index.vue

@ -99,9 +99,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:itemMaintenance:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:itemMaintenance:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:itemMaintenance:export'}), //
defaultButtons.defaultAddBtn({hasPermi:'item:itemMaintenance:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'item:itemMaintenance:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -133,8 +132,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:itemMaintenance:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:itemMaintenance:delete'}), //
defaultButtons.mainListEditBtn({hasPermi:'item:itemMaintenance:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'item:itemMaintenance:delete'}), //
]
// -

4
src/views/eam/item/itemOrderMain/index.vue

@ -116,7 +116,7 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'item:itemOrderMain:create'}), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
@ -159,7 +159,7 @@
// -
const butttondata = (row) => {
return [
defaultButtons.mainListOrderCOMPLETEBtn({ hide: isShowMainButton(row, ['INCOMPLETE']) }), //
defaultButtons.mainListOrderCOMPLETEBtn({ hide: isShowMainButton(row, ['INCOMPLETE']),hasPermi:'item:itemOrderMain:create' }), //
// defaultButtons.mainListEditBtn(null), //
// defaultButtons.mainListDeleteBtn(null), //
]

9
src/views/eam/item/itemOutLocation/index.vue

@ -99,9 +99,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:itemOutLocation:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:itemOutLocation:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:itemOutLocation:export'}), //
defaultButtons.defaultAddBtn({hasPermi:'item:itemOutLocation:create'}), //
defaultButtons.defaultExportBtn({hasPermi:'item:itemOutLocation:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -133,8 +132,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam:itemOutLocation:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam:itemOutLocation:delete'}), //
defaultButtons.mainListEditBtn({hasPermi:'item:itemOutLocation:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'item:itemOutLocation:delete'}), //
]
// -

6
src/views/eam/item/replaceItemDes/index.vue

@ -79,7 +79,7 @@
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'item:replaceItemDes:create'}), //
// {
// label: '',
// name: 'zdy',
@ -108,8 +108,8 @@
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'item:replaceItemDes:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'item:replaceItemDes:delete'}), //
]
// -

10
src/views/eam/item/transaction/index.vue

@ -97,9 +97,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam::create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam::import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam::export'}), //
defaultButtons.defaultAddBtn({hasPermi:'item:transaction:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'item:transaction:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'item:transaction:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -131,8 +131,8 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn({hasPermi:'eam::update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'eam::delete'}), //
defaultButtons.mainListEditBtn({hasPermi:'item:transaction:update'}), //
defaultButtons.mainListDeleteBtn({hasPermi:'item:transaction:delete'}), //
]
// -

8
src/views/eam/mold/moldAccounts/index.vue

@ -176,10 +176,10 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'eam:mold-accounts:create'}), //
defaultButtons.selectQrCodeBatchBtn(null), //
// defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'eam:mold-accounts:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:mold-accounts:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
@ -220,7 +220,7 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = [
defaultButtons.mainListEditBtn(null), //
defaultButtons.mainListEditBtn({hasPermi:'eam:mold-accounts:update'}), //
// defaultButtons.mainListDeleteBtn(null), //
defaultButtons.selectQrCodeBtn(null), //
// defaultButtons.selectItemBtn(null) //

6
src/views/eam/mold/moldMaintainPlan/index.vue

@ -99,9 +99,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:moldMaintainPlan:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:moldMaintainPlan:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:moldMaintainPlan:export'}), //
defaultButtons.defaultAddBtn({hasPermi:'eam:mold-maintain-plan:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:mold-maintain-plan:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:mold-maintain-plan:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //

11
src/views/eam/mold/moldRepair/index.vue

@ -103,12 +103,9 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'eam:moldRepair:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'eam:moldRepair:import'}), //
// defaultButtons.defaultExportBtn({ hasPermi: 'eam:moldRepair:export' }), //
defaultButtons.defaultAddBtn(null), //
// defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultAddBtn({hasPermi:'eam:mold-repair-request:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:mold-repair-request:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:mold-repair-request:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -143,7 +140,7 @@ const butttondata = (row) => {
return [
// defaultButtons.mainListEditBtn({hasPermi:'eam:moldRepair:update'}), //
// defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:moldRepair:delete' }), //
defaultButtons.backoutBtn({ hide: row.result != 'PENDING' }), //
defaultButtons.backoutBtn({ hasPermi:'eam:mold-repair-request:cancel', hide: row.result != 'PENDING' }), //
]
}

4
src/views/eam/mold/moldSpotInspectionRecordMain/index.vue

@ -217,6 +217,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
// defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn({ hasPermi:'eam:mold-spot-inspection-record-main:import'}),
defaultButtons.defaultExportBtn({ hasPermi:'eam:mold-spot-inspection-record-main:export'}),
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
@ -260,7 +262,7 @@ const isShowMainButton = (row, val) => {
// -
const butttondata = (row) => {
return [
defaultButtons.approveBtn({ hide: !(row.status == 'COMPLETED' && judgeIfMoldRole())}), //
defaultButtons.approveBtn({ hasPermi:'eam:mold-spot-inspection-record-main:approve', hide: !(row.status == 'COMPLETED' && judgeIfMoldRole())}), //
]
}
const onChange = (field, cur, item) => {

10
src/views/eam/mold/moldinspectionjob/index.vue

@ -206,7 +206,9 @@ const judgeHasAddFunc = () => {
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hide: !(judgeHasAddFunc())}), //
defaultButtons.defaultAddBtn({ hasPermi:'eam:mold-inspection-job-main:create'}), //
defaultButtons.defaultImportBtn({ hasPermi:'eam:mold-inspection-job-main:import'}),
defaultButtons.defaultExportBtn({ hasPermi:'eam:mold-inspection-job-main:export'}),
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -245,12 +247,14 @@ const butttondata = (row) => {
// defaultButtons.mainListEditBtn({hasPermi:'eam:moldInspectionMain:update'}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'eam:moldInspectionMain:delete'}), //
// defaultButtons.mainListEditBtn({ hide: !(row.status != 'COMPLETED' && row.status != 'VERIFIED' && row.status != 'REJECTED' && isReceiver(row.maintenance))}), //
defaultButtons.mainInspectionOrderBtn({ hide: !(row.status == 'PECEIVED' && (userStore.getUser.id == row.maintenance)) }), //
defaultButtons.finishOrderBtn({ hide: !(row.status == 'PECEIVED' && (userStore.getUser.id == row.maintenance)) }), //
defaultButtons.mainInspectionOrderBtn({ hasPermi:'eam:mold-inspection-job-main:inspection', hide: !(row.status == 'PECEIVED' && (userStore.getUser.id == row.maintenance)) }), //
defaultButtons.finishOrderBtn({ hasPermi:'eam:mold-inspection-job-main:orderClickFinish', hide: !(row.status == 'PECEIVED' && (userStore.getUser.id == row.maintenance)) }), //
defaultButtons.verifyOrderBtn({
hasPermi:'eam:mold-inspection-job-main:orderClickVerify',
hide: !(row.status == 'COMPLETED' && judgeIsTheClassEngineer(row))
}), //
defaultButtons.orderPrintBtn({
hasPermi:'eam:mold-inspection-job-main:print',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id) || !((row.status == 'COMPLETED' || row.status == 'PECEIVED') && judgeIsTheClassEngineer(row))
}) //
]

12
src/views/eam/mold/moldinspectionjob/moldInspectionMain.data.ts

@ -407,6 +407,18 @@ export const MoldInspectionDetail = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false,
isTableForm: false,
},
{
label: '内容',
field: 'name',
sort: 'custom',
isSearch: true,
form: {
component: 'Input',
componentProps: {
type:'textarea'
}
},
},
{
label: '责任人',
field: 'chargePeoples',

8
src/views/eam/mold/moldmaintainjob/index.vue

@ -222,6 +222,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
// defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'eam:mold-maintain-job-main:import'}),
defaultButtons.defaultExportBtn({hasPermi:'eam:mold-maintain-job-main:export'}),
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
@ -261,21 +263,25 @@ const butttondata = (row) => {
return [
// defaultButtons.mainListEditBtn(null), //
defaultButtons.acceptOrderBtn({
hasPermi:'eam:mold-maintain-job-main:orderClick',
hide: !(
row.status == 'PENDING' && judgeIsTheClass(row)
)
}), //
defaultButtons.maintainBtn({
hasPermi:'eam:mold-maintain-job-main:maintain',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id)
}),//
defaultButtons.finishOrderBtn({
hasPermi:'eam:mold-maintain-job-main:orderClickFinish',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id)
}), //
defaultButtons.verifyOrderBtn({
hasPermi:'eam:mold-maintain-job-main:orderClickVerify',
hide: !(row.status == 'COMPLETED' && judgeIsTheClassEngineer(row))
}), //
defaultButtons.orderPrintBtn({
hasPermi:'eam:mold-maintain-job-main:print',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id) || !((row.status == 'COMPLETED' || row.status == 'PECEIVED') && judgeIsTheClassEngineer(row))
}) //
]

12
src/views/eam/mold/moldmaintenancejob/index.vue

@ -391,7 +391,9 @@ const judgeIsTheClassWorker = (row) => {
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hide: !(judgeHasAddFunc())}), //
defaultButtons.defaultAddBtn({ hasPermi:'eam:mold-maintenance-job-main:create'}), //
defaultButtons.defaultImportBtn({ hasPermi:'eam:mold-maintenance-job-main:import'}),
defaultButtons.defaultExportBtn({ hasPermi:'eam:mold-maintenance-job-main:export'}),
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
@ -443,27 +445,33 @@ const isShowMainButton = (row, val) => {
// -
const butttondata = (row) => {
return [
defaultButtons.mainListEditBtn({ hide: !(row.status != 'COMPLETED' && row.status != 'VERIFIED' && row.status != 'REJECTED' && row.status != 'APPLYPASS' && isReceiver(row.maintenance) )}), //
defaultButtons.mainListEditBtn({hasPermi:'eam:mold-maintenance-job-main:update', hide: !(row.status != 'COMPLETED' && row.status != 'VERIFIED' && row.status != 'REJECTED' && row.status != 'APPLYPASS' && isReceiver(row.maintenance) )}), //
defaultButtons.acceptOrderBtn({
hasPermi:'eam:mold-maintenance-job-main:orderClick',
hide: !(
row.status == 'PENDING' && judgeIsTheClass(row) && judgeIsTheFactory(row)
)
}), //
defaultButtons.turnOrderBtn({
hasPermi:'eam:mold-maintenance-job-main:turnTo',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id && !row.hasDetails)
}), //
defaultButtons.repairBtn({
hasPermi:'eam:mold-maintenance-job-main:repair',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id)
}), //
defaultButtons.verifyOrderBtn({
hasPermi:'eam:mold-maintenance-job-main:orderClickVerify',
hide: !(
judgeIsTheClassEngineerAndApply(row,'VERIFY') && judgeIsTheFactory(row)
)
}), //
defaultButtons.finishOrderBtn({
hasPermi:'eam:mold-maintenance-job-main:orderClickFinish',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id && row.hasDetails)
}), //
defaultButtons.confirmOrderBtn({
hasPermi:'eam:mold-maintenance-job-main:orderClickConfirm',
hide: !(
judgeIsTheClassEngineerAndApply(row,'CONFIRM')
)

Loading…
Cancel
Save