diff --git a/pc4mobx/hrmSalary/pages/calculate/calcOc/index.js b/pc4mobx/hrmSalary/pages/calculate/calcOc/index.js
index 62e0a92d..0869e675 100644
--- a/pc4mobx/hrmSalary/pages/calculate/calcOc/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/calcOc/index.js
@@ -9,6 +9,7 @@ import { Button } from "antd";
import { WeaCheckbox, WeaInputSearch, WeaLocaleProvider } from "ecCom";
import SalaryCalcOcList from "./components/salaryCalcOcList";
import SalaryCalcOcImport from "./components/salaryCalcOcImport";
+import { convertToUrlString } from "../../../util/url";
import Layout from "../doCalc/layout";
import "./index.less";
@@ -34,8 +35,12 @@ class Index extends Component {
};
handleExportClick = () => {
+ const { form: { onlyDiffEmployee, onlyDiffSalaryItem } } = this.state;
const { routeParams: { salaryAcctRecordId } } = this.props;
- window.open(`/api/bs/hrmsalary/salaryacct/comparisonresult/export?salaryAcctRecordId=${salaryAcctRecordId}`, "_blank");
+ const payload = {
+ salaryAcctRecordId, onlyDiffEmployee, onlyDiffSalaryItem
+ };
+ window.open(`/api/bs/hrmsalary/salaryacct/comparisonresult/export?${convertToUrlString(payload)}`, "_blank");
};
handleImportClick = () => {
const { routeParams: { salaryAcctRecordId } } = this.props;
diff --git a/pc4mobx/hrmSalary/pages/calculate/components/calculateTablelist/index.js b/pc4mobx/hrmSalary/pages/calculate/components/calculateTablelist/index.js
index 7fc9df9a..626eba5b 100644
--- a/pc4mobx/hrmSalary/pages/calculate/components/calculateTablelist/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/components/calculateTablelist/index.js
@@ -114,7 +114,7 @@ class Index extends Component {
}
};
}
- return { ...o, width };
+ return { ...o, width, render: (txt) => (
{txt}) };
})
});
}
@@ -142,7 +142,7 @@ class Index extends Component {
};
return (
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryCalcPersonConfirm/index.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryCalcPersonConfirm/index.js
index 6c544e8f..83588d5b 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryCalcPersonConfirm/index.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryCalcPersonConfirm/index.js
@@ -210,7 +210,7 @@ class Index extends Component {
},
{
title:
- {getLabel(542308, "环比上月增加人员")}
+ {getLabel(542309, "环比上月增加人员")}
- {fieldName}
+ {fieldName}
- {fieldValue}
+ {fieldValue}
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
index 831c2bd9..91797921 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/index.less
@@ -168,6 +168,10 @@
display: inline-block;
line-height: 24px;
padding: 8px 16px;
+ width: 100%;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
}
}
diff --git a/pc4mobx/hrmSalary/pages/calculate/index.less b/pc4mobx/hrmSalary/pages/calculate/index.less
index 013d6d00..b0418614 100644
--- a/pc4mobx/hrmSalary/pages/calculate/index.less
+++ b/pc4mobx/hrmSalary/pages/calculate/index.less
@@ -75,7 +75,6 @@
.calculate-body {
height: 100%;
width: 100%;
- padding: 16px;
overflow-y: auto;
.wea-new-table {
@@ -84,10 +83,12 @@
.ant-table-tbody {
td {
- width: 100%;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
+ span {
+ width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ }
}
}
diff --git a/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js b/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js
index e90564b3..87af593d 100644
--- a/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js
+++ b/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js
@@ -114,6 +114,7 @@ class FieldTable extends Component {
pagination={pagination}
loading={loading}
columns={this.getColumns()}
+ scroll={{ y: "calc(100vh - 152px)" }}
/>
);
}
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerTable.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerTable.js
index 9894f3db..1ad0dbbb 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerTable.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerTable.js
@@ -200,6 +200,7 @@ class LedgerTable extends Component {
pagination={pagination}
loading={loading}
columns={this.getColumns()}
+ scroll={{ y: "calc(100vh - 152px)" }}
/>
({
+ ...o, dataType: _.find(salaryArchiveItemDetail.salaryItemList, g => g.id === o.salaryItem).dataType
+ }))
+ },
conditions: _.map(adjCondition, item => {
return {
...item,
@@ -100,7 +106,10 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
...salaryArchiveItemDetail,
list: _.map(list, o => {
if (o.salaryItem === salaryItemId) {
- return { ...o, salaryBefore: data };
+ return {
+ ...o, salaryBefore: data,
+ dataType: _.find(salaryArchiveItemDetail.salaryItemList, g => g.id === salaryItemId).dataType
+ };
}
return { ...o };
})
@@ -109,6 +118,23 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
}
});
};
+ handleChangeAdjustAfter = (record, v) => {
+ const { salaryArchiveItemDetail } = this.state;
+ const { list } = salaryArchiveItemDetail;
+ this.setState({
+ salaryArchiveItemDetail: {
+ ...salaryArchiveItemDetail,
+ list: _.map(list, o => {
+ if (o.salaryItem === record.salaryItem) {
+ return {
+ ...o, adjustAfter: v
+ };
+ }
+ return { ...o };
+ })
+ }
+ });
+ };
save = () => {
const { salaryFileStore: { adjForm, fetchSingleSalaryItemList, getArchiveForm } } = this.props;
const { pass } = this.tableEdit.refs.edit.doRequiredCheck();
@@ -201,13 +227,31 @@ class SalaryArchiveEditAdjLogRecordDialog extends Component {
this.tableEdit = dom} deleteConfirm
- columns={adjColumns} datas={list} showCopy={false}
- showAdd={!id} showDelete={!id}
+ datas={list} showCopy={false} showAdd={!id} showDelete={!id}
onChange={o => this.setState({
salaryArchiveItemDetail: {
- ...salaryArchiveItemDetail, list: o
+ ...salaryArchiveItemDetail, list: _.map(o, it => ({ ...it, dataType: "" }))
}
- })}
+ })} columns={_.map(adjColumns, o => {
+ if (o.dataIndex === "adjustAfter") {
+ return {
+ ...o, render: (__, record) => {
+ if (record.dataType === "number") {
+ return this.handleChangeAdjustAfter(record, v)}
+ />;
+ } else {
+ return this.handleChangeAdjustAfter(record, v)}
+ />;
+ }
+ }
+ };
+ }
+ return { ...o };
+ })}
/>
:
diff --git a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
index ea62431c..634e6b30 100644
--- a/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
+++ b/pc4mobx/hrmSalary/pages/socialSecurityBenefits/standingBookDetail/components/inputPaymentAmount.js
@@ -19,7 +19,7 @@ class InputPaymentAmount extends Component {
render: (text, record) => {
return (
this.handleChangeBaseItem(record, val, type, "per")}
/>
);
@@ -30,7 +30,7 @@ class InputPaymentAmount extends Component {
render: (text, record) => {
return (
this.handleChangeBaseItem(record, val, type, "com")}
/>
);