feature/2.14.5.2406.03-工资单查看详情列表添加自定义列的功能

This commit is contained in:
黎永顺 2024-07-15 18:42:26 +08:00
parent 6d73b146c4
commit 0628c1499b
2 changed files with 9 additions and 2 deletions

View File

@ -88,7 +88,8 @@ class Index extends Component {
const sumRowlistUrl = showTotalCell ? "/api/bs/hrmsalary/salaryBill/send/sum" : "";
if (!_.isEmpty(columns)) {
this.postMessageToChild({
dataSource, pageInfo, selectedRowKeys, showTotalCell, calcDetail: true, tableScrollHeight: 154,
dataSource, pageInfo, selectedRowKeys, showTotalCell, calcDetail: true,
tableScrollHeight: pageInfo.total === 0 ? 90 : 156,
sumRowlistUrl, payload: { ...payload, updateSum },
columns: _.map(columns, (it, idx) => ({
...it, width: it.oldWidth, fixed: (idx === 1 || idx === 0 || idx === 2) ? "left" : "",
@ -124,7 +125,7 @@ class Index extends Component {
<div style={{
height: `calc((39px * ${columnNum}) + 126.84px)`,
maxHeight: "678px",
minHeight: "270px"
minHeight: !total ? "270px" : "inherit"
}}>
<Spin spinning={loading}>
<iframe

View File

@ -49,6 +49,12 @@ class PayrollDetail extends Component {
}, () => detailListConditionForm.initFormFields(this.state.conditions));
}
handleExportAll = () => {
const salarySendId = getQueryString("id");
const url = `${window.location.origin}/api/bs/hrmsalary/salaryBill/send/exportDetailList?salarySendId=${salarySendId}`;
window.open(url, "_self");
};
render() {
const { salarySendDetailBaseInfo, showSearchAd, conditions, isQuery, showTotalCell } = this.state;
const { taxAgentStore: { showOperateBtn }, payrollStore: { salaryTableStore } } = this.props;