diff --git a/src/pages/calcTable/index.tsx b/src/pages/calcTable/index.tsx index 10ea310..b3a8e1a 100644 --- a/src/pages/calcTable/index.tsx +++ b/src/pages/calcTable/index.tsx @@ -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) => { }) } ]); + item.rightClickType && + item.rightClickType.includes("MARK") && + (items = [ + ...items, + { + label: item.i18n["标记"], + key: "MARK", + icon: , + onClick: () => + handleSetMark({ + lockStatus: "LOCK", + acctEmpId: record?.id, + salaryItemId: item?.dataIndex + }) + } + ]); + item.rightClickType && + item.rightClickType.includes("UNMARK") && + (items = [ + ...items, + { + label: item.i18n["取消标记"], + key: "UNMARK", + icon: , + onClick: () => + handleSetUnMark({ + lockStatus: "UNLOCK", + acctEmpId: record?.id, + salaryItemId: item?.dataIndex + }) + } + ]); return ( @@ -211,6 +244,7 @@ const index: FunctionComponent = (props) => { {text} {record.lockItems && record.lockItems.includes(item.dataIndex) ? : null} + {record.markItems && record.markItems.includes(item.dataIndex) ? : null} {!_.isEmpty(record[`${item.dataIndex}_feedback`]) ? ( @@ -240,6 +274,13 @@ const index: FunctionComponent = (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) => {