diff --git a/pc4mobx/hrmSalary/apis/calculate.js b/pc4mobx/hrmSalary/apis/calculate.js
index a41a7c07..b953fa9b 100644
--- a/pc4mobx/hrmSalary/apis/calculate.js
+++ b/pc4mobx/hrmSalary/apis/calculate.js
@@ -235,6 +235,10 @@ export const updateLockStatus = (params) => {
export const updateLockEmpStatus = (params) => {
return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/lockEmp", params);
};
+// 单元格锁定
+export const updateLockEmpCellStatus = (params) => {
+ return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/lock", params);
+};
// 导入薪资核算添加表头字段缓存
export const cacheImportField = (params) => {
return postFetch("/api/bs/hrmsalary/salaryacct/acctresult/cacheImportField", params);
diff --git a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
index 96e717fe..d7ffbc62 100644
--- a/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
+++ b/pc4mobx/hrmSalary/pages/calculate/doCalc/components/salaryEditCalc/editCalcTable.js
@@ -8,7 +8,12 @@ import React, { Component } from "react";
import { WeaLocaleProvider, WeaTools } from "ecCom";
import { message, Modal, Spin } from "antd";
import { inject, observer } from "mobx-react";
-import { acctResultList, updateLockEmpStatus, updateLockStatus } from "../../../../../apis/calculate";
+import {
+ acctResultList,
+ updateLockEmpCellStatus,
+ updateLockEmpStatus,
+ updateLockStatus
+} from "../../../../../apis/calculate";
import ProgressModal from "../../../../../components/progressModal";
import BatchUpdateSalaryItemValDialog from "./batchUpdateSalaryItemValDialog";
import EditSalaryCalcSlide from "./editSalaryCalcSlide";
@@ -135,7 +140,7 @@ class EditCalcTable extends Component {
});
};
updateEmpLockStatus = (payload) => {
- const { lockStatus } = payload;
+ const { lockStatus, salaryItemId } = payload;
Modal.confirm({
title: getLabel(131329, "信息确认"),
content:
@@ -166,13 +171,16 @@ class EditCalcTable extends Component {
}, 500);
});
const { routeParams: { salaryAcctRecordId } } = this.props;
- updateLockEmpStatus({ ...payload, salaryAcctRecordId }).then(({ status, errormsg }) => {
+ const params = salaryItemId ? payload : { ...payload, salaryAcctRecordId };
+ const APIFunction = salaryItemId ? updateLockEmpCellStatus : updateLockEmpStatus;
+ APIFunction(params).then(({ status, errormsg }) => {
+ clearInterval(this.timerLock);
+ this.setState({
+ progressVisible: false,
+ progress: 0
+ });
if (status) {
- clearInterval(this.timerLock);
- this.setState({
- progressVisible: false,
- progress: 0
- }, () => this.queryCalcResultList());
+ this.queryCalcResultList();
} else {
message.error(errormsg);
}
@@ -224,8 +232,8 @@ class EditCalcTable extends Component {
"点击锁定所有解锁的项目值": getLabel(543649, "点击锁定所有解锁的项目值"),
"点击解锁所有锁定的项目值": getLabel(543648, "点击解锁所有锁定的项目值"),
"锁定的项目值": getLabel(543647, "锁定的项目值"),
- "当前状态锁定,点击解锁": getLabel(111, "当前状态锁定,点击解锁"),
- "当前状态未锁定,点击锁定": getLabel(111, "当前状态未锁定,点击锁定"),
+ "当前状态锁定,右击解锁": getLabel(111, "当前状态锁定,右击解锁"),
+ "当前状态未锁定,右击锁定": getLabel(111, "当前状态未锁定,右击锁定"),
"共": getLabel(18609, "共"), "条": getLabel(18256, "条"),
"总计": getLabel(523, "总计"), "批量解锁": getLabel(111, "批量解锁"),
"批量锁定": getLabel(111, "批量锁定"), "批量更新": getLabel(111, "批量更新"),
diff --git a/pc4mobx/hrmSalary/pages/calculate/index.less b/pc4mobx/hrmSalary/pages/calculate/index.less
index bc3f7755..045f4b8c 100644
--- a/pc4mobx/hrmSalary/pages/calculate/index.less
+++ b/pc4mobx/hrmSalary/pages/calculate/index.less
@@ -76,6 +76,8 @@
height: 100%;
width: 100%;
overflow-y: auto;
+ padding: 8px 16px 0 16px;
+ background: #F6F6F6;
.wea-new-table {
background: #fff;
@@ -83,7 +85,7 @@
.ant-table-tbody {
.ant-table-row-indent {
- display: none!important;
+ display: none !important;
}
td:not(.ant-table-selection-column) {
diff --git a/pc4mobx/hrmSalary/pages/declare/index.less b/pc4mobx/hrmSalary/pages/declare/index.less
index 52564e0a..9e4ced1a 100644
--- a/pc4mobx/hrmSalary/pages/declare/index.less
+++ b/pc4mobx/hrmSalary/pages/declare/index.less
@@ -1,7 +1,8 @@
.generateDeclarationDetail {
- .tabWrapper{
+ .tabWrapper {
padding-left: 10px
}
+
.tableWrapper {
height: calc(100vh - 48px);
overflow: auto;
@@ -34,7 +35,8 @@
.declare-body {
height: 100%;
width: 100%;
- padding: 16px;
+ padding: 8px 16px 0 16px;
+ background: #F6F6F6;
overflow-y: auto;
.wea-new-table {
diff --git a/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js b/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js
index ad3cd14a..840da963 100644
--- a/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js
+++ b/pc4mobx/hrmSalary/pages/fieldManagement/components/fieldTable.js
@@ -127,7 +127,7 @@ class FieldTable extends Component {
pagination={pagination}
loading={loading}
columns={this.getColumns()}
- scroll={{ y: "calc(100vh - 152px)" }}
+ scroll={{ y: "calc(100vh - 175px)" }}
/>
);
}
diff --git a/pc4mobx/hrmSalary/pages/fieldManagement/index.js b/pc4mobx/hrmSalary/pages/fieldManagement/index.js
index 65da711e..b0d483c9 100644
--- a/pc4mobx/hrmSalary/pages/fieldManagement/index.js
+++ b/pc4mobx/hrmSalary/pages/fieldManagement/index.js
@@ -99,7 +99,7 @@ class FieldManagement extends Component {
];
return (
} iconBgcolor="#F14A2D"
+ title="字段管理" icon={
} iconBgcolor="#F14A2D" className="fieldManageWrapper"
buttons={(showSalaryItemBtn || showOperateBtn) ? btns : btns.slice(-1)}
showDropIcon onDropMenuClick={this.onDropMenuClick}
dropMenuDatas={[
@@ -109,26 +109,23 @@ class FieldManagement extends Component {
}
]}
>
-
- this.handleDeleteField([record.id])}
- onFilterLog={(type, targetid) => this.onDropMenuClick(type, targetid)}
- />
- this.setState({
- slideparams: {
- ...slideparams,
- record: { ...slideparams.record, ...record }
- }
- })}
- onCancel={this.handleResetField}
- onRefreshList={() => this.setState({ doSearch: !doSearch })}
- />
- {/*操作日志*/}
- this.setState({ logDialogVisible: false })}/>
-
+
this.handleDeleteField([record.id])}
+ onFilterLog={(type, targetid) => this.onDropMenuClick(type, targetid)}/>
+ this.setState({
+ slideparams: {
+ ...slideparams,
+ record: { ...slideparams.record, ...record }
+ }
+ })}
+ onCancel={this.handleResetField}
+ onRefreshList={() => this.setState({ doSearch: !doSearch })}
+ />
+ {/*操作日志*/}
+ this.setState({ logDialogVisible: false })}/>
);
}
diff --git a/pc4mobx/hrmSalary/pages/fieldManagement/index.less b/pc4mobx/hrmSalary/pages/fieldManagement/index.less
index 4053721e..3fefa7cc 100644
--- a/pc4mobx/hrmSalary/pages/fieldManagement/index.less
+++ b/pc4mobx/hrmSalary/pages/fieldManagement/index.less
@@ -1,3 +1,15 @@
+
+.fieldManageWrapper {
+ .wea-new-top-content {
+ background: #F6F6F6;
+ padding: 8px 16px 0 16px;
+ }
+
+ .wea-new-table {
+ background: #FFF;
+ }
+}
+
.slideOuterWrapper {
.wea-form-item-group {
margin: 16px;
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemNormal.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemNormal.js
index 2e48ba54..1c176f06 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemNormal.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSalaryItemNormal.js
@@ -232,11 +232,11 @@ const TitleNormalComp = (props) => {
onDeleteCategory(uuid)}/>
}
{
- sortedIndex !== 0 && showOperateBtn &&
+ name !== getLabel(111, "未分类") && sortedIndex !== 0 && showOperateBtn &&
onUpgo(sortedIndex)}/>
}
{
- sortedIndex !== dataSourceLen - 1 && showOperateBtn &&
+ name !== getLabel(111, "未分类") && sortedIndex !== dataSourceLen - 2 && showOperateBtn &&
onDowngo(sortedIndex)}/>
}
diff --git a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSearchComp.js b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSearchComp.js
index a95d9048..821ba416 100644
--- a/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSearchComp.js
+++ b/pc4mobx/hrmSalary/pages/ledgerPage/components/ledgerSearchComp.js
@@ -15,8 +15,7 @@ import { getTaxAgentSelectList } from "../../../apis/taxAgent";
const getKey = WeaTools.getKey;
const getLabel = WeaLocaleProvider.getLabel;
-@inject("ledgerStore")
-@observer
+@inject("ledgerStore") @observer
class LedgerSearchComp extends Component {
constructor(props) {
super(props);
@@ -36,14 +35,11 @@ class LedgerSearchComp extends Component {
this.setState({
conditions: _.map(searchConditions, o => {
return {
- ...o,
- items: _.map(o.items, j => {
+ ...o, items: _.map(o.items, j => {
if (getKey(j) === "taxAgentId") {
return {
- ...j,
- options: [{ key: "", showname: getLabel(332, "全部") }, ..._.map(data, g => ({
- key: g.id,
- showname: g.content
+ ...j, options: [{ key: "", showname: getLabel(332, "全部") }, ..._.map(data, g => ({
+ key: g.id, showname: g.content
}))]
};
}
@@ -62,19 +58,16 @@ class LedgerSearchComp extends Component {
let items = [];
c.items.map(fields => {
items.push({
- com: (
-