去除打印信息

This commit is contained in:
黎永顺 2023-01-31 11:26:37 +08:00
parent 4f55e755cb
commit 464f986f62
2 changed files with 24 additions and 84 deletions

View File

@ -71,10 +71,10 @@ class FieldTable extends Component {
return <div className="optWrapper">
<a href="javascript:void(0);" className="mr10"
onClick={() => onEditLedger(record)}>{showOperateBtn ? "编辑" : "查看"}</a>
{
showOperateBtn &&
<a href="javascript:void(0);" className="mr10" onClick={() => onDeleteLedger(record)}>删除</a>
}
{/*{*/}
{/* showOperateBtn &&*/}
{/* <a href="javascript:void(0);" className="mr10" onClick={() => onDeleteLedger(record)}>删除</a>*/}
{/*}*/}
</div>;
};
} else {
@ -85,66 +85,6 @@ class FieldTable extends Component {
return { ...item };
});
};
/*
* Author: 黎永顺
* Description: 刪除薪资账套
* Params:
* Date: 2022/12/8
*/
deleteLedger = (payload) => {
deleteLedger(payload).then(({ status, errormsg }) => {
if (status) {
message.success("删除成功");
this.salaryFieldList();
} else {
message.error(errormsg || "删除失败");
}
});
};
/*
* Author: 黎永顺
* Description: 启用/关闭账套
* Params:
* Date: 2022/12/8
*/
changeLedgerStatus = (payload) => {
changeLedgerStatus(payload).then(({ status, errormsg }) => {
if (status) {
message.success("操作成功");
this.salaryFieldList();
} else {
message.error(errormsg || "操作成功");
}
});
};
handleResetCopy = () => {
const { copyLedgerModal } = this.state;
this.setState({
copyLedgerModal: { ...copyLedgerModal, visible: false, id: "", name: "", taxAgenyId: "" }
});
};
handleMenuClick = ({ key }, record) => {
const { copyLedgerModal } = this.state;
const { id, name, taxAgentId } = record;
switch (key) {
case "copy":
this.setState({
copyLedgerModal: { ...copyLedgerModal, visible: true, id, name, taxAgentId }
});
break;
case "delete":
Modal.confirm({
title: "信息确认",
content: "确认要删除吗?",
onOk: () => {
this.deleteLedger([id]);
}
});
break;
default:
break;
}
};
render() {
const { dataSource, pageInfo, loading } = this.state;

View File

@ -65,26 +65,26 @@ export default class CustomSalaryItemSlide extends React.Component {
/>
</Col>
</Row>
<Row className="formItem">
<Col span={4}>薪资档案引用</Col>
<Col span={20}>
<Switch
disabled={
!((editable && this.props.record.canEdit) || isAdd)
}
checked={useInEmployeeSalary == 1}
onChange={value => {
this.handleChange({ useInEmployeeSalary: value ? 1 : 0 });
}}
/>
<WeaHelpfulTip
style={{ marginLeft: "10px" }}
width={200}
title="提示:开启后,该薪资项目不可删除或设为无效,取值方式会默认置为输入"
placement="topLeft"
/>
</Col>
</Row>
{/*<Row className="formItem">*/}
{/* <Col span={4}>薪资档案引用</Col>*/}
{/* <Col span={20}>*/}
{/* <Switch*/}
{/* disabled={*/}
{/* !((editable && this.props.record.canEdit) || isAdd)*/}
{/* }*/}
{/* checked={useInEmployeeSalary == 1}*/}
{/* onChange={value => {*/}
{/* this.handleChange({ useInEmployeeSalary: value ? 1 : 0 });*/}
{/* }}*/}
{/* />*/}
{/* <WeaHelpfulTip*/}
{/* style={{ marginLeft: "10px" }}*/}
{/* width={200}*/}
{/* title="提示:开启后,该薪资项目不可删除或设为无效,取值方式会默认置为输入"*/}
{/* placement="topLeft"*/}
{/* />*/}
{/* </Col>*/}
{/*</Row>*/}
<Row className="formItem">
<Col span={4}>默认使用</Col>
<Col span={20}>