Merge branch 'release/2.19.1.2501.01' into release/3.0.1.2504.01-合并业务线

This commit is contained in:
lys 2025-09-12 09:58:22 +08:00
commit 61ff174303
1 changed files with 11 additions and 3 deletions

View File

@ -2,6 +2,7 @@ import React from "react";
import { inject, observer } from "mobx-react"; import { inject, observer } from "mobx-react";
import { WeaLocaleProvider, WeaTable, WeaTop } from "ecCom"; import { WeaLocaleProvider, WeaTable, WeaTop } from "ecCom";
import { getQueryString } from "../../util/url"; import { getQueryString } from "../../util/url";
import { sysinfo } from "../../apis/ruleconfig";
import * as API from "../../apis/declare"; import * as API from "../../apis/declare";
import { Button } from "antd"; import { Button } from "antd";
import "./index.less"; import "./index.less";
@ -14,15 +15,21 @@ export default class GenerateDeclarationDetail extends React.Component {
super(props); super(props);
this.state = { this.state = {
loading: false, dataSource: [], columns: [], declareInfo: {}, loading: false, dataSource: [], columns: [], declareInfo: {},
pageInfo: { current: 1, pageSize: 10, total: 0 } pageInfo: { current: 1, pageSize: 10, total: 0 }, sysinfo: {}
}; };
} }
componentDidMount() { componentDidMount() {
this.getDetailList(); this.getDetailList();
this.getDeclareInfo(); this.getDeclareInfo();
this.getSysinfo();
} }
getSysinfo = () => {
sysinfo().then(({ status, data: sysinfo }) => {
if (status) this.setState({ sysinfo });
});
};
getDetailList = () => { getDetailList = () => {
const { pageInfo } = this.state; const { pageInfo } = this.state;
const payload = { const payload = {
@ -64,9 +71,10 @@ export default class GenerateDeclarationDetail extends React.Component {
window.open(url, "_self"); window.open(url, "_self");
}; };
renderTitle = () => { renderTitle = () => {
const { declareInfo } = this.state; const { declareInfo, sysinfo } = this.state;
const title = sysinfo["TAX_DECLARATION_DATE_TYPE"] === "1" ? getLabel(111, "税款所属期") : getLabel(111, "薪资所属月");
return (<React.Fragment> return (<React.Fragment>
<span>{getLabel(111, "薪资所属月")}{declareInfo.salaryMonth}</span> <span>{title}{declareInfo.salaryMonth}</span>
<span style={{ marginLeft: "10px" }}>{getLabel(111, "个税扣缴义务人")}{declareInfo.taxAgentName}</span> <span style={{ marginLeft: "10px" }}>{getLabel(111, "个税扣缴义务人")}{declareInfo.taxAgentName}</span>
</React.Fragment>); </React.Fragment>);
}; };