Browse Source

权限更新

master
ljlong_2630 8 months ago
parent
commit
87b9f0602d
  1. 1
      src/utils/dict.ts
  2. 4
      src/views/eam/device/deviceSpotInspectionRecordMain/index.vue
  3. 8
      src/views/eam/device/devicemaintainjob/index.vue
  4. 18
      src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts
  5. 18
      src/views/eam/device/devicemaintenancejob/index.vue
  6. 2
      src/views/eam/mold/moldinspectionjob/index.vue
  7. 12
      src/views/eam/mold/moldmaintainjob/index.vue
  8. 7
      src/views/eam/mold/moldmaintenancejob/index.vue
  9. 1
      src/views/eam/mold/moldmaintenancejob/moldMaintenanceMain.data.ts

1
src/utils/dict.ts

@ -300,5 +300,6 @@ export enum DICT_TYPE {
ADJUST_STATUS = 'adjust_status', //盘点调整状态 ADJUST_STATUS = 'adjust_status', //盘点调整状态
APP_DEVICE_MOLD_TYPE = 'app_device_mold_type', //设备/模具/工艺:类型 APP_DEVICE_MOLD_TYPE = 'app_device_mold_type', //设备/模具/工艺:类型
ITEM_SUBJECT = 'item_subject', //备件的科目 ITEM_SUBJECT = 'item_subject', //备件的科目
TURN_TYPE = 'turn_type', //转移类型
} }

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

