import { Button, Modal, Space, Table } from "antd";
import { useState } from "react";
import StaffViewModal from "~/pages/Container/EnterpriseInfo/PersonnelInfo/StaffViewModal";
import OrgPersonnelSelectModal from "./OrgPersonnelSelectModal";
export default function PersonnelStep({
personnelList = [],
disabled,
onAdd,
onRemove,
}) {
const [selectOpen, setSelectOpen] = useState(false);
const [viewId, setViewId] = useState("");
const existingIds = personnelList.map((item) => String(item.sourcePersonnelId || ""));
return (
<>
备案人员信息
当前 {personnelList.length} 人
{!disabled && (
)}
index + 1 },
{ title: "人员姓名", dataIndex: "personName" },
{ title: "类型", dataIndex: "personTypeName" },
{ title: "职务", dataIndex: "positionName" },
{ title: "职称", dataIndex: "titleName" },
{
title: "操作",
width: 140,
render: (_, record) => (
{!disabled && (
)}
),
},
]}
/>
setSelectOpen(false)}
onConfirm={(ids, rows) => {
onAdd?.(ids, rows);
setSelectOpen(false);
}}
/>
setViewId("")}
/>
>
);
}