diff --git a/src/files/edit/PF153.js b/src/files/edit/PF153.js new file mode 100644 index 0000000..710d42d --- /dev/null +++ b/src/files/edit/PF153.js @@ -0,0 +1,17 @@ +import { extendInclude, extendRule, initFilter } from "../../utils/common"; + +import moment from 'moment' +/** + * @return {string} + */ + +export default { + onBeforeEdit: ({ isNew, setFieldValue, stateData, setFieldVisible }) => { + if (stateData.ORG_ID != "00300000-0000-0000-0000-000000000000") { + setFieldVisible('Nav_Orgs', false) + } + if (isNew) { + setFieldValue('START', moment(new Date()).format("YYYY-MM-DD")) + } + } +}; \ No newline at end of file diff --git a/src/utils/customConfig1.js b/src/utils/customConfig1.js index a5593c4..f5ebf8c 100644 --- a/src/utils/customConfig1.js +++ b/src/utils/customConfig1.js @@ -116,27 +116,27 @@ const SC052ShowPrint = createLoadableComponent(() => import('../components/Custo // const CM043ShowPrint = createLoadableComponent(() => import('../components/CustomPages/CM/CM043ShowPrint')) // const CM045ShowPrint = createLoadableComponent(() => import('../components/CustomPages/CM/CM045ShowPrint')) -const SE001EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE001EditPage')) -const SEConfigPage = createLoadableComponent(() => import('../components/CustomPages/SE/SEConfigPage')) -const SE005ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ShowPrint')) -const SESafeSurveyTest = createLoadableComponent(() => import('../components/CustomPages/SE/SESafeSurveyTest')) -const SE005ReportEdit = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ReportEdit')) -const SE007AllView = createLoadableComponent(() => import('../components/CustomPages/SE/SE007AllView')) -const SE009ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE009ShowPrint')) -const SE011ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE011ShowPrint')) -const SE013ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE013ShowPrint')) -const SE015ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE015ShowPrint')) -const SE018EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018EditPage')) -const SE018PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018PaperPage')) -const SE019ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE019ShowPrint')) -const SE021ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE021ShowPrint')) -const SE061ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE061ShowPrint')) -const SE071ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE071ShowPrint')) -const SE061PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE061PaperPage')) -const SE062ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE062ShowPrint')) -const SE063ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE063ShowPrint')) -const SE051ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE051ShowPrint')) -const SE007ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE007ShowPrint')) +// const SE001EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE001EditPage')) +// const SEConfigPage = createLoadableComponent(() => import('../components/CustomPages/SE/SEConfigPage')) +// const SE005ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ShowPrint')) +// const SESafeSurveyTest = createLoadableComponent(() => import('../components/CustomPages/SE/SESafeSurveyTest')) +// const SE005ReportEdit = createLoadableComponent(() => import('../components/CustomPages/SE/SE005ReportEdit')) +// const SE007AllView = createLoadableComponent(() => import('../components/CustomPages/SE/SE007AllView')) +// const SE009ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE009ShowPrint')) +// const SE011ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE011ShowPrint')) +// const SE013ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE013ShowPrint')) +// const SE015ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE015ShowPrint')) +// const SE018EditPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018EditPage')) +// const SE018PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE018PaperPage')) +// const SE019ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE019ShowPrint')) +// const SE021ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE021ShowPrint')) +// const SE061ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE061ShowPrint')) +// const SE071ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE071ShowPrint')) +// const SE061PaperPage = createLoadableComponent(() => import('../components/CustomPages/SE/SE061PaperPage')) +// const SE062ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE062ShowPrint')) +// const SE063ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE063ShowPrint')) +// const SE051ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE051ShowPrint')) +// const SE007ShowPrint = createLoadableComponent(() => import('../components/CustomPages/SE/SE007ShowPrint')) // const BI001HomeDetail = createLoadableComponent(() => import('../components/CustomPages/BI/BI001HomeDetail')) // const BI002HomeDetail = createLoadableComponent(() => import('../components/CustomPages/BI/BI002HomeDetail')) @@ -321,27 +321,27 @@ export default function (componentName, formId, formParam, data, formCode, formD RiskSubmit: , CrucialLicenseJob: , - SE001EditPage: , - SEConfigPage: , - SE005ShowPrint: , - SESafeSurveyTest: , - SE005ReportEdit: , - SE007ShowPrint: , - SE007AllView: , - SE009ShowPrint: , - SE011ShowPrint: , - SE013ShowPrint: , - SE015ShowPrint: , - SE018EditPage: , - SE018PaperPage: , - SE019ShowPrint: , - SE021ShowPrint: , - SE061PaperPage: , - SE061ShowPrint: , - SE071ShowPrint: , - SE062ShowPrint: , - SE063ShowPrint: , - SE051ShowPrint: , + // SE001EditPage: , + // SEConfigPage: , + // SE005ShowPrint: , + // SESafeSurveyTest: , + // SE005ReportEdit: , + // SE007ShowPrint: , + // SE007AllView: , + // SE009ShowPrint: , + // SE011ShowPrint: , + // SE013ShowPrint: , + // SE015ShowPrint: , + // SE018EditPage: , + // SE018PaperPage: , + // SE019ShowPrint: , + // SE021ShowPrint: , + // SE061PaperPage: , + // SE061ShowPrint: , + // SE071ShowPrint: , + // SE062ShowPrint: , + // SE063ShowPrint: , + // SE051ShowPrint: , SCShowPrint: , PF136FormRunAnalysis: ,