|
|
@ -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') |
|
|
|
) |
|
|
|