Merge branch 'feature/2.19.1.2501.01-双击编辑核算结果' into custom/金华交投
This commit is contained in:
commit
278fc3dad5
|
|
@ -10,6 +10,7 @@ import { message, Modal, Spin } from "antd";
|
|||
import { inject, observer } from "mobx-react";
|
||||
import {
|
||||
acctResultList,
|
||||
salaryacctBatchUpdate,
|
||||
updateLockEmpCellStatus,
|
||||
updateLockEmpStatus,
|
||||
updateLockStatus
|
||||
|
|
@ -83,6 +84,9 @@ class EditCalcTable extends Component {
|
|||
const { salaryItemId: itemid, acctEmpId } = params;
|
||||
window.open(`/spa/hrmSalary/static/index.html#/main/hrmSalary/topologyView/${salarySobId}/${itemid}?acctEmpId=${acctEmpId}`, "_blank");
|
||||
break;
|
||||
case "EDITCELL":
|
||||
this.updateSalaryItemVal(params);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
@ -188,6 +192,18 @@ class EditCalcTable extends Component {
|
|||
}
|
||||
});
|
||||
};
|
||||
updateSalaryItemVal = (payload) => {
|
||||
const { routeParams: { salaryAcctRecordId } } = this.props;
|
||||
if (!payload.salaryItemId) return;
|
||||
salaryacctBatchUpdate({ ...payload, salaryAcctRecordId }).then(({ status, errormsg }) => {
|
||||
if (status) {
|
||||
message.success(getLabel(30700, "操作成功!"));
|
||||
this.queryCalcResultList();
|
||||
} else {
|
||||
message.error(errormsg);
|
||||
}
|
||||
});
|
||||
};
|
||||
batchUpdateSalaryItemVal = (payload) => {
|
||||
Modal.confirm({
|
||||
title: getLabel(131329, "信息确认"),
|
||||
|
|
@ -238,7 +254,8 @@ class EditCalcTable extends Component {
|
|||
"总计": getLabel(523, "总计"), "批量解锁": getLabel(111, "批量解锁"),
|
||||
"批量锁定": getLabel(111, "批量锁定"), "批量更新": getLabel(111, "批量更新"),
|
||||
"查看拓扑图": getLabel(111, "查看拓扑图"), "锁定": getLabel(111, "锁定"),
|
||||
"解锁": getLabel(111, "解锁"), "查看": getLabel(111, "查看")
|
||||
"解锁": getLabel(111, "解锁"), "查看": getLabel(111, "查看"),
|
||||
"双击单元格更新": getLabel(111, "双击单元格更新")
|
||||
};
|
||||
this.setState({ originPayloadData: { ...payload, i18n } });
|
||||
const childFrameObj = document.getElementById("atdTable");
|
||||
|
|
|
|||
Loading…
Reference in New Issue