hotfix/2.15.1.2409.01

This commit is contained in:
黎永顺 2024-09-29 10:57:22 +08:00
parent f2b17872f7
commit 9c318d22b7
3 changed files with 36 additions and 1 deletions

View File

@ -95,7 +95,10 @@ export const comparisonresultList = (params) => {
export const refreshTaxAgent = (params) => {
return postFetch("/api/bs/hrmsalary/salaryacct/acctemployee/refreshTaxAgent", params);
};
// 核算人员--刷新薪资核算人员的
export const refreshAcctemployee = (params) => {
return postFetch("/api/bs/hrmsalary/salaryacct/acctemployee/refresh", params);
};
// 薪资核算-编辑表单
export const acctresultDetail = (params) => {
return WeaTools.callApi("/api/bs/hrmsalary/salaryacct/acctresult/detail", "GET", params);

View File

@ -14,6 +14,7 @@ import {
addedemployeeList,
deleteAcctemployee,
reducedemployeeList,
refreshAcctemployee,
saveAcctemployee
} from "../../../../../apis/calculate";
import { personConfirmSearchConditions } from "./condition";
@ -90,6 +91,8 @@ class Index extends Component {
>
<WeaButtonIcon buttonType="add" type="primary" title={getLabel(1421, "新增")}/>
</WeaBrowser>,
<span className="icon-refresh" onClick={this.handleRefresh}><i
className="icon-coms-Refresh"/></span>,
<Button type="primary" onClick={this.handleExport}>{getLabel(17416, "导出")}</Button>
];
break;
@ -180,6 +183,23 @@ class Index extends Component {
}
});
};
handleRefresh = () => {
if (!this.handleDebounce) {
this.handleDebounce = _.debounce(() => {
const { routeParams: { salaryAcctRecordId } } = this.props;
refreshAcctemployee({ salaryAcctRecordId }).then(({ status, errormsg }) => {
if (status) {
message.success(getLabel(111, "操作成功!"));
this.queryPCList();
} else {
message.error(errormsg);
}
});
this.handleDebounce = null;
}, 500);
}
this.handleDebounce();
};
render() {
const { calculateStore: { PCSearchForm } } = this.props;

View File

@ -6,6 +6,18 @@
.wea-new-table {
background: #fff;
}
.icon-refresh {
display: flex;
justify-content: center;
align-items: center;
width: 20px;
height: 20px;
color: #fff;
background: #55a1f8;
cursor: pointer;
border-radius: 3px;
}
}
.docalc-baseinfo-layout {