+
+ {getLabel(543549, "薪资所属月:")}
+ this.props.onChange({ dateRange: v })}/>
+
+
this.props.onChange({ name: v })}
+ onSearch={this.props.onSearch}
+ />
+
+ );
+ }
+}
+
+export default Index;
diff --git a/pc4mobx/hrmSalary/pages/calculate/components/calculateTablelist/index.js b/pc4mobx/hrmSalary/pages/calculate/components/calculateTablelist/index.js
new file mode 100644
index 00000000..2848af2e
--- /dev/null
+++ b/pc4mobx/hrmSalary/pages/calculate/components/calculateTablelist/index.js
@@ -0,0 +1,110 @@
+/*
+ * Author: 黎永顺
+ * name: 薪资核算-列表
+ * Description:
+ * Date: 2023/10/9
+ */
+import React, { Component } from "react";
+import { WeaLocaleProvider, WeaTable } from "ecCom";
+import { getSalaryAcctList } from "../../../../apis/calculate";
+
+const getLabel = WeaLocaleProvider.getLabel;
+
+class Index extends Component {
+ constructor(props) {
+ super(props);
+ this.state = {
+ loading: false, columns: [], dataSource: [],
+ pageInfo: { current: 1, pageSize: 10, total: 0 }
+ };
+ }
+
+ componentDidMount() {
+ const { queryParams } = this.props;
+ const { dateRange, ...extra } = queryParams;
+ const [startMonthStr, endMonthStr] = dateRange || [];
+ const params = { startMonthStr, endMonthStr, ...extra };
+ this.getSalaryAcctList(params);
+ }
+
+ componentWillReceiveProps(nextProps, nextContext) {
+ if (nextProps.queryParams !== this.props.queryParams) {
+ const { queryParams } = nextProps;
+ const { dateRange, ...extra } = queryParams;
+ const [startMonthStr, endMonthStr] = dateRange || [];
+ const params = { startMonthStr, endMonthStr, ...extra };
+ this.getSalaryAcctList(params);
+ }
+ }
+
+ getSalaryAcctList = (params) => {
+ const { pageInfo } = this.state;
+ const payload = { ...pageInfo, ...params };
+ this.setState({ loading: true });
+ getSalaryAcctList(payload).then(({ status, data }) => {
+ this.setState({ loading: false });
+ if (status) {
+ const { columns, list: dataSource, pageNum, pageSize, total } = data;
+ this.setState({
+ dataSource, pageInfo: { ...pageInfo, pageNum, pageSize, total },
+ columns: _.map(_.filter(columns, it => (it.dataIndex !== "backCalcStatus" && it.dataIndex !== "acctTimes")),
+ o => {
+ const { dataIndex } = o;
+ let width = "";
+ switch (dataIndex) {
+ case "status":
+ case "employeeSize":
+ width = "5%";
+ break;
+ case "salarySobName":
+ width = "20%";
+ break;
+ case "taxCycle":
+ case "description":
+ width = "15%";
+ break;
+ default:
+ width = "10%";
+ break;
+ }
+ if (dataIndex === "operate") {
+ }
+ return { ...o, width };
+ })
+ });
+ }
+ }).catch(() => this.setState({ loading: false }));
+ };
+
+ render() {
+ const { loading, dataSource, columns, pageInfo } = this.state;
+ const pagination = {
+ ...pageInfo,
+ showTotal: total => `${getLabel(18609, "共")} ${total} ${getLabel(18256, "条")}`,
+ showQuickJumper: true,
+ showSizeChanger: true,
+ pageSizeOptions: ["10", "20", "50", "100"],
+ onShowSizeChange: (current, pageSize) => {
+ this.setState({
+ pageInfo: { ...pageInfo, current, pageSize }
+ }, () => {
+ });
+ },
+ onChange: current => {
+ this.setState({
+ pageInfo: { ...pageInfo, current }
+ }, () => {
+ });
+ }
+ };
+ return (
+