|
@ -439,7 +439,9 @@ const judgeIsTheClassWorker = (row) => { |
|
|
|
|
|
|
|
|
// 列表头部按钮 |
|
|
// 列表头部按钮 |
|
|
const HeadButttondata = [ |
|
|
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.defaultFreshBtn(null), // 刷新 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultFilterBtn(null), // 筛选 |
|
|
defaultButtons.defaultSetBtn(null) // 设置 |
|
|
defaultButtons.defaultSetBtn(null) // 设置 |
|
@ -486,27 +488,33 @@ const isShowMainButton = (row, val) => { |
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row) => { |
|
|
return [ |
|
|
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({ |
|
|
defaultButtons.acceptOrderBtn({ |
|
|
|
|
|
hasPermi:'eam:device-maintenance-job-main:orderClick', |
|
|
hide: !( |
|
|
hide: !( |
|
|
row.status == 'PENDING' && judgeIsTheClass(row) && judgeIsTheFactory(row) |
|
|
row.status == 'PENDING' && judgeIsTheClass(row) && judgeIsTheFactory(row) |
|
|
) |
|
|
) |
|
|
}), // 接单 |
|
|
}), // 接单 |
|
|
defaultButtons.turnOrderBtn({ |
|
|
defaultButtons.turnOrderBtn({ |
|
|
|
|
|
hasPermi:'eam:device-maintenance-job-main:turnTo', |
|
|
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id && !row.hasDetails ) |
|
|
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id && !row.hasDetails ) |
|
|
}), // 转办 |
|
|
}), // 转办 |
|
|
defaultButtons.repairBtn({ |
|
|
defaultButtons.repairBtn({ |
|
|
|
|
|
hasPermi:'eam:device-maintenance-job-main:repair', |
|
|
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id) |
|
|
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id) |
|
|
}), // 维修 |
|
|
}), // 维修 |
|
|
defaultButtons.verifyOrderBtn({ |
|
|
defaultButtons.verifyOrderBtn({ |
|
|
|
|
|
hasPermi:'eam:device-maintenance-job-main:orderClickVerify', |
|
|
hide: !( |
|
|
hide: !( |
|
|
judgeIsTheClassEngineerAndApply(row,'VERIFY') && judgeIsTheFactory(row) |
|
|
judgeIsTheClassEngineerAndApply(row,'VERIFY') && judgeIsTheFactory(row) |
|
|
) |
|
|
) |
|
|
}), // 验证 |
|
|
}), // 验证 |
|
|
defaultButtons.finishOrderBtn({ |
|
|
defaultButtons.finishOrderBtn({ |
|
|
|
|
|
hasPermi:'eam:device-maintenance-job-main:orderClickFinish', |
|
|
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id && row.hasDetails) |
|
|
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id && row.hasDetails) |
|
|
}), // 完成 |
|
|
}), // 完成 |
|
|
defaultButtons.confirmOrderBtn({ |
|
|
defaultButtons.confirmOrderBtn({ |
|
|
|
|
|
hasPermi:'eam:device-maintenance-job-main:orderClickConfirm', |
|
|
hide: !( |
|
|
hide: !( |
|
|
judgeIsTheClassEngineerAndApply(row,'CONFIRM') |
|
|
judgeIsTheClassEngineerAndApply(row,'CONFIRM') |
|
|
) |
|
|
) |
|
|