|
- {"ast":null,"code":"export var motorFormBuilder = function motorFormBuilder(state) {\n var customerPartNumbers = state.customerPartNumbers;\n var mainCard = [[{\n 'inputType': 'select',\n 'inputLabel': 'Part Code',\n 'inputClass': '',\n 'inputId': 'partCodeName',\n 'opts': state.partCodeNameListforDropdown,\n 'defaultValue': state.partCodeName,\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Description',\n 'inputClass': '',\n 'inputId': 'partNumberDescription',\n 'defaultValue': state.partNumberDescription || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Status',\n 'inputClass': '',\n 'inputId': 'statusName',\n 'defaultValue': state.statusName || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'textarea',\n 'inputLabel': 'Comments',\n 'inputClass': 'highlighted',\n 'inputId': 'partNumberComments',\n 'defaultValue': state.partNumberComments || \"\",\n 'inputDisabled': false\n }], [{\n 'inputType': 'text',\n 'inputLabel': 'Customer',\n 'inputClass': '',\n 'inputId': 'customerName',\n 'defaultValue': state.customerName || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Customer P/N',\n 'inputClass': '',\n 'inputId': 'primaryCustomerPartNumber',\n 'defaultValue': state.primaryCustomerPartNumber || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'select',\n 'inputLabel': 'Primary Vendor',\n 'inputClass': '',\n 'inputId': 'primaryVendorName',\n 'opts': state.vendorNameListForDropdown,\n 'defaultValue': state.primaryVendorName || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Primary Vendor P/N',\n 'inputClass': '',\n 'inputId': 'primaryVendorPartNumber',\n 'defaultValue': state.primaryVendorPartNumber || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'select',\n 'inputLabel': 'Secondary Vendor',\n 'inputClass': '',\n 'inputId': 'secondaryVendorName',\n 'opts': state.vendorNameListForDropdown,\n 'defaultValue': state.secondaryVendorName || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Secondary Vendor P/N',\n 'inputClass': '',\n 'inputId': 'secondaryVendorPartNumber',\n 'defaultValue': state.secondaryVendorPartNumber || \"\",\n 'inputDisabled': false\n }], [{\n 'inputType': 'text',\n 'inputLabel': 'Caterpillar P/N',\n 'inputClass': '',\n 'inputId': 'Caterpillar',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(function (cpn) {\n return cpn.Name == \"Caterpillar\";\n })[0].CustomerPartNumber : undefined,\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Cummins P/N',\n 'inputClass': '',\n 'inputId': 'Cummins',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(function (pn) {\n return pn.Name == \"Cummins\";\n })[0].CustomerPartNumber : undefined,\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Diesel Recon P/N',\n 'inputClass': '',\n 'inputId': 'DieselRecon',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(function (pn) {\n return pn.Name == \"Diesel Recon\";\n })[0].CustomerPartNumber : undefined,\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'DRA Recon P/N',\n 'inputClass': '',\n 'inputId': 'DRARecon',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(function (pn) {\n return pn.Name == \"DRARecon\";\n })[0].CustomerPartNumber : undefined,\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Komatsu P/N',\n 'inputClass': '',\n 'inputId': 'Komatsu',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(function (pn) {\n return pn.Name == \"Komatsu\";\n })[0].CustomerPartNumber : undefined,\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'DDC P/N',\n 'inputClass': '',\n 'inputId': 'DDC',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(function (pn) {\n return pn.Name == \"DDC\";\n })[0].CustomerPartNumber : undefined,\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Parker P/N',\n 'inputClass': '',\n 'inputId': 'Parker',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(function (pn) {\n return pn.Name == \"Parker\";\n })[0].CustomerPartNumber : undefined,\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Other P/N',\n 'inputClass': '',\n 'inputId': 'Other',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(function (pn) {\n return pn.Name == \"Other\";\n })[0].CustomerPartNumber : undefined,\n 'inputDisabled': false\n }]];\n var additionalDetails = [[{\n 'inputType': 'select',\n 'inputLabel': 'OE/Reman',\n 'inputClass': 'bluelighted',\n 'inputId': 'oeReman',\n 'opts': [\"OE\", \"Reman\"],\n 'defaultValue': state.oeReman || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'select',\n 'inputLabel': 'Basic Class',\n 'inputClass': 'bluelighted',\n 'inputId': 'basicClass',\n 'opts': [\"What\", \"options\", \"go\", \"here?\"],\n 'defaultValue': state.basicClass || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'select',\n 'inputLabel': 'Status',\n 'inputClass': 'bluelighted',\n 'inputId': 'statusName',\n 'defaultValue': state.statusName || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Make From',\n 'inputClass': 'bluelighted',\n 'inputId': 'makeFrom',\n 'defaultValue': state.makeFrom || \"\",\n 'inputDisabled': true\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Same As',\n 'inputClass': 'bluelighted',\n 'inputId': 'sameAs',\n 'defaultValue': state.sameAs || \"\",\n 'inputDisabled': true\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Except',\n 'inputClass': 'bluelighted',\n 'inputId': 'except',\n 'defaultValue': state.except || \"\",\n 'inputDisabled': true\n }], [{\n 'inputType': 'text',\n 'inputLabel': 'Volts',\n 'inputClass': '',\n 'inputId': 'voltage',\n 'defaultValue': state.voltage || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Drive Rot',\n 'inputClass': '',\n 'inputId': 'rotation',\n 'defaultValue': state.rotation || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'TermP',\n 'inputClass': '',\n 'inputId': 'terminalPosition',\n 'defaultValue': state.terminalPosition || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Drive',\n 'inputClass': '',\n 'inputId': 'drive',\n 'defaultValue': state.drive || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Pinion',\n 'inputClass': 'highlighted',\n 'inputId': 'pinion',\n 'defaultValue': state.pinion || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Pitch',\n 'inputClass': '',\n 'inputId': 'pitch',\n 'defaultValue': state.pitch || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Switch',\n 'inputClass': '',\n 'inputId': 'switch',\n 'defaultValue': state.switch || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'SWitch Position',\n 'inputClass': '',\n 'inputId': 'switchPosition',\n 'defaultValue': state.switchPosition || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Ho',\n 'inputClass': '',\n 'inputId': 'ho',\n 'defaultValue': state.ho || \"\",\n 'inputDisabled': false\n }], [{\n 'inputType': 'text',\n 'inputLabel': 'SAE',\n 'inputClass': 'highlighted',\n 'inputId': 'sae',\n 'defaultValue': state.sae || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'MtgH',\n 'inputClass': 'highlighted',\n 'inputId': 'mtgH',\n 'defaultValue': state.mtgH || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'FTF',\n 'inputClass': 'highlighted',\n 'inputId': 'ftf',\n 'defaultValue': state.ftf || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Opening',\n 'inputClass': 'highlighted',\n 'inputId': 'opening',\n 'defaultValue': state.opening || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Treatment',\n 'inputClass': '',\n 'inputId': 'treatment',\n 'defaultValue': state.treatment || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Curve',\n 'inputClass': '',\n 'inputId': 'curve',\n 'defaultValue': state.curve || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Service Type',\n 'inputClass': '',\n 'inputId': 'remarks',\n 'defaultValue': state.remarks || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'JSP',\n 'inputClass': 'highlighted',\n 'inputId': 'jsp',\n 'defaultValue': state.jsp || \"\",\n 'inputDisabled': false\n }], [{\n 'inputType': 'checkbox',\n 'inputLabel': 'PLRV',\n 'inputClass': 'highlighted',\n 'inputId': 'plrv',\n 'defaultValue': state.plrv || false,\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Bracket',\n 'inputClass': 'highlighted',\n 'inputId': 'bracket',\n 'defaultValue': state.bracket || '',\n 'inputDisabled': false\n }, {\n 'inputType': 'checkbox',\n 'inputLabel': 'RTV',\n 'inputClass': 'highlighted',\n 'inputId': 'rtv',\n 'defaultValue': state.rtv || false,\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Suction Port',\n 'inputClass': '',\n 'inputId': 'suctionPort',\n 'defaultValue': state.suctionPort || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Pressure Port',\n 'inputClass': '',\n 'inputId': 'pressurePort',\n 'defaultValue': state.pressurePort || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Suction Fitting',\n 'inputClass': 'highlighted',\n 'inputId': 'suctionFitting',\n 'defaultValue': state.suctionFitting || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Pressure Fitting',\n 'inputClass': 'highlighted',\n 'inputId': 'pressureFitting',\n 'defaultValue': state.pressureFitting || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Nose Hsg. Gasket',\n 'inputClass': 'highlighted',\n 'inputId': 'gasket',\n 'defaultValue': state.gasket || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Box',\n 'inputClass': '',\n 'inputId': 'box',\n 'defaultValue': state.box || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Work Instructions',\n 'inputClass': '',\n 'inputId': 'workInstructions',\n 'defaultValue': state.workInstructions || \"\",\n 'inputDisabled': false\n }]];\n var tagInformation = [[{\n 'inputType': 'text',\n 'inputLabel': 'Part # Tag',\n 'inputClass': '',\n 'inputId': 'tagNumber',\n 'defaultValue': state.tagNumber || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Description',\n 'inputClass': 'highlighted',\n 'inputId': 'partDescription',\n 'defaultValue': state.partDescription,\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Paper Tag',\n 'inputClass': 'highlighted',\n 'inputId': 'paperTag',\n 'defaultValue': state.paperTag || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Other Tag',\n 'inputClass': 'highlighted',\n 'inputId': 'otherTag',\n 'defaultValue': state.otherTag || \"\",\n 'inputDisabled': false\n }], [{\n 'inputType': 'text',\n 'inputLabel': 'Part No',\n 'inputClass': 'highlighted',\n 'inputId': 'partNo',\n 'defaultValue': state.partNo || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Ref',\n 'inputClass': '',\n 'inputId': 'ref',\n 'defaultValue': state.ref || \"\",\n 'inputDisabled': false\n }]]; // Todo: Take care of bom data\n\n var approvals1 = [[{\n 'inputType': 'textarea',\n 'inputLabel': 'Reason for Change',\n 'inputClass': '',\n 'inputId': 'reasonForChange',\n 'defaultValue': state.reasonForChange || \"\",\n 'inputDisabled': false\n }], [{\n 'inputType': 'textarea',\n 'inputLabel': 'Validation of Change',\n 'inputClass': '',\n 'inputId': 'validationOfChange',\n 'defaultValue': state.validationOfChange || \"\",\n 'inputDisabled': false\n }]];\n var approvals2 = [[{\n 'inputType': 'text',\n 'inputLabel': 'Signed',\n 'inputClass': '',\n 'inputId': 'signed',\n 'defaultValue': state.signed || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Signed Date',\n 'inputClass': '',\n 'inputId': 'createDate',\n 'defaultValue': state.createDate || \"\",\n 'inputDisabled': false\n }], [{\n 'inputType': 'text',\n 'inputLabel': 'Checked',\n 'inputClass': '',\n 'inputId': 'approved',\n 'defaultValue': state.approved || \"\",\n 'inputDisabled': false\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Checked Date',\n 'inputClass': '',\n 'inputId': 'approveDate',\n 'defaultValue': state.approveDate || \"\",\n 'inputDisabled': false\n }]];\n return {\n mainCard: mainCard,\n additionalDetails: additionalDetails,\n tagInformation: tagInformation,\n approvals1: approvals1,\n approvals2: approvals2\n };\n};","map":{"version":3,"sources":["/Users/michielcarman/Projects/React Access/ClientApp/src/containers/Dspecs/Motor/motorFormBuilder.tsx"],"names":["motorFormBuilder","state","customerPartNumbers","mainCard","partCodeNameListforDropdown","partCodeName","partNumberDescription","statusName","partNumberComments","customerName","primaryCustomerPartNumber","vendorNameListForDropdown","primaryVendorName","primaryVendorPartNumber","secondaryVendorName","secondaryVendorPartNumber","filter","cpn","Name","CustomerPartNumber","undefined","pn","additionalDetails","oeReman","basicClass","makeFrom","sameAs","except","voltage","rotation","terminalPosition","drive","pinion","pitch","switch","switchPosition","ho","sae","mtgH","ftf","opening","treatment","curve","remarks","jsp","plrv","bracket","rtv","suctionPort","pressurePort","suctionFitting","pressureFitting","gasket","box","workInstructions","tagInformation","tagNumber","partDescription","paperTag","otherTag","partNo","ref","approvals1","reasonForChange","validationOfChange","approvals2","signed","createDate","approved","approveDate"],"mappings":"AAEA,OAAO,IAAMA,gBAAgB,GAAG,SAAnBA,gBAAmB,CAACC,KAAD,EAA8B;AAAA,MACpDC,mBADoD,GAC5BD,KAD4B,CACpDC,mBADoD;AAE1D,MAAMC,QAAQ,GAAG,CACb,CAAC;AACG,iBAAa,QADhB;AAEG,kBAAc,WAFjB;AAGG,kBAAc,EAHjB;AAIG,eAAW,cAJd;AAKG,YAAQF,KAAK,CAACG,2BALjB;AAMG,oBAAgBH,KAAK,CAACI,YANzB;AAOG,qBAAiB;AAPpB,GAAD,EAQG;AACC,iBAAa,MADd;AAEC,kBAAc,aAFf;AAGC,kBAAc,EAHf;AAIC,eAAW,uBAJZ;AAKC,oBAAgBJ,KAAK,CAACK,qBAAN,IAA+B,EALhD;AAMC,qBAAiB;AANlB,GARH,EAeG;AACC,iBAAa,MADd;AAEC,kBAAc,QAFf;AAGC,kBAAc,EAHf;AAIC,eAAW,YAJZ;AAKC,oBAAgBL,KAAK,CAACM,UAAN,IAAoB,EALrC;AAMC,qBAAiB;AANlB,GAfH,EAsBG;AACC,iBAAa,UADd;AAEC,kBAAc,UAFf;AAGC,kBAAc,aAHf;AAIC,eAAW,oBAJZ;AAKC,oBAAgBN,KAAK,CAACO,kBAAN,IAA4B,EAL7C;AAMC,qBAAiB;AANlB,GAtBH,CADa,EA+Bb,CAAC;AACG,iBAAa,MADhB;AAEG,kBAAc,UAFjB;AAGG,kBAAc,EAHjB;AAIG,eAAW,cAJd;AAKG,oBAAgBP,KAAK,CAACQ,YAAN,IAAsB,EALzC;AAMG,qBAAiB;AANpB,GAAD,EAOG;AACC,iBAAa,MADd;AAEC,kBAAc,cAFf;AAGC,kBAAc,EAHf;AAIC,eAAW,2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otorECO'\nimport { MotorCustomersPartNumberDto } from '../../../shared/interfaces/Index'\nexport const motorFormBuilder = (state: MotorECOFormState) => {\n let { customerPartNumbers } = state;\n const mainCard = [\n [{\n 'inputType': 'select',\n 'inputLabel': 'Part Code',\n 'inputClass': '',\n 'inputId': 'partCodeName',\n 'opts': state.partCodeNameListforDropdown,\n 'defaultValue': state.partCodeName,\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Description',\n 'inputClass': '',\n 'inputId': 'partNumberDescription',\n 'defaultValue': state.partNumberDescription || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Status',\n 'inputClass': '',\n 'inputId': 'statusName',\n 'defaultValue': state.statusName || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'textarea',\n 'inputLabel': 'Comments',\n 'inputClass': 'highlighted',\n 'inputId': 'partNumberComments',\n 'defaultValue': state.partNumberComments || \"\",\n 'inputDisabled': false,\n }],\n [{\n 'inputType': 'text',\n 'inputLabel': 'Customer',\n 'inputClass': '',\n 'inputId': 'customerName',\n 'defaultValue': state.customerName || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Customer P/N',\n 'inputClass': '',\n 'inputId': 'primaryCustomerPartNumber',\n 'defaultValue': state.primaryCustomerPartNumber || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'select',\n 'inputLabel': 'Primary Vendor',\n 'inputClass': '',\n 'inputId': 'primaryVendorName',\n 'opts': state.vendorNameListForDropdown,\n 'defaultValue': state.primaryVendorName || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Primary Vendor P/N',\n 'inputClass': '',\n 'inputId': 'primaryVendorPartNumber',\n 'defaultValue': state.primaryVendorPartNumber || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'select',\n 'inputLabel': 'Secondary Vendor',\n 'inputClass': '',\n 'inputId': 'secondaryVendorName',\n 'opts': state.vendorNameListForDropdown,\n 'defaultValue': state.secondaryVendorName || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Secondary Vendor P/N',\n 'inputClass': '',\n 'inputId': 'secondaryVendorPartNumber',\n 'defaultValue': state.secondaryVendorPartNumber || \"\",\n 'inputDisabled': false,\n }],\n [{\n 'inputType': 'text',\n 'inputLabel': 'Caterpillar P/N',\n 'inputClass': '',\n 'inputId': 'Caterpillar',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter((cpn: any) => cpn.Name == \"Caterpillar\")[0].CustomerPartNumber : undefined,\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Cummins P/N',\n 'inputClass': '',\n 'inputId': 'Cummins',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(pn => pn.Name == \"Cummins\")[0].CustomerPartNumber : undefined,\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Diesel Recon P/N',\n 'inputClass': '',\n 'inputId': 'DieselRecon',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(pn => pn.Name == \"Diesel Recon\")[0].CustomerPartNumber : undefined,\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'DRA Recon P/N',\n 'inputClass': '',\n 'inputId': 'DRARecon',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(pn => pn.Name == \"DRARecon\")[0].CustomerPartNumber : undefined,\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Komatsu P/N',\n 'inputClass': '',\n 'inputId': 'Komatsu',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(pn => pn.Name == \"Komatsu\")[0].CustomerPartNumber : undefined,\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'DDC P/N',\n 'inputClass': '',\n 'inputId': 'DDC',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(pn => pn.Name == \"DDC\")[0].CustomerPartNumber : undefined,\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Parker P/N',\n 'inputClass': '',\n 'inputId': 'Parker',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(pn => pn.Name == \"Parker\")[0].CustomerPartNumber : undefined,\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Other P/N',\n 'inputClass': '',\n 'inputId': 'Other',\n 'defaultValue': state.customerPartNumbers ? state.customerPartNumbers.filter(pn => pn.Name == \"Other\")[0].CustomerPartNumber : undefined,\n 'inputDisabled': false,\n }]\n ];\n const additionalDetails = [\n [{\n 'inputType': 'select',\n 'inputLabel': 'OE/Reman',\n 'inputClass': 'bluelighted',\n 'inputId': 'oeReman',\n 'opts': [\"OE\", \"Reman\"],\n 'defaultValue': state.oeReman || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'select',\n 'inputLabel': 'Basic Class',\n 'inputClass': 'bluelighted',\n 'inputId': 'basicClass',\n 'opts': [\"What\", \"options\", \"go\", \"here?\"],\n 'defaultValue': state.basicClass || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'select',\n 'inputLabel': 'Status',\n 'inputClass': 'bluelighted',\n 'inputId': 'statusName',\n 'defaultValue': state.statusName || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Make From',\n 'inputClass': 'bluelighted',\n 'inputId': 'makeFrom',\n 'defaultValue': state.makeFrom || \"\",\n 'inputDisabled': true,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Same As',\n 'inputClass': 'bluelighted',\n 'inputId': 'sameAs',\n 'defaultValue': state.sameAs || \"\",\n 'inputDisabled': true,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Except',\n 'inputClass': 'bluelighted',\n 'inputId': 'except',\n 'defaultValue': state.except || \"\",\n 'inputDisabled': true,\n },],\n [{\n 'inputType': 'text',\n 'inputLabel': 'Volts',\n 'inputClass': '',\n 'inputId': 'voltage',\n 'defaultValue': state.voltage || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Drive Rot',\n 'inputClass': '',\n 'inputId': 'rotation',\n 'defaultValue': state.rotation || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'TermP',\n 'inputClass': '',\n 'inputId': 'terminalPosition',\n 'defaultValue': state.terminalPosition || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Drive',\n 'inputClass': '',\n 'inputId': 'drive',\n 'defaultValue': state.drive || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Pinion',\n 'inputClass': 'highlighted',\n 'inputId': 'pinion',\n 'defaultValue': state.pinion || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Pitch',\n 'inputClass': '',\n 'inputId': 'pitch',\n 'defaultValue': state.pitch || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Switch',\n 'inputClass': '',\n 'inputId': 'switch',\n 'defaultValue': state.switch || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'SWitch Position',\n 'inputClass': '',\n 'inputId': 'switchPosition',\n 'defaultValue': state.switchPosition || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Ho',\n 'inputClass': '',\n 'inputId': 'ho',\n 'defaultValue': state.ho || \"\",\n 'inputDisabled': false,\n }],\n [{\n 'inputType': 'text',\n 'inputLabel': 'SAE',\n 'inputClass': 'highlighted',\n 'inputId': 'sae',\n 'defaultValue': state.sae || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'MtgH',\n 'inputClass': 'highlighted',\n 'inputId': 'mtgH',\n 'defaultValue': state.mtgH || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'FTF',\n 'inputClass': 'highlighted',\n 'inputId': 'ftf',\n 'defaultValue': state.ftf || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Opening',\n 'inputClass': 'highlighted',\n 'inputId': 'opening',\n 'defaultValue': state.opening || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Treatment',\n 'inputClass': '',\n 'inputId': 'treatment',\n 'defaultValue': state.treatment || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Curve',\n 'inputClass': '',\n 'inputId': 'curve',\n 'defaultValue': state.curve || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Service Type',\n 'inputClass': '',\n 'inputId': 'remarks',\n 'defaultValue': state.remarks || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'JSP',\n 'inputClass': 'highlighted',\n 'inputId': 'jsp',\n 'defaultValue': state.jsp || \"\",\n 'inputDisabled': false,\n }],\n [{\n 'inputType': 'checkbox',\n 'inputLabel': 'PLRV',\n 'inputClass': 'highlighted',\n 'inputId': 'plrv',\n 'defaultValue': state.plrv || false,\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Bracket',\n 'inputClass': 'highlighted',\n 'inputId': 'bracket',\n 'defaultValue': state.bracket || '',\n 'inputDisabled': false,\n }, {\n 'inputType': 'checkbox',\n 'inputLabel': 'RTV',\n 'inputClass': 'highlighted',\n 'inputId': 'rtv',\n 'defaultValue': state.rtv || false,\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Suction Port',\n 'inputClass': '',\n 'inputId': 'suctionPort',\n 'defaultValue': state.suctionPort || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Pressure Port',\n 'inputClass': '',\n 'inputId': 'pressurePort',\n 'defaultValue': state.pressurePort || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Suction Fitting',\n 'inputClass': 'highlighted',\n 'inputId': 'suctionFitting',\n 'defaultValue': state.suctionFitting || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Pressure Fitting',\n 'inputClass': 'highlighted',\n 'inputId': 'pressureFitting',\n 'defaultValue': state.pressureFitting || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Nose Hsg. Gasket',\n 'inputClass': 'highlighted',\n 'inputId': 'gasket',\n 'defaultValue': state.gasket || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Box',\n 'inputClass': '',\n 'inputId': 'box',\n 'defaultValue': state.box || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Work Instructions',\n 'inputClass': '',\n 'inputId': 'workInstructions',\n 'defaultValue': state.workInstructions || \"\",\n 'inputDisabled': false,\n }]\n ];\n const tagInformation = [[{\n 'inputType': 'text',\n 'inputLabel': 'Part # Tag',\n 'inputClass': '',\n 'inputId': 'tagNumber',\n 'defaultValue': state.tagNumber || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Description',\n 'inputClass': 'highlighted',\n 'inputId': 'partDescription',\n 'defaultValue': state.partDescription,\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Paper Tag',\n 'inputClass': 'highlighted',\n 'inputId': 'paperTag',\n 'defaultValue': state.paperTag || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Other Tag',\n 'inputClass': 'highlighted',\n 'inputId': 'otherTag',\n 'defaultValue': state.otherTag || \"\",\n 'inputDisabled': false,\n }], [{\n 'inputType': 'text',\n 'inputLabel': 'Part No',\n 'inputClass': 'highlighted',\n 'inputId': 'partNo',\n 'defaultValue': state.partNo || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Ref',\n 'inputClass': '',\n 'inputId': 'ref',\n 'defaultValue': state.ref || \"\",\n 'inputDisabled': false,\n }]];\n // Todo: Take care of bom data\n const approvals1 = [\n [{\n 'inputType': 'textarea',\n 'inputLabel': 'Reason for Change',\n 'inputClass': '',\n 'inputId': 'reasonForChange',\n 'defaultValue': state.reasonForChange || \"\",\n 'inputDisabled': false,\n }], [{\n 'inputType': 'textarea',\n 'inputLabel': 'Validation of Change',\n 'inputClass': '',\n 'inputId': 'validationOfChange',\n 'defaultValue': state.validationOfChange || \"\",\n 'inputDisabled': false,\n }]\n ];\n const approvals2 = [[{\n 'inputType': 'text',\n 'inputLabel': 'Signed',\n 'inputClass': '',\n 'inputId': 'signed',\n 'defaultValue': state.signed || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Signed Date',\n 'inputClass': '',\n 'inputId': 'createDate',\n 'defaultValue': state.createDate || \"\",\n 'inputDisabled': false,\n }], [{\n 'inputType': 'text',\n 'inputLabel': 'Checked',\n 'inputClass': '',\n 'inputId': 'approved',\n 'defaultValue': state.approved || \"\",\n 'inputDisabled': false,\n }, {\n 'inputType': 'text',\n 'inputLabel': 'Checked Date',\n 'inputClass': '',\n 'inputId': 'approveDate',\n 'defaultValue': state.approveDate || \"\",\n 'inputDisabled': false,\n }]];\n\n return {\n mainCard,\n additionalDetails,\n tagInformation,\n approvals1,\n approvals2\n }\n}"]},"metadata":{},"sourceType":"module"}
|