Browse Source

模具按钮权限

master
zhaoyiran 7 months ago
parent
commit
f36f65f624
  1. 8
      src/views/eam/mold/moldAccounts/index.vue
  2. 6
      src/views/eam/mold/moldMaintainPlan/index.vue
  3. 11
      src/views/eam/mold/moldRepair/index.vue
  4. 4
      src/views/eam/mold/moldSpotInspectionRecordMain/index.vue
  5. 10
      src/views/eam/mold/moldinspectionjob/index.vue
  6. 8
      src/views/eam/mold/moldmaintainjob/index.vue
  7. 12
      src/views/eam/mold/moldmaintenancejob/index.vue

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

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

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

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

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

@ -103,12 +103,9 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'eam:moldRepair:create'}), // defaultButtons.defaultAddBtn({hasPermi:'eam:mold-repair-request:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'eam:moldRepair:import'}), // defaultButtons.defaultImportBtn({hasPermi:'eam:mold-repair-request:import'}), //
// defaultButtons.defaultExportBtn({ hasPermi: 'eam:moldRepair:export' }), // defaultButtons.defaultExportBtn({hasPermi:'eam:mold-repair-request:export'}), //
defaultButtons.defaultAddBtn(null), //
// defaultButtons.defaultImportBtn(null), //
// defaultButtons.defaultExportBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -143,7 +140,7 @@ const butttondata = (row) => {
return [ return [
// defaultButtons.mainListEditBtn({hasPermi:'eam:moldRepair:update'}), // // defaultButtons.mainListEditBtn({hasPermi:'eam:moldRepair:update'}), //
// defaultButtons.mainListDeleteBtn({ hasPermi: 'eam:moldRepair:delete' }), // // 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 = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn(null), // // 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.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) // defaultButtons.defaultSetBtn(null) //
@ -260,7 +262,7 @@ const isShowMainButton = (row, val) => {
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ 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) => { const onChange = (field, cur, item) => {

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

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

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

@ -222,6 +222,8 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn(null), // // 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.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) // defaultButtons.defaultSetBtn(null) //
@ -261,21 +263,25 @@ const butttondata = (row) => {
return [ return [
// defaultButtons.mainListEditBtn(null), // // defaultButtons.mainListEditBtn(null), //
defaultButtons.acceptOrderBtn({ defaultButtons.acceptOrderBtn({
hasPermi:'eam:mold-maintain-job-main:orderClick',
hide: !( hide: !(
row.status == 'PENDING' && judgeIsTheClass(row) row.status == 'PENDING' && judgeIsTheClass(row)
) )
}), // }), //
defaultButtons.maintainBtn({ defaultButtons.maintainBtn({
hasPermi:'eam:mold-maintain-job-main:maintain',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id) hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id)
}),// }),//
defaultButtons.finishOrderBtn({ defaultButtons.finishOrderBtn({
hasPermi:'eam:mold-maintain-job-main:orderClickFinish',
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id) hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id)
}), // }), //
defaultButtons.verifyOrderBtn({ defaultButtons.verifyOrderBtn({
hasPermi:'eam:mold-maintain-job-main:orderClickVerify',
hide: !(row.status == 'COMPLETED' && judgeIsTheClassEngineer(row)) hide: !(row.status == 'COMPLETED' && judgeIsTheClassEngineer(row))
}), // }), //
defaultButtons.orderPrintBtn({ 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)) 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 = [ 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.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) // defaultButtons.defaultSetBtn(null) //
@ -443,27 +445,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:mold-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:mold-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:mold-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:mold-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:mold-maintenance-job-main:orderClickVerify',
hide: !( hide: !(
judgeIsTheClassEngineerAndApply(row,'VERIFY') && judgeIsTheFactory(row) judgeIsTheClassEngineerAndApply(row,'VERIFY') && judgeIsTheFactory(row)
) )
}), // }), //
defaultButtons.finishOrderBtn({ defaultButtons.finishOrderBtn({
hasPermi:'eam:mold-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:mold-maintenance-job-main:orderClickConfirm',
hide: !( hide: !(
judgeIsTheClassEngineerAndApply(row,'CONFIRM') judgeIsTheClassEngineerAndApply(row,'CONFIRM')
) )

Loading…
Cancel
Save