薪资核算页面列表头添加所有按钮
This commit is contained in:
parent
7560e00afb
commit
165ee3d7ba
|
|
@ -1,5 +1,6 @@
|
|||
import React from "react";
|
||||
import { WeaHelpfulTip, WeaSlideModal } from "ecCom";
|
||||
import { Modal } from 'antd';
|
||||
import WarningModal from "./warningModal";
|
||||
import EditSalaryDetail from "./editSalaryDetail";
|
||||
import SlideModalTitle from "../../components/slideModalTitle";
|
||||
|
|
@ -43,12 +44,38 @@ export default class SalaryDetail extends React.Component {
|
|||
handleClick = ({ data }) => {
|
||||
const childFrameObj = document.getElementById("atdTable");
|
||||
const salaryAcctRecordId = getQueryString("id");
|
||||
const { type, data: { id, data: record } = {} } = data;
|
||||
const { type, data: { id, data: record, extraId = "" } = {} } = data;
|
||||
if (type === "PR") {
|
||||
if (id === "EDIT") {
|
||||
this.handleEdit(record);
|
||||
} else if (id === "COLUMNINDEX") {
|
||||
this.setState({ columnIndex: record });
|
||||
if(!extraId){
|
||||
this.setState({ columnIndex: record });
|
||||
}else if(extraId === 'LOCK'){
|
||||
Modal.confirm({
|
||||
title: "信息确认",
|
||||
content: <div>
|
||||
<div style={{textAlign: "center"}}>确定要批量锁定项目值吗?</div>
|
||||
<div style={{textAlign: "center"}}>确定后,则项目输入值锁定,项目公式失效;点击核算将按锁定的输入值重新核算!</div>
|
||||
</div>,
|
||||
onOk: () => {
|
||||
},
|
||||
onCancel: () => {
|
||||
}
|
||||
});
|
||||
}else if(extraId === 'UNLOCK'){
|
||||
Modal.confirm({
|
||||
title: "信息确认",
|
||||
content: <div>
|
||||
<div style={{textAlign: "center"}}>确定要批量解锁项目值吗?</div>
|
||||
<div style={{textAlign: "center"}}>确定后,则项目公式生效,页面仍显示手动修改的项目值;点击核算将按公式重新核算,不再显示解锁标识!</div>
|
||||
</div>,
|
||||
onOk: () => {
|
||||
},
|
||||
onCancel: () => {
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (id === "PAGEINFO") {
|
||||
const { pageNum: current, size: pageSize } = record;
|
||||
this.pageInfo = { current, pageSize };
|
||||
|
|
|
|||
Loading…
Reference in New Issue