Browse Source

bug修复

master
ljlong_2630 7 months ago
parent
commit
df478c8f96
  1. 4
      src/views/eam/device/deviceAccounts/index.vue
  2. 4
      src/views/eam/device/deviceinspectionjob/index.vue
  3. 4
      src/views/eam/device/devicemaintenancejob/index.vue
  4. 4
      src/views/eam/mold/moldAccounts/index.vue
  5. 4
      src/views/eam/mold/moldRepair/index.vue
  6. 4
      src/views/eam/mold/moldSpotInspectionRecordMain/index.vue
  7. 4
      src/views/eam/mold/moldinspectionjob/index.vue
  8. 4
      src/views/eam/mold/moldmaintainjob/index.vue
  9. 23
      src/views/eam/mold/moldmaintenancejob/index.vue

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

@ -129,8 +129,8 @@
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:device-accounts:create'}), // defaultButtons.defaultAddBtn({hasPermi:'eam:device-accounts:create'}), //
defaultButtons.selectQrCodeBatchBtn(null), // defaultButtons.selectQrCodeBatchBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'eam:device-accounts:import'}), // // defaultButtons.defaultImportBtn({hasPermi:'eam:device-accounts:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:device-accounts:export'}), // // defaultButtons.defaultExportBtn({hasPermi:'eam:device-accounts:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) // defaultButtons.defaultSetBtn(null) //

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

@ -195,8 +195,8 @@ const judgeHasAddFunc = () => {
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi:'eam:device-inspection-job-main:create'}), // defaultButtons.defaultAddBtn({ hasPermi:'eam:device-inspection-job-main:create'}), //
defaultButtons.defaultImportBtn({ hasPermi:'eam:device-inspection-job-main:import'}), // // defaultButtons.defaultImportBtn({ hasPermi:'eam:device-inspection-job-main:import'}), //
defaultButtons.defaultExportBtn({ hasPermi:'eam:device-inspection-job-main:export'}), // // defaultButtons.defaultExportBtn({ hasPermi:'eam:device-inspection-job-main:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

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

@ -372,6 +372,10 @@ const judgeIsTheClassEngineerAndApply = (row,type) => {
} }
}else if(row.status === 'APPLYPASS' && type == 'VERIFY'){ }else if(row.status === 'APPLYPASS' && type == 'VERIFY'){
return true return true
}else if(row.requestNumber == null || row.requestNumber == ''){
if(row.status === 'COMPLETED' && type == 'VERIFY'){
return true
}
} }
// COMPLETEDAPPLYPASSCOMPLETEDfalse // COMPLETEDAPPLYPASSCOMPLETEDfalse
return false; return false;

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

@ -178,8 +178,8 @@ const { getList, setSearchParams } = tableMethods
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:mold-accounts:create'}), // defaultButtons.defaultAddBtn({hasPermi:'eam:mold-accounts:create'}), //
defaultButtons.selectQrCodeBatchBtn(null), // defaultButtons.selectQrCodeBatchBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'eam:mold-accounts:import'}), // // defaultButtons.defaultImportBtn({hasPermi:'eam:mold-accounts:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:mold-accounts:export'}), // // 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) //

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

@ -104,8 +104,8 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({hasPermi:'eam:mold-repair-request:create'}), // defaultButtons.defaultAddBtn({hasPermi:'eam:mold-repair-request:create'}), //
defaultButtons.defaultImportBtn({hasPermi:'eam:mold-repair-request:import'}), // // defaultButtons.defaultImportBtn({hasPermi:'eam:mold-repair-request:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:mold-repair-request:export'}), // // defaultButtons.defaultExportBtn({hasPermi:'eam:mold-repair-request:export'}), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

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

@ -217,8 +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.defaultImportBtn({ hasPermi:'eam:mold-spot-inspection-record-main:import'}),
defaultButtons.defaultExportBtn({ hasPermi:'eam:mold-spot-inspection-record-main:export'}), // 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) //

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

