From 2892f4c6ee32faff3e5b1a13f7e8f84296a419dc Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Thu, 19 Jun 2025 10:04:34 +0800 Subject: [PATCH] =?UTF-8?q?feature/=E4=B8=9A=E5=8A=A1=E7=BA=BF=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/calcTable/index.tsx | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) 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) => {