feature/业务线管理

This commit is contained in:
lys 2025-06-19 10:04:34 +08:00
parent c3013e2586
commit 2892f4c6ee
1 changed files with 41 additions and 0 deletions

View File

@ -14,6 +14,7 @@ import type { ColumnType } from "antd/lib/table";
import type { PaginationData } from "rc-pagination";
import { exceptStr, paginationFun } from "@/utils/common";
import { IPage } from "@/common/types";
import Icon from "../../lib/CustomIcon";
import styles from "@/pages/atdTable/components/index.less";
interface OwnProps {}
@ -204,6 +205,38 @@ const index: FunctionComponent<Props> = (props) => {
})
}
]);
item.rightClickType &&
item.rightClickType.includes("MARK") &&
(items = [
...items,
{
label: item.i18n["标记"],
key: "MARK",
icon: <Icon type="icon-biaoji" />,
onClick: () =>
handleSetMark({
lockStatus: "LOCK",
acctEmpId: record?.id,
salaryItemId: item?.dataIndex
})
}
]);
item.rightClickType &&
item.rightClickType.includes("UNMARK") &&
(items = [
...items,
{
label: item.i18n["取消标记"],
key: "UNMARK",
icon: <Icon type="icon-quxiaobiaoji" />,
onClick: () =>
handleSetUnMark({
lockStatus: "UNLOCK",
acctEmpId: record?.id,
salaryItemId: item?.dataIndex
})
}
]);
return (
<Dropdown menu={{ items: !item.calcDetail || item.rightClickType ? items : [] }} trigger={["contextMenu"]} overlayClassName={styles.contextMenu} destroyPopupOnHide>
<span className={styles.contentSpan}>
@ -211,6 +244,7 @@ const index: FunctionComponent<Props> = (props) => {
{text}
</span>
{record.lockItems && record.lockItems.includes(item.dataIndex) ? <LockOutlined title={item.i18n["锁定的项目值"]} /> : null}
{record.markItems && record.markItems.includes(item.dataIndex) ? <Icon type="icon-biaoji-copy" title={item.i18n["标记的项目值"]} style={{ marginLeft: 4 }} /> : null}
{!_.isEmpty(record[`${item.dataIndex}_feedback`]) ? (
<Tooltip title={record[`${item.dataIndex}_feedback`]}>
<QuestionCircleOutlined />
@ -240,6 +274,13 @@ const index: FunctionComponent<Props> = (props) => {
const handleSetFeedback = (params: any) => {
window.parent.postMessage({ type: "turn", payload: { id: "SETFEEDBACK", params } }, "*");
};
// 安徽国元信托有限责任公司薪酬二开-薪资核算项添加右击添加标记和取消标记的操作
const handleSetMark = (params: any) => {
window.parent.postMessage({ type: "turn", payload: { id: "MARK", params } }, "*");
};
const handleSetUnMark = (params: any) => {
window.parent.postMessage({ type: "turn", payload: { id: "UNMARK", params } }, "*");
};
// 医博二开
const handlePassed = (params: any, calculateStatus: boolean) => {
setDataSource((pre) => {