@ -179,9 +179,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn({ // defaultButtons.defaultAddBtn(null), //
// hide: !userStore?.userSelfInfo?.posts?.some((item) => item.code == 'worker')
// }), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) // defaultButtons.defaultSetBtn(null) //

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

@ -181,7 +181,6 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn({ // defaultButtons.defaultAddBtn({
// hide: !userStore?.userSelfInfo?.posts?.some((item) => item.code == 'worker')
// }), // // }), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
@ -226,9 +225,7 @@ const butttondata = (row) => {
defaultButtons.acceptOrderBtn({ defaultButtons.acceptOrderBtn({
hide: !( hide: !(
row.status == 'PENDING' && row.status == 'PENDING'
(userStore?.userSelfInfo?.posts?.some((item) => item.code == 'engineer') ||
userStore?.userSelfInfo?.posts?.some((item) => item.code == 'worker'))
) )
}), // }), //
// defaultButtons.turnOrderBtn({ // defaultButtons.turnOrderBtn({
@ -239,8 +236,7 @@ const butttondata = (row) => {
// }), // // }), //
// defaultButtons.verifyOrderBtn({ // defaultButtons.verifyOrderBtn({
// hide: !( // hide: !(
// row.status == 'COMPLETED' && // row.status == 'COMPLETED'
// userStore?.userSelfInfo?.posts?.some((item) => item.code == 'engineer')
// ) // )
// }), // // }), //
defaultButtons.finishOrderBtn({ defaultButtons.finishOrderBtn({

18
src/views/eam/device/devicemaintenancejob/deviceMaintenanceMain.data.ts

@ -50,7 +50,22 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: false, isSearch: false,
isTable: true, isTable: true,
}, },
{
label: '转办类型',
field: 'turnType',
sort: 'custom',
isDetail: false,
isTable: false,
isSearch: false,
isForm: true,
dictType: DICT_TYPE.TURN_TYPE,
dictClass: 'string',
form: {
component: 'Select',
componentProps: {
}
}
},
{ {
label: '设备模具编号', label: '设备模具编号',
field: 'deviceNumber', field: 'deviceNumber',
@ -254,6 +269,7 @@ export const DeviceMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
}, },
isSearch: false, isSearch: false,
isTable: true, isTable: true,
isForm: false,
dictType: DICT_TYPE.WEI_XIU_ORDER_STATUS, dictType: DICT_TYPE.WEI_XIU_ORDER_STATUS,
dictClass: 'string', dictClass: 'string',
form: { form: {

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

@ -198,11 +198,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({ defaultButtons.defaultAddBtn(null), //
hide: !userStore?.userSelfInfo?.posts?.some((item) => {
return item.code == 'worker'
})
}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) // defaultButtons.defaultSetBtn(null) //
@ -248,8 +244,7 @@ const butttondata = (row) => {
defaultButtons.mainListEditBtn(null), // defaultButtons.mainListEditBtn(null), //
defaultButtons.acceptOrderBtn({ defaultButtons.acceptOrderBtn({
hide: !( hide: !(
row.status == 'PENDING' && row.status == 'PENDING'
userStore?.userSelfInfo?.posts?.some((item) => item.code == 'worker')
) )
}), // }), //
defaultButtons.turnOrderBtn({ defaultButtons.turnOrderBtn({
@ -260,16 +255,14 @@ const butttondata = (row) => {
}), // }), //
defaultButtons.verifyOrderBtn({ defaultButtons.verifyOrderBtn({
hide: !( hide: !(
row.status == 'COMPLETED' && row.status == 'COMPLETED'
userStore?.userSelfInfo?.posts?.some((item) => item.code == 'engineer')
) )
}), // }), //
defaultButtons.finishOrderBtn({ defaultButtons.finishOrderBtn({
hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id) hide: !(row.status == 'PECEIVED' && row.maintenance == userStore.getUser.id)
}), // }), //
defaultButtons.pictureBtn({ defaultButtons.pictureBtn({
hide: !(row.filePathList != null && row.filePathList.length > 0 && hide: !(row.filePathList != null && row.filePathList.length > 0)
userStore?.userSelfInfo?.posts?.some((item) => item.code == 'worker'))
}) // }) //
] ]
} }
@ -302,6 +295,9 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'repair') { } else if (val == 'repair') {
openDetail(row, '代码', row.number) openDetail(row, '代码', row.number)
} else if (val == 'turnOrder') { } else if (val == 'turnOrder') {
DeviceMaintenanceMain.allSchemas.formSchema.find(item => {
return item.field == 'turnType'
}).show = true
DeviceMaintenanceMain.allSchemas.formSchema.find(item => { DeviceMaintenanceMain.allSchemas.formSchema.find(item => {
return item.field == 'type' return item.field == 'type'
}).componentProps.options = deviceMoldTypeList }).componentProps.options = deviceMoldTypeList

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

@ -145,7 +145,7 @@ const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'eam:moldInspectionMain:create'}), // // defaultButtons.defaultAddBtn({hasPermi:'eam:moldInspectionMain:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'eam:moldInspectionMain:import'}), // // defaultButtons.defaultImportBtn({hasPermi:'eam:moldInspectionMain:import'}), //
// defaultButtons.defaultExportBtn({ hasPermi: 'eam:moldInspectionMain:export' }), // // defaultButtons.defaultExportBtn({ hasPermi: 'eam:moldInspectionMain:export' }), //
defaultButtons.defaultAddBtn({ hide: !(userStore?.userSelfInfo?.posts?.some((item) => item.code == 'worker') || userStore?.userSelfInfo?.posts?.some((item) => item.code == 'engineer')) }), // defaultButtons.defaultAddBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

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

@ -182,9 +182,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
// defaultButtons.defaultAddBtn({ // defaultButtons.defaultAddBtn(null), //
// hide: !userStore?.userSelfInfo?.posts?.some((item) => item.code == 'worker')
// }), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) // defaultButtons.defaultSetBtn(null) //
@ -228,10 +226,7 @@ const butttondata = (row) => {
defaultButtons.acceptOrderBtn({ defaultButtons.acceptOrderBtn({
hide: !( hide: !(
row.status == 'PENDING' && row.status == 'PENDING' && row.status == 1
(userStore?.userSelfInfo?.posts?.some((item) => item.code == 'engineer') ||
userStore?.userSelfInfo?.posts?.some((item) => item.code == 'worker')) ||
row.status == 1
) )
}), // }), //
// defaultButtons.turnOrderBtn({ // defaultButtons.turnOrderBtn({
@ -242,8 +237,7 @@ const butttondata = (row) => {
// }), // // }), //
// defaultButtons.verifyOrderBtn({ // defaultButtons.verifyOrderBtn({
// hide: !( // hide: !(
// row.status == 'COMPLETED' && // row.status == 'COMPLETED'
// userStore?.userSelfInfo?.posts?.some((item) => item.code == 'engineer')
// ) // )
// }), // // }), //
defaultButtons.finishOrderBtn({ defaultButtons.finishOrderBtn({

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

@ -199,9 +199,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({ defaultButtons.defaultAddBtn(null), //
hide: !userStore?.userSelfInfo?.posts?.some((item) => item.code == 'worker')
}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) // defaultButtons.defaultSetBtn(null) //
@ -307,6 +305,9 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'acceptOrder') { } else if (val == 'acceptOrder') {
acceptOrder(row) acceptOrder(row)
} else if (val == 'turnOrder') { } else if (val == 'turnOrder') {
MoldMaintenanceMain.allSchemas.formSchema.find(item => {
return item.field == 'turnType'
}).isForm = true
MoldMaintenanceMain.allSchemas.formSchema.find(item => { MoldMaintenanceMain.allSchemas.formSchema.find(item => {
return item.field == 'type' return item.field == 'type'
}).componentProps.options = deviceMoldTypeList }).componentProps.options = deviceMoldTypeList

1
src/views/eam/mold/moldmaintenancejob/moldMaintenanceMain.data.ts

@ -204,6 +204,7 @@ export const MoldMaintenanceMain = useCrudSchemas(reactive<CrudSchema[]>([
table: { table: {
width: '150', width: '150',
}, },
isForm: false,
isSearch: false, isSearch: false,
isTable: true, isTable: true,
dictType: DICT_TYPE.WEI_XIU_ORDER_STATUS, dictType: DICT_TYPE.WEI_XIU_ORDER_STATUS,

Loading…
Cancel
Save