@ -207,8 +207,8 @@ const judgeHasAddFunc = () => {
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi:'eam:mold-inspection-job-main:create'}), // defaultButtons.defaultAddBtn({ hasPermi:'eam:mold-inspection-job-main:create'}), //
defaultButtons.defaultImportBtn({ hasPermi:'eam:mold-inspection-job-main:import'}), // defaultButtons.defaultImportBtn({ hasPermi:'eam:mold-inspection-job-main:import'}),
defaultButtons.defaultExportBtn({ hasPermi:'eam:mold-inspection-job-main:export'}), // 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), //

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

@ -222,8 +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.defaultImportBtn({hasPermi:'eam:mold-maintain-job-main:import'}),
defaultButtons.defaultExportBtn({hasPermi:'eam:mold-maintain-job-main:export'}), // 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) //

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

@ -357,10 +357,6 @@ const judgeIsTheClass = (row) => {
} }
} }
const judgeIsTheFactory = (row) => {
return userStore.userSelfInfo.deptId == row.factoryAreaNumber
}
const judgeIsTheClassEngineer = (row) => { const judgeIsTheClassEngineer = (row) => {
const rolesOk = userStore.roles.find(item => { const rolesOk = userStore.roles.find(item => {
if (row.type == 'MOLD') { if (row.type == 'MOLD') {
@ -392,8 +388,8 @@ const judgeIsTheClassWorker = (row) => {
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi:'eam:mold-maintenance-job-main:create'}), // defaultButtons.defaultAddBtn({ hasPermi:'eam:mold-maintenance-job-main:create'}), //
defaultButtons.defaultImportBtn({ hasPermi:'eam:mold-maintenance-job-main:import'}), // defaultButtons.defaultImportBtn({ hasPermi:'eam:mold-maintenance-job-main:import'}),
defaultButtons.defaultExportBtn({ hasPermi:'eam:mold-maintenance-job-main:export'}), // 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) //
@ -449,7 +445,7 @@ const butttondata = (row) => {
defaultButtons.acceptOrderBtn({ defaultButtons.acceptOrderBtn({
hasPermi:'eam:mold-maintenance-job-main:orderClick', hasPermi:'eam:mold-maintenance-job-main:orderClick',
hide: !( hide: !(
row.status == 'PENDING' && judgeIsTheFactory(row) row.status == 'PENDING'
) )
}), // }), //
defaultButtons.turnOrderBtn({ defaultButtons.turnOrderBtn({
@ -463,7 +459,7 @@ const butttondata = (row) => {
defaultButtons.verifyOrderBtn({ defaultButtons.verifyOrderBtn({
hasPermi:'eam:mold-maintenance-job-main:orderClickVerify', hasPermi:'eam:mold-maintenance-job-main:orderClickVerify',
hide: !( hide: !(
judgeIsTheClassEngineerAndApply(row,'VERIFY') && judgeIsTheFactory(row) judgeIsTheClassEngineerAndApply(row,'VERIFY')
) )
}), // }), //
defaultButtons.finishOrderBtn({ defaultButtons.finishOrderBtn({
@ -1163,21 +1159,24 @@ const validateRow = (row) => {
return true; return true;
}; };
const judgeIsTheClassEngineerAndApply = (row,type) => { const judgeIsTheClassEngineerAndApply = (row,type) => {
// //
if (row.status === 'COMPLETED') { if (row.status === 'COMPLETED' && type == 'CONFIRM') {
// COMPLETEDrequestNumberdeclarer // COMPLETEDrequestNumberdeclarer
if(row.requestNumber != null && row.requestNumber !== '' && row.declarer === userStore.getUser.id){ if(row.requestNumber != null && row.requestNumber !== '' && row.declarer === userStore.getUser.id){
return true return true
}else{ }else{
return false return false
} }
}else if(row.status === 'APPLYPASS' && type == 'VERIFY'){
return true
}else if(row.requestNumber == null || row.requestNumber == ''){
if(row.status === 'COMPLETED' && type == 'VERIFY'){
return true
}
} }
// COMPLETEDAPPLYPASSCOMPLETEDfalse // COMPLETEDAPPLYPASSCOMPLETEDfalse
return false; return false;
} }
/** 初始化 **/ /** 初始化 **/

Loading…
Cancel
Save