Browse Source

调试

master
zhaoyiran 7 months ago
parent
commit
2480a14c45
  1. 3
      src/views/eam/device/deviceRepair/index.vue
  2. 4
      src/views/eam/device/devicemaintainjob/index.vue
  3. 3
      src/views/eam/device/devicemaintenancejob/index.vue
  4. 16
      src/views/eam/mold/moldSpotInspectionRecordMain/index.vue
  5. 19
      src/views/eam/mold/moldinspectionjob/index.vue
  6. 33
      src/views/eam/mold/moldmaintainjob/index.vue
  7. 2
      src/views/eam/mold/moldmaintenancejob/index.vue

3
src/views/eam/device/deviceRepair/index.vue

@ -112,9 +112,6 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
// defaultButtons.defaultAddBtn({hasPermi:'eam:deviceRepair:create'}), //
// defaultButtons.defaultImportBtn({hasPermi:'eam:deviceRepair:import'}), //
// defaultButtons.defaultExportBtn({ hasPermi: 'eam:deviceRepair:export' }), //
defaultButtons.defaultAddBtn({hasPermi:'eam:device-repair-request:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:device-repair-request:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:device-repair-request:export'}), //

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

@ -275,11 +275,11 @@ const butttondata = (row) => {
}), //
defaultButtons.verifyOrderBtn({
hasPermi:'eam:device-maintain-job-main:orderClickVerify',
hide: !(row.status == 'COMPLETED' && judgeIsTheClassEngineer(row))
hide: !(row.status == 'COMPLETED')
}), //
defaultButtons.orderPrintBtn({
hasPermi:'eam:device-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'))
}) //
]

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

@ -383,7 +383,8 @@ const judgeIsTheClassEngineer = (row) => {
const judgeIsTheClassEngineerAndApply = (row,type) => {
//
if (row.status === 'COMPLETED' && type == 'CONFIRM') {
// if (row.status === 'COMPLETED' && type == 'CONFIRM') {
if (row.status === 'COMPLETED') {
// COMPLETEDrequestNumberdeclarer
if(row.requestNumber != null && row.requestNumber !== '' && row.declarer === userStore.getUser.id){
return true

16
src/views/eam/mold/moldSpotInspectionRecordMain/index.vue

@ -262,7 +262,7 @@ const isShowMainButton = (row, val) => {
// -
const butttondata = (row) => {
return [
defaultButtons.approveBtn({ hasPermi:'eam:mold-spot-inspection-record-main:approve', hide: !(row.status == 'COMPLETED' && judgeIfMoldRole())}), //
defaultButtons.approveBtn({ hasPermi:'eam:mold-spot-inspection-record-main:approve', hide: !(row.status == 'COMPLETED')}), //
]
}
const onChange = (field, cur, item) => {
@ -509,20 +509,6 @@ function buttonControllFunction(row, val) {
return true
}
}
/**
* 判断是否为模具工程师
*/
const judgeIfMoldRole = () => {
const rolesOk = userStore.roles.find(item => {
return item == 'mold_class_Engineer_role'
})
if (rolesOk != undefined && rolesOk != null) {
return true
} else {
return false
}
}
const handleBeforeClose = async(done)=>{
done()
}

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

@ -244,18 +244,15 @@ const buttonBaseClick = (val, item) => {
// -
const butttondata = (row) => {
return [
// 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({ 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))
hide: !(row.status == 'COMPLETED')
}), //
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'))
}) //
]
}
@ -670,18 +667,6 @@ function verifyCancel(row) {
verifyDialogVisible.value = false
}
const judgeIsTheClassEngineer = (row) => {
const rolesOk = userStore.roles.find(item => {
return item == 'mold_class_Engineer_role'
})
if (rolesOk != undefined && rolesOk != null) {
return true
} else {
return false
}
}
const orderPrint = (row) => {
window.open(src.value + "&id=" + row.id)
}

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

@ -264,9 +264,7 @@ const butttondata = (row) => {
// defaultButtons.mainListEditBtn(null), //
defaultButtons.acceptOrderBtn({
hasPermi:'eam:mold-maintain-job-main:orderClick',
hide: !(
row.status == 'PENDING' && judgeIsTheClass(row)
)
hide: !(row.status == 'PENDING')
}), //
defaultButtons.maintainBtn({
hasPermi:'eam:mold-maintain-job-main:maintain',
@ -278,11 +276,11 @@ const butttondata = (row) => {
}), //
defaultButtons.verifyOrderBtn({
hasPermi:'eam:mold-maintain-job-main:orderClickVerify',
hide: !(row.status == 'COMPLETED' && judgeIsTheClassEngineer(row))
hide: !(row.status == 'COMPLETED')
}), //
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'))
}) //
]
}
@ -622,31 +620,6 @@ function isReceiver(orderPerson) {
}
}
const judgeIsTheClass = (row) => {
const rolesOk = userStore.roles.find(item => {
if (row.type == 'MOLD') {
return item == 'mold_class_worker_role' || item == 'mold_class_Engineer_role'
}
})
if (rolesOk != undefined && rolesOk != null) {
return true
} else {
return false
}
}
const judgeIsTheClassEngineer = (row) => {
const rolesOk = userStore.roles.find(item => {
return item == 'mold_class_Engineer_role'
})
if (rolesOk != undefined && rolesOk != null) {
return true
} else {
return false
}
}
const openDialog = (row) => {
dialogRowData.value = row
updateFormValue.value.verifyContent = ''

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

@ -1167,7 +1167,7 @@ const validateRow = (row) => {
const judgeIsTheClassEngineerAndApply = (row,type) => {
//
if (row.status === 'COMPLETED' && type == 'CONFIRM') {
if (row.status === 'COMPLETED') {
// COMPLETEDrequestNumberdeclarer
if(row.requestNumber != null && row.requestNumber !== '' && row.declarer === userStore.getUser.id){
return true

Loading…
Cancel
Save