custom/领悦
This commit is contained in:
parent
50a73b29eb
commit
1ea3529b5a
|
|
@ -9,12 +9,13 @@
|
|||
*/
|
||||
import React, { Component } from "react";
|
||||
import { inject, observer } from "mobx-react";
|
||||
import { WeaDatePicker, WeaFormItem, WeaInputSearch, WeaLocaleProvider, WeaTable, WeaTop } from "ecCom";
|
||||
import { WeaDatePicker, WeaFormItem, WeaInputSearch, WeaLocaleProvider, WeaSelect, WeaTable, WeaTop } from "ecCom";
|
||||
import { message, Modal } from "antd";
|
||||
import HistoryVouncherDetail from "./historyVouncherDetail";
|
||||
import * as API from "../../../../apis/custom-apis/lingyue";
|
||||
import { deleteHistoryVoucher } from "../../../../apis/custom-apis/lingyue";
|
||||
import moment from "moment";
|
||||
import { commonEnumList } from "../../../../apis/ruleconfig";
|
||||
|
||||
const getLabel = WeaLocaleProvider.getLabel;
|
||||
|
||||
|
|
@ -25,14 +26,25 @@ class Index extends Component {
|
|||
super(props);
|
||||
this.state = {
|
||||
dataSource: [], columns: [], loading: false, pageInfo: { current: 1, pageSize: 10, total: 0 },
|
||||
query: { salaryMonth: moment().format("YYYY-MM"), frzt: "" }, detail: { visible: false, id: "" }
|
||||
query: { salaryMonth: moment().format("YYYY-MM"), frzt: "", pzlx: "" }, detail: { visible: false, id: "" },
|
||||
pzlxOptions: []
|
||||
};
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
this.init();
|
||||
this.getHistoryVoucherList();
|
||||
}
|
||||
|
||||
init = () => {
|
||||
commonEnumList({ enumClass: "com.engine.salary.enums.ly.LyPZTypeEnum" }).then(({ status, data }) => {
|
||||
if (status) {
|
||||
this.setState({
|
||||
pzlxOptions: _.map(data, item => ({ key: String(item.value), showname: item.defaultLabel }))
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
getHistoryVoucherList = () => {
|
||||
const { pageInfo, query } = this.state, { taxAgentStore: { salaryManager } } = this.props;
|
||||
const payload = { ...pageInfo, ...query };
|
||||
|
|
@ -80,8 +92,8 @@ class Index extends Component {
|
|||
};
|
||||
|
||||
render() {
|
||||
const { query, dataSource, columns, pageInfo, loading, detail } = this.state;
|
||||
const { salaryMonth, frzt } = query;
|
||||
const { query, dataSource, columns, pageInfo, loading, detail, pzlxOptions } = this.state;
|
||||
const { salaryMonth, frzt, pzlx } = query;
|
||||
const pagination = {
|
||||
...pageInfo,
|
||||
showTotal: total => `${getLabel(111, "共")} ${total} ${getLabel(111, "条")}`,
|
||||
|
|
@ -109,6 +121,12 @@ class Index extends Component {
|
|||
pageInfo: { ...pageInfo, current: 1 }
|
||||
}, () => this.getHistoryVoucherList())}/>
|
||||
</WeaFormItem>,
|
||||
<WeaFormItem label={getLabel(111, "凭证类型")} labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>
|
||||
<WeaSelect value={pzlx} options={pzlxOptions} onChange={value => this.setState({
|
||||
query: { ...query, pzlx: value },
|
||||
pageInfo: { ...pageInfo, current: 1 }
|
||||
}, () => this.getHistoryVoucherList())}/>
|
||||
</WeaFormItem>,
|
||||
<WeaFormItem label={getLabel(111, "法人主体")} labelCol={{ span: 8 }} wrapperCol={{ span: 16 }}>
|
||||
<WeaInputSearch value={frzt} onChange={value => this.setState({ query: { ...query, frzt: value } })}
|
||||
onSearch={() => this.setState({
|
||||
|
|
|
|||
Loading…
Reference in New Issue