个税相关-往期累计情况添加在线获取的功能
This commit is contained in:
parent
d446bcb133
commit
d330b0b40e
|
|
@ -121,3 +121,7 @@ export const deleteAllAddUpSituation = (params) => {
|
||||||
export const getAddUpSituation = (params) => {
|
export const getAddUpSituation = (params) => {
|
||||||
return postFetch('/api/bs/hrmsalary/addUpSituation/getAddUpSituation', params);
|
return postFetch('/api/bs/hrmsalary/addUpSituation/getAddUpSituation', params);
|
||||||
}
|
}
|
||||||
|
//个税相关-在线获取
|
||||||
|
export const onlineActualAddUpAdvanceTax = (params) => {
|
||||||
|
return postFetch('/api/bs/hrmsalary/addUpSituation/online/actualAddUpAdvanceTax', params);
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
import React, { Component } from "react";
|
import React, { Component } from "react";
|
||||||
import { inject, observer } from "mobx-react";
|
import { inject, observer } from "mobx-react";
|
||||||
import { WeaSearchGroup } from "ecCom";
|
import { WeaLoadingGlobal, WeaLocaleProvider, WeaSearchGroup } from "ecCom";
|
||||||
import { Button, Dropdown, Menu, message, Modal } from "antd";
|
import { Button, Dropdown, Menu, message, Modal } from "antd";
|
||||||
import {
|
import {
|
||||||
createAddUpSituation,
|
createAddUpSituation,
|
||||||
|
|
@ -16,7 +16,8 @@ import {
|
||||||
getAddUpSituation,
|
getAddUpSituation,
|
||||||
getCumSituationSaCondition,
|
getCumSituationSaCondition,
|
||||||
importCumSituationParam,
|
importCumSituationParam,
|
||||||
importCumSituationPreview
|
importCumSituationPreview,
|
||||||
|
onlineActualAddUpAdvanceTax
|
||||||
} from "../../../apis/cumSituation";
|
} from "../../../apis/cumSituation";
|
||||||
import { removePropertyCondition } from "../../../util/response";
|
import { removePropertyCondition } from "../../../util/response";
|
||||||
import DataTables from "../dataTables";
|
import DataTables from "../dataTables";
|
||||||
|
|
@ -30,6 +31,8 @@ import TableRecord from "../components/tableRecord";
|
||||||
import { situationModalColumns } from "../cumDeduct/columns";
|
import { situationModalColumns } from "../cumDeduct/columns";
|
||||||
import { convertToUrlString } from "../../../util/url";
|
import { convertToUrlString } from "../../../util/url";
|
||||||
|
|
||||||
|
const getLabel = WeaLocaleProvider.getLabel;
|
||||||
|
|
||||||
@inject("taxAgentStore", "cumSituationStore")
|
@inject("taxAgentStore", "cumSituationStore")
|
||||||
@observer
|
@observer
|
||||||
class Index extends Component {
|
class Index extends Component {
|
||||||
|
|
@ -304,6 +307,40 @@ class Index extends Component {
|
||||||
exportPayloadUrl: `${window.location.origin}/api/bs/hrmsalary/addUpSituation/export?ids=${ids.join(",")}&year=${year}&taxYearMonth=${year}-${declareMonth}&taxAgentId=${taxAgentId}`
|
exportPayloadUrl: `${window.location.origin}/api/bs/hrmsalary/addUpSituation/export?ids=${ids.join(",")}&year=${year}&taxYearMonth=${year}-${declareMonth}&taxAgentId=${taxAgentId}`
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
/*
|
||||||
|
* Author: 黎永顺
|
||||||
|
* Description: 个税相关-在线获取
|
||||||
|
* Params:
|
||||||
|
* Date: 2023/9/6
|
||||||
|
*/
|
||||||
|
handleOnlineAccess = () => {
|
||||||
|
Modal.confirm({
|
||||||
|
title: getLabel(131329, "信息确认"),
|
||||||
|
content: getLabel(111, "确定要在线获取税局数据更新实际累计已预扣预缴税额?\n" +
|
||||||
|
"此操作会依据实际累计已预扣预缴税额自动计算个税调差,不可回退,可重复获取,每次获取后重复数据会进行覆盖处理。"),
|
||||||
|
onOk: this.onlineActualAddUpAdvanceTax
|
||||||
|
});
|
||||||
|
};
|
||||||
|
onlineActualAddUpAdvanceTax = () => {
|
||||||
|
const { declareMonth, year } = this.state;
|
||||||
|
const payload = {
|
||||||
|
declareMonth: year + "-" + declareMonth + "-01"
|
||||||
|
};
|
||||||
|
WeaLoadingGlobal.start();
|
||||||
|
onlineActualAddUpAdvanceTax(payload).then(({ status, errormsg }) => {
|
||||||
|
WeaLoadingGlobal.end();
|
||||||
|
WeaLoadingGlobal.destroy();
|
||||||
|
if (status) {
|
||||||
|
message.success(getLabel(111, "获取成功!"));
|
||||||
|
this.tableRef.getTableDate();
|
||||||
|
} else {
|
||||||
|
message.error(errormsg);
|
||||||
|
}
|
||||||
|
}).catch(() => {
|
||||||
|
WeaLoadingGlobal.end();
|
||||||
|
WeaLoadingGlobal.destroy();
|
||||||
|
});
|
||||||
|
};
|
||||||
/*
|
/*
|
||||||
* Author: 黎永顺
|
* Author: 黎永顺
|
||||||
* Description: 顶部操作按钮
|
* Description: 顶部操作按钮
|
||||||
|
|
@ -314,6 +351,7 @@ class Index extends Component {
|
||||||
const { addAllLoading } = this.state;
|
const { addAllLoading } = this.state;
|
||||||
return [
|
return [
|
||||||
<Button type="primary" onClick={this.handleOpenImport}>导入</Button>,
|
<Button type="primary" onClick={this.handleOpenImport}>导入</Button>,
|
||||||
|
<Button type="ghost" onClick={this.handleOnlineAccess}>{getLabel(111, "在线获取")}</Button>,
|
||||||
<Button type="ghost" onClick={() => this.handleAddData()}>新建</Button>,
|
<Button type="ghost" onClick={() => this.handleAddData()}>新建</Button>,
|
||||||
<Dropdown
|
<Dropdown
|
||||||
overlay={
|
overlay={
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue