From d652b2cdc61169d3c870781733a9a0a30f048e03 Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Wed, 23 Apr 2025 16:13:49 +0800 Subject: [PATCH] release/2.19.1.2501.01 --- .../pages/declare/components/declareQuery/index.js | 2 +- .../declare/components/declareTablelist/index.js | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/declare/components/declareQuery/index.js b/pc4mobx/hrmSalary/pages/declare/components/declareQuery/index.js index f5627a0c..e85383ca 100644 --- a/pc4mobx/hrmSalary/pages/declare/components/declareQuery/index.js +++ b/pc4mobx/hrmSalary/pages/declare/components/declareQuery/index.js @@ -17,7 +17,7 @@ class Index extends Component { return (
- {getLabel(543549, "薪资所属月:")} + {getLabel(111, "税款所属期:")} this.props.onChange({ dateRange: v })}/>
diff --git a/pc4mobx/hrmSalary/pages/declare/components/declareTablelist/index.js b/pc4mobx/hrmSalary/pages/declare/components/declareTablelist/index.js index b2cab8ff..7d119c09 100644 --- a/pc4mobx/hrmSalary/pages/declare/components/declareTablelist/index.js +++ b/pc4mobx/hrmSalary/pages/declare/components/declareTablelist/index.js @@ -8,7 +8,7 @@ import React, { Component } from "react"; import { WeaLocaleProvider, WeaTable } from "ecCom"; import { Dropdown, Menu, message, Modal } from "antd"; import { getDeclareList, withDrawTaxDeclaration } from "../../../../apis/declare"; -import { sysConfCodeRule } from "../../../../apis/ruleconfig"; +import { sysConfCodeRule, sysinfo } from "../../../../apis/ruleconfig"; const getLabel = WeaLocaleProvider.getLabel; @@ -35,9 +35,9 @@ class Index extends Component { if (status && data === "1") this.setState({ showWithDrawBtn: data === "1" }); }); }; - getDeclareList = (props) => { - const { pageInfo } = this.state; - const { queryParams } = props; + getDeclareList = async (props) => { + const { data: sysData } = await sysinfo(); + const { pageInfo } = this.state, { queryParams } = props; const { dateRange, ...extra } = queryParams; const [fromSalaryMonthStr, endSalaryMonthStr] = dateRange || []; const params = { fromSalaryMonthStr, endSalaryMonthStr, ...extra }; @@ -46,7 +46,8 @@ class Index extends Component { getDeclareList(payload).then(({ status, data }) => { this.setState({ loading: false }); if (status) { - const { columns, list: dataSource, pageNum, pageSize, total } = data; + let { columns, list: dataSource, pageNum, pageSize, total } = data; + sysData["TAX_DECLARATION_DATE_TYPE"] === "1" && (columns = _.filter(columns, o => o.dataIndex !== "salaryMonth")); this.setState({ dataSource, pageInfo: { ...pageInfo, pageNum, pageSize, total }, columns: _.map(columns, o => {