diff --git a/src/views/eam/mold/moldAccounts/index.vue b/src/views/eam/mold/moldAccounts/index.vue index 094a56e..3d166b2 100644 --- a/src/views/eam/mold/moldAccounts/index.vue +++ b/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) //备件 diff --git a/src/views/eam/mold/moldMaintainPlan/index.vue b/src/views/eam/mold/moldMaintainPlan/index.vue index a716eb2..478c5bd 100644 --- a/src/views/eam/mold/moldMaintainPlan/index.vue +++ b/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), // 设置 diff --git a/src/views/eam/mold/moldRepair/index.vue b/src/views/eam/mold/moldRepair/index.vue index 43ee9c5..bb6396f 100644 --- a/src/views/eam/mold/moldRepair/index.vue +++ b/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' }), // 撤销 ] } diff --git a/src/views/eam/mold/moldSpotInspectionRecordMain/index.vue b/src/views/eam/mold/moldSpotInspectionRecordMain/index.vue index 460cf1f..ebdb7f3 100644 --- a/src/views/eam/mold/moldSpotInspectionRecordMain/index.vue +++ b/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) => { diff --git a/src/views/eam/mold/moldinspectionjob/index.vue b/src/views/eam/mold/moldinspectionjob/index.vue index ae40292..f65ff75 100644 --- a/src/views/eam/mold/moldinspectionjob/index.vue +++ b/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)) }) // 打印 ] diff --git a/src/views/eam/mold/moldmaintainjob/index.vue b/src/views/eam/mold/moldmaintainjob/index.vue index 2bef166..5a612b4 100644 --- a/src/views/eam/mold/moldmaintainjob/index.vue +++ b/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)) }) // 打印 ] diff --git a/src/views/eam/mold/moldmaintenancejob/index.vue b/src/views/eam/mold/moldmaintenancejob/index.vue index 8e50844..8955b3d 100644 --- a/src/views/eam/mold/moldmaintenancejob/index.vue +++ b/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') )