/* * Author: 黎永顺 * name: 薪资账套查询 * Description: * Date: 2023/11/27 */ import React, { Component } from "react"; import { inject, observer } from "mobx-react"; import { WeaSwitch } from "comsMobx"; import { WeaFormItem, WeaLocaleProvider, WeaSearchGroup } from "ecCom"; import { Button } from "antd"; import { searchConditions } from "../config"; const getLabel = WeaLocaleProvider.getLabel; @inject("ledgerStore") @observer class LedgerSearchComp extends Component { constructor(props) { super(props); this.state = { conditions: [] }; } componentDidMount() { const { ledgerStore: { searchForm } } = this.props; searchForm.initFormFields(searchConditions); } formRender = (form, condition) => { const { isFormInit } = form, formParams = form.getFormParams(); let group = []; isFormInit && condition && condition.map(c => { let items = []; c.items.map(fields => { items.push({ com: ( ), colSpan: 2 }); }); group.push( ); }); return group; }; render() { const { ledgerStore: { searchForm } } = this.props; return (
{this.formRender(searchForm, searchConditions)}
); } } export default LedgerSearchComp;