/* eslint-disable array-callback-return,no-undef */ import React, { Component } from 'react'; import { Form } from '@ant-design/compatible'; import '@ant-design/compatible/assets/index.css'; import { Layout, Spin, Select } from 'antd-v4'; // Switch import styles from '../../index.less'; import * as commonFunc from '../Common/commonFunc'; import CommonBase from '../Common/CommonBase'; import * as commonBusiness from '../Common/commonBusiness';/* 单据业务功能 */ import StaticEditTable from '../Common/CommonTable';/* 可编辑表格 */ import SearchComponent from '../Common/SearchComponent';/* 搜索组件 */ import CommonProductionPlanEvent from '../Common/CommonProductionPlanEvent'; import config from '../../utils/config'; import ProductionHeader from './productionHeader';/* 可编辑表格 */ const { Option } = Select; const { Header, Content, Sider } = Layout; class ProductionPlanInfoComponentInfo2 extends Component { constructor(props) { super(props); this.state = {}; this.form = {}; /* 表单对象 */ } render() { const { pageLoading } = this.props; return (
); } } const ProductionPlanComponent = Form.create({ mapPropsToFields(props) { const { masterData } = props; const obj = commonFunc.mapPropsToFields(masterData, Form); return obj; }, })((props) => { const { form, onReturnForm, onSelectChange, sStateSelect, isDragAndDrop, stateOption, } = props; /* 回带表单 */ onReturnForm(form); const pageFlag = sStateSelect === '0' || sStateSelect === '1' || sStateSelect === '2'; const workTeamProps = { ...commonBusiness.getTableTypes('workCenter', props), tableProps: { rowKey: 'sWorkCenterId' }, isKeyUsesId: false, enabled: false, }; const machineProps = { ...commonBusiness.getTableTypes(sStateSelect === '0' ? 'unMachine' : 'machine', props), tableProps: { rowKey: 'sMachineId' }, isKeyUsesId: false, enabled: false, }; const pagination = { onChange: props.onPaginationChange, size: 'large', pageSize: config.pageSize, pageNum: config.pageNum, showQuickJumper: true, }; const processProps = { ...commonBusiness.getTableTypes('slave', props), tableProps: { pagination: pageFlag ? false : pagination }, scrollX: 3, isDragAndDrop, }; return (
); }); export default CommonBase(CommonProductionPlanEvent(ProductionPlanInfoComponentInfo2));