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 = [
defaultButtons.defaultAddBtn({hasPermi:'eam:device-accounts:create'}), //
defaultButtons.selectQrCodeBatchBtn(null), //
defaultButtons.defaultImportBtn({hasPermi:'eam:device-accounts:import'}), //
defaultButtons.defaultExportBtn({hasPermi:'eam:device-accounts:export'}), //
// defaultButtons.defaultImportBtn({hasPermi:'eam:device-accounts:import'}), //
// defaultButtons.defaultExportBtn({hasPermi:'eam:device-accounts:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //

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

@ -195,8 +195,8 @@ const judgeHasAddFunc = () => {
//
const HeadButttondata = [
defaultButtons.defaultAddBtn({ hasPermi:'eam:device-inspection-job-main:create'}), //
defaultButtons.defaultImportBtn({ hasPermi:'eam:device-inspection-job-main:import'}), //
defaultButtons.defaultExportBtn({ hasPermi:'eam:device-inspection-job-main:export'}), //
// defaultButtons.defaultImportBtn({ hasPermi:'eam:device-inspection-job-main:import'}), //
// defaultButtons.defaultExportBtn({ hasPermi:'eam:device-inspection-job-main:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(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'){
return true
}else if(row.requestNumber == null || row.requestNumber == ''){
if(row.status === 'COMPLETED' && type == 'VERIFY'){
return true
}
}
// COMPLETEDAPPLYPASSCOMPLETEDfalse
return false;

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

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

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

@ -104,8 +104,8 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
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.defaultImportBtn({hasPermi:'eam:mold-repair-request:import'}), //
// defaultButtons.defaultExportBtn({hasPermi:'eam:mold-repair-request:export'}), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //

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

@ -217,8 +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.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) //

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

@ -207,8 +207,8 @@ const judgeHasAddFunc = () => {
//
const HeadButttondata = [
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.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), //

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

@ -222,8 +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.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) //

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

Loading…
Cancel
Save