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,QAAO7V,GAAKA,EAAEiX,mBAAU,IAAAxB,OAA1B,EAATA,EAAqC9O,KAAI3G,GAAKA,EAAEiX,YAC/D,GAAW,OAANsuB,QAAM,IAANA,IAAAA,EAAQzlC,OAAQ,OACrB,MAAMiC,QAAYgiB,EAAAA,EAAcC,oBAAoBuhB,GACpD,GAAO,OAAHxjC,QAAG,IAAHA,GAAAA,EAAKG,QAAS,OAClB+R,EAAmB,CACjBgQ,WAAW,EACXqhB,YAAaA,EACbphB,YAAgB,OAAHniB,QAAG,IAAHA,OAAG,EAAHA,EAAKI,QAEtB,CAAC,QACC7F,GAAW,EACb,E,8FCxDF,MAAMkpC,EAAQvrC,EAAAA,QAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,oDA8BxB,EAxBwBC,IAAyB,IAAxB,KAAEE,EAAI,SAAEC,GAAUH,EACzC,OACEyD,EAAAA,EAAAA,KAACkP,EAAAA,EAAW,CACV1P,OAAO,EACPG,MAAO,IACPwP,QAAQ,EACR1S,KAAMA,EACNC,SAAUA,EACVirC,WAAW,EAAMznC,UAEjB0B,EAAAA,EAAAA,MAAC8lC,EAAK,CAAAxnC,SAAA,EACJF,EAAAA,EAAAA,KAAA,OAAKC,UAAU,sCAAqCC,SAAEzD,EAAK+C,SAC3DQ,EAAAA,EAAAA,KAAC4nC,EAAAA,EAAO,CAAC3nC,UAAU,WACnBD,EAAAA,EAAAA,KAAA,OACEC,UAAU,QACV47B,wBAAyB,CACvBC,OAAQr/B,EAAKorC,wBAIP,C","sources":["components/Layouts/component/ModalSearchSingle/index.js","components/TableCustom/styled.js","lib/eventKey.js","lib/requireOutOfFormItem.js","lib/useWindowSize.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/AnothorApplication/styles.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationEstablishing/Modal/ModaNoticeError.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationEstablishing/Modal/ModalApplicationFeesPBS.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationEstablishing/Modal/ModalGeographicalIndication.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationEstablishing/Modal/ModalIndustrialDesignApplication.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationEstablishing/Modal/ModalLayoutDesignFees.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationEstablishing/Modal/ModalTrademarkFeesPBS.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationVHHB/ContentTabTwo.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationVHHB/Modal/4.ModalProtectionTrademark.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationVHHB/Modal/AddFeeChargeIndustrialDesigns.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationVHHB/Modal/ModalProtectionCertificate.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationVHHB/components/RepresentSelect.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationVHHB/components/WarningColumn.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationVHHB/components/function.js","pages/ADMIN/FormDirect/components/AdditionalFees/components/ApplicationVHHB/functionCommon.js","pages/ADMIN/FormDirect/components/ManagementFileSingle/components/DetailDossier/ModalDetailAddFee3.js","pages/ADMIN/FormDirect/components/ManagementFileSingle/components/DetailDossier/RenderModalFee.js","pages/ADMIN/FormDirect/components/ManagementFileSingle/components/DetailDossier/index.js","pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalCharge/1.ModalApplicationFees.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalCharge/2.ModalGPHI.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalCharge/3.ChargeIndustrialDesigns.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalCharge/4.ModalTrademarkFees.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalCharge/7.ModalLayoutDesign.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalCharge/commonFunction.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalPrintBarCode.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalPrintReceive.js","pages/ADMIN/FormDirect/components/commons/utils.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/ConfirmAccessFile/components/ProcedureSelect.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/ConfirmAccessFile/index.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/ConfirmAccessFile/styled.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernCertificate/components/commonFunction.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalCancelVBBH.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalExtendContractSHCN.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalExtendVBBH.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalMaintenanceRequirement.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalModifyContent.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalRequestModifyKDCN.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalRequestReissue.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalTrademarkTransferContact.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalTransferContact.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernFile/components/ModalCharge/ModalChangeFormFee.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernFile/components/ModalCharge/ModalObjectionFormFee.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/FileConcernFile/components/ModalCharge/ModalTransferFormFee.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/OtherFiles/Modal/ModalGNGH.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/OtherFiles/Modal/ModalGNĐB.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/OtherFiles/Modal/ModalKTGĐ.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/OtherFiles/Modal/ModalKTNV.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/OtherFiles/Modal/ModalPTĐD.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/OtherFiles/Modal/ModalTC.js","pages/ADMIN/FormDirect/components/ManagementFilesProvide/conponents/OtherFiles/styles.js","pages/ADMIN/FormDirect/components/RedStartFormDirect.js","pages/ADMIN/FormDirect/components/TittleLayout.js","pages/ADMIN/FormDirect/components/commons/AddressInput.js","pages/ADMIN/FormDirect/components/commons/OwnerInput.js","pages/ADMIN/FormDirect/functions.js","pages/USER/ListProfile/components/ModalViewReason.js"],"sourcesContent":["import {\n Col,\n DatePicker,\n Drawer,\n InputNumber,\n Row,\n Select,\n Tooltip,\n} from \"antd\"\nimport dayjs from \"dayjs\"\nimport moment from \"moment\"\nimport { useEffect, useState } from \"react\"\nimport { useDispatch, useSelector } from \"react-redux\"\nimport FlDatePicker from \"src/components/FloatingLabel/DatePicker\"\nimport FlInput from \"src/components/FloatingLabel/Input\"\nimport FlSelect from \"src/components/FloatingLabel/Select\"\nimport SpinCustom from \"src/components/Spin\"\nimport TableCustom from \"src/components/Table/CustomTable\"\nimport {\n MainTableData,\n MainTableHeader,\n SubTableData,\n SubTableHeader,\n} from \"src/components/TableCustom/styled\"\nimport { SYSTEM_KEY } from \"src/constants/constants\"\nimport { formatMoney, getListComboByKey } from \"src/lib/utils\"\nimport DetailDossier from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/DetailDossier\"\nimport ModalDetailAddFee3 from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/DetailDossier/ModalDetailAddFee3\"\nimport ModalViewReason from \"src/pages/USER/ListProfile/components/ModalViewReason\"\nimport DossierCateService from \"src/services/DossierCateService\"\nimport DossierService from \"src/services/DossierService\"\nimport UserService from \"src/services/UserService\"\nimport styled from \"styled-components\"\n\nconst ModalSearchSingleStyle = styled.div`\n .ant-input-number-handler-wrap {\n display: flex !important;\n }\n`\nconst ModalSearchSingle = ({ open, onCancel, onOk }) => {\n const initSearch = {\n PageSize: 10,\n CurrentPage: 1,\n StartDate: undefined,\n EndDate: undefined,\n }\n const [pagination, setPagination] = useState(initSearch)\n const [textSearch, setTextSearch] = useState({})\n const [openDetailAddFee3, setOpenDetailAddFee3] = useState(false)\n const [openDetailDossier, setOpenDetailDossier] = useState(false)\n const [openModalViewReason, setOpenModalViewReason] = useState(false)\n const {\n searchSingleNow,\n searchVBBH,\n searchOwnerNow,\n DossierRelative,\n textSeachQuick,\n } = useSelector(state => state.single)\n const [listSHCN, setListSHCN] = useState([])\n const [loading, setLoading] = useState(false)\n const [loadingDossier, setLoadingDossier] = useState(false)\n const dispatch = useDispatch()\n const { listSystemKey, listSystemCate } = useSelector(\n state => state.appGlobal,\n )\n const [ltDossierInfo, setLtDossierInfo] = useState([])\n\n const [listDossierCate, setListDossierCate] = useState([])\n const [dossierOffs, setDossierOffs] = useState([])\n const [totalRow, setTotalRow] = useState(0)\n const columns = [\n {\n title: \"STT\",\n dataIndex: \"stt\",\n align: \"center\",\n width: 50,\n render: (val, record, idx) => (\n
\n {idx + 1 + pagination?.PageSize * (pagination?.CurrentPage - 1)}\n
\n ),\n },\n {\n title: \"Số đơn\",\n dataIndex: \"ProfileCode\",\n align: \"center\",\n width: 160,\n render: (_, record) => (\n {\n if (record?.HinhThucNop === 1) {\n if (record?.DossierType === 6 && record?.TabID === 3) {\n setOpenDetailAddFee3({\n ...record,\n })\n } else {\n setOpenDetailDossier(true)\n setLtDossierInfo([\n {\n ...record,\n key: 0,\n InfoFee: !!record?.InfoFee\n ? JSON.parse(record?.InfoFee)\n : undefined,\n DossierCateDescription: `${record?.ProfileType} | ${record?.Abstract}`,\n ProfileCodeOld: record?.DossierOrigin,\n },\n ])\n }\n }\n }}\n >\n {record?.ProfileCode}\n {/* {record?.ProfileCode || record?.VBBH_Relative?.replace(/-/g, \"\")} */}\n \n ),\n },\n {\n title: \"Số PBT\",\n dataIndex: \"PbtNbr\",\n align: \"center\",\n width: 70,\n render: (val, record, idx) => (val ? val : \"E\"),\n },\n {\n title: (\n
\n <>Ngày nộp đơn\n
\n ),\n dataIndex: \"SendDate\",\n align: \"center\",\n width: 120,\n render: (value, record, idx) =>\n !!value ? moment(value).format(\"DD/MM/YYYY\") : \"\",\n },\n {\n title: (\n
\n Chủ đơn\n Đại diện SHCN\n
\n ),\n dataIndex: \"OwnerName\",\n align: \"left\",\n width: 250,\n render: (_, record) => {\n const daiDien = listSHCN?.length\n ? listSHCN.find(i => i?.RepresentID === record?.RepresentID)\n : {}\n return (\n \n
\n Chủ đơn: {record?.OwnerName}\n
\n
\n Đại diện SHCN:{\" \"}\n {daiDien?.RepresentID\n ? `${daiDien?.Organize} - ${daiDien?.FullName}`\n : \"\"}\n
\n \n }\n >\n \n {record?.OwnerName}\n \n \n {daiDien?.RepresentID\n ? `${daiDien?.Organize} - ${daiDien?.FullName}`\n : \"\"}\n \n \n )\n },\n },\n {\n title: \"Đơn vị\",\n dataIndex: \"DonVi\",\n align: \"center\",\n width: 70,\n },\n // {\n // title: \"Trạng thái thanh toán\",\n // dataIndex: \"PaymentStatus\",\n // align: \"right\",\n // width: 140,\n // render: (_, record) => (\n //
\n // \n // {\n // getListComboByKey(\n // SYSTEM_KEY?.INVOICE_PAYMENT_STATUS,\n // listSystemKey,\n // )?.find(item => item?.CodeValue === record?.PaymentStatus)\n // ?.Description\n // }\n // \n //
\n // ),\n // },\n\n {\n title: (\n
\n Tổng tiền VNĐ\n Trạng thái thanh toán\n
\n ),\n dataIndex: \"TotalFee\",\n align: \"right\",\n width: 160,\n render: (_, record) => (\n
\n \n {record?.TotalFee ? formatMoney(record?.TotalFee) : \"0\"}\n \n \n \n {\n getListComboByKey(\n SYSTEM_KEY?.INVOICE_PAYMENT_STATUS,\n listSystemKey,\n )?.find(item => item?.CodeValue === record?.PaymentStatus)\n ?.Description\n }\n \n \n
\n ),\n },\n {\n title: (\n
\n Hình thức nộp\n Trạng thái\n
\n ),\n dataIndex: \"HinhThucNop\",\n align: \"right\",\n width: 120,\n render: (_, record) => (\n
\n \n {\n getListComboByKey(SYSTEM_KEY?.HINH_THUC_NOP, listSystemKey)?.find(\n item => item?.CodeValue === record?.HinhThucNop,\n )?.Description\n }\n \n \n \n {\n getListComboByKey(\n SYSTEM_KEY?.DOSSIER_OFF_STATUS,\n listSystemKey,\n )?.find(item => item?.CodeValue === record?.Status)?.Description\n }\n \n \n
\n ),\n },\n {\n title: \"Trạng thái khóa\",\n dataIndex: \"IsLocked\",\n align: \"center\",\n width: 90,\n render: (_, record) => (\n <>{record?.IsLocked ? Khóa : Mở khóa}\n ),\n },\n ]\n const reset = () => {\n setPagination(initSearch)\n setTextSearch({})\n setDossierOffs([])\n setTotalRow(0)\n }\n const getDossier = async () => {\n try {\n setLoadingDossier(true)\n const res = await DossierService?.traCuuDon({\n ...pagination,\n ...textSearch,\n })\n if (res?.isError) return\n setDossierOffs(res?.Object?.list || [])\n setTotalRow(res?.Object?.total || 0)\n } catch (err) {\n console.log(\"🚀 ~ getDossier ~ err:\", err)\n } finally {\n setLoadingDossier(false)\n }\n }\n\n //lấy dữ liệu đại diện SHCN\n const getListRepresentative = async () => {\n try {\n setLoading(true)\n const res = await UserService.getListRepresentativeByType(2)\n if (res?.isError) return\n setListSHCN(res?.Object)\n } catch (err) {\n console.log(\"err: \", err)\n } finally {\n setLoading(false)\n }\n }\n const getDossierCateBySingleField = async () => {\n try {\n setLoading(true)\n const res = await DossierCateService.getDossierCateBySingleField({\n SingleField: pagination?.TypeGet,\n })\n if (res?.isError) return\n setListDossierCate(res?.Object)\n } finally {\n setLoading(false)\n }\n }\n\n useEffect(() => {\n getDossierCateBySingleField()\n }, [pagination?.TypeGet])\n useEffect(() => {\n getListRepresentative()\n }, [])\n\n useEffect(() => {\n setTextSearch(pre => ({\n // ...pre,\n ...textSeachQuick,\n }))\n }, [textSeachQuick])\n\n // useEffect(() => {\n // setTextSearch(pre => ({\n // ...pre,\n // ProfileCode: searchSingleNow,\n // }))\n // }, [searchSingleNow])\n // useEffect(() => {\n // setTextSearch(pre => ({\n // ...pre,\n // VBBHLQ: searchVBBH,\n // }))\n // }, [searchVBBH])\n\n // useEffect(() => {\n // setTextSearch(pre => ({\n // ...pre,\n // OwnerName: searchOwnerNow,\n // }))\n // }, [searchOwnerNow])\n // useEffect(() => {\n // setTextSearch(pre => ({\n // ...pre,\n // DossierRelative: DossierRelative,\n // }))\n // }, [DossierRelative])\n const checkNullSeach = pagination => {\n if (\n !!textSearch?.ProfileCode ||\n !!textSearch?.VBBHLQ ||\n !!textSearch?.DossierRelative ||\n !!textSearch?.OwnerName ||\n !!pagination?.StartDate ||\n !!pagination?.EndDate ||\n !!pagination?.TypeGet ||\n !!pagination?.DossierCateID ||\n !!pagination?.RepresentID ||\n !!pagination?.DonVi ||\n !!pagination?.HinhThucNop ||\n !!pagination?.PaymentStatus\n )\n return true\n return false\n }\n useEffect(() => {\n const isNotNullSeach = checkNullSeach(pagination)\n if (!!open && !!isNotNullSeach) getDossier()\n }, [pagination])\n useEffect(() => {\n if (open === \"search\") reset()\n else if (!!open) setPagination(pre => ({ ...pre, CurrentPage: 1 }))\n }, [open])\n\n return (\n \n Tra cứu đơn\n
\n
\n Đang hiển thị:{\" \"}\n \n {dossierOffs?.length} / {totalRow}\n {\" \"}\n
\n \n Trang: \n \n // setTextSearch(pre => ({\n // ...pre,\n // CurrentPage: e ? e : 1,\n // }))\n // }\n onStep={(value, infor) => {\n setPagination({\n ...pagination,\n CurrentPage: value,\n })\n }}\n onPressEnter={e => {\n const onlyNumbers = e?.target?.value\n ? +e?.target?.value.replace(/\\D/g, \"\")\n : 1\n setPagination({\n ...pagination,\n CurrentPage: onlyNumbers,\n })\n }}\n />\n /{Math.ceil(totalRow / pagination?.PageSize)}\n
\n
\n Dòng/Trang: \n \n // setTextSearch(pre => ({\n // ...pre,\n // PageSize: e ? e : 1,\n // }))\n // }\n onStep={(value, infor) => {\n setPagination({\n ...pagination,\n PageSize: value,\n })\n }}\n onPressEnter={e => {\n const onlyNumbers = e?.target?.value\n ? +e?.target?.value.replace(/\\D/g, \"\")\n : 1\n setPagination({\n ...pagination,\n PageSize: onlyNumbers,\n })\n }}\n />\n
\n \n \n }\n placement=\"right\"\n // closable={false}\n onClose={() => {\n onCancel()\n }}\n open={open}\n // getContainer={() => document.getElementById(\"wrap-page\")}\n // getContainer={false}\n // style={{ position: \"absolute\" }}\n\n style={{\n marginTop: 50,\n height: \"calc(-50px + 100vh)\",\n boxShadow: \"none\",\n }}\n width={\"calc(-85px + 100vw)\"}\n >\n \n \n {/*
\n Danh sách dịch vụ cấp số đơn ({totalRow || 0})\n
*/}\n
\n \n \n {\n // setTextSearch(pre => ({\n // ...pre,\n // ProfileCode: e?.target?.value,\n // }))\n setPagination(pre => ({ ...pre, CurrentPage: 1 }))\n }}\n onChange={e => {\n setTextSearch(pre => ({\n ...pre,\n ProfileCode: e?.target?.value,\n }))\n // setPagination(pre => ({ ...pre, CurrentPage: 1 }))\n }}\n search\n allowClear\n label=\"Tìm kiếm số đơn\"\n />\n \n \n {\n // setTextSearch(pre => ({\n // ...pre,\n // VBBHLQ: e,\n // }))\n setPagination(pre => ({ ...pre, CurrentPage: 1 }))\n }}\n onChange={e => {\n setTextSearch(pre => ({\n ...pre,\n VBBHLQ: e?.target?.value,\n }))\n // setPagination(pre => ({ ...pre, CurrentPage: 1 }))\n }}\n search\n allowClear\n label=\"Số VB liên quan\"\n />\n \n \n {\n setPagination(pre => ({ ...pre, CurrentPage: 1 }))\n }}\n onChange={e => {\n setTextSearch(pre => ({\n ...pre,\n DossierRelative: e?.target?.value,\n }))\n }}\n search\n allowClear\n label=\"Số đơn gốc/liên quan\"\n />\n \n \n {\n // setTextSearch(pre => ({\n // ...pre,\n // OwnerName: e,\n // }))\n setPagination(pre => ({ ...pre, CurrentPage: 1 }))\n }}\n onChange={e => {\n setTextSearch(pre => ({\n ...pre,\n OwnerName: e?.target?.value,\n }))\n // setPagination(pre => ({ ...pre, CurrentPage: 1 }))\n }}\n search\n allowClear\n label=\"Tìm kiếm theo chủ đơn\"\n />\n \n\n \n {\n const date1 = dayjs(value)\n const date2 = dayjs(pagination?.EndDate)\n if (\n date1.isBefore(date2, \"day\") ||\n date1.isSame(date2, \"day\")\n )\n setPagination(pre => ({\n ...pre,\n CurrentPage: 1,\n StartDate: value ? value.format() : undefined,\n }))\n }}\n />\n \n \n {\n const date1 = dayjs(value)\n const date2 = dayjs(pagination?.StartDate)\n if (\n date1.isAfter(date2, \"day\") ||\n date1.isSame(date2, \"day\")\n )\n setPagination(pre => ({\n ...pre,\n CurrentPage: 1,\n EndDate: value ? value.format() : undefined,\n }))\n }}\n />\n \n\n \n {\n setPagination(pre => ({\n ...pre,\n CurrentPage: 1,\n TypeGet: e,\n DossierCateID: \"\",\n }))\n }}\n label=\"Lĩnh vực đơn\"\n >\n \n Tất cả\n \n {getListComboByKey(\n SYSTEM_KEY?.DANH_SACH_DON,\n listSystemKey,\n ).map(i => (\n \n {i?.Description}\n \n ))}\n \n \n \n \n setPagination(pre => ({\n ...pre,\n CurrentPage: 1,\n DossierCateID: e,\n }))\n }\n label=\"Thủ tục cấp đơn\"\n >\n \n Tất cả\n \n {listDossierCate.map(i => (\n \n {i?.Code + \" | \" + i?.Abstract}\n \n ))}\n \n \n \n \n setPagination(pre => ({\n ...pre,\n CurrentPage: 1,\n RepresentID: e,\n }))\n }\n filterOption={(input, option) =>\n option?.children\n ?.toLowerCase()\n ?.indexOf(input?.toLowerCase()) >= 0\n }\n label=\"Đại diện SHCN\"\n >\n Tất cả\n {listSHCN &&\n listSHCN.map(i => (\n \n {i?.Organize + \" | \" + i?.FullName}\n \n ))}\n \n \n\n \n \n setPagination(pre => ({ ...pre, CurrentPage: 1, DonVi: e }))\n }\n label=\"Đơn vị\"\n value={pagination.DonVi}\n >\n Tất cả\n {getListComboByKey(\n SYSTEM_KEY?.CH_MA_DON_VI,\n listSystemCate,\n )?.map(\n i =>\n i.ParentItemID === 0 && (\n \n {i?.CodeKey}\n \n ),\n )}\n \n \n \n \n setPagination(pre => ({\n ...pre,\n CurrentPage: 1,\n HinhThucNop: e,\n }))\n }\n label=\"Hình thức nộp\"\n >\n \n Tất cả\n \n {getListComboByKey(\n SYSTEM_KEY?.HINH_THUC_NOP,\n listSystemKey,\n ).map(i => (\n \n {i?.Description}\n \n ))}\n \n \n \n \n setPagination(pre => ({\n ...pre,\n CurrentPage: 1,\n PaymentStatus: e,\n }))\n }\n label=\"Trạng thái thanh toán\"\n >\n Tất cả\n {getListComboByKey(\n SYSTEM_KEY?.INVOICE_PAYMENT_STATUS,\n listSystemKey,\n ).map(i => (\n \n {i?.Description}\n \n ))}\n \n \n \n
\n \n // `${!!record.GroupID ? \"group-dossier\" : \"\"}`\n `${!!(record?.Status === 3) ? \"cancel-row\" : \"\"}`\n }\n // rowSelection={{ ...rowSelection }}\n isPrimary\n isResizeColumn\n dataSource={dossierOffs}\n columns={columns}\n // sticky={{ offsetHeader: -2 }}\n textEmpty=\"Không có dữ liệu\"\n pagination={false}\n rowKey=\"DossierID\"\n scroll={{ x: false, y: false }}\n className=\"mb-8\"\n />\n
\n
\n {!!openModalViewReason && (\n setOpenModalViewReason(false)}\n />\n )}\n\n {openDetailDossier && (\n {\n getDossier()\n // setLtDossierID([])\n }}\n listSHCN={listSHCN}\n onCancel={() => setOpenDetailDossier(false)}\n open={openDetailDossier}\n ltDossierInfo={ltDossierInfo}\n setLtDossierInfo={setLtDossierInfo}\n />\n )}\n\n {openDetailAddFee3 && (\n {\n getDossier()\n // setLtDossierID([])\n }}\n onCancel={() => setOpenDetailAddFee3(false)}\n open={openDetailAddFee3}\n listSHCN={listSHCN}\n />\n )}\n \n )\n}\n\nexport default ModalSearchSingle\n","import styled from \"styled-components\"\n\nexport const MainTableHeader = styled.div`\n font-size: 13px !important;\n`\n\nexport const SubTableHeader = styled.div`\n font-style: italic;\n font-size: 13px !important;\n font-weight: 400;\n`\nexport const MainTableData = styled.span`\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1; /* number of lines to show */\n line-clamp: 1;\n -webkit-box-orient: vertical;\n`\n\nexport const SubTableData = styled.span`\n font-style: italic;\n color: #999;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1; /* number of lines to show */\n line-clamp: 1;\n -webkit-box-orient: vertical;\n`\n\nexport const CellListContent = styled.div`\n padding: 4px;\n border-bottom: 1px solid #f0f0f0;\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 1;\n line-clamp: 1;\n -webkit-box-orient: vertical;\n margin: 0 -4px;\n &:hover {\n border-bottom: 1px solid #ddd;\n }\n &:last-child {\n border-bottom: unset;\n }\n`\nexport const TableCustomStyled = styled.div`\n .ant-table-column-sorter-inner {\n svg path {\n fill: rgba(243, 246, 249, 0.5);\n }\n .active {\n svg path {\n fill: #fff;\n }\n }\n }\n .ant-table-wrapper,\n .ant-table,\n .ant-table-container {\n &::-webkit-scrollbar,\n &::-webkit-scrollbar-track,\n &::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n }\n .ant-table-sticky-scroll {\n display: none;\n }\n .ant-spin-nested-loading {\n /* height: 100%; */\n }\n\n .ant-table-thead > tr > th {\n text-align: center;\n padding: 4px 8px;\n }\n\n .ant-table-cell-fix-right-first::after {\n border-inline-end: unset !important;\n }\n\n .ant-table-body {\n overflow: auto auto !important;\n transition: all linear 0.2s;\n &::-webkit-scrollbar {\n width: 5px;\n height: 5px;\n background-color: #fff !important;\n }\n &::-webkit-scrollbar-thumb {\n background-color: #c5ced9;\n border-radius: 12px;\n background-color: #fff !important;\n }\n &::-webkit-scrollbar-track {\n background-color: #fff !important;\n }\n }\n\n .ant-table-body:hover {\n &::-webkit-scrollbar {\n background-color: #fff !important;\n }\n &::-webkit-scrollbar-track {\n background: #f1f1f1 !important;\n }\n &::-webkit-scrollbar-thumb {\n background: #ddd !important;\n }\n }\n\n .ant-table-cell-scrollbar:not([rowspan]) {\n box-shadow: none;\n }\n .ant-table-row {\n cursor: pointer;\n }\n .ant-table-row-level-0:hover {\n .float-action__wrapper {\n display: inline-flex;\n }\n }\n .ant-table-tbody > tr:hover {\n .float-action__wrapper {\n min-width: 80px;\n display: inline-flex;\n }\n }\n .ant-table-expanded-row-fixed {\n margin: 0px !important;\n padding: 0px !important;\n width: auto !important;\n ::after {\n border-right: 0px !important;\n }\n }\n &.resize-able {\n .react-resizable {\n position: relative;\n background-clip: padding-box;\n }\n .react-resizable-handle {\n position: absolute;\n width: 10px;\n height: 100%;\n bottom: 0;\n right: -5px;\n cursor: col-resize;\n z-index: 1;\n }\n .dragHandler:hover {\n cursor: move;\n background-color: #ccc;\n }\n }\n`\n","import {\n setOwnerNow,\n setSingleNow,\n setVBBH,\n} from \"src/pages/ADMIN/FormDirect/functions\"\nimport { setDiffModalSearchSingle } from \"src/redux/single\"\nexport const createRowandNextField = ({\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow,\n fieldFindIndex = \"ProfileCodeOld\", //tên trường đầu tiên cuart dòng\n passTaxCode,\n}) => {\n setPosition(pre => {\n //Ô cuối thì thêm dòng\n if (pre.col === maxColumn && pre.row === dataTable?.length) {\n // là ô tính phí cuối cùng thì không làm gì\n if (pre.col === maxColumn && pre.row === 20) return pre\n handleAddNewRow()\n return { row: pre.row + 1, col: 1 }\n }\n //Xuống dòng\n if (pre.col === maxColumn) {\n const indexRowEmty = dataTable?.findIndex(item => !item[fieldFindIndex])\n return { row: indexRowEmty + 1, col: 1 }\n // return { row: pre.row + 1, col: 1 }\n }\n //Focus ô bên phải\n return { row: pre.row, col: pre.col + 1 + (!!passTaxCode ? 1 : 0) }\n })\n}\nexport const handleKeyDownByID = ({\n setPosition = () => {},\n event,\n maxColumn = 6,\n maxRow = 5,\n dispatch,\n searchField,\n valueConvertFunction,\n handleAddNewRow = () => {},\n type,\n issued = false,\n nextLeft = 1,\n nextRight = 1,\n passTaxCode,\n}) => {\n console.log(\"event\", event)\n\n if ([\"F2\", \"F4\"]?.includes(event.key)) return\n switch (event.key) {\n case \"Tab\":\n event.preventDefault()\n if (event?.shiftKey) {\n //Shift + Tab\n setPosition(pre => {\n // nếu là dòng 1 cột thì ko làm gì\n\n if (pre.col === 1 && pre.row === 1) {\n return { row: 1, col: 1 }\n }\n //Lên dòng\n if (pre.col === 1) return { row: pre.row - 1, col: maxColumn }\n //Focus ô bên trái\n return {\n row: pre.row,\n col: pre.col - nextRight - (!!passTaxCode ? 1 : 0),\n }\n })\n return\n }\n setPosition(pre => {\n // nếu >=20 dòng thì ko làm gì\n //Ô cuối thì thêm dòng\n if (pre.col === maxColumn && pre.row === maxRow) {\n if (maxRow >= 20) return pre\n handleAddNewRow()\n return { row: pre.row + 1, col: 1 }\n }\n //Xuống dòng\n if (pre.col === maxColumn) return { row: pre.row + 1, col: 1 }\n //Focus ô bên phải\n return {\n row: pre.row,\n col: pre.col + nextRight + (!!passTaxCode ? 1 : 0),\n }\n })\n break\n case \"ArrowRight\":\n if (!event?.ctrlKey) return\n event.preventDefault()\n setPosition(pre => {\n //Ô cuối thì thêm dòng\n if (pre.col === maxColumn && pre.row === maxRow) {\n handleAddNewRow()\n return { row: pre.row + 1, col: 1 }\n }\n //Xuống dòng\n if (pre.col === maxColumn) return { row: pre.row + 1, col: 1 }\n //Focus ô bên phải\n return { row: pre.row, col: pre.col + nextRight }\n })\n break\n case \"ArrowLeft\":\n if (!event?.ctrlKey) return\n event.preventDefault()\n setPosition(pre => {\n //Ô đầu tiên thì không hoạt động\n if (pre.col === 1 && pre.row === 1) return pre\n //Lùi dòng\n if (pre.col === 1) return { row: pre.row - 1, col: maxColumn }\n //Focus ô bên trái\n return { row: pre.row, col: pre.col - nextLeft }\n })\n break\n case \"ArrowDown\":\n if (type === \"select\") return\n event.preventDefault()\n setPosition(pre => {\n //Nếu đạt giới hạn thì không đổi\n if (pre.row === maxRow) return pre\n //Xuống dòng\n return { row: pre.row + 1, col: pre.col }\n })\n break\n case \"ArrowUp\":\n if (type === \"select\") return\n event.preventDefault()\n setPosition(pre => {\n //Nếu đạt giới hạn thì không đổi\n if (pre.row === 1) return pre\n //Lên dòng\n return { row: pre.row - 1, col: pre.col }\n })\n break\n case \"F10\":\n event.preventDefault()\n if (!!searchField) {\n const valueConver = !!event?.target?.value\n ? !!valueConvertFunction\n ? valueConvertFunction(event)\n : event?.target?.value\n : \"\"\n if (searchField === \"DossierRelative\")\n setSingleNow(dispatch, valueConver)\n if (searchField === \"ProfileCode\") setSingleNow(dispatch, valueConver)\n if (searchField === \"Owner\") setOwnerNow(dispatch, valueConver)\n if (searchField === \"VBBH\") setVBBH(dispatch, valueConver)\n }\n dispatch(setDiffModalSearchSingle())\n break\n default:\n break\n }\n}\n","export const requireOutOfFormItem = (\n form,\n listChecks,\n msg = \"Thông tin không được để trống!\",\n) => {\n const nameErrors = []\n const nameTrue = []\n listChecks.forEach(i => {\n if (i.condition) {\n nameErrors.push(i.name)\n form.setFields(\n nameErrors.map(i => ({\n name: i,\n errors: [msg],\n })),\n )\n } else {\n nameTrue.push(i.name)\n form.setFields(\n nameTrue.map(i => ({\n name: i,\n errors: null,\n })),\n )\n }\n })\n if (nameErrors.length === 0) return true\n else return false\n}\n","import { useLayoutEffect, useState } from \"react\"\n\nconst UseWindowSize = (width, isLess = false) => {\n const [size, setSize] = useState([0, 0])\n useLayoutEffect(() => {\n function updateSize() {\n const currentWidth = isLess\n ? global.window.innerWidth < width\n : global.window.innerWidth > width\n setSize(currentWidth)\n }\n window.addEventListener(\"resize\", updateSize)\n updateSize()\n return () => window.removeEventListener(\"resize\", updateSize)\n }, [isLess, width])\n return size\n}\n\nconst UseWindowHeightSize = (height, isLess = false) => {\n const [size, setSize] = useState([0, 0])\n useLayoutEffect(() => {\n function updateSize() {\n const currentHeight = isLess\n ? global.window.innerHeight < height\n : global.window.innerHeight > height\n setSize(currentHeight)\n }\n window.addEventListener(\"resize\", updateSize)\n updateSize()\n return () => window.removeEventListener(\"resize\", updateSize)\n }, [isLess, height])\n return size\n}\nconst isLaptop = () => UseWindowSize(1507, true)\n// 1360x768\nconst isSmallWidthLaptop = () => UseWindowSize(1360, true)\nconst isSmallHeightLaptop = () => UseWindowHeightSize(768, true)\n\nconst isDesktop = () => UseWindowSize(1200)\n\nconst isTablet = () => UseWindowSize(991, true)\n\nconst isMobile = () => UseWindowSize(768, true)\n\nexport default {\n isLaptop,\n isDesktop,\n isMobile,\n isTablet,\n isSmallHeightLaptop,\n isSmallWidthLaptop,\n}\n","import styled from \"styled-components\"\n\nexport const ContentTabThreeStyle = styled.div`\n .span-click {\n text-decoration: underline;\n cursor: pointer;\n :hover {\n color: #2196f3;\n }\n }\n`\n","import { Space } from \"antd\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport SvgIcon from \"src/components/SvgIcon\"\nimport styled from \"styled-components\"\n\nexport const StyleModal = styled.div``\n\nconst ModaNoticeError = ({ open, onCancel }) => {\n const renderFooter = () => (\n \n onCancel()}\n >\n Xác nhận\n \n onCancel()}\n >\n Đóng\n \n \n )\n return (\n \n
\n
\n \n
\n
\n Cảnh báo: Không thể thêm dòng mới vì bảng đã quá 20 dòng.\n
\n
\n \n )\n}\n\nexport default ModaNoticeError\n","import { Checkbox, Col, Form, InputNumber, Row, Space } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { formatMoney } from \"src/lib/utils\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nexport const StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n .ant-form-item-label {\n text-align: left;\n }\n`\n\nexport const checkHavePropertyName = (object, propertyName) => {\n for (let property in object) {\n if (property === propertyName) {\n return true\n }\n }\n return false\n}\nconst ModalApplicationFeesPBS = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const [checkbox, setCheckBox] = useState()\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"FirstCheckBox\").focus(),\n 0,\n )\n if (open?.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setCheckBox({\n IsTĐND: open.InfoFee?.IsTĐND,\n IsBoSung: open.InfoFee?.IsBoSung,\n IsSuaDoi: open.InfoFee?.IsSuaDoi,\n IsGiaHan: open.InfoFee?.IsGiaHan,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n setLoading(true)\n const body = {\n ...values,\n ...checkbox,\n PhanLoai: values?.PhanLoai ? values.PhanLoai : 0,\n IsClassifySC: !!values.PhanLoai,\n DossierCateCode: open?.type,\n FeeBSType: open?.FeeBSType,\n ListFee: getListFee({\n ModalType: \"ModalApplicationFeesPBS\",\n values,\n checkbox,\n }),\n }\n // const res = await FeeService.tinhPhiBoSungXacLapQuyen(body)\n const res = await FeeService.tinhFee(body, \"TinhPhiBoSungXacLapQuyen\")\n if (res.isError) return\n setTotalFee(pre => res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: body,\n DossierFeeList: res.Object?.Data,\n ButtonFee: {\n IsModify: body?.IsSuaDoi,\n IsExtendedResponse: body?.IsGiaHan,\n IsContentAppraisal: body?.IsTĐND,\n IsAdditional: body?.IsBoSung,\n IsClassifySC: !!values.PhanLoai,\n },\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n useEffect(() => {\n if (!!checkbox) handleSubmit()\n }, [checkbox])\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n {\n let isCheckFirstCheckBox = checkHavePropertyName(\n values,\n \"FirstCheckBox\",\n )\n if (\n allValues &&\n (!values.IsBoSung || !values.IsTĐND) &&\n !isCheckFirstCheckBox\n )\n return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsSuaDoi: check.target.checked,\n })\n form.setFieldValue(\"NDYCSuaDoi\", 1)\n }}\n onKeyPress={handleEnterPress}\n >\n Sửa đổi\n \n \n \n {checkbox?.IsSuaDoi && (\n \n \n \n \n \n )}\n \n \n {\n setCheckBox({\n ...checkbox,\n IsGiaHan: check.target.checked,\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Gia hạn trả lời\n \n \n \n \n \n \n \n \n \n \n {\n setCheckBox(pre => ({\n ...pre,\n IsTĐND: value?.target?.checked,\n IsBoSung: false,\n }))\n form.setFieldsValue({\n DiemBaoHo_TĐND: \"\",\n SoTrangTangThem_TĐND: \"\",\n SoUuTien: \"\",\n SoHinhAnhThem: \"\",\n IsYcTĐHT: false,\n IsYcTĐND: false,\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Thẩm định nội dung\n \n {checkbox?.IsTĐND && (\n \n \n \n \n \n \n \n \n \n \n \n \n )}\n \n \n \n \n {\n setCheckBox(pre => ({\n ...pre,\n IsBoSung: value?.target?.checked,\n IsTĐND: false,\n }))\n form.setFieldsValue({\n DiemBaoHo: \"\",\n SoTrangTangThem: \"\",\n SoUuTien: \"\",\n SoHinhAnhThem: \"\",\n IsYcTĐHT: false,\n IsYcTĐND: false,\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Bổ sung\n \n {checkbox?.IsBoSung && (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n Yêu cầu thẩm định hình thức\n \n \n \n \n \n \n Yêu cầu thẩm định nội dung\n \n \n \n \n )}\n \n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n \n \n
\n \n )\n}\n\nexport default ModalApplicationFeesPBS\n","import React, { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport Form from \"antd/es/form/Form\"\nimport { Checkbox, Col, InputNumber, Row, Space } from \"antd\"\nimport FeeService from \"src/services/FeeService\"\nimport { formatMoney } from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { getListFee } from \"../../../../commonFunc\"\nimport { checkHavePropertyName } from \"./ModalApplicationFeesPBS\"\n\nconst ModalGeographicalIndication = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const [checkbox, setCheckBox] = useState()\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n useEffect(() => {\n // if (open) {\n // formRef.current && formRef.current.getFieldInstance(\"IsSuaDoi\").focus()\n // }\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"FirstCheckBox\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setCheckBox({\n IsSuaDoi: open.InfoFee?.IsSuaDoi,\n IsGiaHan: open.InfoFee?.IsGiaHan,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n setLoading(true)\n const body = {\n ...values,\n ...checkbox,\n DossierCateCode: open?.type,\n FeeBSType: open?.FeeBSType,\n ListFee: getListFee({\n ModalType: \"ModalGeographicalIndication\",\n checkbox,\n values,\n }),\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiBoSungXacLapQuyen\")\n // const res = await FeeService.tinhPhiBoSungXacLapQuyen(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: body,\n DossierFeeList: res.Object?.Data,\n ButtonFee: {\n IsModify: body?.IsSuaDoi,\n IsExtendedResponse: body?.IsGiaHan,\n IsContentAppraisal: body?.IsTĐND,\n IsAdditional: body?.IsBoSung,\n },\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n useEffect(() => {\n if (!!checkbox) handleSubmit()\n }, [checkbox])\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n <>\n \n {\n let isCheckFirstCheckBox = checkHavePropertyName(\n values,\n \"FirstCheckBox\",\n )\n if (allValues && !isCheckFirstCheckBox)\n return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsSuaDoi: check.target.checked,\n })\n form.setFieldValue(\"NDYCSuaDoi\", 1)\n }}\n onKeyPress={handleEnterPress}\n >\n Sửa đổi\n \n \n \n {checkbox?.IsSuaDoi && (\n \n \n \n \n \n )}\n \n \n \n setCheckBox({\n ...checkbox,\n IsGiaHan: check.target.checked,\n })\n }\n onKeyPress={handleEnterPress}\n >\n Gia hạn trả lời\n \n \n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n \n \n )\n}\n\nexport default ModalGeographicalIndication\n","import React, { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport Form from \"antd/es/form/Form\"\nimport { Checkbox, Col, Input, InputNumber, Row, Space } from \"antd\"\nimport FeeService from \"src/services/FeeService\"\nimport { formatMoney } from \"src/lib/utils\"\nimport { StyleModal, checkHavePropertyName } from \"./ModalApplicationFeesPBS\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nconst ModalIndustrialDesignApplication = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const [checkbox, setCheckBox] = useState()\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n useEffect(() => {\n setTimeout(\n () =>\n // formRef.current && formRef.current.getFieldInstance(\"PhanLoai\").focus(),\n formRef.current &&\n formRef.current.getFieldInstance(\"FirstCheckBox\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setCheckBox({\n IsBoSung: open.InfoFee?.IsBoSung,\n IsSuaDoi: open.InfoFee?.IsSuaDoi,\n IsGiaHan: open.InfoFee?.IsGiaHan,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n setLoading(true)\n const body = {\n ...values,\n ...checkbox,\n DossierCateCode: open?.type,\n FeeBSType: open?.FeeBSType,\n ListFee: getListFee({\n ModalType: \"ModalIndustrialDesignApplication\",\n values,\n checkbox,\n }),\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiBoSungXacLapQuyen\")\n // const res = await FeeService.tinhPhiBoSungXacLapQuyen(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: body,\n DossierFeeList: res.Object?.Data,\n ButtonFee: {\n IsModify: body?.IsSuaDoi,\n IsExtendedResponse: body?.IsGiaHan,\n IsAdditional: body?.IsBoSung,\n IsClassifyKD: !!body?.PhanLoai,\n // IsContentAppraisal: body?.IsTĐND,\n },\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n useEffect(() => {\n if (!!checkbox) handleSubmit()\n }, [checkbox])\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n {\n let isCheckFirstCheckBox = checkHavePropertyName(\n values,\n \"FirstCheckBox\",\n )\n if (allValues && !isCheckFirstCheckBox)\n return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsSuaDoi: check.target.checked,\n })\n form.setFieldValue(\"NDYCSuaDoi\", 1)\n }}\n onKeyPress={handleEnterPress}\n >\n Sửa đổi\n \n \n \n {checkbox?.IsSuaDoi && (\n \n \n \n \n \n )}\n \n \n \n setCheckBox({\n ...checkbox,\n IsGiaHan: check.target.checked,\n })\n }\n onKeyPress={handleEnterPress}\n >\n Gia hạn trả lời\n \n \n \n \n \n \n \n \n \n {\n setCheckBox(pre => ({\n ...pre,\n IsBoSung: value?.target?.checked,\n // IsTĐND: false,\n }))\n form.setFieldsValue({\n DiemBaoHo: \"\",\n SoUuTien: \"\",\n SoHinhAnhThem: \"\",\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Bổ sung\n \n {checkbox?.IsBoSung && (\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )}\n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n \n )\n}\n\nexport default ModalIndustrialDesignApplication\n","import React, { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport Form from \"antd/es/form/Form\"\nimport { Checkbox, Col, Input, InputNumber, Row, Space } from \"antd\"\nimport FeeService from \"src/services/FeeService\"\nimport { formatMoney } from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { getListFee } from \"../../../../commonFunc\"\nimport { checkHavePropertyName } from \"./ModalApplicationFeesPBS\"\n\nconst ModalLayoutDesignFees = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const [checkbox, setCheckBox] = useState()\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n // formRef.current.getFieldInstance(\"SoHinhAnhThem\").focus(),\n\n formRef.current.getFieldInstance(\"FirstCheckBox\").focus(),\n 0,\n )\n if (!!open?.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setCheckBox({\n IsStart: false,\n IsBoSung: open.InfoFee?.IsBoSung,\n IsSuaDoi: open.InfoFee?.IsSuaDoi,\n IsGiaHan: open.InfoFee?.IsGiaHan,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n setLoading(true)\n const body = {\n ...values,\n ...checkbox,\n DossierCateCode: open?.type,\n FeeBSType: open?.FeeBSType,\n ListFee: getListFee({\n ModalType: \"ModalLayoutDesignFees\",\n values,\n checkbox,\n }),\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiBoSungXacLapQuyen\")\n // const res = await FeeService.tinhPhiBoSungXacLapQuyen(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: body,\n DossierFeeList: res.Object?.Data,\n ButtonFee: {\n IsModify: body?.IsSuaDoi,\n IsExtendedResponse: body?.IsGiaHan,\n IsContentAppraisal: body?.IsTĐND,\n IsAdditional: body?.IsBoSung,\n },\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n useEffect(() => {\n if (!checkbox?.IsStart) handleSubmit()\n }, [checkbox])\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n {\n let isCheckFirstCheckBox = checkHavePropertyName(\n values,\n \"FirstCheckBox\",\n )\n if (allValues && !isCheckFirstCheckBox)\n return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsStart: false,\n IsSuaDoi: check.target.checked,\n })\n form.setFieldValue(\"NDYCSuaDoi\", 1)\n }}\n onKeyPress={handleEnterPress}\n >\n Sửa đổi\n \n \n \n {checkbox?.IsSuaDoi && (\n \n \n \n \n \n )}\n \n \n \n setCheckBox({\n ...checkbox,\n IsStart: false,\n IsGiaHan: check.target.checked,\n })\n }\n onKeyPress={handleEnterPress}\n >\n Gia hạn trả lời\n \n \n \n \n {\n setCheckBox(pre => ({\n ...pre,\n IsStart: false,\n IsBoSung: value?.target?.checked,\n }))\n form.setFieldValue(\"SoHinhAnhThem\", \"\")\n }}\n onKeyPress={handleEnterPress}\n >\n Bổ sung\n \n \n {!!checkbox?.IsBoSung && (\n \n \n \n \n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n \n )\n}\n\nexport default ModalLayoutDesignFees\n","import React, { useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport Form from \"antd/es/form/Form\"\nimport { Checkbox, Col, InputNumber, Row, Space } from \"antd\"\nimport FeeService from \"src/services/FeeService\"\nimport { useEffect } from \"react\"\nimport { formatMoney } from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { getListFee } from \"../../../../commonFunc\"\nimport { checkHavePropertyName } from \"./ModalApplicationFeesPBS\"\n\nconst ModalTrademarkFeesPBS = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const [checkbox, setCheckBox] = useState()\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n useEffect(() => {\n // if (open) {\n // formRef.current && formRef.current.getFieldInstance(\"IsSuaDoi\").focus()\n // }\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"FirstCheckBox\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setCheckBox({\n IsBoSung: open.InfoFee?.IsBoSung,\n IsSuaDoi: open.InfoFee?.IsSuaDoi,\n IsGiaHan: open.InfoFee?.IsGiaHan,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n setLoading(true)\n const body = {\n ...values,\n ...checkbox,\n DossierCateCode: open?.type,\n IsClassify: !!values.PhanLoai,\n FeeBSType: open?.FeeBSType,\n ListFee: getListFee({\n ModalType: \"ModalTrademarkFees_FeeBSType_1\",\n values,\n checkbox,\n }),\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiBoSungXacLapQuyen\")\n // const res = await FeeService.tinhPhiBoSungXacLapQuyen(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: body,\n DossierFeeList: res.Object?.Data,\n ButtonFee: {\n IsModify: body?.IsSuaDoi,\n IsExtendedResponse: body?.IsGiaHan,\n IsContentAppraisal: body?.IsTĐND,\n IsAdditional: body?.IsBoSung,\n IsClassify: !!values.PhanLoai,\n },\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n useEffect(() => {\n if (!!checkbox) handleSubmit()\n }, [checkbox])\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n <>\n \n {\n let isCheckFirstCheckBox = checkHavePropertyName(\n values,\n \"FirstCheckBox\",\n )\n if (allValues && !isCheckFirstCheckBox)\n return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsSuaDoi: check.target.checked,\n })\n form.setFieldValue(\"NDYCSuaDoi\", 1)\n }}\n onKeyPress={handleEnterPress}\n >\n Sửa đổi\n \n \n \n {checkbox?.IsSuaDoi && (\n \n \n \n \n \n )}\n \n \n \n setCheckBox({\n ...checkbox,\n IsGiaHan: check.target.checked,\n })\n }\n onKeyPress={handleEnterPress}\n >\n Gia hạn trả lời\n \n \n \n \n \n \n \n \n \n {\n setCheckBox(pre => ({\n ...pre,\n IsBoSung: value?.target?.checked,\n }))\n form.setFieldsValue({\n DiemBaoHo: \"\",\n SoUuTien: \"\",\n SoTrangTangThem: \"\",\n PhanLoaiQT: \"\",\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Bổ sung\n \n {checkbox?.IsBoSung && (\n \n \n \n \n \n \n \n \n \n \n \n \n \n Tổng số sản phẩm/dịch vụ thử 7 trở
đi trong mỗi\n nhóm\n \n }\n >\n \n \n \n \n \n Số phân loại quốc tế về hàng hoá/dịch\n
vụ đối với mỗi nhóm có trên
6 sản\n phẩm/dịch vụ\n

\n }\n >\n \n \n \n
\n )}\n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n \n \n )\n}\n\nexport default ModalTrademarkFeesPBS\n","import { Form, Input, InputNumber, Space, Spin, Tooltip } from \"antd\"\nimport { useContext, useEffect, useMemo, useState } from \"react\"\nimport { useDispatch, useSelector } from \"react-redux\"\nimport CB1 from \"src/components/Modal/CB1\"\nimport Button from \"src/components/MyButton/Button\"\nimport ButtonCircle from \"src/components/MyButton/ButtonCircle\"\nimport Notice from \"src/components/Notice\"\nimport TableCustom from \"src/components/Table/CustomTable\"\nimport DossierService from \"src/services/DossierService\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\nimport ModalProtectionTrademark from \"./Modal/4.ModalProtectionTrademark\"\nimport AddFeeChargeIndustrialDesigns from \"./Modal/AddFeeChargeIndustrialDesigns\"\nimport ModalProtectionCertificate from \"./Modal/ModalProtectionCertificate\"\nimport ModalPrintReceive from \"../../../ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalPrintReceive\"\nimport TittleLayout from \"../../../TittleLayout\"\nimport ModaNoticeError from \"../ApplicationEstablishing/Modal/ModaNoticeError\"\nimport RepresentSelect from \"./components/RepresentSelect\"\nimport WarningColumn from \"./components/WarningColumn\"\nimport { getListFee } from \"../../../commonFunc\"\nimport { RedStartFormDirect } from \"../../../RedStartFormDirect\"\nimport { tinhFeePre } from \"./components/function\"\nimport { createRowandNextField, handleKeyDownByID } from \"src/lib/eventKey\"\nimport { StoreContext } from \"src/lib/store\"\nimport {\n convertBodyCapSoDon,\n formatAcronym,\n formatMoney,\n formatTextName,\n formatterProfileCodeWithOnBlurAndPrefix,\n formatterProfileCodeWithPrefix,\n getListComboByKey,\n handleResetListSingle,\n parserProfileCodeWithPrefix,\n} from \"src/lib/utils\"\nimport {\n handleResetForm,\n printReceipts,\n} from \"src/pages/ADMIN/FormDirect/functions\"\nimport {\n changeValueTable,\n handleAddNewRow,\n handleCopyContentRow,\n ID_SUBMIT_F7,\n preSubmitF7,\n} from \"./functionCommon\"\nimport { SYSTEM_KEY } from \"src/constants/constants\"\n\nconst initValue = {\n DossierCateID: 0,\n OwnerName: \"\",\n Address: \"\",\n TaxCode: \"\",\n TotalFee: 0,\n ProfileCode: \"\",\n}\n\nconst listTitleModal = [\n \"\",\n \"Tính phí cấp văn bằng bảo hộ sáng chế\",\n \"Tính phí cấp văn bằng bảo hộ GPHI\",\n \"Tính phí cấp văn bằng bảo hộ KDCN\",\n \"Tính phí cấp văn bằng bảo hộ nhãn hiệu\",\n]\n\nexport const renderWarmingMess = ({\n record,\n code,\n setListWarmming,\n Type = undefined, //Mã số coode sẽ cảnh báo, VD: 1 là cột thứ nhất\n}) => {\n // check số đơn liên quan chưa được tính phí\n setListWarmming(pre => {\n const listW = pre\n if (!!code) {\n listW[record?.NumericalOrder] = {\n Type: Type,\n Warming: code,\n // `Đơn chưa hợp lệ`,\n }\n } else {\n delete listW?.[record?.NumericalOrder]\n }\n return { ...listW }\n })\n}\nconst ContentTabTwoStyle = styled.div``\nconst ContentTabTwo = ({ listSHCN }) => {\n const maxColumn = 6\n const dispatch = useDispatch()\n const { listSystemKey } = useSelector(state => state.appGlobal)\n const { pdfFromHtmlStore } = useContext(StoreContext)\n const [filePdfFromHtml, setFilePdfFromHtml] = pdfFromHtmlStore\n const [form] = Form.useForm()\n // listWarmming:\n // Type: 1 là cột số đơn liên quan\n const [listWarmming, setListWarmming] = useState({})\n const [keydown, setKeyDown] = useState()\n const [loading, setLoading] = useState(false)\n const [errorNotice, setErrorNotice] = useState(false)\n const [currentRowSelect, setCurrentRowSelect] = useState()\n // const [indexNow, setIndexNow] = useState(0)\n const [dataScrollLengthPre, setDataScrollLengthPre] = useState(0)\n const [filePdf, setFilePdf] = useState(\"\")\n const [openModalProtectionCertificate, setOpenModalProtectionCertificate] =\n useState(false)\n const [\n openAddFeeChargeIndustrialDesigns,\n setOpenAddFeeChargeIndustrialDesigns,\n ] = useState(false)\n const [openModalProtectionTrademark, setOpenModalProtectionTrademark] =\n useState(false)\n const [dataTable, setDataTable] = useState(\n [\"1\", \"2\", \"3\", \"4\", \"5\"].map(i => ({\n ...initValue,\n NumericalOrder: i,\n })),\n )\n const [position, setPosition] = useState({\n row: 1,\n col: 1,\n })\n // Call api lấy ra dữ liệu fill vào các trường còn lại\n const GetDetailsProfile = async (value, record, modifiedValue) => {\n try {\n if (!value) return\n // TabId: chỉ chuyền lên khi cần check cảnh báo\n // 1 là BS đơn xác lập quyền\n // 2 là BS đơn cấp VBBH\n const res = await FeeService.getInforDossierInWipo({\n code: modifiedValue,\n RelationType: 1,\n TabId: 2,\n })\n // const res = await DossierOffService.GetDetailsByProfileCode(value)\n // Notice({ msg: `Số đơn liên quan ${modifiedValue} chưa được đóng phí` })\n if (res?.isError) return\n renderWarmingMess({\n record,\n code: res?.Object?.IsValid,\n listSystemKey,\n setListWarmming,\n Type: 1,\n })\n\n let preFee = {}\n let type = modifiedValue.split(\"-\")[0]\n if (modifiedValue?.length) {\n preFee = await tinhFeePre({\n type: +type,\n FeeBSType: 2,\n data: res?.Object,\n })\n }\n // setDetailPf(res?.Object)\n let fillRepresent = listSHCN.find(\n SHCN => SHCN?.Organize === res?.Object?.RepresentCode,\n )\n setDataTable(pre =>\n pre?.map((i, index) => {\n if (i?.NumericalOrder !== record?.NumericalOrder) return i\n return {\n ...i,\n ...preFee,\n // ...res?.Object,\n type: type,\n DossierCateCode: +res?.Object?.ProfileType,\n DossierCateID: res?.Object?.DossierCateID,\n OwnerName: res?.Object?.OwnerName,\n Address: res?.Object?.Address,\n RepresentID: fillRepresent?.RepresentID,\n TaxCode: fillRepresent?.TaxCode,\n ClaimsNumber: res?.Object?.ClaimsNumber,\n FiguresNumber: res?.Object?.FiguresNumber,\n IncrepagesNumber: res?.Object?.IncrepagesNumber,\n VariantsNumber: res?.Object?.VariantsNumber,\n GroupNumber: res?.Object?.GroupNumber,\n PicturesNumber: res?.Object?.PicturesNumber,\n }\n }),\n )\n form.setFieldsValue({\n [`${record?.NumericalOrder}_OwnerName`]: res?.Object?.OwnerName,\n [`${record?.NumericalOrder}_Address`]: res?.Object?.Address,\n [`${record?.NumericalOrder}_RepresentID`]: fillRepresent?.RepresentID,\n [`${record?.NumericalOrder}_TaxCode`]: fillRepresent?.TaxCode,\n })\n } catch (err) {\n } finally {\n }\n }\n\n const handleReset = () => {\n handleResetListSingle({\n dataTable,\n resetFunction: () => {\n handleResetForm({ form, setDataTable, initValue })\n setListWarmming({})\n },\n })\n }\n\n //submit: cấp số đơn\n const handleSubmitIssueNumber = async body => {\n CB1({\n title: `Bạn có chắc chắn muốn cấp số đơn không?`,\n icon: \"warning-usb\",\n okText: \"Đồng ý\",\n onOk: async () => {\n const res = await DossierService.capSoDon(convertBodyCapSoDon(body))\n if (res?.isError) return\n setDataTable(\n dataTable\n .map(i => ({\n ...i,\n ProfileCode:\n res?.Object?.data.find(\n j => i.NumericalOrder === j.NumericalOrder,\n )?.ProfileCode || \"\",\n DossierID:\n res?.Object?.data.find(\n j => i.NumericalOrder === j.NumericalOrder,\n )?.DossierID || \"\",\n }))\n .filter(i => !!i.ProfileCode),\n )\n },\n })\n }\n const handleSubmit = async () => {\n try {\n await preSubmitF7()\n setLoading(true)\n const listData = dataTable?.filter(\n i => !!i.TotalFee && !i.ProfileCode && i.OwnerName && i.Address,\n )\n const isCheck =\n dataTable\n ?.filter(i => !i.TotalFee)\n ?.some(i => i.ProfileCodeOld || i.OwnerName || i.Address) ||\n dataTable\n ?.filter(i => !!i.TotalFee)\n ?.some(i => !i.ProfileCodeOld || !i.OwnerName || !i.Address)\n console.log(\"dataTable\", dataTable)\n\n if (listData?.length === 0 || isCheck)\n return Notice({\n msg: \"Vui lòng điền thông tin tờ khai và tính phí trước khi cấp số đơn!\",\n isSuccess: false,\n })\n let body =\n listData?.map(i => ({\n ...i,\n DossierCateID: undefined,\n NumericalOrder: i.NumericalOrder,\n DossierType: 6,\n ProfileCodeOld: i?.ProfileCodeOld,\n InfoFee: JSON.stringify(i.InfoFee),\n Represent: listSHCN.find(e => e.RepresentID === i.RepresentID)\n ?.FullName,\n Phi: i.Phi,\n LePhi: i.LePhi,\n ProfileCode: undefined,\n index: undefined,\n title: undefined,\n HinhThucNop: 1,\n TabID: 2,\n })) || []\n\n await handleSubmitIssueNumber(body)\n } catch (error) {\n console.log(\"error\", error)\n } finally {\n setLoading(false)\n }\n }\n\n const checkKeyDown = keydown => {\n switch (keydown.key) {\n case \"F7\":\n if (dataTable?.some(item => !item?.DossierID)) handleSubmit()\n break\n case \"F8\":\n if (dataTable?.some(item => !!item?.DossierID))\n printReceipts({\n setLoading,\n dataTable,\n setFilePdfFromHtml,\n })\n break\n case \"F6\":\n handleReset()\n break\n case \"F2\":\n if (!dataTable?.some(item => !!item?.DossierID))\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n })\n break\n case \"F4\":\n handleCopyContentRow({\n listFieldCheck: [\"OwnerName\", \"Address\", \"RepresentID\"],\n listFieldNotCheck: [\"TaxCode\"],\n dataTable,\n currentRowSelect,\n setDataTable,\n form,\n })\n break\n default:\n break\n }\n }\n\n const handleCharge = async (record, index) => {\n if (!record.ProfileCodeOld) {\n form.setFields([\n {\n name: `${record?.NumericalOrder}_ProfileCodeOld`,\n errors: [\"\"],\n },\n ])\n return\n }\n const type = +record.ProfileCodeOld.split(\"-\")[0]\n const initOpen = {\n index,\n type: type,\n FeeBSType: 2,\n notOperation: !!record?.ProfileCode,\n title: listTitleModal[!!type ? +type : 0],\n }\n switch (type) {\n case 1:\n setOpenModalProtectionCertificate({\n ...record,\n ...initOpen,\n })\n break\n case 2:\n setOpenModalProtectionCertificate({\n ...record,\n ...initOpen,\n })\n break\n case 3:\n setOpenAddFeeChargeIndustrialDesigns({\n ...record,\n ...initOpen,\n })\n break\n case 4:\n setOpenModalProtectionTrademark({\n ...record,\n ...initOpen,\n })\n break\n default:\n await handleNotOpenModal({ record, index })\n break\n }\n }\n const handleNotOpenModal = async ({ record, index }) => {\n const body = {\n DossierCateCode: +record.ProfileCodeOld.split(\"-\")[0],\n FeeBSType: 2,\n ListFee: getListFee({\n ModalType: \"Single_6_7\",\n }),\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiBoSungDonVBBH\")\n if (res.isError) return\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n DossierFeeList: res.Object?.Data,\n },\n })\n createRowandNextField({\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow: () =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }\n\n //format address\n const handleFormatAddress = (event, record, index) => {\n const formattedText = formatTextName(event.target.value)\n form.setFieldValue(`${record?.NumericalOrder}_Address`, formattedText)\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n Address: formattedText,\n },\n })\n }\n\n //format ownername\n const handleFormatOwnerName = (event, record, index) => {\n let format = formatAcronym(event.target.value)\n form.setFieldValue(`${record?.NumericalOrder}_OwnerName`, format)\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n OwnerName: format,\n },\n })\n }\n const handleBlur = (value, record, index) => {\n // Định dạng giá trị từ ref khi onBlur\n if (!!value) {\n let formattedValue = formatterProfileCodeWithOnBlurAndPrefix(value)\n let modifiedValue =\n formattedValue.slice(0, 1) +\n \"-\" +\n formattedValue.slice(1, 5) +\n \"-\" +\n formattedValue.slice(5)\n\n let checkProfileCodeOldHaveChange =\n dataTable?.find(item => item?.NumericalOrder === record?.NumericalOrder)\n ?.ProfileCodeOld !== modifiedValue\n if (checkProfileCodeOldHaveChange) {\n form.setFieldValue(\n `${record?.NumericalOrder}_ProfileCodeOld`,\n formattedValue,\n )\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n ProfileCodeOld: modifiedValue,\n },\n })\n GetDetailsProfile(value, record, modifiedValue)\n if (\n !!dataTable &&\n !!dataTable?.length &&\n !!dataTable?.filter(\n item =>\n item?.ProfileCodeOld === modifiedValue &&\n item?.NumericalOrder !== record?.NumericalOrder,\n )?.length\n ) {\n Notice({\n isSuccess: false,\n msg: `Lưu ý: Số đơn liên quan \"${modifiedValue}\" đang bị trùng!`,\n })\n }\n }\n } else {\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n ProfileCodeOld: \"\",\n },\n })\n }\n }\n const column = [\n {\n title: \"STT\",\n width: 50,\n dataIndex: \"id\",\n align: \"center\",\n render: (val, record, idx) => idx + 1,\n },\n {\n title: (\n
\n Số đơn liên quan(*)\n
\n ),\n width: 140,\n align: \"center\",\n dataIndex: \"ProfileCodeOld\",\n render: (text, record, index) => (\n <>\n \n {\n handleBlur(e.target.value, record, index)\n }}\n onBlur={e => {\n handleBlur(e.target.value, record, index)\n }}\n className=\"input-border-bottom-only\"\n autoFocus={index === 0}\n id={`field${1}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: 1,\n row: index + 1,\n })\n }\n step={0}\n min={1}\n onKeyDown={event =>\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n dispatch,\n searchField: \"ProfileCode\",\n valueConvertFunction: e => {\n const value = !!e?.target?.value\n ? e?.target?.value?.toString()\n : \"\"\n let formattedValue =\n formatterProfileCodeWithOnBlurAndPrefix(value)\n let modifiedValue =\n formattedValue.slice(0, 1) +\n \"-\" +\n formattedValue.slice(1, 5) +\n \"-\" +\n formattedValue.slice(5)\n return modifiedValue\n },\n })\n }\n />\n \n \n \n ),\n },\n {\n title: (\n
\n Chủ đơn(*)\n
\n ),\n width: 160,\n dataIndex: \"OwnerName\",\n align: \"center\",\n render: (text, record, index) => (\n \n \n handleFormatOwnerName(event, record, index)}\n className=\"input-border-bottom-only\"\n id={`field${2}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: 2,\n row: index + 1,\n })\n }\n onKeyDown={event =>\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n dispatch,\n searchField: \"Owner\",\n })\n }\n />\n \n\n \n \n ),\n },\n {\n title: (\n
\n Địa chỉ(*)\n
\n ),\n width: 160,\n dataIndex: \"Address\",\n align: \"center\",\n render: (text, record, index) => (\n \n \n handleFormatAddress(event, record, index)}\n className=\"input-border-bottom-only\"\n id={`field${3}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: 3,\n row: index + 1,\n })\n }\n onKeyDown={event =>\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n })\n }\n />\n \n \n \n ),\n },\n {\n title: \"Đại diện SHCN\",\n width: 200,\n dataIndex: \"RepresentID\",\n align: \"center\",\n render: (text, record, index) => (\n \n changeValueTable({\n setDataTable,\n index,\n newObject: newObject,\n })\n }\n index={index}\n form={form}\n setPosition={setPosition}\n maxColumn={maxColumn}\n dataTable={dataTable}\n handleAddNewRow={() =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n })\n }\n listWarmming={listWarmming}\n TypeWarming={4}\n haveTaxCode={true}\n />\n ),\n },\n {\n key: \"TaxCode\",\n title: \"Mã số thuế\",\n width: 100,\n dataIndex: \"TaxCode\",\n align: \"center\",\n render: (text, record, index) => (\n <>\n \n \n changeValueTable({\n setDataTable,\n index,\n newObject: {\n TaxCode: event?.target?.value,\n },\n })\n }\n disabled={!!record?.RepresentID ? true : false}\n className=\"input-border-bottom-only\"\n id={`field${5}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: 5,\n row: index + 1,\n })\n }\n onKeyDown={event =>\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n })\n }\n />\n \n\n \n \n ),\n },\n {\n title: \"T.Phí\",\n width: 80,\n align: \"center\",\n render: (value, record, index) => (\n
\n {\n handleCharge(record, index)\n }}\n // disabled={!!record.ProfileCode}\n id={`field${6}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: 6,\n row: index + 1,\n })\n }\n onKeyDown={event =>\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n handleAddNewRow: () =>\n !record.ProfileCode &&\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }\n >\n T.Phí\n \n
\n ),\n },\n {\n title: \"Tổng phí (VNĐ)\",\n width: 140,\n dataIndex: \"TotalFee\",\n render: (val, record, idx) => {\n return val ? formatMoney(val) : \"\"\n },\n },\n {\n key: \"ProfileCode\",\n title:
Số đơn
,\n width: 120,\n dataIndex: \"ProfileCode\",\n align: \"left\",\n onCell: record => {\n if (!!record.DossierID) {\n return {\n colSpan: 2,\n }\n }\n return {}\n },\n },\n {\n key: \"Action\",\n width: 50,\n dataIndex: \"Action\",\n align: \"center\",\n onCell: record => {\n if (!!record.DossierID) {\n return {\n colSpan: 0,\n }\n }\n return {}\n },\n render: (text, record, index) =>\n !record.ProfileCode && (\n {\n const newDataTable = dataTable.filter(\n i => i.NumericalOrder !== record.NumericalOrder,\n )\n setDataTable(newDataTable)\n }}\n />\n ),\n },\n ]\n\n useEffect(() => {\n const element = document.getElementById(\n `field${position?.col}${position?.row}`,\n )\n if (!!element) element.focus()\n }, [position])\n useEffect(() => {\n if (dataTable.length > 6 && dataTable.length >= dataScrollLengthPre) {\n setDataScrollLengthPre(dataTable.length)\n // cuộn xuống cuối trang\n const element = document.getElementById(\"body-admin-scroll\")\n element.scrollTop = element.scrollHeight\n }\n }, [dataTable?.length])\n\n useEffect(() => {\n if (keydown?.key) checkKeyDown(keydown)\n }, [keydown])\n useEffect(() => {\n const getKeyDown = e => {\n if ([\"F7\", \"F8\", \"F6\", \"F2\", \"F4\"]?.includes(e?.key)) {\n e?.preventDefault()\n e?.stopPropagation()\n setKeyDown(e)\n }\n }\n window.addEventListener(\"keydown\", e => getKeyDown(e), true)\n\n return () => window.removeEventListener(\"keydown\", e => getKeyDown(e))\n }, [])\n\n return (\n \n \n \n {/*
Phí/Lệ Phí cấp VBBH
*/}\n !!i.ProfileCode)}\n autocomplete=\"off\"\n >\n {useMemo(() => {\n return (\n {\n return {\n onClick: () => {\n setCurrentRowSelect({\n ...record,\n })\n },\n }\n }}\n // rowSelection={{ ...rowSelection }}\n pagination={false}\n sticky={{ offsetHeader: -12 }}\n textEmpty=\"Không có dữ liệu\"\n rowKey=\"NumericalOrder\"\n scroll={{ x: \"800px\" }}\n />\n )\n }, [dataTable, listWarmming, listSHCN])}\n
\n \n !!item?.DossierID)}\n onClick={handleSubmit}\n >\n Lưu (F7)\n \n !!item?.DossierID)}\n onClick={() =>\n printReceipts({\n setLoading,\n dataTable,\n setFilePdfFromHtml,\n })\n }\n >\n In phiếu thu (F8)\n \n handleReset()}\n >\n Đặt lại (F6)\n \n \n \n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n })\n }\n >\n Thêm mới(F2)\n \n
\n {!!openModalProtectionCertificate && (\n {\n setOpenModalProtectionCertificate(false)\n // setIndexNow((openModalProtectionCertificate.index + 1) * 5)\n }}\n onOk={data => {\n changeValueTable({\n setDataTable,\n index: openModalProtectionCertificate.index,\n newObject: {\n type: openModalProtectionCertificate.type,\n ...data,\n },\n })\n createRowandNextField({\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow: () =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }}\n />\n )}\n {!!openAddFeeChargeIndustrialDesigns && (\n {\n setOpenAddFeeChargeIndustrialDesigns(false)\n // setIndexNow((openAddFeeChargeIndustrialDesigns.index + 1) * 5)\n }}\n onOk={data => {\n changeValueTable({\n setDataTable,\n index: openAddFeeChargeIndustrialDesigns.index,\n newObject: {\n type: openAddFeeChargeIndustrialDesigns.type,\n ...data,\n },\n })\n createRowandNextField({\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow: () =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }}\n />\n )}\n {!!openModalProtectionTrademark && (\n {\n setOpenModalProtectionTrademark(false)\n // setIndexNow((openModalProtectionTrademark.index + 1) * 5)\n }}\n onOk={data => {\n changeValueTable({\n setDataTable,\n index: openModalProtectionTrademark.index,\n newObject: {\n type: openModalProtectionTrademark.type,\n ...data,\n },\n })\n createRowandNextField({\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow: () =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }}\n />\n )}\n {filePdf && (\n setFilePdf(false)}\n />\n )}\n\n setErrorNotice(false)}\n />\n \n
\n
\n )\n}\n\nexport default ContentTabTwo\n","import React, { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport Form from \"antd/es/form/Form\"\nimport { Checkbox, Col, InputNumber, Row, Space } from \"antd\"\nimport { formatMoney } from \"src/lib/utils\"\nimport FeeService from \"src/services/FeeService\"\nimport SpinCustom from \"src/components/Spin\"\nimport { RedStar } from \"src/components/FloatingLabel/styled\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nconst ModalProtectionTrademark = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"SoNhomSPDV\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n } else {\n form.setFieldsValue({\n IsChangeFee: !!open?.IsChangeFee,\n SoNhomSPDV: open?.GroupNumber,\n })\n handleSubmit(false)\n }\n }, [open])\n // useEffect(() => {\n // form.setFieldsValue({\n // SoNhomSPDV: open?.GroupNumber,\n // })\n // handleSubmit(false)\n // }, [])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n // setLoading(true)\n const body = {\n ...values,\n DossierCateCode: open.type,\n FeeBSType: open?.FeeBSType,\n ListFee: getListFee({\n ModalType: \"ModalProtectionTrademark\",\n values,\n }),\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiBoSungDonVBBH\")\n // const res = await FeeService.tinhPhiBoSungDonVBBH(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: body,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n\n return (\n \n \n {\n if (allValues.SoNhomSPDV) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n Tổng số nhóm SPDV\n *\n \n }\n rules={[\n {\n required: true,\n message: \"Tổng số nhóm SPDV không được để trống!\",\n },\n ]}\n >\n \n \n \n Đơn này được giảm 50% lệ phí\n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n \n
\n \n )\n}\n\nexport default ModalProtectionTrademark\n","import React, { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport Form from \"antd/es/form/Form\"\nimport { Checkbox, Col, InputNumber, Row, Space } from \"antd\"\nimport { formatMoney } from \"src/lib/utils\"\nimport FeeService from \"src/services/FeeService\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nconst AddFeeChargeIndustrialDesigns = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"SoNhomSPDV\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n } else {\n form.setFieldsValue({\n IsChangeFee: !!open?.IsChangeFee,\n SoNhomSPDV: open?.VariantsNumber,\n SoHinhAnhThem: open?.FiguresNumber,\n })\n handleSubmit(false)\n }\n }, [open])\n\n // useEffect(() => {\n // form.setFieldsValue({\n // //SoNhomSPDV trong modal này là Số phương án/sản phẩm\n // SoNhomSPDV: open?.VariantsNumber,\n // //SoHinhAnhThem trong đơn Đầu 3 là PicturesNumber\n // SoHinhAnhThem: open?.PicturesNumber,\n // })\n // handleSubmit(false)\n // }, [])\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n // setLoading(true)\n const body = {\n ...values,\n DossierCateCode: open?.type,\n FeeBSType: open?.FeeBSType,\n ListFee: getListFee({\n ModalType: \"AddFeeChargeIndustrialDesigns\",\n values,\n }),\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiBoSungDonVBBH\")\n // const res = await FeeService.tinhPhiBoSungDonVBBH(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: body,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n // useEffect(() => {\n // handleSubmit()\n // }, [])\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n\n return (\n \n {\n handleSubmit(false, allValues)\n }}\n >\n \n \n \n \n \n \n \n Đơn này được giảm 50% lệ phí\n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n \n \n )\n}\n\nexport default AddFeeChargeIndustrialDesigns\n","import React, { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport Form from \"antd/es/form/Form\"\nimport { Checkbox, Col, InputNumber, Row, Space } from \"antd\"\nimport { formatMoney } from \"src/lib/utils\"\nimport FeeService from \"src/services/FeeService\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nconst ModalProtectionCertificate = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current && formRef.current.getFieldInstance(\"SoYCBH\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n } else {\n form.setFieldsValue({\n IsChangeFee: !!open?.IsChangeFee,\n SoYCBH: open?.ClaimsNumber,\n SoNhomSPDV: open?.VariantsNumber,\n SoHinhAnhThem: open?.FiguresNumber,\n SoTrangTangThem: open?.IncrepagesNumber,\n })\n handleSubmit(false)\n }\n }, [open])\n\n // useEffect(() => {\n // form.setFieldsValue({\n // SoYCBH: open?.ClaimsNumber,\n // SoNhomSPDV: open?.GroupNumber,\n // SoHinhAnhThem: open?.FiguresNumber,\n // SoTrangTangThem: open?.IncrepagesNumber,\n // })\n // handleSubmit(false)\n // }, [])\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n // setLoading(true)\n const body = {\n ...values,\n DossierCateCode: open?.type,\n FeeBSType: open?.FeeBSType,\n ListFee: getListFee({\n ModalType: \"ModalProtectionCertificate\",\n values,\n }),\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiBoSungDonVBBH\")\n // const res = await FeeService.tinhPhiBoSungDonVBBH(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: body,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n // useEffect(() => {\n // handleSubmit()\n // }, [])\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n\n return (\n \n {\n if (allValues.SoYCBH) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n \n \n \n\n \n Đơn này được giảm 50% lệ phí\n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n \n \n )\n}\n\nexport default ModalProtectionCertificate\n","import { Form, Select } from \"antd\"\nimport React from \"react\"\nimport { createRowandNextField, handleKeyDownByID } from \"src/lib/eventKey\"\nimport WarningColumn from \"./WarningColumn\"\nimport { handleDeleteSelect } from \"../../../../ManagementFilesProvide/conponents/ConfirmAccessFile\"\n\nconst RepresentSelect = ({\n record,\n listSHCN,\n changeValueTable,\n index,\n form,\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow,\n listWarmming = undefined,\n TypeWarming = undefined,\n haveTaxCode = false,\n idPosition = 4,\n}) => {\n return (\n <>\n \n \n option?.children?.toLowerCase()?.indexOf(input?.toLowerCase()) >= 0\n }\n onSearch={text => {\n if (!text) return\n const list = listSHCN.filter(\n i =>\n `${i?.Organize + \" | \" + i?.FullName}`\n ?.toLowerCase()\n ?.indexOf(text?.toLowerCase()) >= 0,\n )\n console.log(\"text\", text)\n console.log(\"list\", list)\n\n if (!!list.length) {\n changeValueTable({\n RepresentID: list[0].RepresentID,\n TaxCode: !!haveTaxCode ? list[0].TaxCode : undefined,\n })\n form.setFieldValue(\n `${record?.NumericalOrder}_RepresentID`,\n list[0].RepresentID,\n )\n !!haveTaxCode &&\n form.setFieldValue(\n `${record?.NumericalOrder}_TaxCode`,\n list[0].TaxCode,\n )\n }\n }}\n id={`field${idPosition}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: idPosition,\n row: index + 1,\n })\n }\n onKeyDown={event => {\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n type: \"select\",\n // passTaxCode: !!haveTaxCode && !!record?.RepresentID,\n })\n }}\n onSelect={(value, option) => {\n createRowandNextField({\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow,\n // passTaxCode: !!haveTaxCode && (!!record?.RepresentID || !!value),\n })\n }}\n onChange={event => {\n if (!haveTaxCode) {\n changeValueTable({\n RepresentID: event,\n })\n return\n }\n\n if (!!event) {\n const code = listSHCN.find(i => i.RepresentID === event).TaxCode\n changeValueTable({\n RepresentID: event,\n TaxCode: code,\n })\n form.setFieldValue(\n `${record?.NumericalOrder}_TaxCode`,\n listSHCN.find(i => i.RepresentID === event).TaxCode,\n )\n } else {\n changeValueTable({\n RepresentID: null,\n TaxCode: \"\",\n })\n form.setFieldValue(`${record?.NumericalOrder}_TaxCode`, \"\")\n }\n }}\n onInputKeyDown={({ key, target }) => {\n if (key === \"Delete\")\n handleDeleteSelect(\n key,\n form,\n `${record?.NumericalOrder}_RepresentID`,\n () => {\n changeValueTable({\n RepresentID: null,\n })\n !!haveTaxCode &&\n form.setFieldValue(`${record?.NumericalOrder}_TaxCode`, \"\")\n },\n target,\n )\n }}\n >\n {listSHCN.map(i => (\n \n {i?.Organize + \" | \" + i?.FullName}\n \n ))}\n \n \n {!!listWarmming && (\n \n )}\n \n )\n}\n\nexport default RepresentSelect\n","import React from \"react\"\nimport { useSelector } from \"react-redux\"\nimport { SYSTEM_KEY } from \"src/constants/constants\"\nimport { getListComboByKey } from \"src/lib/utils\"\nconst WarningColumn = ({ listWarmming, record, Type }) => {\n const { listSystemKey } = useSelector(state => state.appGlobal)\n return listWarmming?.[record?.NumericalOrder] ? (\n \n {console.log(\n \"a\",\n getListComboByKey(SYSTEM_KEY?.WARNING_MESSAGE, listSystemKey)?.find(\n item => item?.CodeKey === \"W0001\",\n )?.Description,\n )}\n {listWarmming?.[record?.NumericalOrder]?.Type === Type &&\n listWarmming?.[`${record?.NumericalOrder}`]?.Warming\n ? listWarmming?.[`${record?.NumericalOrder}`]?.Warming?.split(\",\").map(\n item => (\n
\n {\n getListComboByKey(\n SYSTEM_KEY?.WARNING_MESSAGE,\n listSystemKey,\n )?.find(itemWarningMess => itemWarningMess?.CodeKey === item)\n ?.Description\n }\n
\n ),\n )\n : \".\"}\n \n ) : (\n <>\n )\n}\n\nexport default WarningColumn\n","import FeeService from \"src/services/FeeService\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nexport const tinhFeePre = async ({ type, FeeBSType, data }) => {\n try {\n // const values = await form.validateFields()\n // setLoading(true)\n let body = {}\n let values = {}\n\n if (type === 1 || type === 2) {\n values = {\n SoYCBH: data?.ClaimsNumber,\n SoNhomSPDV: data?.GroupNumber,\n SoHinhAnhThem: data?.FiguresNumber,\n SoTrangTangThem: data?.IncrepagesNumber,\n }\n body = {\n ...values,\n DossierCateCode: type,\n FeeBSType: FeeBSType,\n ListFee: getListFee({\n ModalType: \"ModalProtectionCertificate\",\n values,\n }),\n }\n } else if (type === 3) {\n values = {\n //SoNhomSPDV trong modal này là Số phương án/sản phẩm\n SoNhomSPDV: data?.VariantsNumber,\n //SoHinhAnhThem trong đơn Đầu 3 là PicturesNumber\n SoHinhAnhThem: data?.PicturesNumber,\n }\n body = {\n ...values,\n DossierCateCode: type,\n FeeBSType: FeeBSType,\n ListFee: getListFee({\n ModalType: \"AddFeeChargeIndustrialDesigns\",\n values,\n }),\n }\n } else if (type === 4) {\n values = {\n SoNhomSPDV: data?.GroupNumber,\n }\n body = {\n ...values,\n DossierCateCode: type,\n FeeBSType: FeeBSType,\n ListFee: getListFee({\n ModalType: \"ModalProtectionTrademark\",\n values,\n }),\n }\n } else {\n body = {\n DossierCateCode: type,\n FeeBSType: 2,\n ListFee: getListFee({\n ModalType: \"Single_6_7\",\n }),\n }\n }\n const res = await FeeService.tinhFee(\n { ...body, ListFee: data?.IsHasFee ? body?.ListFee : undefined },\n \"TinhPhiBoSungDonVBBH\",\n )\n // const res = await FeeService.tinhPhiBoSungDonVBBH(body)\n if (res.isError) return\n // if(![1,2,3,4]?.includes(type))\n // setIndexNow(index * 5)\n return {\n // ...values,\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: body,\n DossierFeeList: res.Object?.Data,\n }\n } finally {\n // setLoading(false)\n }\n}\n","export const ID_SUBMIT_F7 = \"submit-button-F7\"\nexport const preSubmitF7 = async () => {\n const element = document.getElementById(`submit-button-F7`)\n if (!!element) await element.focus()\n}\n//change data of row into table\nexport const changeValueTable = ({ setDataTable, index, newObject }) => {\n setDataTable(pre => {\n const newData = pre\n newData[index] = { ...newData[index], ...newObject }\n return [...newData]\n })\n}\n//add new row\nexport const handleAddNewRow = ({\n initValue,\n errorNotice = false,\n setDataTable = () => {},\n setPosition = () => {},\n setErrorNotice = () => {},\n} = {}) => {\n if (!!errorNotice) return\n const uniqueId = Date.now().toString()\n const newData = {\n ...initValue,\n NumericalOrder: uniqueId,\n }\n\n setDataTable(pre => {\n setPosition({\n col: 1,\n row: pre?.length + 1,\n })\n if (pre?.length >= 20) {\n setErrorNotice(true)\n return pre\n } else return [...pre, newData]\n })\n}\n\n//handle Copy content row\nexport const handleCopyContentRow = ({\n listFieldCheck = [],\n listFieldNotCheck = [],\n dataTable,\n currentRowSelect,\n setDataTable,\n form,\n}) => {\n //index của dòng không có dữ liệu\n const indexNoData = dataTable.findIndex(i => {\n for (let index = 0; index < listFieldCheck.length; index++) {\n const element = listFieldCheck[index]\n if (!!i[element]) return false\n }\n return true\n // return !i.OwnerName && !i.RepresentID && !i.Address\n })\n\n //Nếu không còn dòng nào không có dữ liệu thì kết thúc\n if (indexNoData === -1) return\n\n let itemCopy = {}\n const listHaveData = dataTable.filter(i => {\n for (let index = 0; index < listFieldCheck.length; index++) {\n const element = listFieldCheck[index]\n if (!!i[element]) return true\n }\n return false\n // return !!i.OwnerName || !!i.RepresentID || !!i.Address\n })\n\n //kiểm tra xem đơn chọn có dữ liệu chưa\n const checkNotEmpty =\n listHaveData.find(\n i => i.NumericalOrder === currentRowSelect?.NumericalOrder,\n ) || undefined\n if (currentRowSelect?.NumericalOrder && !!checkNotEmpty) {\n itemCopy = checkNotEmpty\n } else {\n itemCopy = listHaveData.length ? listHaveData[listHaveData.length - 1] : {}\n }\n let copyContent = {\n //NumericalOrder của copyContent phải là NumericalOrder của indexNoData\n NumericalOrder: dataTable[indexNoData]?.NumericalOrder,\n }\n if (\n !!itemCopy?.DossierCateID &&\n !!dataTable[indexNoData]?.DossierCateID &&\n itemCopy?.DossierCateID === dataTable[indexNoData]?.DossierCateID\n ) {\n copyContent = { ...itemCopy, ...copyContent }\n }\n //Set form\n const valuesForm = {}\n const listFormField = [...listFieldCheck, listFieldNotCheck]\n\n for (let index = 0; index < listFormField.length; index++) {\n const element = listFormField[index]\n copyContent[element] = itemCopy[element]\n }\n //Set datatable\n changeValueTable({\n setDataTable,\n index: indexNoData,\n newObject: copyContent,\n })\n\n for (let index = 0; index < listFormField.length; index++) {\n const element = listFormField[index]\n valuesForm[`${dataTable[indexNoData]?.NumericalOrder}_${element}`] =\n itemCopy[element]\n }\n form.setFieldsValue(valuesForm)\n}\n","import { Col, Form, Input, InputNumber, Row, Select, Space, Spin } from \"antd\"\nimport { useContext, useEffect, useRef, useState } from \"react\"\nimport { useSelector } from \"react-redux\"\nimport { RedStar } from \"src/components/FloatingLabel/styled\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport Notice from \"src/components/Notice\"\nimport TableCustom from \"src/components/Table/CustomTable\"\nimport { SYSTEM_KEY } from \"src/constants/constants\"\nimport {\n formatMoney,\n formatterProfileCodeNotPrefix,\n formatterProfileCodeWithOnBlur,\n getListComboByKey,\n handleResetListSingle,\n parserProfileCodeNotPrefix,\n printPDFByLink,\n} from \"src/lib/utils\"\nimport FeeService from \"src/services/FeeService\"\nimport PrintfService from \"src/services/PrintfService\"\nimport UserService from \"src/services/UserService\"\nimport ModalPrintReceive from \"../../../ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalPrintReceive\"\nimport DossierOffService from \"src/services/DossierOffService\"\nimport { ContentTabThreeStyle } from \"../../../AdditionalFees/components/AnothorApplication/styles\"\nimport { StoreContext } from \"src/lib/store\"\nimport { convertDuoiSoDon } from \"../../../ManagementFilesProvide/conponents/FileConcernCertificate/components/commonFunction\"\n\nconst ModalDetailAddFee3 = ({ onCancel, open, onOk, listSHCN }) => {\n const [form] = Form.useForm()\n const [loading, setLoading] = useState(false)\n const { listSystemCate } = useSelector(state => state.appGlobal)\n const [input1, setInput1] = useState(0)\n const [input2, setInput2] = useState(\"\")\n const [input3, setInput3] = useState(\"\")\n const [profileCode, setProfileCode] = useState({\n prefix: \"\",\n mainContent: \"\",\n suffix: \"\",\n })\n const [newprofileCode, setNewProfileCode] = useState()\n const [error, setError] = useState({})\n const [number, setNumber] = useState(1)\n const inputRef = useRef(null)\n const inputRef2 = useRef(null)\n const [VBBHNumber, setVBBHNumber] = useState({\n prefix: \"\",\n mainContent: \"\",\n suffix: \"000\",\n })\n const [profileCodeOld, setProfileCodeOld] = useState({\n prefix: \"\",\n mainContent: \"\",\n suffix: \"\",\n })\n const [filePdf, setFilePdf] = useState(\"\")\n // const [listSHCN, setListSHCN] = useState([])\n const [dataTable, setDataTable] = useState(\n [\"1\", \"2\", \"3\", \"4\", \"5\"].map(i => ({\n NumericalOrder: i,\n })),\n )\n const [listPhi, setListPhi] = useState([])\n const [listLePhi, setListLePhi] = useState([])\n\n const getListPhiBS = async () => {\n try {\n setLoading(true)\n const res = await FeeService.getListPhiBS({\n Prefix: profileCodeOld?.prefix || undefined,\n })\n if (res?.isError) return\n setListPhi(res?.Object.filter(i => i.ParentItemID === 2))\n setListLePhi(res?.Object.filter(i => i.ParentItemID === 1))\n } catch (err) {\n console.log(\"err: \", err)\n } finally {\n setLoading(false)\n }\n }\n\n useEffect(() => {\n // getListPhiBS()\n\n if (open) {\n //fill dữ liệu nhập văn bằng\n const VBBHList = open?.VBBH_Relative?.split(\"-\")\n const ProfileCode = open?.ProfileCode?.split(\"-\")\n if (!open?.ProfileCode?.includes(\"-\")) {\n setProfileCode({\n prefix: VBBHList?.[0],\n mainContent: VBBHList?.[1],\n suffix: VBBHList?.[2],\n })\n if (VBBHList?.length)\n setVBBHNumber({\n prefix: VBBHList?.[0],\n mainContent: VBBHList?.[1],\n suffix: VBBHList?.[2],\n })\n setNumber(2)\n } else {\n if (ProfileCode?.length) {\n setProfileCode({\n prefix: ProfileCode?.[0],\n mainContent: `${ProfileCode?.[1]}-${ProfileCode?.[2]?.slice(0, 5)}`,\n suffix: ProfileCode?.[2]?.slice(5),\n })\n setProfileCodeOld({\n prefix: ProfileCode?.[0],\n mainContent: `${ProfileCode?.[1]}-${ProfileCode?.[2]?.slice(0, 5)}`,\n suffix: ProfileCode?.[2]?.slice(5),\n })\n }\n setNumber(1)\n }\n //fill dữ liệu form\n form.setFieldsValue({\n TaxCode: open?.TaxCode,\n OwnerName: open?.OwnerName,\n Address: open?.Address,\n RepresentID: !!open?.RepresentID ? +open?.RepresentID : undefined,\n })\n //fill dữ liệu nhập số đơn\n const inputList = open?.ProfileCode?.split(\"-\")\n setInput1(inputList?.[0])\n setInput2(inputList?.[1] + inputList?.[2]?.slice(0, 5))\n setInput3(open?.Suffix)\n setNewProfileCode({\n ...open,\n })\n //fill dữ liệu table phí/lệ phí\n const listLePhi = open?.DossierFeeList?.filter(i => i.FeeType === 1)\n const listPhi = open?.DossierFeeList?.filter(i => i.FeeType === 2)\n const listMerge = open?.DossierFeeList?.map((i, idx) => ({\n LePhiID: listLePhi[idx]?.FeeID,\n LePhi: listLePhi[idx]?.Fee,\n PhiID: listPhi[idx]?.FeeID,\n Phi: listPhi[idx]?.Fee,\n NumericalOrder: idx,\n }))?.filter(i => i.LePhiID || i.PhiID)\n setDataTable(listMerge)\n }\n }, [open])\n\n useEffect(() => {\n getListPhiBS()\n }, [profileCodeOld?.prefix])\n const convertDataTableToArray = listData => {\n return listData\n .filter(\n item =>\n (item.LePhiID !== undefined && item.LePhi !== undefined) ||\n (item.PhiID !== undefined && item.Phi !== undefined),\n )\n .flatMap(item => [\n {\n FeeID: +item.LePhiID,\n Fee: item.LePhi,\n Total: item.LePhi,\n FeeName: listLePhi.find(j => j.ID === `${item.LePhiID}`)?.Description,\n FeeType: 1,\n },\n {\n FeeID: +item.PhiID,\n Fee: item.Phi,\n Total: item.Phi,\n FeeName: listPhi.find(j => j.ID === `${item.PhiID}`)?.Description,\n FeeType: 2,\n },\n ])\n .filter(i => !!i.FeeID)\n }\n //change data of row into table\n const changeValueTable = (idx, object) => {\n setDataTable(pre =>\n pre?.map((i, index) => {\n if (i.NumericalOrder !== object.NumericalOrder) return i\n return { ...i, ...object }\n }),\n )\n }\n\n const getDetailByVBBH = VBBH => {\n if (\n (!profileCodeOld?.prefix || !profileCodeOld?.mainContent) &&\n !!VBBH?.prefix &&\n !!VBBH?.mainContent &&\n !!VBBH?.suffix\n ) {\n GetDetailsProfile(\n `${VBBH?.prefix}-${VBBH?.mainContent}-${VBBH?.suffix}`,\n 2,\n )\n }\n }\n const getDetailByProfileCode = profileCode => {\n if (!!profileCode.prefix && !!profileCode.mainContent) {\n // if (!!profileCode.suffix) {\n // } else {\n GetDetailsProfile(`${profileCode.prefix}-${profileCode.mainContent}`, 1)\n // }\n }\n }\n const { pdfFromHtmlStore } = useContext(StoreContext)\n const [filePdfFromHtml, setFilePdfFromHtml] = pdfFromHtmlStore\n\n const printReceipts = async () => {\n try {\n setLoading(true)\n const res = await PrintfService.print_phieu_bao_thu([\n newprofileCode?.DossierID,\n ])\n if (res?.isError) return\n // printPDFByLink(res?.Object, true)\n setFilePdfFromHtml({\n isDowload: false,\n htmlReceipt: res?.Object,\n })\n } finally {\n setLoading(false)\n }\n }\n\n const [keydown, setKeydown] = useState()\n const checkKeyDown = keydown => {\n switch (keydown.key) {\n // case \"F7\":\n // if (!newprofileCode) handleSubmit()\n // break\n case \"F8\":\n if (!!newprofileCode) printReceipts()\n break\n case \"F6\":\n handleReset()\n break\n case \"F2\":\n handleAddNewRow()\n break\n default:\n break\n }\n }\n\n useEffect(() => {\n if (keydown?.key) checkKeyDown(keydown)\n }, [keydown])\n useEffect(() => {\n const getKeyDown = e => {\n if ([\"F2\", \"F6\", \"F7\", \"F8\", \"F9\"]?.includes(e?.key)) {\n e?.preventDefault()\n e?.stopPropagation()\n setKeydown(e)\n }\n }\n window.addEventListener(\"keydown\", e => getKeyDown(e), true)\n\n return () => window.removeEventListener(\"keydown\", e => getKeyDown(e))\n }, [])\n\n const checkNumberSingle = () => {\n if (\n number === 1 &&\n (!profileCodeOld?.prefix ||\n !profileCodeOld?.mainContent ||\n !profileCodeOld?.suffix)\n ) {\n setError(pre => ({\n DiplomaCode: \"\",\n SingleCode: \"Vui lòng nhập đầy đủ số đơn\",\n }))\n\n return true\n } else if (\n number === 2 &&\n (!VBBHNumber?.prefix || !VBBHNumber?.mainContent || !VBBHNumber?.suffix)\n ) {\n setError(pre => ({\n SingleCode: \"\",\n DiplomaCode: \"Vui lòng nhập đầy đủ số văn bằng\",\n }))\n return true\n } else if (\n !!profileCodeOld?.mainContent &&\n profileCodeOld?.mainContent.slice(5) === \"00000\"\n ) {\n setError(pre => ({\n DiplomaCode: \"\",\n SingleCode: \"Số đơn phải lớn hơn 0\",\n }))\n return true\n } else if (\n !!VBBHNumber?.mainContent &&\n profileCodeOld?.mainContent.slice(5) === \"00000\"\n ) {\n setError(pre => ({\n DiplomaCode: \"Số đơn phải lớn hơn 0\",\n SingleCode: \"\",\n }))\n return true\n } else {\n setError(pre => ({ DiplomaCode: \"\", SingleCode: \"\" }))\n }\n return false\n }\n //submit: cấp số đơn\n const handleSubmit = async () => {\n try {\n setLoading(true)\n let checkNumberError = checkNumberSingle()\n if (!!checkNumberError) return\n const values = await form.validateFields()\n const listData = dataTable?.filter(\n i =>\n (i.LePhiID !== null && i.LePhi !== null) ||\n (i.PhiID !== null && i.Phi !== null),\n )\n if (listData?.length === 0)\n return Notice({\n msg: \"Vui lòng điền thông tin và phí trước khi cấp số đơn!\",\n isSuccess: false,\n })\n\n const body = [\n {\n ...values,\n type: profileCodeOld?.prefix,\n DossierCateID: open?.DossierCateID,\n DossierID: open?.DossierID,\n DossierType: 6,\n DossierCateItemID: open?.DossierCateItemID,\n ProfileType: open?.ProfileType,\n ProfileCodeOld: !!profileCodeOld?.mainContent\n ? `${profileCodeOld?.prefix}-${profileCodeOld?.mainContent}`\n : undefined,\n VBBH_Relative: !!VBBHNumber?.mainContent\n ? `${VBBHNumber?.prefix}-${VBBHNumber?.mainContent}-${VBBHNumber?.suffix}`\n : undefined,\n PbtNumber:\n number === 1\n ? `${profileCodeOld?.prefix}-${profileCodeOld?.mainContent}${profileCodeOld?.suffix}`\n : `${VBBHNumber?.prefix}${VBBHNumber?.mainContent}${VBBHNumber?.suffix}`,\n DossierFeeList: convertDataTableToArray(listData),\n TotalFee: totalFee,\n Phi: listData.reduce(\n (total, item) => (+item.Phi ? item.Phi : 0) + total,\n 0,\n ),\n LePhi: listData.reduce(\n (total, item) => (+item.LePhi ? item.LePhi : 0) + total,\n 0,\n ),\n PbtNbr: open?.PbtNbr,\n ProfileCode: profileCodeOld?.mainContent\n ? `${profileCodeOld?.prefix}-${profileCodeOld?.mainContent}${profileCodeOld?.suffix}`\n : undefined,\n index: undefined,\n title: undefined,\n HinhThucNop: 1,\n TabID: 3,\n Suffix: input3 ? `${input3}` : undefined,\n Represent: listSHCN?.find(i => i?.RepresentID === values?.RepresentID)\n ?.FullName,\n InvoiceID: open?.InvoiceID || undefined,\n SendDate: undefined,\n },\n ]\n const res = await DossierOffService.updateSoDon(body)\n if (res?.isError) return\n // setNewProfileCode(res?.Object?.data?.[0])\n Notice({\n msg: \"Lưu thành công\",\n isSuccess: true,\n })\n onOk()\n onCancel()\n } catch (error) {\n console.log(\"error\", error)\n } finally {\n setLoading(false)\n }\n }\n\n const handleConvertProfileCode = value => {\n // Định dạng giá trị từ ref khi onBlur\n if (!!value) {\n // let formattedValue = formatterProfileCodeWithOnBlur(value)\n let modifiedValue = convertDuoiSoDon(value)\n // formattedValue.slice(0, 4) + \"-\" + formattedValue.slice(4)\n setProfileCodeOld({\n ...profileCodeOld,\n mainContent: modifiedValue,\n })\n getDetailByProfileCode({\n ...profileCodeOld,\n mainContent: modifiedValue,\n })\n } else {\n setProfileCodeOld({\n ...profileCodeOld,\n mainContent: \"\",\n })\n }\n }\n // Call api lấy ra dữ liệu fill vào các trường còn lại\n const GetDetailsProfile = async body => {\n try {\n setLoading(true)\n let body2 = body || `${input1}-${input2}`\n const res = await FeeService.getInforDossierInWipo(body2)\n if (res?.isError) return\n form.setFieldsValue({\n PbtNbr: res?.Object?.PbtNbr,\n VBBH_Relative: res?.Object?.VBBH_Relative,\n Represent: res?.Object?.Represent,\n OwnerName: res?.Object?.OwnerName,\n TaxCode: res?.Object?.TaxCode,\n Address: res?.Object?.Address,\n })\n if (number === 2 && !!res?.Object?.VBBH) {\n const list = res?.Object?.VBBH?.split(\"-\")\n setVBBHNumber({\n prefix: list[0],\n mainContent: list[1],\n suffix: list[2] === \"0\" ? \"000\" : list[2],\n })\n } else if (number === 1 && res?.Object?.ProfileCode) {\n const list = res?.Object?.ProfileCode?.split(\"-\")\n // let formattedValue = formatterProfileCodeWithOnBlur(\n // `${list[1]}-${list[2]}`,\n // )\n let modifiedValue = convertDuoiSoDon(`${list[1]}-${list[2]}`)\n // formattedValue.slice(0, 4) + \"-\" + formattedValue.slice(4)\n setProfileCodeOld({\n prefix: list[0],\n mainContent: modifiedValue,\n suffix: \"\",\n })\n }\n } catch (err) {\n console.log(\"err: \", err)\n } finally {\n setLoading(false)\n }\n }\n useEffect(() => {\n if (!!input1 && !!input2) {\n if (!!input3) {\n let midleContent\n if (\n input2?.toString().length === 9 &&\n !input2?.toString()?.includes(\"-\")\n ) {\n midleContent = formatterProfileCodeNotPrefix(input2)\n } else {\n midleContent = input2\n }\n setProfileCode(`${input1}-${midleContent}${input3}`)\n } else {\n setProfileCode(\"\")\n // GetDetailsProfile()\n }\n }\n }, [input1, input2, input3])\n //add new row\n const handleAddNewRow = () => {\n const uniqueId = Date.now().toString()\n const newData = {\n NumericalOrder: uniqueId,\n }\n setDataTable(pre => [\n ...dataTable,\n {\n ...newData,\n },\n ])\n }\n\n const handleResetForm = () => {\n form.resetFields()\n setDataTable(\n [\"1\", \"2\", \"3\", \"4\", \"5\"].map(i => ({\n NumericalOrder: i,\n })),\n )\n setNewProfileCode(false)\n }\n\n const handleReset = () => {\n handleResetListSingle({\n dataTable,\n resetFunction: () => {\n handleResetForm()\n },\n })\n }\n const totalFee = dataTable.reduce((total, item) => {\n const LePhi = item.LePhi !== undefined ? item.LePhi : 0\n const Phi = item.Phi !== undefined ? item.Phi : 0\n return LePhi + Phi + total\n }, 0)\n\n const column = [\n {\n key: \"LePhiID\",\n title: \"Lệ phí\",\n dataIndex: \"LePhiID\",\n align: \"left\",\n width: 300,\n render: (value, record, index) => (\n {\n changeValueTable(index, {\n ...record,\n LePhiID: event,\n LePhi: listLePhi?.find(i => i.ID === event)?.Fee,\n })\n }}\n filterOption={(input, option) =>\n option?.children?.toLowerCase()?.indexOf(input?.toLowerCase()) >= 0\n }\n value={`${value ? value : \"\"}`}\n onSearch={text => {\n const list = listLePhi.filter(i => i?.Description.includes(text))\n if (!text) return\n if (!!list.length) {\n form.setFieldValue(\n `${record?.NumericalOrder}_LePhiID`,\n list[0].ID,\n )\n changeValueTable(index, {\n ...record,\n LePhiID: list[0].ID,\n LePhi: listLePhi?.find(i => i.ID === list[0].ID)?.Fee,\n })\n }\n }}\n >\n {listLePhi?.map(i => (\n \n {i?.Description}\n \n ))}\n \n ),\n },\n {\n title: \"Số tiền\",\n width: 100,\n dataIndex: \"LePhi\",\n align: \"center\",\n render: (value, record, index) => (\n {\n changeValueTable(index, {\n ...record,\n LePhi: event,\n })\n }}\n formatter={value => `${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")}\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\"input-border-bottom-only\"\n min={0}\n value={value}\n />\n ),\n },\n {\n key: \"PhiID\",\n title: \"Phí\",\n dataIndex: \"PhiID\",\n align: \"left\",\n width: 300,\n render: (value, record, index) => (\n {\n changeValueTable(index, {\n ...record,\n PhiID: event,\n Phi: listPhi?.find(i => i.ID === event)?.Fee,\n })\n }}\n filterOption={(input, option) =>\n option?.children?.toLowerCase()?.indexOf(input?.toLowerCase()) >= 0\n }\n value={`${value ? value : \"\"}`}\n onSearch={text => {\n const list = getListComboByKey(\n SYSTEM_KEY?.PHI_BS_KHAC,\n listSystemCate,\n ).filter(i => i.ParentItemID === 1 && i?.Description.includes(text))\n if (!text) return\n if (!!list.length) {\n form.setFieldValue(`${record?.NumericalOrder}_PhiID`, list[0].ID)\n changeValueTable(index, {\n ...record,\n PhiID: list[0].ID,\n Phi: listPhi?.find(i => i.ID === list[0].ID)?.Fee,\n })\n }\n }}\n >\n {listPhi?.map(i => (\n \n {i?.Description}\n \n ))}\n \n ),\n },\n {\n title: \"Số tiền\",\n width: 100,\n dataIndex: \"Phi\",\n align: \"center\",\n render: (value, record, index) => (\n {\n changeValueTable(index, {\n ...record,\n Phi: event,\n })\n }}\n formatter={value => `${value}`.replace(/\\B(?=(\\d{3})+(?!\\d))/g, \",\")}\n parser={value => value.replace(/\\$\\s?|(,*)/g, \"\")}\n className=\"input-border-bottom-only\"\n min={0}\n value={value}\n />\n ),\n },\n ]\n\n return (\n \n \n
\n \n handleSubmit()}\n >\n Cập nhật\n \n printReceipts()}\n >\n In phiếu thu(F8)\n \n \n Thêm mới (F2)\n \n \n
\n \n \n \n \n \n {\n if (number === 2) {\n setProfileCode({\n prefix: \"\",\n mainContent: \"\",\n suffix: \"\",\n })\n setNumber(1)\n setError(undefined)\n setProfileCodeOld({\n prefix: \"\",\n mainContent: \"\",\n suffix: \"\",\n })\n setVBBHNumber({\n prefix: \"\",\n mainContent: \"\",\n suffix: \"000\",\n })\n }\n }}\n >\n Số đơn\n *\n \n }\n required\n rules={[\n {\n required: true,\n message: \"Please input!\",\n },\n ]}\n >\n \n {\n setProfileCode({\n prefix: e.target.value.toUpperCase(),\n mainContent: formatterProfileCodeNotPrefix(\n profileCodeOld.mainContent,\n ),\n suffix: profileCodeOld.suffix,\n })\n\n getDetailByProfileCode({\n ...profileCodeOld,\n prefix: e.target.value.toUpperCase(),\n })\n }}\n onBlur={e => {\n setProfileCode({\n prefix: e.target.value.toUpperCase(),\n mainContent: formatterProfileCodeNotPrefix(\n profileCodeOld.mainContent,\n ),\n suffix: profileCodeOld.suffix,\n })\n\n getDetailByProfileCode({\n ...profileCodeOld,\n prefix: e.target.value.toUpperCase(),\n })\n }}\n autoFocus={true}\n style={{ width: 80 }}\n onChange={e =>\n setProfileCodeOld({\n ...profileCodeOld,\n prefix: !!e.target.value\n ? e.target.value.toUpperCase()\n : undefined,\n })\n }\n value={profileCodeOld?.prefix}\n />\n {\n setProfileCode({\n prefix: profileCodeOld.prefix,\n mainContent: convertDuoiSoDon(e.target.value),\n suffix: profileCodeOld.suffix,\n })\n handleConvertProfileCode(e.target.value)\n }}\n onBlur={e => {\n setProfileCode({\n prefix: profileCodeOld.prefix,\n mainContent: convertDuoiSoDon(e.target.value),\n suffix: profileCodeOld.suffix,\n })\n handleConvertProfileCode(e.target.value)\n }}\n onChange={e =>\n setProfileCodeOld({\n ...profileCodeOld,\n mainContent: e,\n })\n }\n value={profileCodeOld?.mainContent}\n className=\"no-set-border-radius\"\n formatter={formatterProfileCodeNotPrefix}\n parser={parserProfileCodeNotPrefix}\n style={{ flex: 1 }}\n maxLength={10}\n />\n {\n setProfileCode({\n prefix: profileCodeOld.prefix,\n mainContent: formatterProfileCodeNotPrefix(\n profileCodeOld.mainContent,\n ),\n suffix: e.target.value,\n })\n setInput3(e.target.value)\n if (profileCodeOld?.suffix !== e.target.value)\n getDetailByProfileCode({\n ...profileCodeOld,\n suffix: e.target.value,\n })\n }}\n onBlur={e => {\n setProfileCode({\n prefix: profileCodeOld.prefix,\n mainContent: formatterProfileCodeNotPrefix(\n profileCodeOld.mainContent,\n ),\n suffix: e.target.value,\n })\n setInput3(e.target.value)\n if (profileCodeOld?.suffix !== e.target.value)\n getDetailByProfileCode({\n ...profileCodeOld,\n suffix: e.target.value,\n })\n }}\n style={{ width: 100 }}\n onChange={e =>\n setProfileCodeOld({\n ...profileCodeOld,\n suffix: e.target.value.toUpperCase(),\n })\n }\n value={profileCodeOld?.suffix}\n />\n \n {!!error?.SingleCode && (\n
{error?.SingleCode}
\n )}\n {/* \n \n {\n GetDetailsProfile(e.target.value)\n setInput1(e.target.value)\n }}\n autoFocus={true}\n />\n \n \n \n {\n GetDetailsProfile(e.target.value)\n setInput2(e.target.value)\n }}\n formatter={formatterProfileCodeNotPrefix}\n parser={parserProfileCodeNotPrefix}\n />\n \n \n {\n GetDetailsProfile(e.target.value)\n setInput3(e.target.value)\n }}\n />\n \n */}\n \n \n \n \n {/* */}\n {number === 1\n ? profileCodeOld.prefix &&\n profileCodeOld.mainContent &&\n profileCodeOld.suffix && (\n {`${profileCodeOld.prefix}${\n number === 1 ? \"-\" : \"\"\n }${profileCodeOld.mainContent}${\n profileCodeOld.suffix\n }`}\n )\n : VBBHNumber.prefix &&\n VBBHNumber.mainContent &&\n VBBHNumber.suffix && (\n {`${VBBHNumber.prefix}${VBBHNumber.mainContent}${VBBHNumber.suffix}`}\n )}\n \n \n \n {\n if (number === 1) {\n setProfileCode({\n prefix: \"\",\n mainContent: \"\",\n suffix: \"\",\n })\n setNumber(2)\n setError(undefined)\n setVBBHNumber({\n prefix: \"\",\n mainContent: \"\",\n suffix: \"000\",\n })\n setProfileCodeOld({\n prefix: \"\",\n mainContent: \"\",\n suffix: \"\",\n })\n }\n }}\n >\n Số văn bằng\n *\n \n }\n >\n \n {\n setVBBHNumber(pre => ({\n ...pre,\n prefix: e,\n }))\n }}\n value={VBBHNumber?.prefix}\n style={{ width: 80 }}\n // disabled={true}\n onPressEnter={e => {\n setProfileCode(pre => ({\n prefix: e.target.value,\n mainContent: pre?.mainContent,\n suffix: pre?.suffix,\n }))\n getDetailByVBBH({\n ...VBBHNumber,\n prefix: e.target.value,\n })\n }}\n onBlur={e => {\n setProfileCode(pre => ({\n prefix: e.target.value,\n mainContent: pre?.mainContent,\n suffix: pre?.suffix,\n }))\n getDetailByVBBH({\n ...VBBHNumber,\n prefix: e.target.value,\n })\n }}\n />\n {\n let parsedValue = \"\"\n if (e?.target?.value !== \"\") {\n parsedValue = e?.target?.value\n .replace(/\\D/g, \"\")\n .slice(0, 12)\n }\n setVBBHNumber(pre => ({\n ...pre,\n mainContent: parsedValue,\n }))\n }}\n value={VBBHNumber?.mainContent}\n className=\"no-set-border-radius\"\n // formatter={formatterProfileCodeNotPrefix}\n // parser={parserProfileCodeNotPrefix}\n style={{ flex: 1 }}\n // disabled={true}\n onPressEnter={e => {\n setProfileCode(pre => ({\n prefix: pre?.prefix,\n mainContent: e.target.value,\n suffix: pre?.suffix,\n }))\n getDetailByVBBH({\n ...VBBHNumber,\n mainContent: e.target.value,\n })\n }}\n onBlur={e => {\n setProfileCode(pre => ({\n prefix: pre?.prefix,\n mainContent: e.target.value,\n suffix: pre?.suffix,\n }))\n getDetailByVBBH({\n ...VBBHNumber,\n mainContent: e.target.value,\n })\n }}\n />\n {\n setVBBHNumber(pre => ({\n ...pre,\n suffix: e.target.value,\n }))\n }}\n value={VBBHNumber?.suffix}\n style={{ width: 100 }}\n // disabled={true}\n onPressEnter={e => {\n setProfileCode(pre => ({\n prefix: pre?.prefix,\n mainContent: pre?.mainContent,\n suffix: e.target.value,\n }))\n getDetailByVBBH({\n ...VBBHNumber,\n suffix: e.target.value,\n })\n }}\n onBlur={e => {\n setProfileCode(pre => ({\n prefix: pre?.prefix,\n mainContent: pre?.mainContent,\n suffix: e.target.value,\n }))\n getDetailByVBBH({\n ...VBBHNumber,\n suffix: e.target.value,\n })\n }}\n />\n \n\n {!!error?.DiplomaCode && (\n
{error?.DiplomaCode}
\n )}\n \n \n \n \n {\n if (!!event) {\n const code = listSHCN.find(\n i => i.RepresentID === event,\n ).TaxCode\n form.setFieldValue(`TaxCode`, code)\n } else {\n form.setFieldValue(`TaxCode`, \"\")\n }\n }}\n popupMatchSelectWidth={500}\n placeholder=\"Chọn\"\n allowClear\n showSearch\n filterOption={(input, option) =>\n option?.children\n ?.toLowerCase()\n ?.indexOf(input?.toLowerCase()) >= 0\n }\n onSearch={text => {\n const list = listSHCN.filter(i =>\n i?.Organize?.includes(text),\n )\n if (!text) return\n if (!!list.length) {\n form.setFieldValue(`Represent`, list[0].RepresentID)\n form.setFieldValue(`TaxCode`, list[0].TaxCode)\n }\n }}\n >\n {listSHCN.map(i => (\n \n {i?.Organize + \" | \" + i?.FullName}\n \n ))}\n \n \n \n \n \n Chủ đơn*\n \n }\n rules={[\n {\n required: true,\n message: \"Không được để trống!\",\n },\n ]}\n >\n \n \n \n \n {\n let RepresentID = form.getFieldValue(\"RepresentID\")\n if (!!RepresentID) {\n const represent = listSHCN.find(\n i => i.RepresentID === RepresentID,\n )\n form.setFieldValue(`TaxCode`, represent?.TaxCode)\n }\n }}\n name=\"TaxCode\"\n label=\"Mã số thuế\"\n >\n \n \n \n \n \n Địa chỉ chủ đơn*\n \n }\n rules={[\n {\n required: true,\n message: \"Không được để trống!\",\n },\n ]}\n >\n \n \n \n \n Tổng tiền}>\n
\n \n {dataTable.find(\n i => i.LePhi !== undefined || i.Phi !== undefined,\n )\n ? formatMoney(totalFee)\n : 0}\n {\" \"}\n VNĐ\n
\n
\n \n
\n \n \n\n {filePdf && (\n setFilePdf(false)}\n />\n )}\n \n
\n
\n \n )\n}\n\nexport default ModalDetailAddFee3\n","import { useEffect, useState } from \"react\"\nimport DossierOffService from \"src/services/DossierOffService\"\nimport FeeService from \"src/services/FeeService\"\nimport ModalApplicationFeesPBS from \"../../../AdditionalFees/components/ApplicationEstablishing/Modal/ModalApplicationFeesPBS\"\nimport ModalGeographicalIndication from \"../../../AdditionalFees/components/ApplicationEstablishing/Modal/ModalGeographicalIndication\"\nimport ModalIndustrialDesignApplication from \"../../../AdditionalFees/components/ApplicationEstablishing/Modal/ModalIndustrialDesignApplication\"\nimport ModalLayoutDesignFees from \"../../../AdditionalFees/components/ApplicationEstablishing/Modal/ModalLayoutDesignFees\"\nimport ModalProtectionTrademark from \"../../../AdditionalFees/components/ApplicationVHHB/Modal/4.ModalProtectionTrademark\"\nimport AddFeeChargeIndustrialDesigns from \"../../../AdditionalFees/components/ApplicationVHHB/Modal/AddFeeChargeIndustrialDesigns\"\nimport ModalProtectionCertificate from \"../../../AdditionalFees/components/ApplicationVHHB/Modal/ModalProtectionCertificate\"\nimport ModalApplicationFees from \"../../../ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalCharge/1.ModalApplicationFees\"\nimport ModalTrademarkFeesPBS from \"../../../AdditionalFees/components/ApplicationEstablishing/Modal/ModalTrademarkFeesPBS\"\nimport ModalGPHI from \"../../../ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalCharge/2.ModalGPHI\"\nimport ChargeIndustrialDesigns from \"../../../ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalCharge/3.ChargeIndustrialDesigns\"\nimport ModalTrademarkFees from \"../../../ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalCharge/4.ModalTrademarkFees\"\nimport ModalLayoutDesign from \"../../../ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalCharge/7.ModalLayoutDesign\"\nimport ModalCancelVBBH from \"../../../ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalCancelVBBH\"\nimport ModalExtendContactSHCN from \"../../../ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalExtendContractSHCN\"\nimport ModalExtendVBBH from \"../../../ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalExtendVBBH\"\nimport ModalMaintenanceRequirement from \"../../../ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalMaintenanceRequirement\"\nimport ModalModifyContent from \"../../../ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalModifyContent\"\nimport ModalRequestModifyKDCN from \"../../../ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalRequestModifyKDCN\"\nimport ModalRequestReissue from \"../../../ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalRequestReissue\"\nimport ModalTrademarkTransferContact from \"../../../ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalTrademarkTransferContact\"\nimport ModalTranferContact from \"../../../ManagementFilesProvide/conponents/FileConcernCertificate/components/modal/ModalTransferContact\"\nimport ModalChangeFormFee from \"../../../ManagementFilesProvide/conponents/FileConcernFile/components/ModalCharge/ModalChangeFormFee\"\nimport ModalObjectionFormFee from \"../../../ManagementFilesProvide/conponents/FileConcernFile/components/ModalCharge/ModalObjectionFormFee\"\nimport ModalTransferFormFee from \"../../../ManagementFilesProvide/conponents/FileConcernFile/components/ModalCharge/ModalTransferFormFee\"\nimport ModalGNGH from \"../../../ManagementFilesProvide/conponents/OtherFiles/Modal/ModalGNGH\"\nimport ModalGNĐB from \"../../../ManagementFilesProvide/conponents/OtherFiles/Modal/ModalGNĐB\"\nimport ModalKTGĐ from \"../../../ManagementFilesProvide/conponents/OtherFiles/Modal/ModalKTGĐ\"\nimport ModalKTNV from \"../../../ManagementFilesProvide/conponents/OtherFiles/Modal/ModalKTNV\"\nimport ModalPTĐD from \"../../../ManagementFilesProvide/conponents/OtherFiles/Modal/ModalPTĐD\"\nimport { LIST_FEE_ID } from \"../../../commonFunc\"\nimport ModalTC from \"../../../ManagementFilesProvide/conponents/OtherFiles/Modal/ModalTC\"\n\nconst RenderModalFee = ({ changeValueTable, dataSetOpen }) => {\n const [openModalCharge1, setOpenModalCharge1] = useState(false)\n const [openModalCharge2, setOpenModalCharge2] = useState(false)\n const [openModalCharge3, setOpenModalCharge3] = useState(false)\n const [openModalCharge4, setOpenModalCharge4] = useState(false)\n const [openModalCharge7, setOpenModalCharge7] = useState(false)\n const [openModalTransfer, setOpenModalTransfer] = useState(false)\n const [openModalChange, setOpenModalChange] = useState(false)\n const [openModalObjection, setOpenModalObjection] = useState(false)\n const [openModalTransferContact, setOpenModalTransferContact] =\n useState(false)\n const [\n openModalTrademarkTransferContact,\n setOpenModalTrademarkTransferContact,\n ] = useState(false)\n const [openModalMaintenanceRequirement, setOpenModalMaintenanceRequirement] =\n useState(false)\n const [openModalExtendVBBH, setOpenModalExtendVBBH] = useState(false)\n const [openModalExtendContactSHCN, setOpenModalExtendContactSHCN] =\n useState(false)\n const [openModalTranferContactSHCN, setOpenModalTranferContactSHCN] =\n useState(false)\n const [openModalRequestReissue, setOpenModalRequestReissue] = useState(false)\n const [openModalModifyContent, setOpenModalModifyContent] = useState(false)\n const [openModalCancelVBBH, setOpenModalCancelVBBH] = useState(false)\n const [openModalRequestModifyKDCN, setOpenModalRequestModifyKDCN] =\n useState(false)\n\n const [openModalGNGH, setOpenModalGNGH] = useState(false)\n const [openModalGNĐB, setOpenModalGNĐB] = useState(false)\n const [openModalKTGĐ, setOpenModalKTGĐ] = useState(false)\n const [openModalKTNV, setOpenModalKTNV] = useState(false)\n const [openModalPTĐD, setOpenModalPTĐD] = useState(false)\n const [openModalTC, setOpenModalTC] = useState(false)\n // Phí BS1\n const [openApplicationModal, setOpenApplicationModal] = useState(false)\n const [openIndustrialModal, setOpenIndustrialModal] = useState(false)\n const [openLayoutModal, setOpenLayoutModal] = useState(false)\n const [openGeographicalIndication, setOpenGeographicalIndication] =\n useState(false)\n const [openTrademarkModal, setOpenTrademarkModal] = useState(false)\n //Phí BS2\n const [openModalProtectionCertificate, setOpenModalProtectionCertificate] =\n useState(false)\n const [\n openAddFeeChargeIndustrialDesigns,\n setOpenAddFeeChargeIndustrialDesigns,\n ] = useState(false)\n const [openModalProtectionTrademark, setOpenModalProtectionTrademark] =\n useState(false)\n\n const openModalCharge = async data => {\n console.log(\"data?.DossierType\", data?.DossierType)\n switch (data?.DossierType) {\n case 1:\n switch (+data?.ProfileType) {\n case 1:\n return setOpenModalCharge1({\n ...data,\n title: \"Tính phí đơn đăng ký sáng chế\",\n })\n case 2:\n return setOpenModalCharge2({\n ...data,\n title: \"Tính phí đơn đăng ký giải pháp hữu ích\",\n })\n case 3:\n return setOpenModalCharge3({\n ...data,\n title: \"Tính phí đơn đăng ký kiểu dáng công nghiệp\",\n })\n case 4:\n return setOpenModalCharge4({\n ...data,\n title: \"Tính phí đơn đăng ký nhãn hiệu\",\n })\n case 6:\n const getFee = async () => {\n const body = {\n DossierCateID: data?.DossierCateID,\n DossierCateCode: +data?.ProfileType,\n ListFee: [\n { FeeID: LIST_FEE_ID?.FeeID_1, Quantity: 1 },\n { FeeID: LIST_FEE_ID?.FeeID_12, Quantity: 1 },\n { FeeID: LIST_FEE_ID?.FeeID_29, Quantity: 1 },\n { FeeID: LIST_FEE_ID?.FeeID_27, Quantity: 1 },\n ],\n }\n const res = await FeeService.tinhFee(\n body,\n \"TinhPhiDonXacLapQuyen\",\n )\n if (res.isError) return\n }\n getFee()\n break\n case 7:\n return setOpenModalCharge7({\n ...data,\n title: \"Tính phí đơn đăng ký thiết kế bố trí\",\n })\n default:\n break\n }\n break\n case 3:\n switch (data?.ProfileType) {\n case \"CĐ1\":\n case \"CĐ2\":\n case \"CĐ3\":\n case \"CĐ4\":\n case \"CĐ7\":\n return setOpenModalTransfer({\n ...data,\n title: \"Tính phí chuyển giao đơn\",\n SingleCode: data?.Code,\n })\n case \"SĐ1\":\n case \"SĐ2\":\n case \"SĐ3\":\n case \"SĐ4\":\n case \"SĐ6\":\n case \"SĐ7\":\n return setOpenModalChange({\n ...data,\n title: \"Tính phí sửa đổi đơn\",\n SingleCode: data?.Code,\n })\n case \"PĐ1\":\n case \"PĐ2\":\n case \"PĐ3\":\n case \"PĐ4\":\n case \"PĐ5\":\n case \"PĐ6\":\n case \"PĐ7\":\n return setOpenModalObjection({\n ...data,\n title: \"Tính phí đơn phản đối\",\n SingleCode: data?.Code,\n })\n default:\n const getFee = async () => {\n const res = await DossierOffService.TinhPhiDonLienQuanToiDon({\n DossierCateID: data?.DossierCateID,\n DossierCateCode: data?.ProfileType,\n })\n if (res.isError) return\n }\n getFee()\n break\n }\n break\n case 4:\n switch (data?.ProfileType) {\n case \"CB1\":\n case \"CB2\":\n case \"CB3\":\n case \"CB7\":\n return setOpenModalTransferContact({\n ...data,\n title: \"Tính phí hợp đồng chuyển nhượng\",\n SingleCode: data?.Code,\n })\n case \"CB4\":\n return setOpenModalTrademarkTransferContact({\n ...data,\n title: \"Tính phí hợp đồng chuyển nhượng\",\n SingleCode: data?.Code,\n })\n case \"DT1\":\n case \"DT2\":\n return setOpenModalMaintenanceRequirement({\n ...data,\n title: \"Tính phí đơn duy trì hiệu lực\",\n SingleCode: data?.Code,\n })\n case \"GH3\":\n case \"GH4\":\n return setOpenModalExtendVBBH({\n ...data,\n title: \"Tính phí gia hạn văn bằng bảo hộ\",\n SingleCode: data?.Code,\n })\n case \"GHLX1\":\n case \"GHLX2\":\n case \"GHLX3\":\n case \"GHLX4\":\n case \"GHLX7\":\n return setOpenModalExtendContactSHCN({\n ...data,\n Type: 1,\n isEditFee: 1,\n title: \"Tính phí gia hạn hợp đồng chuyển quyền sử dụng SHCN\",\n SingleCode: data?.Code,\n })\n case \"LX1\":\n case \"LX2\":\n case \"LX3\":\n case \"LX4\":\n case \"LX7\":\n return setOpenModalTranferContactSHCN({\n ...data,\n Type: 1,\n title: \"Tính phí hợp đồng chuyển quyền sử dụng SHCN\",\n SingleCode: data?.Code,\n })\n case \"RB4\":\n return setOpenModalRequestReissue({\n ...data,\n title: \"Tính phí yêu cầu cấp lại VBBH\",\n SingleCode: data?.Code,\n })\n case \"SB1\":\n case \"SB2\":\n case \"SB3\":\n case \"SB4\":\n case \"SB6\":\n case \"SB7\":\n return setOpenModalRequestModifyKDCN({\n ...data,\n title: \"Tính phí sửa đổi văn bằng bảo hộ\",\n SingleCode: data?.Code,\n })\n case \"SĐLX1\":\n case \"SĐLX2\":\n case \"SĐLX3\":\n case \"SĐLX4\":\n case \"SĐLX7\":\n return setOpenModalModifyContent({\n ...data,\n title:\n \"Tính phí sửa đổi nội dung hợp đồng chuyển quyền sử dụng SHCN\",\n SingleCode: data?.Code,\n })\n case \"ĐC1\":\n case \"ĐC2\":\n case \"ĐC3\":\n case \"ĐC4\":\n case \"ĐC6\":\n case \"ĐC7\":\n return setOpenModalTranferContactSHCN({\n ...data,\n Type: 2,\n isEditFee: 2,\n title: \"Tính phí chấm dứt hiệu lực VBBH\",\n SingleCode: data?.Code,\n })\n case \"ĐCLX1\":\n case \"ĐCLX2\":\n case \"ĐCLX3\":\n case \"ĐCLX4\":\n case \"ĐCLX7\":\n case \"ĐCLXBB\":\n return setOpenModalTranferContactSHCN({\n ...data,\n Type: 2,\n title:\n \"Tính phí chấm dứt hiệu lực hợp đồng chuyển quyền sử dụng SHCN\",\n SingleCode: data?.Code,\n })\n case \"ĐN1\":\n case \"ĐN2\":\n case \"ĐN3\":\n case \"ĐN4\":\n case \"ĐN5\":\n case \"ĐN6\":\n case \"ĐN7\":\n case \"ĐN8\":\n return setOpenModalCancelVBBH({\n ...data,\n title: \"Tính phí huỷ bỏ hiệu lực VBBH\",\n SingleCode: data?.Code,\n })\n default:\n const getFee = async () => {\n const res = await DossierOffService.TinhPhiDonLienQuanToiVanBang({\n DossierCateID: data?.DossierCateID,\n DossierCateCode: data?.ProfileType,\n })\n if (res.isError) return\n }\n getFee()\n break\n }\n break\n case 5:\n switch (data?.ProfileType) {\n case \"GNGH3\":\n case \"GNGH4\":\n return setOpenModalGNGH({\n ...data,\n title: \"Tính phí ghi nhận gia hạn\",\n })\n case \"GNĐB1\":\n case \"GNĐB2\":\n case \"GNĐB3\":\n case \"GNĐB4\":\n case \"GNĐB6\":\n case \"GNĐB7\":\n return setOpenModalGNĐB({\n ...data,\n title: \"Tính phí ghi nhận đăng bạ\",\n })\n case \"KTGĐ\":\n return setOpenModalKTGĐ({\n ...data,\n title: \"Tính phí kiểm tra nghiệp vụ giám định\",\n })\n case \"KTNV\":\n return setOpenModalKTNV({\n ...data,\n title: \"Tính phí kiểm tra nghiệp vụ đại diện\",\n })\n case \"PTĐD\":\n return setOpenModalPTĐD({\n ...data,\n title: \"Tính phí phúc tra nghiệp vụ đại diện\",\n })\n case \"TC1\":\n case \"TC2\":\n case \"TC3\":\n case \"TC4\":\n return setOpenModalTC({\n ...data,\n title: \"Tính phí đơn yêu cầu tra cứu\",\n })\n default:\n const getFee = async () => {\n const res = await DossierOffService.TinhPhiCacDonKhac({\n DossierCateID: data?.DossierCateID,\n DossierCateCode: data?.ProfileType,\n })\n if (res.isError) return\n }\n getFee()\n break\n }\n break\n case 6:\n const type = data.ProfileCodeOld.includes(\"-\")\n ? +data.ProfileCodeOld.split(\"-\")[0]\n : +data.ProfileCodeOld.charAt(0)\n if (data?.TabID === 1) {\n if (type >= 1 && type <= 2) {\n setOpenApplicationModal({\n ...data,\n index: data.index,\n type: type,\n FeeBSType: 1,\n title: \"Tính phí\",\n })\n }\n if (+type === 3) {\n setOpenIndustrialModal({\n ...data,\n index: data.index,\n type: type,\n FeeBSType: 1,\n title: \"Tính phí\",\n })\n }\n if (+type === 4) {\n setOpenTrademarkModal({\n ...data,\n index: data.index,\n type: type,\n FeeBSType: 1,\n title: \"Tính phí\",\n })\n }\n if ([5, 6, 8]?.includes(+type)) {\n setOpenGeographicalIndication({\n ...data,\n index: data.index,\n type: type,\n FeeBSType: 1,\n title: \"Tính phí\",\n })\n }\n if (+type === 7) {\n setOpenLayoutModal({\n ...data,\n index: data.index,\n type: type,\n FeeBSType: 1,\n title: \"Tính phí\",\n })\n }\n } else if (data?.TabID === 2) {\n if (type === 1) {\n setOpenModalProtectionCertificate({\n ...data,\n index: data.index,\n type: type,\n FeeBSType: 2,\n title: \"Tính phí cấp văn bằng bảo hộ sáng chế\",\n })\n } else if (type === 2) {\n setOpenModalProtectionCertificate({\n ...data,\n index: data.index,\n type: type,\n FeeBSType: 2,\n title: \"Tính phí cấp văn bằng bảo hộ GPHI\",\n })\n } else if (type === 3) {\n setOpenAddFeeChargeIndustrialDesigns({\n ...data,\n index: data.index,\n type: type,\n FeeBSType: 2,\n title: \"Tính phí cấp văn bằng bảo hộ KDCN\",\n })\n } else if (type === 4) {\n setOpenModalProtectionTrademark({\n ...data,\n type: type,\n index: data.index,\n FeeBSType: 2,\n title: \"Tính phí cấp văn bằng bảo hộ nhãn hiệu\",\n })\n } else {\n const res = await FeeService.tinhPhiBoSungDonVBBH({\n DossierCateCode: +data.ProfileCodeOld.split(\"-\")[0],\n FeeBSType: 2,\n })\n if (res.isError) return\n changeValueTable(data.index, {\n ...data,\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n DossierFeeList: res.Object?.Data,\n })\n }\n }\n\n break\n default:\n break\n }\n }\n\n useEffect(() => {\n if (dataSetOpen) {\n openModalCharge(dataSetOpen)\n }\n }, [dataSetOpen])\n\n return (\n <>\n {openModalCharge1 && (\n setOpenModalCharge1(false)}\n open={openModalCharge1}\n onOk={data => {\n changeValueTable(openModalCharge1?.key, {\n ...openModalCharge1,\n ...data,\n })\n }}\n />\n )}\n {openModalCharge2 && (\n setOpenModalCharge2(false)}\n open={openModalCharge2}\n onOk={data => {\n changeValueTable(openModalCharge2?.key, {\n ...openModalCharge2,\n ...data,\n })\n }}\n />\n )}\n {openModalCharge3 && (\n setOpenModalCharge3(false)}\n open={openModalCharge3}\n onOk={data => {\n changeValueTable(openModalCharge3?.key, {\n ...openModalCharge3,\n ...data,\n })\n }}\n />\n )}\n {openModalCharge4 && (\n setOpenModalCharge4(false)}\n open={openModalCharge4}\n onOk={data => {\n changeValueTable(openModalCharge4?.key, {\n ...openModalCharge4,\n ...data,\n })\n }}\n />\n )}\n {openModalCharge7 && (\n setOpenModalCharge7(false)}\n open={openModalCharge7}\n onOk={data => {\n changeValueTable(openModalCharge7?.key, {\n ...openModalCharge7,\n ...data,\n })\n }}\n />\n )}\n\n {!!openModalTransfer && (\n setOpenModalTransfer(false)}\n onOk={data => {\n changeValueTable(openModalTransfer.index, {\n ...openModalTransfer,\n ...data,\n })\n }}\n />\n )}\n {!!openModalChange && (\n setOpenModalChange(false)}\n onOk={data => {\n changeValueTable(openModalChange.index, {\n ...openModalChange,\n ...data,\n })\n }}\n />\n )}\n {!!openModalObjection && (\n setOpenModalObjection(false)}\n onOk={data => {\n changeValueTable(openModalObjection.index, {\n ...openModalObjection,\n ...data,\n })\n }}\n />\n )}\n\n {!!openModalTransferContact && (\n setOpenModalTransferContact(false)}\n onOk={data => {\n changeValueTable(openModalTransferContact.index, {\n ...openModalTransferContact,\n ...data,\n })\n }}\n />\n )}\n {!!openModalTrademarkTransferContact && (\n setOpenModalTrademarkTransferContact(false)}\n onOk={data => {\n changeValueTable(openModalTrademarkTransferContact.index, {\n ...openModalTrademarkTransferContact,\n ...data,\n })\n }}\n />\n )}\n {!!openModalMaintenanceRequirement && (\n setOpenModalMaintenanceRequirement(false)}\n onOk={data => {\n changeValueTable(openModalMaintenanceRequirement.index, {\n ...openModalMaintenanceRequirement,\n ...data,\n })\n }}\n />\n )}\n {!!openModalExtendVBBH && (\n setOpenModalExtendVBBH(false)}\n onOk={data => {\n changeValueTable(openModalExtendVBBH.index, {\n ...openModalExtendVBBH,\n ...data,\n })\n }}\n />\n )}\n {!!openModalExtendContactSHCN && (\n setOpenModalExtendContactSHCN(false)}\n onOk={data => {\n changeValueTable(openModalExtendContactSHCN.index, {\n ...openModalExtendContactSHCN,\n ...data,\n })\n }}\n />\n )}\n {!!openModalTranferContactSHCN && (\n setOpenModalTranferContactSHCN(false)}\n onOk={data => {\n changeValueTable(openModalTranferContactSHCN.index, {\n ...openModalTranferContactSHCN,\n ...data,\n })\n }}\n />\n )}\n {!!openModalRequestReissue && (\n setOpenModalRequestReissue(false)}\n onOk={data => {\n changeValueTable(openModalRequestReissue.index, {\n ...openModalRequestReissue,\n ...data,\n })\n }}\n />\n )}\n {!!openModalModifyContent && (\n setOpenModalModifyContent(false)}\n onOk={data => {\n changeValueTable(openModalModifyContent.index, {\n ...openModalModifyContent,\n ...data,\n })\n }}\n />\n )}\n {!!openModalCancelVBBH && (\n setOpenModalCancelVBBH(false)}\n onOk={data => {\n changeValueTable(openModalCancelVBBH.index, {\n ...openModalCancelVBBH,\n ...data,\n })\n }}\n />\n )}\n {!!openModalRequestModifyKDCN && (\n setOpenModalRequestModifyKDCN(false)}\n onOk={data => {\n changeValueTable(openModalRequestModifyKDCN.index, {\n ...openModalRequestModifyKDCN,\n ...data,\n })\n }}\n />\n )}\n\n {!!openModalGNGH && (\n setOpenModalGNGH(false)}\n onOk={data => {\n changeValueTable(openModalGNGH.index, {\n ...openModalGNGH,\n ...data,\n })\n }}\n />\n )}\n {!!openModalGNĐB && (\n setOpenModalGNĐB(false)}\n onOk={data => {\n changeValueTable(openModalGNĐB.index, {\n ...openModalGNĐB,\n ...data,\n })\n }}\n />\n )}\n {!!openModalKTGĐ && (\n setOpenModalKTGĐ(false)}\n onOk={data => {\n changeValueTable(openModalKTGĐ.index, {\n ...openModalKTGĐ,\n ...data,\n })\n }}\n />\n )}\n {!!openModalKTNV && (\n setOpenModalKTNV(false)}\n onOk={data => {\n changeValueTable(openModalKTNV.index, {\n ...openModalKTNV,\n ...data,\n })\n }}\n />\n )}\n {!!openModalPTĐD && (\n setOpenModalPTĐD(false)}\n onOk={data => {\n changeValueTable(openModalPTĐD.index, {\n ...openModalPTĐD,\n ...data,\n })\n }}\n />\n )}\n {!!openModalTC && (\n setOpenModalTC(false)}\n onOk={data => {\n changeValueTable(openModalTC.index, {\n ...openModalTC,\n ...data,\n })\n }}\n />\n )}\n\n {/* Phí bổ sung 1 */}\n {!!openApplicationModal && (\n {\n setOpenApplicationModal(false)\n // setIndexNow((openApplicationModal.index + 1) * 4)\n }}\n onOk={data => {\n changeValueTable(openApplicationModal.index, {\n ...openApplicationModal,\n ...data,\n })\n }}\n />\n )}\n {!!openIndustrialModal && (\n {\n setOpenIndustrialModal(false)\n // setIndexNow((openIndustrialModal.index + 1) * 4)\n }}\n onOk={data => {\n changeValueTable(openIndustrialModal.index, {\n ...openIndustrialModal,\n ...data,\n })\n }}\n />\n )}\n {!!openTrademarkModal && (\n {\n setOpenTrademarkModal(false)\n // setIndexNow((openTrademarkModal.index + 1) * 4)\n }}\n onOk={data => {\n changeValueTable(openTrademarkModal.index, {\n ...openTrademarkModal,\n ...data,\n })\n }}\n />\n )}\n {!!openGeographicalIndication && (\n {\n setOpenGeographicalIndication(false)\n // setIndexNow((openGeographicalIndication.index + 1) * 4)\n }}\n onOk={data => {\n changeValueTable(openGeographicalIndication.index, {\n ...openGeographicalIndication,\n ...data,\n })\n }}\n />\n )}\n {!!openLayoutModal && (\n {\n setOpenLayoutModal(false)\n // setIndexNow((openLayoutModal.index + 1) * 4)\n }}\n onOk={data => {\n changeValueTable(openLayoutModal.index, {\n ...openLayoutModal,\n ...data,\n })\n }}\n />\n )}\n {/* Phí BS2 */}\n {!!openModalProtectionCertificate && (\n {\n setOpenModalProtectionCertificate(false)\n // setIndexNow((openModalProtectionCertificate.index + 1) * 5)\n }}\n onOk={data => {\n changeValueTable(openModalProtectionCertificate.index, {\n ...openModalProtectionCertificate,\n ...data,\n })\n }}\n />\n )}\n {!!openAddFeeChargeIndustrialDesigns && (\n {\n setOpenAddFeeChargeIndustrialDesigns(false)\n }}\n onOk={data => {\n changeValueTable(openAddFeeChargeIndustrialDesigns.index, {\n ...openAddFeeChargeIndustrialDesigns,\n ...data,\n })\n }}\n />\n )}\n {!!openModalProtectionTrademark && (\n {\n setOpenModalProtectionTrademark(false)\n // setIndexNow((openModalProtectionTrademark.index + 1) * 5)\n }}\n onOk={data => {\n changeValueTable(openModalProtectionTrademark.index, {\n ...openModalProtectionTrademark,\n ...data,\n })\n }}\n />\n )}\n \n )\n}\n\nexport default RenderModalFee\n","import { Form, Input, Select, Spin, Tooltip } from \"antd\"\nimport { InputNumber } from \"antd/es\"\n\nimport moment from \"moment\"\nimport { useContext, useEffect, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport ButtonCustom from \"src/components/MyButton/Button\"\nimport Notice from \"src/components/Notice\"\nimport TableCustom from \"src/components/Table/CustomTable\"\nimport {\n formatMoney,\n formatterProfileCodeNotPrefix,\n formatterProfileCodeWithOnBlur,\n formatterProfileCodeWithOnBlurAndPrefix,\n formatterProfileCodeWithPrefix,\n parserProfileCodeNotPrefix,\n parserProfileCodeWithPrefix,\n printPDFByLink,\n} from \"src/lib/utils\"\nimport DossierOffService from \"src/services/DossierOffService\"\nimport PrintfService from \"src/services/PrintfService\"\nimport ModalPrintBarCode from \"../../../ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalPrintBarCode\"\nimport ModalPrintReceive from \"../../../ManagementFilesProvide/conponents/ConfirmAccessFile/components/ModalPrintReceive\"\nimport RenderModalFee from \"./RenderModalFee\"\nimport { disabledTinhPhi, getTaxCodeFromRepresentID } from \"../commonFunction\"\nimport { convertSoDon_VBGoc } from \"../../../ManagementFilesProvide/conponents/FileConcernCertificate/components/commonFunction\"\nimport FeeService from \"src/services/FeeService\"\nimport { StoreContext } from \"src/lib/store\"\nimport { RedStartFormDirect } from \"../../../RedStartFormDirect\"\nimport { getListFee } from \"../../../commonFunc\"\nimport { tinhFeePre } from \"../../../AdditionalFees/components/ApplicationVHHB/components/function\"\nimport WarningColumn from \"../../../AdditionalFees/components/ApplicationVHHB/components/WarningColumn\"\nimport { changeValueTable } from \"../../../AdditionalFees/components/ApplicationVHHB/functionCommon\"\nimport { renderWarmingMess } from \"../../../AdditionalFees/components/ApplicationVHHB/ContentTabTwo\"\nimport { useSelector } from \"react-redux\"\n\nconst DetailDossier = ({\n onOk,\n listSHCN,\n onCancel,\n open,\n ltDossierInfo,\n setLtDossierInfo,\n}) => {\n const [form] = Form.useForm()\n // Type: 1 là cột số đơn liên quan\n const { listSystemKey } = useSelector(state => state.appGlobal)\n const [listWarmming, setListWarmming] = useState({})\n const [loading, setLoading] = useState(false)\n const [openBarcode, setOpenBarcode] = useState(false)\n const [filePdf, setFilePdf] = useState(\"\")\n const [openModalFee, setOpenModalFee] = useState(false)\n const [addonVBBHRelative, setAddonVBBHRelative] = useState([])\n const [updateBtnStatus, setUpdateBtnStatus] = useState(\n !ltDossierInfo?.filter(i => !!i?.ButtonShow?.IsUpdate)?.length,\n )\n\n const handleChangeListAddon = (\n listAddon,\n key,\n addonBefore = \"\",\n addonAfter = \"\",\n isDisabledDossierRelative = false,\n ) => {\n listAddon.push({\n key,\n addonBefore,\n addonAfter,\n isDisabledDossierRelative,\n })\n }\n\n const convertLtDossierWithView = data => {\n let newData = {}\n let listAddon = []\n if (!!data) {\n data.forEach((item, index) =>\n Object.keys(item).forEach(key => {\n if (key === \"key\") {\n newData[key] = item[key]\n } else {\n if (\n (ltDossierInfo[0]?.DossierType === 3 &&\n key === \"DossierRelative\") ||\n (ltDossierInfo[0]?.DossierType === 2 && key === \"DossierOrigin\")\n ) {\n newData[`${key}_${index}`] = item[key]\n .split(\"-\")\n .splice(1, 2)\n .join(\"-\")\n handleChangeListAddon(\n listAddon,\n `${key}_${index}`,\n `${item[key].split(\"-\")[0]}`,\n \"\",\n true,\n )\n } else if (\n ltDossierInfo[0]?.DossierType === 4 &&\n key === \"VBBH_Relative\"\n ) {\n if (item[key].includes(\"/\")) {\n newData[`${key}_${index}`] = item[key].split(\"/\")[0]\n handleChangeListAddon(\n listAddon,\n `${key}_${index}`,\n \"\",\n \"/ĐKHĐSD\",\n false,\n )\n } else if (item[key].includes(\"-\")) {\n newData[`${key}_${index}`] = item[key].split(\"-\")[1]\n handleChangeListAddon(\n listAddon,\n `${key}_${index}`,\n item[key].split(\"-\")[0],\n \"000\",\n true,\n )\n } else {\n newData[`${key}_${index}`] = item[key]\n handleChangeListAddon(\n listAddon,\n `${key}_${index}`,\n \"\",\n \"\",\n true,\n )\n }\n } else {\n newData[`${key}_${index}`] = item[key]\n }\n }\n }),\n )\n }\n setAddonVBBHRelative(listAddon)\n return newData\n }\n\n const handleBlur = (value, record, index) => {\n // Định dạng giá trị từ ref khi onBlur\n if (!!value) {\n switch (record?.TabID) {\n case 1:\n let modifiedValue1 = value\n let formattedValue1 = value\n if (value?.length) {\n if (value[0] !== \"5\") {\n formattedValue1 = formatterProfileCodeWithOnBlurAndPrefix(value)\n modifiedValue1 =\n formattedValue1.slice(0, 1) +\n \"-\" +\n formattedValue1.slice(1, 5) +\n \"-\" +\n formattedValue1.slice(5)\n }\n }\n\n form.setFieldValue(\n `ProfileCodeOld_${record?.NumericalOrder}`,\n formattedValue1,\n )\n console.log(\"modifiedValue1\", modifiedValue1)\n\n changeValueTable({\n setDataTable: setLtDossierInfo,\n index,\n newObject: {\n // ...record,\n ProfileCodeOld: modifiedValue1,\n },\n })\n\n handleChangeValue(record, modifiedValue1, \"ProfileCodeOld\")\n getDetailsProfileLPBS(value, record, modifiedValue1)\n break\n case 2:\n let formattedValue2 = formatterProfileCodeWithOnBlurAndPrefix(value)\n let modifiedValue2 =\n formattedValue2.slice(0, 1) +\n \"-\" +\n formattedValue2.slice(1, 5) +\n \"-\" +\n formattedValue2.slice(5)\n\n form.setFieldValue(\n `ProfileCodeOld_${record?.NumericalOrder}`,\n formattedValue2,\n )\n handleChangeValue(record, modifiedValue2, \"ProfileCodeOld\")\n getDetailsProfileLPBS(value, record, modifiedValue2)\n break\n default:\n return\n }\n }\n }\n\n useEffect(() => {\n if (!!ltDossierInfo?.length) {\n const data = convertLtDossierWithView(ltDossierInfo)\n form.setFieldsValue(data)\n }\n }, [ltDossierInfo])\n\n const handleChangeValue = (record, value, value_key) => {\n // const newData = [...ltDossierInfo]\n // const index = newData.findIndex(item => record.key === item.key)\n // const item = newData[index]\n // newData.splice(index, 1, {\n // ...item,\n // [value_key]: value,\n // TaxCode: getTaxCodeFromRepresentID(item, value, listSHCN, value_key),\n // Represent:\n // value_key === \"RepresentID\"\n // ? listSHCN?.find(i => i?.RepresentID === value)?.FullName\n // : item?.Represent,\n // })\n // setLtDossierInfo(newData)\n\n setLtDossierInfo(pre => {\n const newData = [...pre] || []\n const index = newData.findIndex(item => record.key === item.key)\n const item = newData[index]\n newData[index] = {\n ...item,\n [value_key]: value,\n TaxCode: getTaxCodeFromRepresentID(item, value, listSHCN, value_key),\n Represent:\n value_key === \"RepresentID\"\n ? listSHCN?.find(i => i?.RepresentID === value)?.FullName\n : item?.Represent,\n }\n return [...newData]\n })\n }\n\n const getDetailsProfile = async (record, value, key) => {\n try {\n if (!!record?.DossierRelative) return\n let res\n if (record?.DossierType !== 6) {\n res = await FeeService.getInforDossierInWipo(value)\n }\n if (res?.isError) return\n form.setFieldsValue({\n [`${key}`]: res?.Object?.DossierRelative,\n })\n } catch (err) {\n console.log(\"err: \", err)\n } finally {\n }\n }\n\n const getDetailsProfileLPBS = async (value, record, modifiedValue) => {\n try {\n if (!value) return\n let res\n if (record?.TabID === 2) {\n res = await FeeService.getInforDossierInWipo({\n code: modifiedValue,\n RelationType: 1,\n TabID: record?.TabID,\n })\n\n // check số đơn liên quan chưa được tính phí\n renderWarmingMess({\n record,\n code: res?.Object?.IsValid,\n setListWarmming,\n Type: 1,\n })\n // setListWarmming(pre => {\n // const listW = pre\n // if (!res?.Object?.IsValid) {\n // listW[record?.NumericalOrder] = {\n // Type: 1,\n // Warming: `Đơn chưa hợp lệ`,\n // }\n // } else {\n // delete listW?.[record?.NumericalOrder]\n // }\n // return { ...listW }\n // })\n } else {\n res = await FeeService.getInforDossierInWipo({\n code: modifiedValue,\n RelationType: !!value && value?.length && value[0] !== \"5\" ? 2 : 1,\n })\n }\n // const res = await DossierOffService.GetDetailsByProfileCode(value)\n if (res?.isError) return\n let preFee = {}\n let type = modifiedValue.split(\"-\")[0]\n if (modifiedValue?.length) {\n preFee = await tinhFeePre({\n type: +type,\n FeeBSType: 2,\n data: res?.Object,\n })\n }\n // setDetailPf(res?.Object)\n let fillRepresent = listSHCN.find(\n SHCN => SHCN?.Organize === res?.Object?.RepresentCode,\n )\n setLtDossierInfo(pre =>\n pre?.map((i, index) => {\n if (i?.NumericalOrder !== record?.NumericalOrder) return i\n return {\n ...i,\n ...preFee,\n // ...res?.Object,\n type: type,\n DossierCateCode:\n record.DossierCateCode || +res?.Object?.ProfileType,\n DossierCateID: record.DossierCateID || res?.Object?.DossierCateID,\n OwnerName: res?.Object?.OwnerName,\n Address: res?.Object?.Address,\n RepresentID: fillRepresent?.RepresentID,\n Represent: !!fillRepresent?.RepresentID\n ? listSHCN?.find(\n i => i?.RepresentID === fillRepresent?.RepresentID,\n )?.FullName\n : undefined,\n TaxCode: fillRepresent?.TaxCode,\n ClaimsNumber: res?.Object?.ClaimsNumber,\n FiguresNumber: res?.Object?.FiguresNumber,\n IncrepagesNumber: res?.Object?.IncrepagesNumber,\n VariantsNumber: res?.Object?.VariantsNumber,\n GroupNumber: res?.Object?.GroupNumber,\n PicturesNumber: res?.Object?.PicturesNumber,\n\n // ==============\n\n // DossierCateCode:\n // record.DossierCateCode || +res?.Object?.ProfileType,\n // DossierCateID: record.DossierCateID || res?.Object?.DossierCateID,\n // OwnerName: record.OwnerName || res?.Object?.OwnerName,\n // Address: record.Address || res?.Object?.Address,\n // RepresentID: record.RepresentID || fillRepresent?.RepresentID,\n // TaxCode: record.TaxCode || fillRepresent?.TaxCode,\n // ClaimsNumber: res?.Object?.ClaimsNumber,\n // FiguresNumber: res?.Object?.FiguresNumber,\n // IncrepagesNumber: res?.Object?.IncrepagesNumber,\n // VariantsNumber: res?.Object?.VariantsNumber,\n // GroupNumber: res?.Object?.GroupNumber,\n // PicturesNumber: res?.Object?.PicturesNumber,\n }\n }),\n )\n form.setFieldsValue({\n [`OwnerName_${record?.NumericalOrder}`]: res?.Object?.OwnerName,\n [`Address_${record?.NumericalOrder}`]: res?.Object?.Address,\n [`RepresentID_${record?.NumericalOrder}`]: fillRepresent?.RepresentID,\n [`TaxCode_${record?.NumericalOrder}`]: fillRepresent?.TaxCode,\n })\n } catch (err) {\n } finally {\n }\n }\n const handleBlurSD = (e, record) => {\n const addon = addonVBBHRelative?.find(\n i => i?.key === `DossierRelative_${record?.key}`,\n )\n let formattedValue = formatterProfileCodeWithOnBlur(e.target.value)\n let modifiedValue =\n formattedValue.slice(0, 4) + \"-\" + formattedValue.slice(4)\n const value =\n ltDossierInfo[0]?.DossierType === 3\n ? `${addon.addonBefore}-${modifiedValue}`\n : e.target.value\n handleChangeValue(record, value, \"DossierRelative\")\n }\n const handleBlurVBBH = (e, record) => {\n const addon = addonVBBHRelative?.find(\n i => i?.key === `VBBH_Relative_${record?.key}`,\n )\n const value =\n addon.addonAfter === \"/ĐKHĐSD\"\n ? `${e.target.value}/ĐKHĐSD`\n : addon.addonAfter === \"000\"\n ? `${addon.addonBefore}-${e.target.value}-000`\n : e.target.value\n handleChangeValue(record, value, \"VBBH_Relative\")\n if (!!value)\n getDetailsProfile(record, value, `DossierRelative_${record?.key}`)\n }\n const column = [\n {\n title: \"STT\",\n key: \"STT\",\n dataIndex: \"STT\",\n align: \"center\",\n width: 50,\n render: (_, record, index) =>
{index + 1}
,\n },\n {\n title: \"Thủ tục cấp số đơn\",\n key: \"DossierCateDescription\",\n dataIndex: \"DossierCateDescription\",\n align: \"center\",\n width: 100,\n render: val => (\n \n
{val}
\n
\n ),\n },\n {\n title: \"Số VBBH liên quan\",\n key: \"VBBH_Relative\",\n dataIndex: \"VBBH_Relative\",\n align: \"center\",\n width: 140,\n render: (val, record) =>\n !!record?.ButtonShow?.IsUpdate ? (\n \n i?.key === `VBBH_Relative_${record?.key}`,\n )?.addonBefore\n }\n addonAfter={\n addonVBBHRelative?.find(\n i => i?.key === `VBBH_Relative_${record?.key}`,\n )?.addonAfter\n }\n onPressEnter={e => {\n handleBlurVBBH(e, record)\n }}\n onBlur={e => {\n handleBlurVBBH(e, record)\n }}\n className=\"input-border-bottom-only\"\n // disabled={\n // !!record?.ButtonShow?.IsUpdate ? true : false\n // }\n />\n \n ) : (\n \n
{val}
\n
\n ),\n },\n {\n title: (\n
\n Số đơn liên quan(*)\n
\n ),\n key: \"ProfileCodeOld\",\n dataIndex: \"ProfileCodeOld\",\n align: \"center\",\n width: 150,\n render: (val, record, index) =>\n !!record?.ButtonShow?.IsUpdate ? (\n <>\n \n {\n if (value?.length) {\n if (value[0] !== \"5\") {\n return formatterProfileCodeWithPrefix(value)\n }\n }\n return value\n }}\n parser={value => {\n if (value?.length) {\n if (value[0] !== \"5\") {\n return parserProfileCodeWithPrefix(value)\n }\n }\n return value\n }}\n maxLength={12}\n onPressEnter={e => {\n handleBlur(e.target.value, record, index)\n }}\n onBlur={e => {\n // changeValueTable(index, {\n // ...record,\n // ProfileCodeOld: e?.target?.value,\n // })\n // GetDetailsProfile(e.target.value, record)\n handleBlur(e.target.value, record, index)\n }}\n // onKeyPress={handleKeyPress}\n className=\"input-border-bottom-only\"\n autoFocus={index === 0}\n />\n \n \n \n ) : (\n \n
{val}
\n
\n ),\n },\n {\n title:\n ltDossierInfo[0]?.DossierType === 3 ? (\n \"Số đơn liên quan\"\n ) : ltDossierInfo[0]?.DossierType === 4 ? (\n \"Đơn/VB liên quan\"\n ) : (\n
\n Số đơn liên quan/Tên loại\n (*)\n
\n ),\n key: \"DossierRelative\",\n dataIndex: \"DossierRelative\",\n align: \"center\",\n width: 140,\n render: (val, record) =>\n !!record?.ButtonShow?.IsUpdate ? (\n <>\n \n +i?.key.split(\"_\")[2] === record?.key,\n )?.isDisabledDossierRelative &&\n ![\n \"KN1\",\n \"KN2\",\n \"KN3\",\n \"KN4\",\n \"KN5\",\n \"KN6\",\n \"KN7\",\n \"KN8\",\n ].includes(record?.ProfileType)\n : false\n }\n addonBefore={\n addonVBBHRelative?.find(\n i => i?.key === `DossierRelative_${record?.key}`,\n )?.addonBefore\n }\n onPressEnter={e => {\n handleBlurSD(e, record)\n }}\n onBlur={e => {\n handleBlurSD(e, record)\n }}\n formatter={\n ![4, 5].includes(ltDossierInfo[0]?.DossierType)\n ? formatterProfileCodeNotPrefix\n : undefined\n }\n parser={\n ![4, 5].includes(ltDossierInfo[0]?.DossierType)\n ? parserProfileCodeNotPrefix\n : undefined\n }\n className=\"input-border-bottom-only\"\n // disabled={\n // !!record?.ButtonShow?.IsUpdate ? true : false\n // }\n />\n \n\n \n \n ) : (\n \n
{val}
\n
\n ),\n },\n {\n title: \"Đơn/VB gốc\",\n key: \"DossierOrigin\",\n dataIndex: \"DossierOrigin\",\n align: \"center\",\n width: 140,\n render: (val, record) =>\n !!record?.ButtonShow?.IsUpdate ? (\n <>\n \n {\n let convertValue = convertSoDon_VBGoc(e?.target?.value)\n handleChangeValue(\n record,\n `4-${convertValue}`,\n \"DossierOrigin\",\n )\n }}\n onBlur={e => {\n let convertValue = convertSoDon_VBGoc(e?.target?.value)\n handleChangeValue(\n record,\n `4-${convertValue}`,\n \"DossierOrigin\",\n )\n }}\n // onChange={e =>\n // handleChangeValue(record, e.target.value, \"DossierOrigin\")\n // }\n className=\"input-border-bottom-only\"\n // disabled={\n // !!record?.ButtonShow?.IsUpdate ? true : false\n // }\n />\n \n\n \n \n ) : (\n \n
{val}
\n
\n ),\n },\n {\n title: \"Chủ đơn\",\n key: \"OwnerName\",\n dataIndex: \"OwnerName\",\n align: \"center\",\n width: 190,\n render: (val, record) =>\n !!record?.ButtonShow?.IsUpdate ? (\n <>\n \n \n handleChangeValue(record, e.target.value, \"OwnerName\")\n }\n className=\"input-border-bottom-only\"\n // disabled={\n // !!record?.ButtonShow?.IsUpdate ? true : false\n // }\n />\n \n \n \n ) : (\n \n
{val}
\n
\n ),\n },\n {\n title: \"Địa chỉ\",\n key: \"Address\",\n dataIndex: \"Address\",\n align: \"center\",\n width: 190,\n render: (val, record) =>\n !!record?.ButtonShow?.IsUpdate ? (\n <>\n \n \n handleChangeValue(record, e.target.value, \"Address\")\n }\n className=\"input-border-bottom-only\"\n // disabled={\n // !!record?.ButtonShow?.IsUpdate ? true : false\n // }\n />\n \n \n \n ) : (\n \n
{val}
\n
\n ),\n },\n {\n title: \"Tên đối tượng\",\n key: \"ObjectName\",\n dataIndex: \"ObjectName\",\n align: \"center\",\n width: 120,\n render: (val, record) =>\n !!record?.ButtonShow?.IsUpdate ? (\n <>\n \n \n handleChangeValue(record, e.target.value, \"ObjectName\")\n }\n className=\"input-border-bottom-only\"\n // disabled={\n // !!record?.ButtonShow?.IsUpdate ? true : false\n // }\n />\n \n \n \n ) : (\n \n
{val}
\n
\n ),\n },\n {\n title: \"Đại diện SHCN\",\n key: \"RepresentID\",\n dataIndex: \"RepresentID\",\n align: \"center\",\n width: 100,\n render: (val, record, index) =>\n !!record?.ButtonShow?.IsUpdate ? (\n <>\n \n {\n handleChangeValue(record, e, \"RepresentID\")\n }}\n className=\"input-border-bottom-only\"\n disabled={!record?.ButtonShow?.IsUpdate}\n filterOption={(input, option) =>\n option?.children\n ?.toLowerCase()\n ?.indexOf(input?.toLowerCase()) >= 0\n }\n onSearch={text => {\n const list = listSHCN.filter(i => i?.Organize?.includes(text))\n if (!text) return\n if (!!list.length) {\n handleChangeValue(\n record,\n list[0].RepresentID,\n \"RepresentID\",\n )\n }\n }}\n >\n {listSHCN.map(i => (\n \n {i?.Organize + \" | \" + i?.FullName}\n \n ))}\n \n \n \n \n ) : (\n +i?.RepresentID === +val)?.Organize\n } | ${record?.Represent}`}\n mouseLeaveDelay={0}\n >\n {val ? (\n
\n {listSHCN.find(i => +i?.RepresentID === +val)?.Organize} |{\" \"}\n {record?.Represent}\n
\n ) : (\n <>\n )}\n \n ),\n },\n {\n title: \"Mã số thuế\",\n key: \"TaxCode\",\n dataIndex: \"TaxCode\",\n align: \"center\",\n width: 100,\n render: (val, record) =>\n !!record?.ButtonShow?.IsUpdate ? (\n <>\n \n \n handleChangeValue(record, e.target.value, \"TaxCode\")\n }\n disabled={!!record?.RepresentID ? true : false}\n className=\"input-border-bottom-only\"\n // disabled={\n // !!record?.ButtonShow?.IsUpdate ? true : false\n // }\n />\n \n \n \n ) : (\n \n
{val}
\n
\n ),\n },\n {\n title: \"T.Phí\",\n align: \"center\",\n width: 60,\n render: (_, record, index) => (\n
\n \n setOpenModalFee({\n ...record,\n index,\n isEdit: true,\n })\n }\n disabled={disabledTinhPhi(record)}\n >\n T.Phí\n \n
\n ),\n },\n {\n title: \"Tổng phí (VNĐ)\",\n dataIndex: \"TotalFee\",\n align: \"right\",\n width: 120,\n render: (_, record) => {formatMoney(record?.TotalFee)},\n },\n {\n title: \"Số đơn\",\n dataIndex: \"ProfileCode\",\n align: \"center\",\n width: 140,\n render: val => (\n \n
{val}
\n
\n ),\n },\n ]\n\n const setColumnTable = () => {\n switch (ltDossierInfo[0]?.DossierType) {\n case 1:\n return column.filter(\n i =>\n ![\n \"VBBH_Relative\",\n \"DossierRelative\",\n \"DossierOrigin\",\n \"ProfileCodeOld\",\n ].includes(i.key),\n )\n case 2:\n return column.filter(\n i =>\n ![\n \"VBBH_Relative\",\n \"DossierRelative\",\n \"ObjectName\",\n \"ProfileCodeOld\",\n ].includes(i.key),\n )\n case 3:\n return column.filter(\n i =>\n ![\n \"VBBH_Relative\",\n \"DossierOrigin\",\n \"ObjectName\",\n \"ProfileCodeOld\",\n ].includes(i.key),\n )\n case 4:\n return column.filter(\n i =>\n ![\"ObjectName\", \"ProfileCodeOld\", \"DossierOrigin\"].includes(i.key),\n )\n case 5:\n return column.filter(\n i =>\n ![\n \"VBBH_Relative\",\n \"ObjectName\",\n \"ProfileCodeOld\",\n \"DossierOrigin\",\n ].includes(i.key),\n )\n case 6:\n if (ltDossierInfo[0]?.TabID === 1) {\n return column.filter(\n i =>\n ![\n \"DossierCateDescription\",\n \"VBBH_Relative\",\n \"ObjectName\",\n \"DossierRelative\",\n // \"TaxCode\",\n \"DossierOrigin\",\n ].includes(i.key),\n )\n } else if (ltDossierInfo[0]?.TabID === 2) {\n return column.filter(\n i =>\n ![\n \"DossierCateDescription\",\n \"VBBH_Relative\",\n \"ObjectName\",\n \"DossierRelative\",\n \"DossierOrigin\",\n // \"TaxCode\",\n ].includes(i.key),\n )\n }\n break\n default:\n return column\n }\n }\n\n const changeValueTableFee = (idx, object) => {\n setLtDossierInfo(pre =>\n pre?.map((i, index) => {\n if (i.DossierID !== object.DossierID) return i\n return { ...i, ...object }\n }),\n )\n }\n console.log(\"ltDossierInfo\", ltDossierInfo)\n\n const handleUpdate = async () => {\n try {\n setLoading(true)\n const res = await DossierOffService.updateSoDon(\n ltDossierInfo.map(i => ({\n ...i,\n type:\n i?.ProfileCodeOld &&\n i?.ProfileCodeOld &&\n i?.ProfileCodeOld.split(\"-\")\n ? i?.ProfileCodeOld.split(\"-\")[0]\n : undefined,\n InfoFee: JSON.stringify(i?.InfoFee),\n ButtonFee:\n i.DossierType === 6\n ? {\n IsModify: i.InfoFee?.IsSuaDoi || false,\n IsExtendedResponse: i.InfoFee?.IsGiaHan || false,\n IsContentAppraisal: i.InfoFee?.IsTĐND || false,\n IsAdditional: i.InfoFee?.IsBoSung || false,\n IsClassify: !!i.InfoFee?.PhanLoai || false,\n }\n : undefined,\n })),\n )\n if (res?.isError) return\n const listResponse = res?.Object?.length ? res?.Object : []\n setUpdateBtnStatus(true)\n Notice({ isSuccess: true, msg: \"Cập nhật đơn thành công\" })\n setLtDossierInfo(pre =>\n pre?.length\n ? pre?.map(item => {\n const itemFind = listResponse?.find(\n i => i?.DossierID === item?.DossierID,\n )\n if (!!itemFind)\n return {\n ...item,\n ProfileCode: itemFind?.ProfileCode,\n }\n else return item\n })\n : pre,\n )\n onOk()\n\n // onCancel()\n } finally {\n setLoading(false)\n }\n }\n\n const { pdfFromHtmlStore } = useContext(StoreContext)\n const [filePdfFromHtml, setFilePdfFromHtml] = pdfFromHtmlStore\n\n const handlePrintReceipts = async () => {\n try {\n setLoading(true)\n const res = await PrintfService.print_phieu_bao_thu(\n ltDossierInfo?.map(i => i.DossierID),\n )\n if (res?.isError) return\n // printPDFByLink(res?.Object, true)\n setFilePdfFromHtml({\n isDowload: false,\n htmlReceipt: res?.Object,\n })\n // setFilePdf(res.Object)\n } finally {\n setLoading(false)\n }\n }\n\n return (\n \n \n
\n
\n {/* {ltDossierInfo?.filter(i => !!i?.ButtonShow?.IsUpdate)?.length ? ( */}\n handleUpdate()}\n >\n Cập nhật\n \n {/* ) : (\n
\n )} */}\n handlePrintReceipts()}\n >\n In phiếu thu(F8)\n \n setOpenBarcode(ltDossierInfo)}\n >\n In Barcode(F9)\n \n
\n
\n
\n \n \n \n
\n {filePdf && (\n setFilePdf(\"\")} />\n )}\n {openBarcode && (\n setOpenBarcode(false)}\n />\n )}\n \n )\n}\n\nexport default DetailDossier\n","export const disabledTinhPhi = record => {\n return false\n // return !record?.ButtonShow?.IsUpdate\n}\nexport const disabledConfirmTinhPhi = open => {\n return (!!open?.isEdit && !open?.ButtonShow?.IsUpdate) || !!open?.notOperation\n}\nexport const getTaxCodeFromRepresentID = (\n item,\n value,\n represents,\n value_key,\n) => {\n let TaxCode = item?.TaxCode\n if (value_key === \"RepresentID\") {\n TaxCode = represents?.find(i => i?.RepresentID === value)?.TaxCode\n } else if (!item?.Represent && value_key === \"TaxCode\") TaxCode = value\n return TaxCode\n}\n","import { Checkbox, Col, Form, InputNumber, Radio, Row, Space, Spin } from \"antd\"\nimport { useEffect, useLayoutEffect, useRef, useState } from \"react\"\nimport { useSelector } from \"react-redux\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { SYSTEM_KEY } from \"src/constants/constants\"\nimport {\n formatMoney,\n formatterProfileCodeNotPrefix,\n getListComboByKey,\n parserProfileCodeNotPrefix,\n valueconverSingleCorrectFormat2,\n} from \"src/lib/utils\"\nimport styled from \"styled-components\"\n\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\nimport { checkSoDonGoc, checkValueExistenceComon } from \"./commonFunction\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\n\nconst ModalApplicationFees = ({ open, onOk, onCancel, listDossierCate }) => {\n const isEdit = open.isEdit\n const { listSystemKey } = useSelector(state => state.appGlobal)\n const [form] = Form.useForm()\n const [loading, setLoading] = useState(false)\n const [checkNumber, setCheckNumber] = useState()\n const [prefix, setPrefix] = useState(\"\")\n const [totalFee, setTotalFee] = useState(0)\n const [checkbox, setCheckBox] = useState()\n // const [listFee, setListFee] = useState()\n const formRef = useRef(null)\n const inputRefTachDon = useRef(null)\n const inputRefChuyenDoiDon = useRef(null)\n const inputYCBH = useRef()\n\n const checkValueExistence = async value => {\n await checkValueExistenceComon({\n value,\n checkbox,\n prefix,\n isEdit,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n })\n }\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n const parts = open?.InfoFee?.SoDonGoc?.split(\"-\")\n\n useLayoutEffect(() => {\n // getListFee()\n setTimeout(() => inputYCBH.current.focus(), 0)\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n SoDonGoc: +parts?.slice(1)?.join(\"\"),\n })\n setPrefix(parts?.[0] + \"-\")\n setCheckBox({\n IsTĐND: open.InfoFee?.IsTĐND,\n IsTachDon: open.InfoFee?.IsTachDon,\n IsChuyenDoiDon: open.InfoFee?.IsChuyenDoiDon,\n IsBefoQDHopLe: open.InfoFee?.IsBefoQDHopLe ? 1 : 0,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n //Lấy list Fee\n // const getListFee = async () => {\n // try {\n // setLoading(true)\n // let param = open?.listDossierCate?.find(i => +i.CodeValue === open.DossierType)\n // ?.DossierCateID || open?.DossierCateID\n // const res = await FeeService.getListFee(param)\n // if (res?.isError) return\n // setListFee(res?.Object)\n // } catch (err) {\n // } finally {\n // setLoading(false)\n // }\n // }\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n // if (!!open?.notOperation) return\n setLoading(true)\n const values = isSubmit\n ? await form.validateFields()\n : allValues\n ? allValues\n : await form.getFieldsValue()\n const SoDonGoc = values?.SoDonGoc\n ? formatterProfileCodeNotPrefix(\n values?.SoDonGoc?.toString()?.replaceAll(\"-\", \"\"),\n )\n : \"\"\n if (\n (isSubmit && checkbox?.IsTachDon && SoDonGoc < 10) ||\n (isSubmit && checkbox?.IsChuyenDoiDon && SoDonGoc < 10)\n )\n return\n\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalApplicationFees\",\n checkbox,\n values,\n }),\n SoDonGoc: !!SoDonGoc ? `${prefix}${SoDonGoc}` : \"\",\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierType)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: isEdit ? open?.Code : open.DossierType,\n }\n const InfoFee = {\n ...values,\n ...checkbox,\n SoDonGoc: !!SoDonGoc ? `${prefix}${SoDonGoc}` : \"\",\n NumberEdit: !!values?.NumberEdit ? values?.NumberEdit : 1,\n IsBefoQDHopLe: checkbox?.IsChuyenDoiDon\n ? !!checkbox?.IsBefoQDHopLe\n : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierType)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: isEdit ? open?.Code : open.DossierType,\n }\n // const res = await DossierOffService.tinhPhiDonXacLapQuyen(body)\n const res = await FeeService.tinhFee(body, \"TinhPhiDonXacLapQuyen\")\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (!checkSoDonGoc({ checkbox, checkNumber, form })) return\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n useEffect(() => {\n if (!!checkbox) {\n handleSubmit()\n }\n }, [checkbox])\n\n const renderFooter = () => (\n \n ``\n handleSubmit(true)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (!values?.SoDonGoc) handleSubmit(false, allValues)\n }}\n >\n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {\n if (listChecked.includes(3)) {\n form.setFieldValue(\"NumberEdit\", 1)\n }\n }}\n options={getListComboByKey(\n SYSTEM_KEY?.OTHER_FEE_SC,\n listSystemKey,\n )?.map(i => ({\n label: i?.Description,\n value: i?.CodeValue,\n key: i?.CodeValue,\n }))}\n onKeyPress={handleEnterPress}\n />\n {/* ({\n title: i?.Description,\n value: i?.CodeValue,\n key: i?.CodeValue,\n }))}\n placeholder={\"Chọn\"}\n style={{\n width: \"100%\",\n }}\n /> */}\n \n \n \n {({ getFieldValue }) => {\n if (getFieldValue(\"PhiKhac\")?.includes(3)) {\n return (\n \n \n \n \n \n )\n }\n }}\n \n \n \n \n setCheckBox({\n ...checkbox,\n IsTĐND: check.target.checked,\n })\n }\n onKeyPress={handleEnterPress}\n >\n Yêu cầu thẩm định nội dung\n \n \n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: check.target.checked,\n IsChuyenDoiDon: false,\n })\n setPrefix(\"1-\")\n form.setFieldValue(\"SoDonGoc\", \"\")\n setTimeout(() => inputRefTachDon.current?.focus(), 0.1)\n }}\n onKeyPress={handleEnterPress}\n >\n Tách đơn\n \n \n \n {checkbox?.IsTachDon && (\n \n \n {\n let valueSoDonGoc =\n await valueconverSingleCorrectFormat2(\n e.target.value,\n form,\n )\n checkValueExistence(valueSoDonGoc)\n }}\n formatter={formatterProfileCodeNotPrefix}\n parser={parserProfileCodeNotPrefix}\n maxLength={10}\n onPressEnter={handleEnterPress}\n ref={inputRefTachDon}\n />\n \n \n )}\n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: false,\n IsChuyenDoiDon: check.target.checked,\n IsBefoQDHopLe: check.target.checked ? 1 : undefined,\n })\n setPrefix(\"2-\")\n setTimeout(\n () => inputRefChuyenDoiDon.current?.focus(),\n 0.1,\n )\n form.setFieldValue(\"SoDonGoc\", \"\")\n }}\n onKeyPress={handleEnterPress}\n >\n Chuyển đổi đơn\n \n \n \n {!!checkbox?.IsChuyenDoiDon && (\n <>\n \n \n {\n setCheckBox({\n ...checkbox,\n IsBefoQDHopLe: key.target.value,\n })\n }}\n value={checkbox?.IsBefoQDHopLe}\n >\n \n Trước QĐ hợp lệ\n \n \n Sau QĐ hợp lệ\n \n \n \n \n \n \n {\n let valueSoDonGoc =\n await valueconverSingleCorrectFormat2(\n e.target.value,\n form,\n )\n checkValueExistence(valueSoDonGoc)\n }}\n onPressEnter={handleEnterPress}\n formatter={formatterProfileCodeNotPrefix}\n parser={parserProfileCodeNotPrefix}\n maxLength={10}\n ref={inputRefChuyenDoiDon}\n />\n \n \n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalApplicationFees\n","import { Checkbox, Col, Form, InputNumber, Radio, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport { useSelector } from \"react-redux\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { SYSTEM_KEY } from \"src/constants/constants\"\nimport { requireOutOfFormItem } from \"src/lib/requireOutOfFormItem\"\nimport {\n formatMoney,\n formatterProfileCodeNotPrefix,\n getListComboByKey,\n parserProfileCodeNotPrefix,\n valueconverSingleCorrectFormat2,\n} from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport DossierOffService from \"src/services/DossierOffService\"\nimport styled from \"styled-components\"\nimport { checkSoDonGoc, checkValueExistenceComon } from \"./commonFunction\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\nimport { RedStar } from \"src/components/FloatingLabel/styled\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\n\nconst ModalGPHI = ({ open, onOk, onCancel }) => {\n const isEdit = open.isEdit\n const { listSystemKey } = useSelector(state => state.appGlobal)\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [checkNumber, setCheckNumber] = useState()\n const [prefix, setPrefix] = useState(\"\")\n const [totalFee, setTotalFee] = useState(0)\n const [checkbox, setCheckBox] = useState()\n const inputRefTachDon = useRef(null)\n const inputRefChuyenDoiDon = useRef(null)\n const inputYCBH = useRef()\n\n const checkValueExistence = async value => {\n await checkValueExistenceComon({\n value,\n checkbox,\n prefix,\n isEdit,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n })\n }\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n const parts = open?.InfoFee?.SoDonGoc?.split(\"-\")\n\n useEffect(() => {\n setTimeout(() => inputYCBH.current.focus(), 0)\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n SoDonGoc: +parts?.slice(1)?.join(\"\"),\n })\n setPrefix(parts?.[0] + \"-\")\n setCheckBox({\n IsTĐND: open.InfoFee?.IsTĐND,\n IsTachDon: open.InfoFee?.IsTachDon,\n IsChuyenDoiDon: open.InfoFee?.IsChuyenDoiDon,\n IsBefoQDHopLe: open.InfoFee?.IsBefoQDHopLe ? 1 : 0,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n // if (!!open?.notOperation) return\n setLoading(true)\n const values = isSubmit\n ? await form.validateFields()\n : allValues\n ? allValues\n : await form.getFieldsValue()\n const SoDonGoc = values?.SoDonGoc\n ? formatterProfileCodeNotPrefix(\n values?.SoDonGoc?.toString()?.replaceAll(\"-\", \"\"),\n )\n : \"\"\n if (\n (isSubmit && checkbox?.IsTachDon && SoDonGoc < 10) ||\n (isSubmit && checkbox?.IsChuyenDoiDon && SoDonGoc < 10)\n )\n return\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalGPHI\",\n checkbox,\n values,\n }),\n SoDonGoc: !!SoDonGoc ? `${prefix}${SoDonGoc}` : \"\",\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierType)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: isEdit ? open?.Code : open.DossierType,\n }\n const InfoFee = {\n ...values,\n ...checkbox,\n SoDonGoc: !!SoDonGoc ? `${prefix}${SoDonGoc}` : \"\",\n NumberEdit: !!values.NumberEdit ? values.NumberEdit : 1,\n IsBefoQDHopLe: checkbox?.IsChuyenDoiDon\n ? !!checkbox?.IsBefoQDHopLe\n : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierType)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: isEdit ? open?.Code : open.DossierCateID,\n }\n // const res = await DossierOffService.tinhPhiDonXacLapQuyen(body)\n\n const res = await FeeService.tinhFee(body, \"TinhPhiDonXacLapQuyen\")\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (!checkSoDonGoc({ checkbox, checkNumber, form })) return\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n useEffect(() => {\n if (!!checkbox) {\n handleSubmit()\n }\n }, [checkbox])\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (!values?.SoDonGoc) handleSubmit(false, allValues)\n }}\n >\n \n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {\n if (listChecked.includes(3)) {\n form.setFieldValue(\"NumberEdit\", 1)\n }\n }}\n options={getListComboByKey(\n SYSTEM_KEY?.OTHER_FEE_SC,\n listSystemKey,\n )?.map(i => ({\n label: i?.Description,\n value: i?.CodeValue,\n key: i?.CodeValue,\n }))}\n onKeyPress={handleEnterPress}\n />\n {/* ({\n title: i?.Description,\n value: i?.CodeValue,\n key: i?.CodeValue,\n }))}\n placeholder={\"Chọn\"}\n style={{\n width: \"100%\",\n }}\n /> */}\n \n \n \n {({ getFieldValue }) => {\n if (getFieldValue(\"PhiKhac\")?.includes(3)) {\n return (\n \n \n \n \n \n )\n }\n }}\n \n \n \n \n setCheckBox({\n ...checkbox,\n IsTĐND: check.target.checked,\n })\n }\n onKeyPress={handleEnterPress}\n >\n Yêu cầu thẩm định nội dung\n \n \n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: check.target.checked,\n IsChuyenDoiDon: false,\n })\n setPrefix(\"2-\")\n form.setFieldValue(\"SoDonGoc\", \"\")\n setTimeout(() => inputRefTachDon.current?.focus(), 0.1)\n }}\n onKeyPress={handleEnterPress}\n >\n Tách đơn\n \n \n \n {checkbox?.IsTachDon && (\n \n ({\n validator(_, value) {\n if (\n value?.length >= 10 &&\n value.slice(-5) === \"00000\"\n ) {\n return Promise.reject(\n new Error(\"Số đơn phải lớn hơn 0!\"),\n )\n }\n return Promise.resolve()\n },\n }),\n ]}\n >\n {\n let valueSoDonGoc =\n await valueconverSingleCorrectFormat2(\n e.target.value,\n form,\n )\n checkValueExistence(valueSoDonGoc)\n }}\n formatter={formatterProfileCodeNotPrefix}\n parser={parserProfileCodeNotPrefix}\n maxLength={10}\n onPressEnter={handleEnterPress}\n ref={inputRefTachDon}\n />\n \n \n )}\n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: false,\n IsChuyenDoiDon: check.target.checked,\n IsBefoQDHopLe: check.target.checked ? 1 : undefined,\n })\n setPrefix(\"1-\")\n setTimeout(\n () => inputRefChuyenDoiDon.current?.focus(),\n 0.1,\n )\n form.setFieldValue(\"SoDonGoc\", \"\")\n }}\n onKeyPress={handleEnterPress}\n >\n Chuyển đổi đơn\n \n \n \n {!!checkbox?.IsChuyenDoiDon && (\n <>\n \n \n {\n setCheckBox({\n ...checkbox,\n IsBefoQDHopLe: key.target.value,\n })\n }}\n value={checkbox?.IsBefoQDHopLe}\n >\n \n Trước QĐ hợp lệ\n \n \n Sau QĐ hợp lệ\n \n \n \n \n \n \n {\n let valueSoDonGoc =\n await valueconverSingleCorrectFormat2(\n e.target.value,\n form,\n )\n checkValueExistence(valueSoDonGoc)\n }}\n onPressEnter={handleEnterPress}\n formatter={formatterProfileCodeNotPrefix}\n parser={parserProfileCodeNotPrefix}\n maxLength={10}\n ref={inputRefChuyenDoiDon}\n />\n \n \n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalGPHI\n","import { Checkbox, Col, Form, InputNumber, Radio, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport { useSelector } from \"react-redux\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { SYSTEM_KEY } from \"src/constants/constants\"\nimport { requireOutOfFormItem } from \"src/lib/requireOutOfFormItem\"\nimport {\n formatMoney,\n formatterProfileCodeNotPrefix,\n getListComboByKey,\n parserProfileCodeNotPrefix,\n valueconverSingleCorrectFormat2,\n} from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport DossierOffService from \"src/services/DossierOffService\"\nimport styled from \"styled-components\"\nimport { checkSoDonGoc, checkValueExistenceComon } from \"./commonFunction\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\n\nconst ChargeIndustrialDesigns = ({ open, onOk, onCancel }) => {\n const isEdit = open.isEdit\n const { listSystemKey } = useSelector(state => state.appGlobal)\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const [prefix, setPrefix] = useState(\"\")\n const [checkNumber, setCheckNumber] = useState()\n const [checkbox, setCheckBox] = useState()\n const inputRefTachDon = useRef(null)\n\n const checkValueExistence = async value => {\n await checkValueExistenceComon({\n value,\n checkbox,\n prefix,\n isEdit,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n })\n }\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n const data = getListComboByKey(SYSTEM_KEY?.OTHER_FEE_KDCN, listSystemKey)\n const parts = open?.InfoFee?.SoDonGoc?.split(\"-\")\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"NumberItem\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n KQ_TĐND:\n open.InfoFee?.KQ_TĐND === 2 ? 2 : open.InfoFee?.KQ_TĐND === 3 ? 3 : 1,\n SoDonGoc: +parts?.slice(1)?.join(\"\"),\n })\n setPrefix(parts?.[0] + \"-\")\n setCheckBox({\n IsTachDon: open.InfoFee?.IsTachDon,\n IsPhanLoai: open.InfoFee?.IsPhanLoai,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n setLoading(true)\n const values = isSubmit\n ? await form.validateFields()\n : allValues\n ? allValues\n : await form.getFieldsValue()\n const SoDonGoc = values?.SoDonGoc\n ? formatterProfileCodeNotPrefix(\n values?.SoDonGoc?.toString()?.replaceAll(\"-\", \"\"),\n )\n : \"\"\n if (isSubmit && checkbox?.IsTachDon && SoDonGoc < 10) return\n const body = {\n ListFee: getListFee({\n ModalType: \"ChargeIndustrialDesigns\",\n checkbox,\n values,\n }),\n SoDonGoc: !!SoDonGoc ? `${prefix}${SoDonGoc}` : \"\",\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierType)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: isEdit ? open?.Code : open.DossierType,\n }\n const InfoFee = {\n ...values,\n ...checkbox,\n SoDonGoc: !!SoDonGoc ? `${prefix}${SoDonGoc}` : \"\",\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierType)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: isEdit ? open?.Code : open.DossierCateID,\n }\n // const res = await DossierOffService.tinhPhiDonXacLapQuyen(body)\n const res = await FeeService.tinhFee(body, \"TinhPhiDonXacLapQuyen\")\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n\n if (!checkSoDonGoc({ checkbox, checkNumber, form })) return\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n useEffect(() => {\n if (!!checkbox) {\n handleSubmit()\n }\n }, [checkbox])\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (\n !values?.SoDonGoc &&\n !(values?.IsPhanLoai === true || values?.IsPhanLoai === false)\n )\n handleSubmit(false, allValues)\n }}\n >\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {/* {\n setCheckBox({\n ...checkbox,\n PhiKhac: check.target.checked,\n })\n }}\n >\n Phí phân loại quốc tế về kiểu dáng\n */}\n {/* {\n setCheckBox({\n ...checkbox,\n IsPhanLoai: check.target.checked,\n })\n }}\n /> */}\n {data?.map(i => (\n {\n setCheckBox({\n ...checkbox,\n IsPhanLoai: check.target.checked,\n })\n }}\n onKeyPress={handleEnterPress}\n >\n {i.Description}\n \n ))}\n \n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: check.target.checked,\n })\n setPrefix(\"3-\")\n form.setFieldValue(\"SoDonGoc\", \"\")\n setTimeout(() => inputRefTachDon.current?.focus(), 0.1)\n }}\n onKeyPress={handleEnterPress}\n >\n Tách đơn\n \n \n \n \n {checkbox?.IsTachDon && (\n <>\n \n \n \n \n \n \n Chưa có KQ TĐND\n \n \n \n \n Đã có KQ TĐND\n \n \n \n \n Chưa có KQ TĐND (Thu phí như ban đầu)\n \n \n \n \n \n \n \n \n {\n let valueSoDonGoc =\n await valueconverSingleCorrectFormat2(\n e.target.value,\n form,\n )\n checkValueExistence(valueSoDonGoc)\n }}\n onPressEnter={handleEnterPress}\n formatter={formatterProfileCodeNotPrefix}\n parser={parserProfileCodeNotPrefix}\n maxLength={10}\n ref={inputRefTachDon}\n />\n \n \n \n )}\n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ChargeIndustrialDesigns\n","import {\n Checkbox,\n Col,\n Form,\n Input,\n InputNumber,\n Radio,\n Row,\n Space,\n Spin,\n TreeSelect,\n} from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport { useSelector } from \"react-redux\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { SYSTEM_KEY } from \"src/constants/constants\"\nimport { requireOutOfFormItem } from \"src/lib/requireOutOfFormItem\"\nimport {\n formatMoney,\n formatterProfileCodeNotPrefix,\n getListComboByKey,\n parserProfileCodeNotPrefix,\n valueconverSingleCorrectFormat2,\n} from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport DossierOffService from \"src/services/DossierOffService\"\nimport styled from \"styled-components\"\nimport { checkSoDonGoc, checkValueExistenceComon } from \"./commonFunction\"\nimport FeeService from \"src/services/FeeService\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport { getNumberMinMax1_45 } from \"src/lib/stringsUtils\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\n\nconst ModalTrademarkFees = ({ open, onOk, onCancel }) => {\n const isEdit = open.isEdit\n const { listSystemKey } = useSelector(state => state.appGlobal)\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [checkNumber, setCheckNumber] = useState()\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const [prefix, setPrefix] = useState(\"\")\n const [checkbox, setCheckBox] = useState()\n const inputRefTachDon = useRef(null)\n\n const checkValueExistence = async value => {\n await checkValueExistenceComon({\n value,\n checkbox,\n prefix,\n isEdit,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n })\n }\n const handleEnterPress = async event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n await handleSubmit(true)\n }\n }\n const parts = open?.InfoFee?.SoDonGoc?.split(\"-\")\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"NumberItem\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n SoDonGoc: +parts?.slice(1)?.join(\"\"),\n // SoTrangTangThem: open?.InfoFee?.SoTrangTangThem,\n TachMau: open.InfoFee?.TachMau ? 1 : 0,\n })\n setPrefix(parts?.[0] + \"-\")\n setCheckBox({\n IsTachDon: open.InfoFee?.IsTachDon,\n KQ_TĐND_NH: open.InfoFee?.KQ_TĐND_NH ? 1 : 0,\n TachMau: open.InfoFee?.TachMau ? 1 : 0,\n })\n setTotalFee(open.TotalFee)\n } else {\n form.setFieldsValue({\n NH_Type: 1,\n })\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n setLoading(true)\n const values = isSubmit\n ? await form.validateFields()\n : allValues\n ? allValues\n : await form.getFieldsValue()\n const SoDonGoc = values?.SoDonGoc\n ? formatterProfileCodeNotPrefix(\n values?.SoDonGoc?.toString()?.replaceAll(\"-\", \"\"),\n )\n : \"\"\n if (isSubmit && checkbox?.IsTachDon && SoDonGoc < 10) return\n\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalTrademarkFees\",\n checkbox,\n values,\n }),\n NH_Type: values?.NH_Type,\n SoDonGoc: !!SoDonGoc ? `${prefix}${SoDonGoc}` : \"\",\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierType)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: isEdit ? open?.Code : open.DossierType,\n }\n\n const InfoFee = {\n ...values,\n ...checkbox,\n KQ_TĐND_NH: checkbox?.IsTachDon ? !!checkbox.KQ_TĐND_NH : undefined,\n TachMau: checkbox?.IsTachDon ? !!checkbox.TachMau : undefined,\n SoDonGoc: !!SoDonGoc ? `${prefix}${SoDonGoc}` : \"\",\n SoTrangTangThem: values?.SoTrangTangThem,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierType)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: isEdit ? open?.Code : open.DossierCateID,\n }\n // const res = await DossierOffService.tinhPhiDonXacLapQuyen(body)\n const res = await FeeService.tinhFee(body, \"TinhPhiDonXacLapQuyen\")\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (!checkSoDonGoc({ checkbox, checkNumber, form })) return\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n SubType: values?.NH_Type,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n useEffect(() => {\n if (!!checkbox) {\n handleSubmit()\n }\n // if (checkbox?.IsTachDon) inputRefTachDon?.current?.focus()\n }, [checkbox])\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n\n return (\n \n \n \n {\n if (!values?.SoDonGoc) handleSubmit(false, allValues)\n }}\n >\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ({\n label: i?.Description,\n value: i?.CodeValue,\n key: i?.CodeValue,\n }))}\n onKeyPress={handleEnterPress}\n />\n {/* ({\n title: i?.Description,\n value: i?.CodeValue,\n key: i?.CodeValue,\n }))}\n placeholder={\"Chọn\"}\n style={{\n width: \"100%\",\n }}\n /> */}\n \n \n \n \n ({\n title: l?.Description,\n value: l?.CodeValue,\n key: l?.CodeValue,\n }))}\n placeholder={\"Chọn\"}\n style={{\n width: \"100%\",\n }}\n onKeyPress={handleEnterPress}\n />\n \n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: check.target.checked,\n KQ_TĐND_NH: check.target.checked ? 1 : undefined,\n TachMau: check.target.checked ? 1 : undefined,\n })\n setPrefix(\"4-\")\n form.setFieldValue(\"SoDonGoc\", \"\")\n setTimeout(() => inputRefTachDon.current?.focus(), 0.1)\n }}\n onPressEnter={handleEnterPress}\n >\n Tách đơn\n \n \n \n {checkbox?.IsTachDon && (\n <>\n \n \n \n setCheckBox({\n ...checkbox,\n KQ_TĐND_NH: newValue.target.value,\n })\n }\n value={checkbox.KQ_TĐND_NH}\n >\n \n \n \n Chưa có kết quả thẩm định nội dung\n \n \n \n \n Đã có kết quả thẩm định nội dung\n \n \n \n \n \n \n \n \n {!!checkbox.KQ_TĐND_NH && (\n \n {\n setCheckBox({\n ...checkbox,\n TachMau: newValue.target.value,\n })\n }}\n value={checkbox.TachMau}\n >\n \n Tách mẫu nhãn\n \n \n Tách danh mục\n \n \n \n )}\n \n \n )}\n {checkbox?.IsTachDon && (\n \n \n {\n let valueSoDonGoc =\n await valueconverSingleCorrectFormat2(\n e.target.value,\n form,\n )\n checkValueExistence(valueSoDonGoc)\n }}\n onPressEnter={handleEnterPress}\n formatter={formatterProfileCodeNotPrefix}\n parser={parserProfileCodeNotPrefix}\n maxLength={10}\n ref={inputRefTachDon}\n />\n \n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalTrademarkFees\n","import React, { useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { Col, Form, InputNumber, Row, Space, Spin } from \"antd\"\nimport styled from \"styled-components\"\nimport { formatMoney } from \"src/lib/utils\"\nimport DossierOffService from \"src/services/DossierOffService\"\nimport { useEffect } from \"react\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport FeeService from \"src/services/FeeService\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\n\nconst ModalLayoutDesign = ({ open, onOk, onCancel }) => {\n const isEdit = open.isEdit\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n useEffect(() => {\n formRef.current &&\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"SoHinhAnhThem\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n setLoading(true)\n const values = isSubmit\n ? await form.validateFields()\n : allValues\n ? allValues\n : await form.getFieldsValue()\n\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalLayoutDesign\",\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierType)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: isEdit ? open?.Code : open.DossierType,\n }\n\n const InfoFee = {\n ...values,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierType)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: isEdit ? open?.Code : open.DossierCateID,\n }\n // const res = await DossierOffService.tinhPhiDonXacLapQuyen(body)\n const res = await FeeService.tinhFee(body, \"TinhPhiDonXacLapQuyen\")\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (allValues.SoHinhAnhThem) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalLayoutDesign\n","import DossierOffService from \"src/services/DossierOffService\"\n\nconst { requireOutOfFormItem } = require(\"src/lib/requireOutOfFormItem\")\n\nexport const checkValueExistenceComon = async ({\n value,\n checkbox,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n bodyCheck,\n //Có bodyCheck rồi thì không điền prefix, isEdit,\n prefix,\n isEdit,\n}) => {\n handleSubmit()\n return\n const body = !!bodyCheck\n ? bodyCheck\n : {\n ...checkbox,\n SoĐon: `${prefix}${value}`,\n DossierCateCode: isEdit ? open?.Code : open.DossierCateID,\n }\n try {\n if (!value) return\n // Gọi API để kiểm tra sự tồn tại của số\n const response = await DossierOffService.CheckSoDonGoc(body)\n if (response?.Object?.data) {\n // Nếu số tồn tại, thực hiện hành động tiếp theo ở đây\n handleSubmit()\n } else {\n requireOutOfFormItem(\n form,\n [\n {\n condition: !response?.Object?.data,\n name: \"SoDonGoc\",\n },\n ],\n response?.Object,\n )\n }\n setCheckNumber({\n isError: !response?.Object.data,\n msg: response?.Object,\n })\n } catch (error) {\n // Xử lý lỗi nếu gọi API không thành công\n console.error(\"Lỗi khi gọi API:\", error)\n }\n}\n\nexport const checkSoDonGoc = ({ checkbox, checkNumber, form }) => {\n return true\n if (!!checkbox.IsTachDon && checkNumber?.isError) {\n requireOutOfFormItem(\n form,\n [\n {\n condition: checkNumber?.isError,\n name: \"SoDonGoc\",\n },\n ],\n checkNumber?.msg,\n )\n return false\n }\n}\n","import { Col, Form, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport { useSelector } from \"react-redux\"\nimport { useReactToPrint } from \"react-to-print\"\nimport { RedStar } from \"src/components/FloatingLabel/styled\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport Notice from \"src/components/Notice\"\nimport { generatePDF } from \"src/components/PrintPdfFromHtml\"\nimport { SYSTEM_KEY } from \"src/constants/constants\"\nimport { getListComboByKey } from \"src/lib/utils\"\nimport DossierService from \"src/services/DossierService\"\nconst ModalPrintBarCode = ({ open, onCancel, reset = () => {} }) => {\n const inputRef = useRef()\n const { listSystemKey } = useSelector(state => state.appGlobal)\n const [form] = Form.useForm()\n const [loading, setLoading] = useState(false)\n const [printed, setPrinted] = useState(false)\n const [filePdf, setFilePdf] = useState()\n const LIST_DOSSIER_PROVIDE = getListComboByKey(\n SYSTEM_KEY?.DOSSIER_PROVIDE,\n listSystemKey,\n )\n\n const divRef = useRef(null)\n const handlePrint = useReactToPrint({\n content: () => divRef.current,\n onAfterPrint: () => {\n setPrinted(true)\n setLoading(false)\n onCancel()\n !!reset && reset()\n },\n onPrintError: () => {\n Notice({\n isSuccess: false,\n msg: \"Có lỗi vừa xảy ra khi in, vui lòng liên hệ admin\",\n })\n setLoading(false)\n },\n })\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit()\n }\n }\n const handleSubmit = async () => {\n try {\n const value = await form.validateFields()\n setLoading(true)\n // printPdfBarCode\n const res = await DossierService.printPdfBarCodeHtml({\n ...value,\n FromNumber: !!value?.FromNumber ? value?.FromNumber : undefined,\n ToNumber: !!value?.ToNumber ? value?.ToNumber : undefined,\n ltData: open?.length\n ? open\n ?.filter(itemft => !!itemft?.ProfileCode)\n ?.map(item => ({\n IsOnline: item?.HinhThucNop === 2 ? true : undefined,\n ProfileCode: item?.ProfileCode,\n ApplicationType: LIST_DOSSIER_PROVIDE?.find(\n itemProvice => itemProvice?.CodeValue === item?.DossierCateID,\n )?.CodeKey,\n }))\n : [],\n })\n if (res?.isError) {\n setLoading(false)\n return\n }\n setFilePdf(res?.Object)\n } finally {\n }\n }\n const handleSubmitTest = async () => {\n try {\n const value = await form.validateFields()\n setLoading(true)\n // printPdfBarCode\n const res = await DossierService.printPdfBarCodeHtml({\n ...value,\n FromNumber: !!value?.FromNumber ? value?.FromNumber : undefined,\n ToNumber: !!value?.ToNumber ? value?.ToNumber : undefined,\n ltData: open?.length\n ? open\n ?.filter(itemft => !!itemft?.ProfileCode)\n ?.map(item => ({\n IsOnline: item?.HinhThucNop === 2 ? true : undefined,\n ProfileCode: item?.ProfileCode,\n ApplicationType: LIST_DOSSIER_PROVIDE?.find(\n itemProvice => itemProvice?.CodeValue === item?.DossierCateID,\n )?.CodeKey,\n }))\n : [],\n })\n if (res?.isError) {\n setLoading(false)\n return\n }\n generatePDF(res?.Object, () => {\n setPrinted(true)\n setLoading(false)\n onCancel()\n !!reset && reset()\n })\n } finally {\n }\n }\n\n useEffect(() => {\n // printPDFByLink(filePdf)\n try {\n if (!!filePdf) handlePrint()\n } catch (error) {\n console.log(error)\n }\n }, [filePdf])\n useEffect(() => {\n inputRef.current.focus()\n form.setFieldsValue({\n FromLine: 1,\n FromNumber: 1,\n ToNumber: 3,\n TotalNumber: 3,\n })\n }, [])\n\n const renderFooter = () => (\n \n handleSubmit()}\n iconName=\"print\"\n >\n In Barcode\n \n {/* handleSubmitTest()}\n iconName=\"print\"\n >\n In Barcode BETA\n */}\n \n )\n\n return (\n {\n !!printed && reset()\n onCancel()\n }}\n footer={renderFooter()}\n >\n \n
\n Nhập số hàng, số cột bắt đầu in\n
\n
\n \n \n \n Từ dòng *\n \n }\n name=\"FromLine\"\n rules={[{ required: true, message: \"Không được để trống!\" }]}\n >\n \n \n \n \n \n Số lượng *\n \n }\n name=\"TotalNumber\"\n rules={[{ required: true, message: \"Không được để trống!\" }]}\n >\n \n \n \n \n Từ ô}\n name=\"FromNumber\"\n rules={[\n {\n validator: (rule, value, callback) => {\n const { getFieldValue } = form\n if (!getFieldValue(\"ToNumber\")) return callback()\n if (value > getFieldValue(\"ToNumber\"))\n return callback(\n \"Ô bắt đầu phải nhỏ hơn hoặc bằng ô kết thúc in!\",\n )\n return callback()\n },\n },\n ]}\n >\n \n \n \n \n Đến ô}\n name=\"ToNumber\"\n rules={[\n {\n validator: (rule, value, callback) => {\n const { getFieldValue } = form\n if (value < getFieldValue(\"FromNumber\"))\n return callback(\n \"Ô kết thúc phải lớn hơn hoặc bằng ô bắt đầu in!\",\n )\n return callback()\n },\n },\n ]}\n >\n \n \n \n \n
\n
\n
\n \n
\n \n )\n}\n\nexport default ModalPrintBarCode\n","import CustomModal from \"src/components/Modal/CustomModal\"\nimport ContentViewPDF from \"src/components/Modal/ModalViewPDF/Content\"\n\nconst ModalPrintReceive = ({ open, onCancel }) => {\n return (\n \n {!!open && }\n \n )\n}\n\nexport default ModalPrintReceive\n","import FeeService from \"src/services/FeeService\"\nimport { changeValueTable } from \"../AdditionalFees/components/ApplicationVHHB/functionCommon\"\nimport { getListFee, switchCaseXLQQT } from \"../commonFunc\"\nconst ListAPIFee = {\n 1: \"TinhPhiDonXacLapQuyen\",\n 2: \"TinhPhiDonXacLapQuyenQuocTe\",\n}\nexport const checkSingleIsKN = DossierCateID => {\n return DossierCateID >= 20 && DossierCateID <= 27\n}\nexport const checkTypeNotModalFee = ({ value, DossierType }) => {\n //Đầu đơn 6 trong loại Đơn xác lập quyền\n if (value === 6) return true\n //là Đơn xác lập quyền quốc tế\n if (DossierType === 2) return true\n return false\n}\nexport const handleFeeDefault = async ({\n record,\n index,\n listDossierCate,\n setDataTable,\n DossierCateID,\n DossierType,\n}) => {\n let ListFee = []\n switch (DossierType) {\n case 1:\n if (DossierCateID === 6) {\n //Đơn xác lập quyền, đầu đơn 6\n ListFee = getListFee({\n ModalType: \"GeographicalIndication\",\n })\n }\n break\n case 2:\n ListFee = switchCaseXLQQT(record)\n break\n default:\n break\n }\n // Đơn xác lập quyền quốc tế\n const body = {\n ListFee: ListFee,\n DossierCateID: listDossierCate.find(\n i => +i.CodeValue === record.DossierCateID,\n )?.DossierCateID,\n DossierCateCode: record.DossierCateID,\n }\n const res = await FeeService.tinhFee(body, ListAPIFee[DossierType] || \"\")\n\n if (res.isError) return\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n DossierFeeList: res.Object?.Data,\n DossierCateID: record.DossierCateID,\n InfoFee:\n DossierType === 1\n ? {\n DossierCateID: listDossierCate.find(\n i => +i.CodeValue === record.DossierCateID,\n )?.DossierCateID,\n DossierCateCode: record.DossierCateID,\n }\n : undefined,\n },\n })\n}\nexport const changeValueErrorAptTinhFee = ({ body, setDataTable, index }) => {\n const changeValue = {\n ...body,\n Phi: undefined,\n LePhi: undefined,\n DossierFeeList: undefined,\n TotalFee: \"\",\n }\n changeValueTable({\n setDataTable,\n index,\n newObject: changeValue,\n })\n}\n","import { Form, Select } from \"antd\"\nimport { handleKeyDownByID } from \"src/lib/eventKey\"\nimport FeeService from \"src/services/FeeService\"\nimport { changeValueTable } from \"../../../../AdditionalFees/components/ApplicationVHHB/functionCommon\"\nimport { getListFee } from \"../../../../commonFunc\"\nimport {\n checkSingleIsKN,\n checkTypeNotModalFee,\n handleFeeDefault,\n} from \"../../../../commons/utils\"\nimport { handleDeleteSelect } from \"../index\"\nconst ProcedureSelect = ({\n form,\n record,\n setDataTable,\n index,\n listDossierCate,\n setPosition,\n maxColumn,\n dataTable,\n DossierType,\n ApplicationRelated = undefined, //đơn liên quan tới đơn\n VBBHRelated = undefined, //đơn liên quan tới văn bằng\n ApplicationOther = undefined, //Các đơn khác\n}) => {\n // ============Các đơn khác============================\n const handleChangeApplicationOther = async (event, index) => {\n const changeValueDefault = {\n DossierCateID: event,\n disabledDossierRelative: false,\n }\n let DossierCate = listDossierCate.find(i => +i.CodeValue === +event)\n\n if (\n RĐ?.includes(+DossierCate?.CodeValue) ||\n !!listDisableColumsApplicationOther?.[DossierCate?.Code]\n ) {\n let ListFee = []\n if (!!listDisableColumsApplicationOther?.[DossierCate?.Code])\n ListFee = listDisableColumsApplicationOther?.[DossierCate?.Code]\n const body = {\n DossierCateID: DossierCate?.DossierCateID,\n DossierCateCode: DossierCate?.Code,\n ListFee: ListFee,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiCacDonKhac\")\n if (res.isError) return\n const checkNotDisabledColumnĐLQ =\n [\"BSTL\", \"XNQT\", \"CCTT\"].some(i => DossierCate?.Code?.includes(i)) ||\n [\"TC1\", \"TC2\", \"TC3\", \"TC4\"]?.includes(DossierCate?.Code) ||\n [\"RĐ1\", \"RĐ2\", \"RĐ3\", \"RĐ4\", \"RĐ5\", \"RĐ6\"]?.includes(DossierCate?.Code)\n\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n ...changeValueDefault,\n DossierCateID: event,\n disabledDossierRelative: !checkNotDisabledColumnĐLQ,\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n DossierFeeList: res.Object?.Data,\n },\n })\n } else {\n const checkDisable = [\"KTNV\", \"KTGĐ\", \"PTĐD\"]?.includes(DossierCate?.Code)\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n ...changeValueDefault,\n DossierCateID: event,\n disabledDossierRelative: checkDisable,\n TotalFee: \"\",\n },\n })\n }\n }\n // ====================================================\n //=============Đơn liên quan tới đơn ==================\\\n const handleApplicationRelated = async (DossierCateID, index) => {\n let Code = listDossierCate.find(i => +i.CodeValue === DossierCateID)?.Code\n let dataCheck = !!Code ? Code.charAt(Code.length - 1) : \"\"\n let dataChange = {}\n if ([\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\"]?.includes(dataCheck))\n dataChange = {\n TotalFee: checkSingleIsKN(DossierCateID) ? \"0\" : \"\",\n Prefix: `${dataCheck}-`,\n DossierCateID: DossierCateID,\n }\n else\n dataChange = {\n DossierCateID: DossierCateID,\n }\n changeValueTable({\n setDataTable,\n index,\n newObject: dataChange,\n })\n }\n // =============Đơn liên quan tới văn bằng ==================\\\n const ListIDĐKHĐSD = [...GHLX, ...LXBB, ...PBLX, ...RBLX, ...SĐLX, ...ĐCLX] // ĐKHĐSD gồm đơn GHLX,LXBB, PBLX, RBLX, SĐLX, ĐCLX\n\n const valueChangeOfĐKHĐSD = async (event, Code) => {\n const DossierCateGUIDID = listDossierCate.find(\n i => +i.CodeValue === +event,\n )?.DossierCateID\n //body init của ĐKHĐSD\n let changeValue = {\n DossierCateID: event,\n Prefix: \"/ĐKHĐSD\",\n hideVBBHRelative: 2,\n disabledDossierRelative: false,\n }\n // Nếu là LXBB,PB,PBLX,RB,RBLX thì gọi api\n if ([...LXBB, ...PB, ...PBLX, ...RB, ...RBLX]?.includes(event)) {\n let body = {\n ListFee: !!(event >= 21 && event <= 41)\n ? [\n { FeeID: 29, Quantity: 1 },\n { FeeID: 32, Quantity: 1 },\n ]\n : undefined,\n DossierCateID: DossierCateGUIDID,\n DossierCateCode: Code,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n if (res.isError) return\n changeValue = {\n ...changeValue,\n ProfileType: Code,\n InfoFee: {\n DossierCateID: DossierCateGUIDID,\n DossierCateCode: Code,\n },\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n DossierFeeList: res.Object?.Data,\n }\n } else\n changeValue = {\n ...changeValue,\n TotalFee: \"\",\n }\n changeValueTable({\n setDataTable,\n index,\n newObject: changeValue,\n })\n }\n const valueChangeNotĐKHĐSD = async ({\n event,\n Code,\n NumericalOrder,\n dataCheck,\n }) => {\n const DossierCateGUIDID = listDossierCate.find(\n i => +i.CodeValue === +event,\n )?.DossierCateID\n //initvalue\n let changeValueVBBHRelative = {\n DossierCateID: event,\n TotalFee: \"\",\n disabledDossierRelative: true,\n Prefix: +dataCheck,\n //Ngoài đơn đầu 5 và đơn LAHAY thì hideVBBHRelative sẽ bằng 1\n hideVBBHRelative: ![\"1\", \"2\", \"3\", \"4\", \"6\", \"7\"]?.includes(dataCheck)\n ? 1\n : 3,\n }\n form.setFieldValue(`${NumericalOrder}_VBBH_Relative`, \"\")\n\n if ([...PB, ...RB, ...KN, ...RBPB]?.includes(event)) {\n let body = {\n DossierCateID: DossierCateGUIDID,\n DossierCateCode: Code,\n }\n if (!![...PB, ...PBLX, ...RB, ...RBLX, ...RBPB]?.includes(event))\n body = {\n ...body,\n ListFee: !![...PB, ...PBLX, ...RB, ...RBLX]?.includes(event)\n ? getListFee({\n ModalType: \"PB_RB\",\n })\n : getListFee({\n ModalType: \"RBPB\",\n }),\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n if (res.isError) return\n\n changeValueVBBHRelative = {\n ...changeValueVBBHRelative,\n ProfileType: Code,\n disabledDossierRelative: !![...PB, ...RB, ...RBPB]?.includes(event),\n TotalFee: res.Object?.TotalFee || \"0\",\n InfoFee: {\n DossierCateID: DossierCateGUIDID,\n DossierCateCode: Code,\n HinhThuc: event === 34 ? true : undefined,\n },\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n DossierFeeList: res.Object?.Data,\n }\n }\n changeValueTable({\n setDataTable,\n index,\n newObject: changeValueVBBHRelative,\n })\n }\n const handleFillInputVBBHRelated = async ({\n NumericalOrder,\n index,\n event,\n }) => {\n const dossierCate = listDossierCate.find(i => +i.CodeValue === event)\n const Code = dossierCate?.Code\n // Check có phải là đơn GHLX, PBLX, RBLX, SĐLX, ĐCLX kh?\n if (ListIDĐKHĐSD?.includes(event)) {\n await valueChangeOfĐKHĐSD(event, Code)\n return\n }\n\n //Không phải duyệt tiếp các đơn khác nhập số VBBH liên quan theo format\n const dataCheck = !!Code ? Code.charAt(Code.length - 1) : \"\"\n //dataCheck\n //1: Đơn thuộc SC\n //2: Đơn thuộc GPHI\n //3: Đơn thuộc KDCN\n //4: Đơn thuộc NH\n //5: Đơn thuộc NH Quốc tế\n //6: Đơn Chỉ dẫn địa lý\n //7: Đơn thuộc thiết kế bố trí\n //Các đơn còn lại là Đơn LAHAY\n if ([\"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\"]?.includes(dataCheck)) {\n await valueChangeNotĐKHĐSD({\n event,\n Code,\n NumericalOrder,\n dataCheck,\n })\n }\n }\n\n const handleChangeVBBHRelated = async (value, index) => {\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n DossierCateID: value,\n disabledDossierRelative: true,\n hideVBBHRelative: 1,\n ProfileType: listDossierCate.find(i => +i.CodeValue === value)?.Code,\n },\n })\n await handleFillInputVBBHRelated({\n NumericalOrder: record?.NumericalOrder,\n index,\n event: value,\n })\n }\n // ==========================================================\\\n\n //==================Functiopn xử lý chính (MAIN) ===============\n const handleChangeDossierCateDefault = async (event, record, index) => {\n //Các đơn khác\n if (!!ApplicationOther) {\n await handleChangeApplicationOther(event, index)\n return\n }\n //Đơn liên quan tới văn bằng\n if (!!VBBHRelated) {\n await handleChangeVBBHRelated(event, index)\n return\n }\n //Đơn liên quan tới đơn\n if (!!ApplicationRelated) {\n await handleApplicationRelated(event, index)\n return\n }\n //Đơn xác lập quyền quốc gia và quốc tế\n if (!!checkTypeNotModalFee({ value: event, DossierType })) {\n // Không có modal phí thì tính phí và đổi giá trị luôn\n await handleFeeDefault({\n record: {\n ...record,\n DossierCateID: event,\n TotalFee: \"\",\n },\n index,\n listDossierCate,\n setDataTable,\n DossierCateID: event,\n DossierType,\n })\n return\n }\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n DossierCateID: event,\n TotalFee: \"\",\n },\n })\n }\n // ===========================================================================\n return (\n \n {\n if (key === \"Delete\")\n handleDeleteSelect(\n key,\n form,\n `${record?.NumericalOrder}_DossierCateID`,\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n DossierCateID: null,\n TotalFee: \"\",\n },\n }),\n target,\n )\n }}\n onChange={value => {\n handleChangeDossierCateDefault(value, record, index)\n }}\n filterOption={(input, option) =>\n option?.children?.toLowerCase()?.indexOf(input?.toLowerCase()) >= 0\n }\n onSearch={text => {\n const list = listDossierCate.filter(i =>\n `${i?.Code}`.includes(text.toUpperCase()),\n )\n if (!text) return\n if (!!list.length) {\n handleChangeDossierCateDefault(+list[0].CodeValue, record, index)\n form.setFieldValue(\n `${record?.NumericalOrder}_DossierCateID`,\n +list[0].CodeValue,\n )\n }\n }}\n id={`field${1}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: 1,\n row: index + 1,\n })\n }\n autoFocus={index === 0}\n onKeyDown={event => {\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n type: \"select\",\n })\n }}\n >\n {listDossierCate?.map(i => (\n \n {i?.Code + \" | \" + i?.Abstract}\n \n ))}\n \n \n )\n}\n\nexport default ProcedureSelect\n\n//Các đơn khác\nexport const listDisableColumsApplicationOther = {\n CCGĐ: [{ FeeID: 25, Quantity: 1 }],\n CCĐD: [\n { FeeID: 9, Quantity: 1 },\n { FeeID: 10, Quantity: 1 },\n { FeeID: 11, Quantity: 1 },\n { FeeID: 25, Quantity: 1 },\n ],\n CLCC: [\n { FeeID: 9, Quantity: 1 },\n { FeeID: 10, Quantity: 1 },\n { FeeID: 11, Quantity: 1 },\n { FeeID: 25, Quantity: 1 },\n ],\n CLGĐ: [{ FeeID: 25, Quantity: 1 }],\n SĐGĐ: [{ FeeID: 25, Quantity: 1 }],\n SĐĐD: [\n { FeeID: 10, Quantity: 1 },\n { FeeID: 11, Quantity: 1 },\n { FeeID: 25, Quantity: 1 },\n ],\n TCGĐ: [{ FeeID: 25, Quantity: 1 }],\n TCĐD: [\n { FeeID: 10, Quantity: 1 },\n { FeeID: 11, Quantity: 1 },\n { FeeID: 25, Quantity: 1 },\n ],\n BSTL: [],\n CCTT1: [],\n CCTT2: [],\n CCTT3: [],\n CCTT4: [],\n CCTT6: [],\n CCTT7: [],\n XNQT: [],\n // TC1: [],\n // TC2: [],\n // TC3: [],\n // TC4: [],\n}\nexport const BSTL = 1\nexport const CCGĐ = 2\nexport const CCTT = [3, 4, 5, 6, 7, 8]\nexport const CCĐD = 9\nexport const CLCC = 10\nexport const CLGĐ = 11\nexport const GNGH = [12, 13]\nexport const GNĐB = [14, 15, 16, 17, 18, 19]\nexport const KTGĐ = 20\nexport const KTNV = 21\nexport const PTĐD = 22\nexport const SĐGĐ = 23\nexport const SĐĐD = 24\nexport const TCGĐ = 25\nexport const XNQT = 26\nexport const TCĐD = 27\nexport const TC = [28, 29, 30, 31]\nexport const RĐ = [86, 87, 88, 89, 90, 91]\n// DossierCate của đơn liên quan tới văn bằng\nexport const CB = [1, 2, 3, 4, 5]\nexport const DT = [6, 7]\nexport const GH = [8, 9]\nexport const GHLX = [10, 11, 12, 13, 14]\nexport const LX = [15, 16, 17, 18, 19]\nexport const LXBB = [20]\nexport const PB = [21, 22, 23, 24, 25]\nexport const PBLX = [26, 27, 28, 29, 30]\nexport const RB = [31, 32, 33, 34, 35, 36]\nexport const RBLX = [37, 38, 39, 40, 41]\nexport const SB = [42, 43, 44, 45, 46, 47]\nexport const SĐLX = [48, 49, 50, 51, 52]\nexport const ĐC = [53, 54, 55, 56, 57, 58]\nexport const ĐCLX = [59, 60, 61, 62, 63, 64]\nexport const ĐN = [65, 66, 67, 68, 69, 70, 71, 72]\nexport const KN = [73, 74, 75, 76, 77, 78, 79, 80]\nexport const RBPB = [81, 82, 83, 84, 85]\n// =============================\n","import { Tooltip } from \"antd\"\nimport { Form, Input, Space, Spin } from \"antd/es\"\nimport React, {\n useCallback,\n useContext,\n useEffect,\n useMemo,\n useState,\n} from \"react\"\nimport { useDispatch } from \"react-redux\"\nimport CB1 from \"src/components/Modal/CB1\"\nimport Button from \"src/components/MyButton/Button\"\nimport ButtonCircle from \"src/components/MyButton/ButtonCircle\"\nimport Notice from \"src/components/Notice\"\nimport TableCustom from \"src/components/Table/CustomTable\"\nimport { createRowandNextField, handleKeyDownByID } from \"src/lib/eventKey\"\nimport { StoreContext } from \"src/lib/store\"\nimport {\n convertBodyCapSoDon,\n formatAcronym,\n formatMoney,\n formatTextName,\n handleResetListSingle,\n isUpperCase,\n} from \"src/lib/utils\"\nimport {\n handleResetForm,\n printReceipts,\n setOwnerNow,\n setSingleNow,\n setVBBH,\n} from \"src/pages/ADMIN/FormDirect/functions\"\nimport { setDiffModalSearchSingle } from \"src/redux/single\"\nimport DossierCateService from \"src/services/DossierCateService\"\nimport DossierService from \"src/services/DossierService\"\nimport FeeService from \"src/services/FeeService\"\nimport ModaNoticeError from \"../../../AdditionalFees/components/ApplicationEstablishing/Modal/ModaNoticeError\"\nimport RepresentSelect from \"../../../AdditionalFees/components/ApplicationVHHB/components/RepresentSelect\"\nimport {\n changeValueTable,\n handleAddNewRow,\n handleCopyContentRow,\n ID_SUBMIT_F7,\n preSubmitF7,\n} from \"../../../AdditionalFees/components/ApplicationVHHB/functionCommon\"\nimport { RedStartFormDirect } from \"../../../RedStartFormDirect\"\nimport TittleLayout from \"../../../TittleLayout\"\nimport { getListFee } from \"../../../commonFunc\"\nimport ModalApplicationFees from \"./components/ModalCharge/1.ModalApplicationFees\"\nimport ModalGPHI from \"./components/ModalCharge/2.ModalGPHI\"\nimport ChargeIndustrialDesigns from \"./components/ModalCharge/3.ChargeIndustrialDesigns\"\nimport ModalTrademarkFees from \"./components/ModalCharge/4.ModalTrademarkFees\"\nimport ModalLayoutDesign from \"./components/ModalCharge/7.ModalLayoutDesign\"\nimport ModalPrintBarCode from \"./components/ModalPrintBarCode\"\nimport ModalPrintReceive from \"./components/ModalPrintReceive\"\nimport ProcedureSelect from \"./components/ProcedureSelect\"\nimport { ConfirmAccessFileContainer } from \"./styled\"\nimport OwnerInput from \"../../../commons/OwnerInput\"\nimport AddressInput from \"../../../commons/AddressInput\"\n\nconst initValue = {\n DossierCateID: 0,\n OwnerName: \"\",\n Address: \"\",\n ObjectName: \"\",\n RepresentID: null,\n TaxCode: \"\",\n TotalFee: 0,\n ProfileCode: \"\",\n}\n//format address\nexport const handleFormatUpperCase = ({\n event,\n record,\n index,\n field,\n form,\n setDataTable,\n}) => {\n const text = event.target.value\n let formattedText = text\n if (!isUpperCase(text.charAt(0))) {\n formattedText = formatTextName(text)\n form.setFieldValue(`${record?.NumericalOrder}_${field}`, formattedText)\n }\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n [field]: formattedText,\n },\n })\n}\nexport const handleDeleteSelect = (\n key,\n form,\n ItemName,\n callback = () => {},\n target,\n) => {\n if (key === \"Delete\") {\n form.resetFields([ItemName])\n callback()\n target.focus()\n }\n}\nexport const calculateRefIndex = (rowIndex, columnIndex, numberColumn = 6) => {\n return rowIndex * numberColumn + columnIndex // Mỗi hàng có 3 cột\n}\nexport const handleKeyDown = ({\n event,\n inputRefs,\n indexNow,\n setIndexNow,\n numberColumn = 6,\n dispatch,\n searchField,\n valueConvertFunction,\n}) => {\n if ([\"Tab\", \"F2\", \"F4\"]?.includes(event.key)) return\n if (event.key === \"ArrowRight\" && indexNow < inputRefs.current.length - 1) {\n // event.preventDefault()\n // setIndexNow(prevIndex => prevIndex + 1)\n } else if (\n event.key === \"ArrowDown\" &&\n indexNow < inputRefs.current.length - numberColumn\n ) {\n event.preventDefault()\n setIndexNow(prevIndex => prevIndex + numberColumn)\n } else if (event.key === \"ArrowLeft\" && indexNow > 0) {\n // event.preventDefault()\n // setIndexNow(prevIndex => prevIndex - 1)\n } else if (event.key === \"ArrowUp\" && indexNow - numberColumn >= 0) {\n event.preventDefault()\n setIndexNow(prevIndex => prevIndex - numberColumn)\n } else if (event.key === \"F10\" && !!dispatch) {\n event.preventDefault()\n if (!!searchField) {\n const valueConver = !!event?.target?.value\n ? !!valueConvertFunction\n ? valueConvertFunction(event)\n : event?.target?.value\n : \"\"\n\n if (searchField === \"ProfileCode\") setSingleNow(dispatch, valueConver)\n if (searchField === \"VBBH\") setVBBH(dispatch, valueConver)\n\n if (searchField === \"Owner\") setOwnerNow(dispatch, valueConver)\n }\n dispatch(setDiffModalSearchSingle())\n }\n}\nexport const handleKeyDownSelect = (\n event,\n inputRefs,\n indexNow,\n setIndexNow,\n numberColumn = 6,\n) => {\n if (event.key === \"ArrowRight\" && indexNow < inputRefs.current.length - 1) {\n event.preventDefault()\n setIndexNow(prevIndex => prevIndex + 1)\n } else if (event.key === \"ArrowLeft\" && indexNow > 0) {\n event.preventDefault()\n setIndexNow(prevIndex => prevIndex - 1)\n }\n // else if (event.key === \"Enter\") {\n // event.preventDefault()\n // setIndexNow(prevIndex => prevIndex + 1)\n // }\n}\nconst ConfirmAccessFile = React.memo(({ DossierType, listSHCN }) => {\n const maxColumn = 7\n const [form] = Form.useForm()\n // const [listSHCN, setListSHCN] = useState([])\n const [listDossierCate, setListDossierCate] = useState([])\n const dispatch = useDispatch()\n const [filePdf, setFilePdf] = useState(\"\")\n const { pdfFromHtmlStore } = useContext(StoreContext)\n const [keydown, setKeyDown] = useState()\n const [filePdfFromHtml, setFilePdfFromHtml] = pdfFromHtmlStore\n const [openModalCharge1, setOpenModalCharge1] = useState(false)\n const [openModalCharge2, setOpenModalCharge2] = useState(false)\n const [openModalCharge3, setOpenModalCharge3] = useState(false)\n const [openModalCharge4, setOpenModalCharge4] = useState(false)\n const [openModalCharge7, setOpenModalCharge7] = useState(false)\n const [loading, setLoading] = useState(false)\n const [openModalPrintBarCode, setOpenModalPrintBarCode] = useState(false)\n const [dataScrollLengthPre, setDataScrollLengthPre] = useState(0)\n const [errorNotice, setErrorNotice] = useState(false)\n const [currentRowSelect, setCurrentRowSelect] = useState()\n const [position, setPosition] = useState({\n row: 1,\n col: 1,\n })\n const [dataTable, setDataTable] = useState(\n [\"1\", \"2\", \"3\", \"4\", \"5\"].map(i => ({\n ...initValue,\n NumericalOrder: i,\n })),\n )\n\n //submit: cấp số đơn\n const handleSubmitIssueNumber = async body => {\n CB1({\n title: `Bạn có chắc chắn muốn cấp số đơn không?`,\n icon: \"warning-usb\",\n okText: \"Đồng ý\",\n onOk: async () => {\n const res = await DossierService.capSoDon(convertBodyCapSoDon(body))\n if (res?.isError) return\n setDataTable(\n dataTable\n .map(i => ({\n ...i,\n ProfileCode:\n res?.Object?.data.find(\n j => i.NumericalOrder === j.NumericalOrder,\n )?.ProfileCode || \"\",\n DossierID:\n res?.Object?.data.find(\n j => i.NumericalOrder === j.NumericalOrder,\n )?.DossierID || \"\",\n }))\n .filter(i => !!i.ProfileCode),\n )\n },\n })\n }\n const handleSubmit = async () => {\n try {\n await preSubmitF7()\n setLoading(true)\n const listData = dataTable?.filter(\n i =>\n !!i.TotalFee &&\n !i.ProfileCode &&\n i.OwnerName &&\n i.Address &&\n i.ObjectName,\n )\n const isCheck =\n dataTable\n ?.filter(i => !i.TotalFee)\n ?.some(\n i => i.DossierCateID || i.OwnerName || i.Address || i.ObjectName,\n ) ||\n dataTable\n ?.filter(i => !!i.TotalFee)\n ?.some(\n i =>\n !i.DossierCateID || !i.OwnerName || !i.Address || !i.ObjectName,\n )\n if (listData?.length === 0 || isCheck)\n return Notice({\n msg: \"Vui lòng điền thông tin tờ khai và tính phí trước khi cấp số đơn!\",\n isSuccess: false,\n })\n let body =\n listData?.map(i => ({\n ...i,\n DossierCateID: listDossierCate.find(\n d => +d.CodeValue === i.DossierCateID,\n )?.DossierCateID,\n // NumericalOrder: i.id,\n DossierType,\n // DossierCateItemID: listDossierCate.find(\n // d => +d.CodeValue === i.DossierCateID,\n // )?.DossierCateItemID,\n ProfileType: listDossierCate.find(\n o => +o.CodeValue === i.DossierCateID,\n )?.Code,\n InfoFee: JSON.stringify(i.InfoFee),\n Represent: listSHCN.find(e => e.RepresentID === i.RepresentID)\n ?.FullName,\n Phi: i.Phi,\n LePhi: i.LePhi,\n ProfileCode: undefined,\n index: undefined,\n title: undefined,\n HinhThucNop: 1,\n })) || []\n await handleSubmitIssueNumber(body)\n } catch (error) {\n console.log(\"error\", error)\n } finally {\n setLoading(false)\n }\n }\n\n const handleCharge = async (record, index) => {\n if (!record.DossierCateID)\n form.setFields([\n {\n name: `${record?.NumericalOrder}_DossierCateID`,\n errors: [\"\"],\n },\n ])\n if (!!record.DossierCateID) {\n const titleModal = {\n 1: \"Tính phí đơn đăng ký sáng chế\",\n 2: \"Tính phí đơn đăng ký giải pháp hữu ích\",\n 3: \"Tính phí đơn đăng ký kiểu dáng công nghiệp\",\n 4: \"Tính phí đơn đăng ký nhãn hiệu\",\n 7: \"Tính phí đơn đăng ký thiết kế bố trí\",\n }\n const initOpen = {\n type: undefined,\n listDossierCate: listDossierCate,\n DossierType: record?.DossierCateID,\n index,\n title: titleModal[record.DossierCateID || 0],\n notOperation: !!record?.ProfileCode,\n }\n if (record.DossierCateID === 1) {\n setOpenModalCharge1({\n ...record,\n ...initOpen,\n })\n }\n if (record.DossierCateID === 2) {\n setOpenModalCharge2({\n ...record,\n ...initOpen,\n })\n }\n if (record.DossierCateID === 3) {\n setOpenModalCharge3({\n ...record,\n ...initOpen,\n })\n }\n if (record.DossierCateID === 4) {\n setOpenModalCharge4({\n ...record,\n ...initOpen,\n })\n }\n if (record.DossierCateID === 6) {\n const body = {\n ListFee: getListFee({\n ModalType: \"GeographicalIndication\",\n }),\n DossierCateID: listDossierCate.find(\n i => +i.CodeValue === record.DossierCateID,\n )?.DossierCateID,\n DossierCateCode: record.DossierCateID,\n }\n const InfoFee = {\n DossierCateID: listDossierCate.find(\n i => +i.CodeValue === record.DossierCateID,\n )?.DossierCateID,\n DossierCateCode: record.DossierCateID,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonXacLapQuyen\")\n // const res = await DossierOffService.tinhPhiDonXacLapQuyen()\n if (res.isError) return\n changeValueTable({\n setDataTable,\n index,\n newObject: {\n InfoFee: InfoFee,\n TotalFee: res.Object?.TotalFee,\n DossierFeeList: res.Object?.Data,\n },\n })\n\n createRowandNextField({\n fieldFindIndex: \"DossierCateID\",\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow: () =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }\n if (record.DossierCateID === 7) {\n setOpenModalCharge7({\n ...record,\n ...initOpen,\n })\n }\n }\n }\n\n const handleReset = () => {\n handleResetListSingle({\n dataTable,\n resetFunction: () => {\n handleResetForm({ form, setDataTable, initValue })\n },\n })\n }\n\n const getDossierCateBySingleField = useCallback(async () => {\n try {\n setLoading(true)\n const res = await DossierCateService.getDossierCateBySingleField({\n SingleField: DossierType,\n })\n if (res?.isError) return\n setListDossierCate(res?.Object)\n } finally {\n setLoading(false)\n }\n }, [DossierType])\n\n const checkKeyDown = keydown => {\n switch (keydown.key) {\n case \"F7\":\n if (dataTable?.some(item => !item?.DossierID)) handleSubmit()\n break\n case \"F8\":\n if (dataTable?.some(item => !!item?.DossierID))\n printReceipts({\n setLoading,\n dataTable,\n setFilePdfFromHtml,\n })\n break\n case \"F9\":\n if (dataTable?.some(item => !!item?.DossierID))\n setOpenModalPrintBarCode(dataTable)\n break\n case \"F6\":\n handleReset()\n break\n case \"F2\":\n if (!dataTable?.some(item => !!item?.DossierID))\n handleAddNewRow({\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n })\n break\n case \"F4\":\n handleCopyContentRow({\n listFieldCheck: [\"OwnerName\", \"Address\", \"ObjectName\", \"RepresentID\"],\n listFieldNotCheck: [\"TaxCode\"],\n dataTable,\n currentRowSelect,\n setDataTable,\n form,\n })\n break\n default:\n break\n }\n }\n\n const column = [\n {\n key: \"stt\",\n title: \"STT\",\n width: 35,\n align: \"center\",\n render: (val, record, idx) => idx + 1,\n },\n // dossier category ID - select\n {\n key: \"DossierCateID\",\n title: (\n
\n Thủ tục CSĐ(*)\n
\n ),\n dataIndex: \"DossierCateID\",\n align: \"left\",\n width: 100,\n render: (value, record, index) => (\n \n ),\n },\n // ower name - input\n {\n key: \"OwnerName\",\n title: (\n
\n Chủ đơn(*)\n
\n ),\n width: 180,\n dataIndex: \"OwnerName\",\n align: \"center\",\n render: (text, record, index) => (\n \n ),\n },\n // address - input\n {\n key: \"Address\",\n title: (\n
\n Địa chỉ(*)\n
\n ),\n width: 180,\n dataIndex: \"Address\",\n align: \"center\",\n render: (text, record, index) => (\n \n ),\n },\n // object name - input\n {\n key: \"ObjectName\",\n title: (\n
\n Tên đối tượng(*)\n
\n ),\n width: 120,\n dataIndex: \"ObjectName\",\n align: \"center\",\n render: (text, record, index) => (\n \n \n \n changeValueTable({\n setDataTable,\n index,\n newObject: {\n ObjectName: event?.target?.value,\n },\n })\n }\n className=\"input-border-bottom-only\"\n id={`field${4}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: 4,\n row: index + 1,\n })\n }\n onKeyDown={event =>\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n })\n }\n />\n \n \n ),\n },\n // represent - select\n {\n key: \"RepresentID\",\n title: \"Đại diện SHCN\",\n dataIndex: \"RepresentID\",\n align: \"left\",\n width: 100,\n render: (text, record, index) => (\n \n changeValueTable({\n setDataTable,\n index,\n newObject: newObject,\n })\n }\n index={index}\n form={form}\n setPosition={setPosition}\n maxColumn={maxColumn}\n dataTable={dataTable}\n handleAddNewRow={() =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n })\n }\n // listWarmming={listWarmming}\n haveTaxCode={true}\n idPosition={5}\n />\n ),\n },\n // taxcode\n {\n key: \"TaxCode\",\n title: \"Mã số thuế\",\n width: 80,\n dataIndex: \"TaxCode\",\n align: \"center\",\n render: (text, record, index) => (\n \n \n changeValueTable({\n setDataTable,\n index,\n newObject: {\n TaxCode: event?.target?.value,\n },\n })\n }\n disabled={!!record?.RepresentID ? true : false}\n className=\"input-border-bottom-only\"\n id={`field${6}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: 6,\n row: index + 1,\n })\n }\n onKeyDown={event =>\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n })\n }\n />\n \n ),\n },\n // fee - button\n {\n key: \"fees\",\n title: \"T.Phí\",\n width: 50,\n align: \"center\",\n render: (text, record, index) => (\n {\n handleCharge(record, index)\n }}\n // disabled={!!record.ProfileCode}\n id={`field${7}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: 7,\n row: index + 1,\n })\n }\n onKeyDown={event =>\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n handleAddNewRow: () =>\n !record.ProfileCode &&\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }\n >\n T.Phí\n \n ),\n },\n //total fee - cal by button(fee)\n {\n key: \"TotalFee\",\n title: \"Tổng phí\",\n width: 100,\n dataIndex: \"TotalFee\",\n align: \"center\",\n render: val => (val ? formatMoney(val) : \"\"),\n },\n // single number - auto fill\n {\n key: \"ProfileCode\",\n title:
Số đơn
,\n width: 120,\n dataIndex: \"ProfileCode\",\n align: \"left\",\n onCell: record => {\n if (!!record.DossierID) {\n return {\n colSpan: 2,\n }\n }\n return {}\n },\n },\n // delete\n {\n key: \"Action\",\n width: 30,\n dataIndex: \"Action\",\n align: \"center\",\n onCell: record => {\n if (!!record.DossierID) {\n return {\n colSpan: 0,\n }\n }\n return {}\n },\n render: (text, record, index) =>\n !record?.DossierID && (\n {\n const newDataTable = dataTable.filter(\n i => i.NumericalOrder !== record.NumericalOrder,\n )\n setDataTable(newDataTable)\n }}\n />\n ),\n },\n ]\n\n useEffect(() => {\n if (dataTable.length > 6 && dataTable.length >= dataScrollLengthPre) {\n setDataScrollLengthPre(dataTable.length)\n // cuộn xuống cuối trang\n const element = document.getElementById(\"body-admin-scroll\")\n element.scrollTop = element.scrollHeight\n }\n }, [dataTable?.length])\n\n useEffect(() => {\n getDossierCateBySingleField()\n }, [])\n useEffect(() => {\n if (keydown?.key) checkKeyDown(keydown)\n }, [keydown])\n useEffect(() => {\n const getKeyDown = e => {\n if ([\"F7\", \"F8\", \"F9\", \"F6\", \"F2\", \"F4\"]?.includes(e?.key)) {\n e?.preventDefault()\n e?.stopPropagation()\n setKeyDown(e)\n }\n }\n window.addEventListener(\"keydown\", e => getKeyDown(e), true)\n\n return () => window.removeEventListener(\"keydown\", e => getKeyDown(e))\n }, [])\n\n useEffect(() => {\n const element = document.getElementById(\n `field${position?.col}${position?.row}`,\n )\n if (!!element) element.focus()\n }, [position])\n console.log(\"position\", position)\n\n return (\n \n {/* {useMemo(\n () => ( */}\n \n {/* button action */}\n \n {/*
\n Cấp số đơn xác lập quyền quốc gia\n
*/}\n {/* form 1 */}\n
\n !!i.ProfileCode)}\n autocomplete=\"off\"\n >\n {useMemo(() => {\n return (\n {\n return {\n onClick: () => {\n setCurrentRowSelect({\n ...record,\n })\n },\n }\n }}\n sticky={{ offsetHeader: -12 }}\n textEmpty=\"Không có dữ liệu\"\n pagination={false}\n rowKey=\"NumericalOrder\"\n scroll={{ x: 1400, y: false }}\n />\n )\n }, [dataTable, listSHCN, listDossierCate])}\n
\n \n !!item?.DossierID)}\n onClick={handleSubmit}\n >\n Cấp số đơn và lưu (F7)\n \n !!item?.DossierID)}\n onClick={() =>\n printReceipts({\n setLoading,\n dataTable,\n setFilePdfFromHtml,\n })\n }\n >\n In phiếu thu (F8)\n \n\n {/* !!item?.DossierID)}\n onClick={() =>\n printReceipts({\n setLoading,\n dataTable,\n setFilePdfFromHtml,\n isNewWindow: true,\n })\n }\n >\n In phiếu thu BETA\n */}\n !!item?.DossierID)}\n onClick={() => setOpenModalPrintBarCode(dataTable)}\n >\n In barcode (F9)\n \n handleReset()}\n >\n Đặt lại (F6)\n \n \n \n handleAddNewRow({\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n })\n }\n disabled={!!dataTable?.some(item => !!item?.DossierID)}\n >\n Thêm mới (F2)\n \n
\n \n
\n
\n {/* ),\n [dataTable, listDossierCate],\n )} */}\n {!!openModalPrintBarCode && (\n setOpenModalPrintBarCode(false)}\n />\n )}\n {!!openModalCharge1 && openModalCharge1?.DossierCateID !== 6 && (\n {\n setOpenModalCharge1(false)\n // setIndexNow((openModalCharge1.index + 1) * 6)\n }}\n onOk={data => {\n // changeValueTable(openModalCharge1.index, {\n // ...openModalCharge1,\n // ...data,\n // })\n changeValueTable({\n setDataTable,\n index: openModalCharge1.index,\n newObject: {\n // type: openModalCharge1.type,\n ...data,\n },\n })\n createRowandNextField({\n fieldFindIndex: \"DossierCateID\",\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow: () =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }}\n />\n )}\n {!!openModalCharge2 && (\n {\n setOpenModalCharge2(false)\n // setIndexNow((openModalCharge2.index + 1) * 6)\n }}\n onOk={data => {\n // changeValueTable(openModalCharge2.index, {\n // ...openModalCharge2,\n // ...data,\n // })\n changeValueTable({\n setDataTable,\n index: openModalCharge2.index,\n newObject: {\n // type: openModalCharge2.type,\n ...data,\n },\n })\n createRowandNextField({\n fieldFindIndex: \"DossierCateID\",\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow: () =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }}\n />\n )}\n {!!openModalCharge3 && (\n {\n setOpenModalCharge3(false)\n // setIndexNow((openModalCharge3.index + 1) * 6)\n }}\n onOk={data => {\n changeValueTable({\n setDataTable,\n index: openModalCharge3.index,\n newObject: {\n // type: openModalCharge3.type,\n ...data,\n },\n })\n createRowandNextField({\n fieldFindIndex: \"DossierCateID\",\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow: () =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }}\n />\n )}\n {!!openModalCharge4 && (\n {\n setOpenModalCharge4(false)\n // setIndexNow((openModalCharge4.index + 1) * 6)\n }}\n onOk={data => {\n // changeValueTable(openModalCharge4.index, {\n // ...openModalCharge4,\n // ...data,\n // })\n changeValueTable({\n setDataTable,\n index: openModalCharge4.index,\n newObject: {\n // type: openModalCharge4.type,\n ...data,\n },\n })\n createRowandNextField({\n fieldFindIndex: \"DossierCateID\",\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow: () =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }}\n />\n )}\n {!!openModalCharge7 && (\n {\n setOpenModalCharge7(false)\n // setIndexNow((openModalCharge7.index + 1) * 6)\n }}\n onOk={data => {\n // changeValueTable(openModalCharge7.index, {\n // ...openModalCharge7,\n // ...data,\n // })\n changeValueTable({\n setDataTable,\n index: openModalCharge7.index,\n newObject: {\n // type: openModalCharge7.type,\n ...data,\n },\n })\n createRowandNextField({\n fieldFindIndex: \"DossierCateID\",\n setPosition,\n maxColumn,\n dataTable,\n handleAddNewRow: () =>\n handleAddNewRow({\n initValue,\n errorNotice,\n setDataTable,\n setPosition,\n setErrorNotice,\n }),\n })\n }}\n />\n )}\n {filePdf && (\n setFilePdf(false)} />\n )}\n {errorNotice && (\n setErrorNotice(false)}\n />\n )}\n
\n )\n})\n\nexport default ConfirmAccessFile\n","import styled from \"styled-components\"\n\nexport const ConfirmAccessFileContainer = styled.div`\n width: 100%;\n &&& tbody > tr:hover > td {\n background-color: #fff !important;\n }\n\n .ant-input-group-wrapper-outlined .ant-input-group-addon:first-child,\n .ant-input-number-group-wrapper-outlined\n .ant-input-number-group-addon:last-child,\n .ant-input-group-wrapper-outlined .ant-input-group-addon:last-child {\n padding: 0px 3px;\n }\n tbody {\n .ant-select-outlined.ant-select-disabled:not(.ant-select-customize-input)\n .ant-select-selector,\n .ant-input-number-disabled,\n .ant-input-disabled {\n background-color: #fff !important;\n color: #444;\n }\n }\n\n .ant-table-tbody {\n .ant-table-row {\n td.ant-table-cell {\n padding: 4px !important;\n }\n }\n }\n`\n","import { result, slice } from \"lodash\"\nimport CB1 from \"src/components/Modal/CB1\"\nimport Notice from \"src/components/Notice\"\nimport { convertBodyCapSoDon, convertToZeroString } from \"src/lib/utils\"\nimport DossierService from \"src/services/DossierService\"\nimport FeeService from \"src/services/FeeService\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nconst { default: DossierOffService } = require(\"src/services/DossierOffService\")\n\nexport const checkSinglePBAndRB = async ({\n event,\n listDossierCate,\n record,\n changeValueTable,\n}) => {\n //check don PB, RB\n if (\n (event >= 21 && event <= 25) ||\n (event >= 31 && event <= 36) ||\n (event >= 73 && event <= 80) ||\n (event >= 81 && event <= 85)\n ) {\n let checkPB_RB_or_RBPB =\n (event >= 21 && event <= 41) || (event >= 81 && event <= 85)\n let body = checkPB_RB_or_RBPB\n ? {\n ListFee: !!(event >= 21 && event <= 41)\n ? getListFee({\n ModalType: \"PB_RB\",\n })\n : getListFee({\n ModalType: \"RBPB\",\n }),\n DossierCateID: listDossierCate.find(\n i => +i.CodeValue === +record.DossierCateID,\n )?.DossierCateID,\n DossierCateCode: listDossierCate?.find(\n i => +i?.CodeValue === record?.DossierCateID,\n )?.Code,\n }\n : {\n DossierCateID: listDossierCate.find(\n i => +i.CodeValue === +record.DossierCateID,\n )?.DossierCateID,\n DossierCateCode: listDossierCate?.find(\n i => +i?.CodeValue === record?.DossierCateID,\n )?.Code,\n }\n\n let InfoFee = {\n DossierCateID: listDossierCate.find(\n i => +i.CodeValue === +record.DossierCateID,\n )?.DossierCateID,\n DossierCateCode: listDossierCate?.find(\n i => +i?.CodeValue === record?.DossierCateID,\n )?.Code,\n HinhThuc: event === 34 ? true : undefined,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n // const res = await DossierOffService.TinhPhiDonLienQuanToiVanBang(body)\n if (res.isError) return false\n // changeValueTable(res, body, disabledDossierRelative)\n changeValueTable(\n res,\n InfoFee,\n !!((event >= 31 && event <= 36) || (event >= 81 && event <= 85)) ||\n (event >= 21 && event <= 25),\n )\n return true\n }\n}\n\nexport const checkIsduplicatedSoVBBH = ({\n NumericalOrder,\n DossierCateID,\n NumberCheck,\n dataTable,\n SingleHaveSoVBBHFree = false,\n}) => {\n //check don hen tai co trung voi don khac khong\n let dataIsduplicatedSoVBBH = dataTable?.find(\n item =>\n item?.NumericalOrder !== NumericalOrder &&\n item?.DossierCateID === DossierCateID &&\n item?.[SingleHaveSoVBBHFree ? \"VBBH_Relative\" : \"input1\"] === NumberCheck,\n )\n //check don thuoc DT, GH\n let checkEvent = dataTable\n .map(i => i.DossierCateID)\n .some(num => num >= 6 && num <= 9)\n\n if (!!dataIsduplicatedSoVBBH && !!checkEvent) {\n Notice({\n isSuccess: false,\n msg: \"Số VBBH liên quan đã được nhập trên màn hình!\",\n })\n return true\n }\n return false\n}\n\nexport const checkDuplicateSubmit = dataTable => {\n let checkDuplicate = dataTable?.find(item => !!item?.isDuplicated)\n let checkEvent = dataTable\n .map(i => i.DossierCateID)\n .some(num => num >= 6 && num <= 9)\n if (checkDuplicate && !!checkEvent) {\n return true\n } else {\n return false\n }\n}\n\nexport const convertSoDon_VBGoc = value => {\n //Dạng 4-xxxx-xxxxx\n //10 ký tự\n //number1: 4\n //number2: xxxx\n //number3: xxxxx\n if (value !== \"\") {\n const digits = value?.toString().replace(/\\D/g, \"\")\n let number2 = digits.slice(0, 4)\n let number3 = digits.slice(4, 9)\n if (number2?.length < 4)\n number2 = convertToZeroString(4 - number2?.length) + number2\n if (number3?.length < 5)\n number3 = convertToZeroString(5 - number3?.length) + number3\n if (number3 === \"00000\") number3 = \"00001\"\n return number2 + \"-\" + number3\n }\n return value\n}\nexport const convertDuoiSoDon = value => {\n //Dạng đuôi xxxx-xxxxx\n //10 ký tự\n //number2: xxxx\n //number3: xxxxx\n if (value !== \"\") {\n const digits = value?.toString().replace(/\\D/g, \"\")\n let number2 = digits.slice(0, 4)\n let number3 = digits.slice(4, 9)\n if (number2?.length < 4)\n number2 = convertToZeroString(4 - number2?.length) + number2\n if (!!number3 && number3?.length < 5 && number3 > 0)\n number3 = convertToZeroString(5 - number3?.length) + number3\n if (number3 === \"\") number3 = \"\"\n else if (number3 === \"00000\") number3 = \"00001\"\n return number2 + \"-\" + number3\n }\n return value\n}\n\nexport const convertDuoiSoDon2 = value => {\n //Dạng đuôi xxxx-xxxxx\n //10 ký tự\n //number2: xxxx\n //number3: xxxxx\n if (value !== \"\") {\n const digits = value?.toString().replace(/\\D/g, \"\")\n let number2 = digits.slice(0, 4)\n let number3 = digits.slice(4, 10)\n if (number2?.length < 4)\n number2 = convertToZeroString(4 - number2?.length) + number2\n if (!!number3 && number3?.length < 5 && number3 > 0) {\n // number3 = number3.reverse()\n // number3 = +number3 *\n number3 = convertToZeroString(5 - number3?.length) + number3\n }\n if (number3 === \"00000\") number3 = \"00001\"\n return number2 + \"-\" + number3\n }\n return value\n}\nexport const convertSoDonLienQuan_CapSoDonKhac = ({\n number,\n isBSTL_XNQT = false,\n}) => {\n // -\tĐịnh dạng số đơn liên quan: X-XXX-XXXXX (Hình 1)\n // -\tĐịnh dạng số bằng liên quan của BSTL: XXXXXXX (Hình 1)\n if (number !== \"\" && isBSTL_XNQT) {\n const numberCheck = number?.toString()\n const digits = numberCheck.replace(/\\D/g, \"\") || \"\"\n let result = \"\"\n if (numberCheck.includes(\"-\")) {\n //digits[0]\n let number1 = digits.slice(0, 1)\n let number2 = digits.slice(1, 5)\n let number3 = digits.slice(5, 10)\n if (number2?.length < 4)\n number2 = convertToZeroString(4 - number2?.length) + number2\n if (number3?.length < 5)\n number3 = convertToZeroString(5 - number3?.length) + number3\n if (number3 === \"00000\") number3 = \"00001\"\n result = number1 + \"-\" + number2 + \"-\" + number3\n } else {\n if (digits?.length < 7)\n result = convertToZeroString(7 - digits?.length) + digits\n else result = digits.slice(0, 7)\n if (result === \"0000000\") result = \"0000001\"\n }\n return result\n }\n return number\n}\n\nexport const formatInputValue = value => {\n if (value.trim() !== \"\" && !isNaN(parseInt(value)) && parseInt(value) > 0) {\n const sanitizedValue = value.replace(/\\D/g, \"\")\n const paddedValue = sanitizedValue.padStart(7, \"0\")\n return paddedValue.slice(0, 7)\n } else {\n return \"\"\n }\n}\n\nexport const handleSubmitAfterCheck = async (\n dataTable,\n SingleHaveSoVBBHFree,\n listDossierCate,\n DossierType,\n listSHCN,\n setDataTable,\n setWidthProfileCode,\n) => {\n const listData = dataTable?.filter(\n i =>\n !!i.TotalFee &&\n !i.ProfileCode &&\n i.OwnerName &&\n i.Address &&\n (i.input1 ||\n (SingleHaveSoVBBHFree.includes(i.ProfileType) && i.VBBH_Relative)),\n )\n //input1 là số giữa của VBBH_Relative\n const isCheck =\n !!dataTable\n ?.filter(i => !i.TotalFee)\n ?.some(\n i =>\n i.DossierCateID ||\n (SingleHaveSoVBBHFree.includes(i.ProfileType)\n ? i.VBBH_Relative\n : i.input1) ||\n i.OwnerName ||\n i.Address,\n ) ||\n !!dataTable\n ?.filter(i => !!i.TotalFee)\n ?.some(\n i =>\n !i.DossierCateID ||\n (SingleHaveSoVBBHFree.includes(i.ProfileType)\n ? !i.VBBH_Relative\n : !i.input1) ||\n !i.OwnerName ||\n !i.Address,\n )\n console.log(\"isCheck\", isCheck)\n console.log(\"dataTable\", dataTable)\n console.log(\"listData\", listData)\n console.log(\n \"isChecka\",\n !!dataTable\n ?.filter(i => !i.TotalFee)\n ?.some(\n i =>\n i.DossierCateID ||\n (SingleHaveSoVBBHFree.includes(i.ProfileType)\n ? i.VBBH_Relative\n : i.input1) ||\n i.OwnerName ||\n i.Address,\n ),\n )\n console.log(\n \"isCheckb\",\n !!dataTable\n ?.filter(i => !!i.TotalFee)\n ?.some(\n i =>\n !i.DossierCateID ||\n (SingleHaveSoVBBHFree.includes(i.ProfileType)\n ? !i.VBBH_Relative\n : !i.input1) ||\n !i.OwnerName ||\n !i.Address,\n ),\n )\n\n if (listData?.length === 0 || isCheck)\n return Notice({\n msg: \"Vui lòng điền thông tin tờ khai và tính phí trước khi cấp số đơn!\",\n isSuccess: false,\n })\n let body =\n listData?.map(i => {\n let numberVBBH = \"\"\n if (!!i?.VBBH_Relative) numberVBBH = i?.VBBH_Relative\n else if (i?.Prefix === \"/ĐKHĐSD\") numberVBBH = `${i?.input1}/ĐKHĐSD`\n else numberVBBH = `${i.Prefix}-${i.input1}-${i.input2 ? i.input2 : \"000\"}`\n return {\n ...i,\n DossierCateID: listDossierCate.find(\n d => +d.CodeValue === i.DossierCateID,\n )?.DossierCateID,\n // NumericalOrder: i.id,\n DossierType,\n // DossierCateItemID: listDossierCate.find(\n // d => +d.CodeValue === i.DossierCateID,\n // )?.DossierCateItemID,\n VBBH_Relative: numberVBBH,\n ProfileType: listDossierCate.find(o => +o.CodeValue === i.DossierCateID)\n ?.Code,\n InfoFee: JSON.stringify(i.InfoFee),\n Represent: listSHCN.find(e => e.RepresentID === i.RepresentID)\n ?.FullName,\n Phi: i.Phi,\n LePhi: i.LePhi,\n ProfileCode: undefined,\n index: undefined,\n title: undefined,\n HinhThucNop: 1,\n TabID: 4,\n }\n }) || []\n\n await handleSubmitIssueNumber(\n body,\n setDataTable,\n setWidthProfileCode,\n dataTable,\n )\n}\n\nconst handleSubmitIssueNumber = async (\n body,\n setDataTable,\n setWidthProfileCode,\n dataTable,\n) => {\n CB1({\n title: `Bạn có chắc chắn muốn cấp số đơn không?`,\n icon: \"warning-usb\",\n okText: \"Đồng ý\",\n onOk: async () => {\n const res = await DossierService.capSoDon(convertBodyCapSoDon(body))\n if (res?.isError) return\n setDataTable(\n dataTable\n .map(i => ({\n ...i,\n ProfileCode: res?.Object?.data.find(\n j => i.NumericalOrder === j.NumericalOrder,\n )?.ProfileCode,\n DossierID: res?.Object?.data.find(\n j => i.NumericalOrder === j.NumericalOrder,\n )?.DossierID,\n }))\n .filter(i => !!i.ProfileCode),\n )\n setWidthProfileCode(200)\n },\n })\n}\n","import {\n Checkbox,\n Col,\n Form,\n Input,\n InputNumber,\n Radio,\n Row,\n Space,\n Spin,\n} from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { getRegexNumber } from \"src/lib/stringsUtils\"\nimport {\n formatMoney,\n formatterProfileCodeWithPrefix,\n parserProfileCodeWithPrefix,\n} from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport { getListFee } from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\nimport {\n checkSoDonGoc,\n checkValueExistenceComon,\n} from \"../../../ConfirmAccessFile/components/ModalCharge/commonFunction\"\nimport RootNumberInput from \"../RootNumberInput\"\nimport {\n convertBodyCheckValueExistence,\n handleEnterPressCommon,\n} from \"./ModalExtendVBBH\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\nconst ModalCancelVBBH = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const inputRefTachDon = useRef(null)\n const [checkNumber, setCheckNumber] = useState()\n const [checkbox, setCheckBox] = useState({\n IsTachDon: false,\n })\n const handleEnterPress = async event => {\n await handleEnterPressCommon(event, handleSubmit, form)\n }\n\n const checkValueExistence = async value => {\n const body = convertBodyCheckValueExistence(checkbox, open, value)\n await checkValueExistenceComon({\n value,\n checkbox,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n bodyCheck: body,\n })\n }\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current && formRef.current.getFieldInstance(\"SoVBBH\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n HinhThuc: open.InfoFee?.HinhThuc ? 1 : 0,\n })\n setTotalFee(open.TotalFee)\n setCheckBox({\n IsTachDon: open.InfoFee?.IsTachDon,\n })\n } else {\n form.setFieldValue(\"HinhThuc\", 1)\n }\n }, [open])\n useEffect(() => {\n inputRefTachDon.current?.focus()\n }, [checkbox])\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n // setLoading(true)\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalCancelVBBH\",\n values,\n }),\n IsTachDon: checkbox?.IsTachDon,\n SoDonGoc: !!values?.SoDonGoc\n ? `${open?.ProfileType}-${values?.SoDonGoc}`\n : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n HinhThuc: !!values.HinhThuc,\n SoVBBH: !isNaN(values?.SoVBBH) ? values?.SoVBBH : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n // const res = await DossierOffService.TinhPhiDonLienQuanToiVanBang(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n\n if (!checkSoDonGoc({ checkbox, checkNumber, form })) return\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (allValues.SoVBBH) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n Chấm dứt\n \n \n Huỷ bỏ\n \n \n \n \n \n \n \n \n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: check.target.checked,\n })\n // setPrefix(\"1-\")\n form.setFieldsValue({\n IsTachDon: check.target.checked,\n SoDonGoc: \"\",\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Tách đơn\n \n \n \n {checkbox.IsTachDon && (\n \n {!!open?.SingleCode ? (\n \n ) : (\n \n checkValueExistence(e.target.value)}\n formatter={formatterProfileCodeWithPrefix}\n parser={parserProfileCodeWithPrefix}\n maxLength={12}\n onPressEnter={handleEnterPress}\n ref={inputRefTachDon}\n />\n \n )}\n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalCancelVBBH\n","import { Checkbox, Col, Form, Input, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { getRegexNumber } from \"src/lib/stringsUtils\"\nimport {\n formatMoney,\n formatterProfileCodeWithPrefix,\n parserProfileCodeWithPrefix,\n} from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\nimport {\n checkSoDonGoc,\n checkValueExistenceComon,\n} from \"../../../ConfirmAccessFile/components/ModalCharge/commonFunction\"\nimport RootNumberInput from \"../RootNumberInput\"\nimport {\n convertBodyCheckValueExistence,\n handleEnterPressCommon,\n} from \"./ModalExtendVBBH\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\nconst ModalExtendContactSHCN = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const inputRefTachDon = useRef(null)\n const [checkNumber, setCheckNumber] = useState()\n const [checkbox, setCheckBox] = useState({\n IsTachDon: false,\n })\n const handleEnterPress = async event => {\n await handleEnterPressCommon(event, handleSubmit, form)\n }\n\n const checkValueExistence = async value => {\n const body = convertBodyCheckValueExistence(checkbox, open, value)\n await checkValueExistenceComon({\n value,\n checkbox,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n bodyCheck: body,\n })\n }\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current && formRef.current.getFieldInstance(\"SoVBBH\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setCheckBox({\n IsTachDon: open.InfoFee?.IsTachDon,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n useEffect(() => {\n inputRefTachDon.current?.focus()\n }, [checkbox])\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n // setLoading(true)\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalExtendContactSHCN\",\n open,\n values,\n }),\n IsTachDon: checkbox?.IsTachDon,\n SoDonGoc: !!values?.SoDonGoc\n ? `${open?.ProfileType}-${values?.SoDonGoc}`\n : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const InfoFee = {\n ...values,\n SoVBBH: !isNaN(values?.SoVBBH) ? values?.SoVBBH : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n // const res = await DossierOffService.TinhPhiDonLienQuanToiVanBang(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (!checkSoDonGoc({ checkbox, checkNumber, form })) return\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (allValues.SoVBBH) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: check.target.checked,\n })\n // setPrefix(\"1-\")\n form.setFieldsValue({\n IsTachDon: check.target.checked,\n SoDonGoc: \"\",\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Tách đơn\n \n \n \n {checkbox.IsTachDon && (\n \n {!!open?.SingleCode ? (\n \n ) : (\n \n checkValueExistence(e.target.value)}\n formatter={formatterProfileCodeWithPrefix}\n parser={parserProfileCodeWithPrefix}\n maxLength={12}\n onPressEnter={handleEnterPress}\n ref={inputRefTachDon}\n />\n \n )}\n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalExtendContactSHCN\n","import { Checkbox, Col, Form, Input, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { getRegexNumber } from \"src/lib/stringsUtils\"\nimport {\n converSingleCorrectFormat,\n formatMoney,\n formatterProfileCodeWithPrefix,\n parserProfileCodeWithPrefix,\n} from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\nimport {\n checkSoDonGoc,\n checkValueExistenceComon,\n} from \"../../../ConfirmAccessFile/components/ModalCharge/commonFunction\"\nimport RootNumberInput, { CODE_EXAMPLE } from \"../RootNumberInput\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\nexport const handleEnterPressCommon = async (event, handleSubmit, form) => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n await handleSubmit(true)\n } else if (event.key === \"Tab\") {\n event.preventDefault()\n let value = form.getFieldValue()\n let valueConvert = converSingleCorrectFormat(value?.SoDonGoc, CODE_EXAMPLE)\n form.setFieldsValue({\n SoDonGoc: valueConvert,\n })\n }\n}\nexport const convertBodyCheckValueExistence = (checkbox, open, value) => {\n return {\n ...checkbox,\n SoĐon: `${open?.SingleCode ? open?.SingleCode + \"-\" : \"\"}${value}`,\n DossierCateCode: open.DossierCateID,\n }\n}\nconst ModalExtendVBBH = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const inputRefTachDon = useRef(null)\n const [checkNumber, setCheckNumber] = useState(false)\n const [checkbox, setCheckBox] = useState({\n IsTachDon: false,\n })\n const handleEnterPress = async event => {\n await handleEnterPressCommon(event, handleSubmit, form)\n }\n\n const checkValueExistence = async value => {\n const body = convertBodyCheckValueExistence(checkbox, open, value)\n await checkValueExistenceComon({\n value,\n checkbox,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n bodyCheck: body,\n })\n }\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current && formRef.current.getFieldInstance(\"SoVBBH\").focus(),\n 0,\n )\n if (open.InfoFee) {\n setCheckBox({\n IsTachDon: open.InfoFee?.IsTachDon,\n })\n form.setFieldsValue({\n ...open.InfoFee,\n SoVBBH: open?.InfoFee?.SoVBBH,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n setLoading(true)\n const values = allValues ? allValues : await form.validateFields()\n\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalExtendVBBH\",\n values,\n checkbox,\n }),\n IsTachDon: checkbox?.IsTachDon,\n SoDonGoc: !!values?.SoDonGoc\n ? `${open?.ProfileType}-${values?.SoDonGoc}`\n : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n SoVBBH: !isNaN(values?.SoVBBH) ? values?.SoVBBH : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n SoĐon: `${open?.SingleCode ? open?.SingleCode + \"-\" : \"\"}${\n values?.SoDonGoc\n }`,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n // const res = await DossierOffService.TinhPhiDonLienQuanToiVanBang(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (!checkSoDonGoc({ checkbox, checkNumber, form })) return\n if (!!isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: {\n ...InfoFee,\n },\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } catch (error) {\n console.log(\"error\", error)\n } finally {\n setLoading(false)\n }\n }\n\n useEffect(() => {\n inputRefTachDon.current?.focus()\n }, [checkbox])\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (allValues.SoVBBH) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: check.target.checked,\n })\n // setPrefix(\"1-\")\n form.setFieldsValue({\n IsTachDon: check.target.checked,\n SoDonGoc: \"\",\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Tách đơn\n \n \n \n {checkbox.IsTachDon && (\n \n {!!open?.SingleCode ? (\n \n ) : (\n \n checkValueExistence(e.target.value)}\n formatter={formatterProfileCodeWithPrefix}\n parser={parserProfileCodeWithPrefix}\n maxLength={12}\n onPressEnter={handleEnterPress}\n ref={inputRefTachDon}\n />\n \n )}\n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalExtendVBBH\n","import { Col, Form, Input, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { formatMoney, getNumberMinMax1_20 } from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\nimport { handleEnterPressCommon } from \"./ModalExtendVBBH\"\nimport { getNumberMinMax1_10 } from \"src/lib/stringsUtils\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\nconst ModalMaintenanceRequirement = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n const handleEnterPress = async event => {\n await handleEnterPressCommon(event, handleSubmit, form)\n }\n // const handeCheckInput = (e) => {\n // if (e <= 1 || e >= 21) {\n // Notice({\n // isSuccess: false,\n // msg: \"Năm duy trì phải lớn hơn 1 và nhỏ hơn 20\"\n // })\n // }\n // }\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current && formRef.current.getFieldInstance(\"SoYCBH\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n // setLoading(true)\n\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalMaintenanceRequirement\",\n open,\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n SoNam: values?.SoNam ? +values?.SoNam : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n // const res = await DossierOffService.TinhPhiDonLienQuanToiVanBang(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || 0,\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (allValues.SoYCBH) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n \n \n handeCheckInput(e)}\n onPressEnter={handleEnterPress}\n />\n \n \n \n \n \n \n \n \n \n \n \n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalMaintenanceRequirement\n","import {\n Checkbox,\n Col,\n Form,\n Input,\n InputNumber,\n Radio,\n Row,\n Space,\n Spin,\n} from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { getRegexNumber } from \"src/lib/stringsUtils\"\nimport {\n formatMoney,\n formatterProfileCodeWithPrefix,\n parserProfileCodeWithPrefix,\n} from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\nimport {\n checkSoDonGoc,\n checkValueExistenceComon,\n} from \"../../../ConfirmAccessFile/components/ModalCharge/commonFunction\"\nimport RootNumberInput from \"../RootNumberInput\"\nimport {\n convertBodyCheckValueExistence,\n handleEnterPressCommon,\n} from \"./ModalExtendVBBH\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\nconst ModalModifyContent = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const inputRefTachDon = useRef(null)\n const [checkNumber, setCheckNumber] = useState()\n const [checkbox, setCheckBox] = useState({\n IsTachDon: false,\n })\n const handleEnterPress = async event => {\n await handleEnterPressCommon(event, handleSubmit, form)\n }\n\n const checkValueExistence = async value => {\n const body = convertBodyCheckValueExistence(checkbox, open, value)\n await checkValueExistenceComon({\n value,\n checkbox,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n bodyCheck: body,\n })\n }\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current && formRef.current.getFieldInstance(\"SoVBBH\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n SoVBBH: open?.InfoFee?.SoVBBH,\n HinhThuc: open?.InfoFee?.HinhThuc === true ? 1 : 0,\n })\n setTotalFee(open.TotalFee)\n setCheckBox({\n IsTachDon: open.InfoFee?.IsTachDon,\n })\n } else {\n form.setFieldValue(\"HinhThuc\", 1)\n }\n }, [open])\n useEffect(() => {\n inputRefTachDon.current?.focus()\n }, [checkbox])\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n // setLoading(true)\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalModifyContent\",\n values,\n }),\n IsTachDon: checkbox?.IsTachDon,\n SoDonGoc: !!values?.SoDonGoc\n ? `${open?.ProfileType}-${values?.SoDonGoc}`\n : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n HinhThuc: !!values.HinhThuc,\n SoVBBH: !isNaN(values?.SoVBBH) ? values?.SoVBBH : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n // const res = await DossierOffService.TinhPhiDonLienQuanToiVanBang(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (!checkSoDonGoc({ checkbox, checkNumber, form })) return\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (allValues.SoVBBH) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n Hình Thức\n \n \n Nội dung\n \n \n \n \n \n \n \n \n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: check.target.checked,\n })\n // setPrefix(\"1-\")\n form.setFieldsValue({\n IsTachDon: check.target.checked,\n SoDonGoc: \"\",\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Tách đơn\n \n \n \n {checkbox.IsTachDon && (\n \n {!!open?.SingleCode ? (\n \n ) : (\n \n checkValueExistence(e.target.value)}\n formatter={formatterProfileCodeWithPrefix}\n parser={parserProfileCodeWithPrefix}\n maxLength={12}\n onPressEnter={handleEnterPress}\n ref={inputRefTachDon}\n />\n \n )}\n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalModifyContent\n","import {\n Checkbox,\n Col,\n Form,\n Input,\n InputNumber,\n Radio,\n Row,\n Space,\n Spin,\n} from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { getRegexNumber } from \"src/lib/stringsUtils\"\nimport {\n formatMoney,\n formatterProfileCodeWithPrefix,\n parserProfileCodeWithPrefix,\n} from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\nimport {\n checkSoDonGoc,\n checkValueExistenceComon,\n} from \"../../../ConfirmAccessFile/components/ModalCharge/commonFunction\"\nimport RootNumberInput from \"../RootNumberInput\"\nimport {\n convertBodyCheckValueExistence,\n handleEnterPressCommon,\n} from \"./ModalExtendVBBH\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\nconst ModalRequestModifyKDCN = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const [radio, setRadio] = useState(1)\n const inputRefTachDon = useRef(null)\n const [checkNumber, setCheckNumber] = useState()\n const [checkbox, setCheckBox] = useState({\n IsTachDon: false,\n })\n const handleEnterPress = async event => {\n await handleEnterPressCommon(event, handleSubmit, form)\n }\n\n const checkValueExistence = async value => {\n const body = convertBodyCheckValueExistence(checkbox, open, value)\n await checkValueExistenceComon({\n value,\n checkbox,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n bodyCheck: body,\n })\n }\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current && formRef.current.getFieldInstance(\"SoVBBH\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n HinhThuc: open.InfoFee?.HinhThuc ? 1 : 0,\n })\n setTotalFee(open.TotalFee)\n setRadio(open.InfoFee?.HinhThuc ? 1 : 0)\n setCheckBox({\n IsTachDon: open.InfoFee?.IsTachDon,\n })\n } else {\n form.setFieldValue(\"HinhThuc\", 1)\n }\n }, [open])\n useEffect(() => {\n inputRefTachDon.current?.focus()\n }, [checkbox])\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalRequestModifyKDCN\",\n values,\n open,\n }),\n IsTachDon: checkbox?.IsTachDon,\n SoDonGoc: !!values?.SoDonGoc\n ? `${open?.ProfileType}-${values?.SoDonGoc}`\n : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n HinhThuc: !!values.HinhThuc,\n SoVBBH: !isNaN(values?.SoVBBH) ? values?.SoVBBH : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n // const res = await DossierOffService.TinhPhiDonLienQuanToiVanBang(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (!checkSoDonGoc({ checkbox, checkNumber, form })) return\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (allValues.SoVBBH) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n {\n setRadio(e.target.value)\n form.setFieldValue(\"SoHinhAnhThem\", \"\")\n form.setFieldValue(\"SoYCBH\", \"\")\n }}\n >\n \n Sửa hình thức\n \n \n Sửa nội dung\n \n \n \n \n \n \n \n \n \n {radio === 0 && (\n <>\n {open.DossierCateID === 45 ? (\n <>\n ) : (\n \n \n \n \n \n )}\n {open.DossierCateID >= 46 && open.DossierCateID <= 47 ? (\n <>\n ) : (\n \n \n Tổng số điểm YCBH độc lập/nhóm/phương án\n
(TĐL)\n \n }\n >\n \n \n \n )}\n \n )}\n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: check.target.checked,\n })\n // setPrefix(\"1-\")\n form.setFieldsValue({\n IsTachDon: check.target.checked,\n SoDonGoc: \"\",\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Tách đơn\n \n \n \n {checkbox.IsTachDon && (\n \n {!!open?.SingleCode ? (\n \n ) : (\n \n checkValueExistence(e.target.value)}\n formatter={formatterProfileCodeWithPrefix}\n parser={parserProfileCodeWithPrefix}\n maxLength={12}\n onPressEnter={handleEnterPress}\n ref={inputRefTachDon}\n />\n \n )}\n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalRequestModifyKDCN\n","import { Col, Form, Radio, Row, Space, Spin } from \"antd\"\nimport React, { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { formatMoney } from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport DossierOffService from \"src/services/DossierOffService\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n :where(.css-dev-only-do-not-override-1xg9z9n).ant-form-item\n .ant-form-item-label\n > label {\n display: none;\n }\n`\nconst ModalRequestReissue = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current && formRef.current.getFieldInstance(\"HinhThuc\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n HinhThuc: open.InfoFee?.HinhThuc ? 1 : 0,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n // setLoading(true)\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalRequestReissue\",\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n HinhThuc: !!values?.HinhThuc,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n // const res = await DossierOffService.TinhPhiDonLienQuanToiVanBang(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (allValues) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n \n Có\n \n \n \n \n Không\n \n \n \n \n \n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalRequestReissue\n","import { Checkbox, Col, Form, Input, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { getRegexNumber } from \"src/lib/stringsUtils\"\nimport {\n formatMoney,\n formatterProfileCodeWithPrefix,\n parserProfileCodeWithPrefix,\n} from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\nimport {\n checkSoDonGoc,\n checkValueExistenceComon,\n} from \"../../../ConfirmAccessFile/components/ModalCharge/commonFunction\"\nimport RootNumberInput from \"../RootNumberInput\"\nimport {\n convertBodyCheckValueExistence,\n handleEnterPressCommon,\n} from \"./ModalExtendVBBH\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\nconst ModalTrademarkTransferContact = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const inputRefTachDon = useRef(null)\n const [checkNumber, setCheckNumber] = useState()\n const [checkbox, setCheckBox] = useState({\n IsTachDon: false,\n })\n const handleEnterPress = async event => {\n await handleEnterPressCommon(event, handleSubmit, form)\n }\n\n const checkValueExistence = async value => {\n const body = convertBodyCheckValueExistence(checkbox, open, value)\n await checkValueExistenceComon({\n value,\n checkbox,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n bodyCheck: body,\n })\n }\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current && formRef.current.getFieldInstance(\"SoVBBH\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n setCheckBox({\n IsTachDon: open.InfoFee?.IsTachDon,\n })\n }\n }, [open])\n useEffect(() => {\n if (checkbox?.IsTachDon) inputRefTachDon.current?.focus()\n }, [checkbox])\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n // setLoading(true)\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalTrademarkTransferContact\",\n values,\n }),\n IsTachDon: checkbox?.IsTachDon,\n SoDonGoc: !!values?.SoDonGoc\n ? `${open?.ProfileType}-${values?.SoDonGoc}`\n : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n SoVBBH: !isNaN(values?.SoVBBH) ? values?.SoVBBH : undefined,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n // const res = await DossierOffService.TinhPhiDonLienQuanToiVanBang(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n\n if (!checkSoDonGoc({ checkbox, checkNumber, form })) return\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (allValues.SoVBBH) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n \n \n \n \n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: check.target.checked,\n })\n // setPrefix(\"1-\")\n form.setFieldsValue({\n IsTachDon: check.target.checked,\n SoDonGoc: \"\",\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Tách đơn\n \n \n \n {checkbox.IsTachDon && (\n \n {!!open?.SingleCode ? (\n \n ) : (\n \n checkValueExistence(e.target.value)}\n formatter={formatterProfileCodeWithPrefix}\n parser={parserProfileCodeWithPrefix}\n maxLength={12}\n onPressEnter={handleEnterPress}\n ref={inputRefTachDon}\n />\n \n )}\n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalTrademarkTransferContact\n","import { Checkbox, Col, Form, Input, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { getRegexNumber, getRegexNumberMoreThan0 } from \"src/lib/stringsUtils\"\nimport {\n formatMoney,\n formatterProfileCodeWithPrefix,\n parserProfileCodeWithPrefix,\n} from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\nimport {\n checkSoDonGoc,\n checkValueExistenceComon,\n} from \"../../../ConfirmAccessFile/components/ModalCharge/commonFunction\"\nimport RootNumberInput from \"../RootNumberInput\"\nimport {\n convertBodyCheckValueExistence,\n handleEnterPressCommon,\n} from \"./ModalExtendVBBH\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\nconst ModalTranferContact = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const inputRefTachDon = useRef(null)\n const [checkNumber, setCheckNumber] = useState()\n const [checkbox, setCheckBox] = useState({\n IsTachDon: false,\n })\n const handleEnterPress = async event => {\n await handleEnterPressCommon(event, handleSubmit, form)\n }\n\n const checkValueExistence = async value => {\n const body = convertBodyCheckValueExistence(checkbox, open, value)\n await checkValueExistenceComon({\n value,\n checkbox,\n open,\n handleSubmit,\n form,\n setCheckNumber,\n bodyCheck: body,\n })\n }\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current && formRef.current.getFieldInstance(\"SoVBBH\").focus(),\n 0,\n )\n if (!!open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n setCheckBox({\n IsTachDon: open.InfoFee?.IsTachDon,\n })\n }\n }, [open])\n useEffect(() => {\n if (checkbox?.IsTachDon) inputRefTachDon.current?.focus()\n }, [checkbox])\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n // setLoading(true)\n const values = allValues ? allValues : await form.validateFields()\n let DossierCateID =\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID\n\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalTranferContact\",\n values,\n }),\n IsTachDon: checkbox?.IsTachDon,\n SoDonGoc: !!values?.SoDonGoc\n ? `${open?.ProfileType}-${values?.SoDonGoc}`\n : undefined,\n DossierCateID: DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n SoVBBH: !isNaN(values?.SoVBBH) ? values?.SoVBBH : undefined,\n DossierCateID: DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n // const res = await DossierOffService.TinhPhiDonLienQuanToiVanBang(body)\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiVanBang\")\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n\n if (!checkSoDonGoc({ checkbox, checkNumber, form })) return\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (!!allValues.SoVBBH) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n \n \n {\n setCheckBox({\n ...checkbox,\n IsTachDon: check.target.checked,\n })\n // setPrefix(\"1-\")\n form.setFieldsValue({\n IsTachDon: check.target.checked,\n SoDonGoc: \"\",\n })\n }}\n onKeyPress={handleEnterPress}\n >\n Tách đơn\n \n \n \n {checkbox.IsTachDon && (\n \n {!!open?.SingleCode ? (\n \n ) : (\n \n checkValueExistence(e.target.value)}\n formatter={formatterProfileCodeWithPrefix}\n parser={parserProfileCodeWithPrefix}\n maxLength={12}\n onPressEnter={handleEnterPress}\n ref={inputRefTachDon}\n />\n \n )}\n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalTranferContact\n","import React, { useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { Checkbox, Col, Form, Input, InputNumber, Row, Space, Spin } from \"antd\"\nimport styled from \"styled-components\"\nimport { formatMoney } from \"src/lib/utils\"\nimport DossierOffService from \"src/services/DossierOffService\"\nimport { useEffect } from \"react\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport FeeService from \"src/services/FeeService\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport { logDOM } from \"@testing-library/react\"\nimport { getRegexNumber, getRegexNumberMoreThan0 } from \"src/lib/stringsUtils\"\nimport Notice from \"src/components/Notice\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\n\nconst ModalChangeFormFee = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [error, setError] = useState(\"\")\n const [totalFee, setTotalFee] = useState(0)\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"SoDonTrcHopLe\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n // setLoading(true)\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalChangeFormFee\",\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n if (!(!!values?.SoDonTrcHopLe || !!values?.SoDonSauHopLe)) {\n // Notice({\n // isSuccess: false,\n // msg: \"Số đơn trước hợp lệ hoặc Số đơn sau hợp lệ không được để trống!\",\n // })\n setError(\n \"Số đơn trước hợp lệ hoặc Số đơn sau hợp lệ không được để trống!\",\n )\n return\n } else {\n setError(\"\")\n }\n\n const InfoFee = {\n ...values,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n SoDiem:\n open?.ProfileType === \"SĐ6\" ? (values.SoDiem ? 1 : 0) : values.SoDiem,\n }\n // const res = await DossierOffService.TinhPhiDonLienQuanToiDon(body)\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiDon\")\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n const setTitle = ProfileType => {\n switch (ProfileType) {\n case \"SĐ1\":\n case \"SĐ2\":\n return \"Số điểm(để tính phí thẩm định lại)\"\n case \"SĐ3\":\n return \"Số sản phẩm/phương án(để tính phí thẩm định lại)\"\n case \"SĐ4\":\n return \"Số nhóm(để tính phí thẩm định lại)\"\n default:\n return false\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (allValues) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n \n \n \n \n \n\n {!!error && (\n \n {error}\n \n )}\n \n \n \n \n \n {open?.DossierCateID === 8 && (\n \n \n \n \n \n )}\n {open?.DossierCateID === 9 || open?.DossierCateID === 10 ? (\n <>\n ) : (\n <>\n \n \n \n \n \n {open?.DossierCateID === 8 ? (\n <>\n ) : (\n \n \n \n \n \n )}\n \n )}\n {setTitle(open?.ProfileType) && (\n \n \n \n \n \n )}\n {open?.ProfileType === \"SĐ6\" && (\n \n \n \n // setCheckBox({\n // ...checkbox,\n // IsTĐND: !checkbox.IsTĐND,\n // })\n // }\n onKeyPress={handleEnterPress}\n >\n Thẩm định lại\n \n \n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\nexport default ModalChangeFormFee\n","import { Col, Form, Input, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { getRegexNumberMoreThan0 } from \"src/lib/stringsUtils\"\nimport { formatMoney } from \"src/lib/utils\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport { getListFee } from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport FeeService from \"src/services/FeeService\"\nimport styled from \"styled-components\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\n\nconst ModalObjectionFormFee = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"NumberItem\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n // setLoading(true)\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalObjectionFormFee\",\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiDon\")\n // const res = await DossierOffService.TinhPhiDonLienQuanToiDon(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n\n return (\n \n \n \n {\n if (allValues.NumberItem) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalObjectionFormFee\n","import React, { useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { Col, Form, Input, InputNumber, Row, Space, Spin } from \"antd\"\nimport styled from \"styled-components\"\nimport { formatMoney } from \"src/lib/utils\"\nimport DossierOffService from \"src/services/DossierOffService\"\nimport { useEffect } from \"react\"\nimport { disabledConfirmTinhPhi } from \"src/pages/ADMIN/FormDirect/components/ManagementFileSingle/components/commonFunction\"\nimport FeeService from \"src/services/FeeService\"\nimport {\n getListFee,\n pushToListFee,\n} from \"src/pages/ADMIN/FormDirect/components/commonFunc\"\nimport { getRegexNumber, getRegexNumberMoreThan0 } from \"src/lib/stringsUtils\"\nimport Notice from \"src/components/Notice\"\n\nconst StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\n\nconst ModalTransferFormFee = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n const [error, setError] = useState(\"\")\n\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"SoDonTrcHopLe\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n const values = allValues ? allValues : await form.validateFields()\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalTransferFormFee\",\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n if (!(!!values?.SoDonTrcHopLe || !!values?.SoDonSauHopLe)) {\n // Notice({\n // isSuccess: false,\n // msg: \"Số đơn trước hợp lệ hoặc Số đơn sau hợp lệ không được để trống!\",\n // })\n setError(\n \"Số đơn trước hợp lệ hoặc Số đơn sau hợp lệ không được để trống!\",\n )\n return\n } else {\n setError(\"\")\n }\n const InfoFee = {\n ...values,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n // const res = await DossierOffService.TinhPhiDonLienQuanToiDon(body)\n const res = await FeeService.tinhFee(body, \"TinhPhiDonLienQuanToiDon\")\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n return (\n \n \n \n {\n if (Object.keys(changedValues).length === 0) {\n console.log(\" Không có thay đổi thực sự, bỏ qua\")\n // Không có thay đổi thực sự, bỏ qua\n return\n }\n if (allValues) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n \n \n \n \n \n {!!error && (\n \n {error}\n \n )}\n {/* {(open?.DossierCateID === 1 || open?.DossierCateID === 2) && (\n \n \n \n \n \n )}\n {open?.DossierCateID === 3 && (\n \n \n \n \n \n )} */}\n {open?.ProfileType === \"CĐ4\" && (\n \n \n \n \n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalTransferFormFee\n","import { Col, Form, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { formatMoney } from \"src/lib/utils\"\nimport FeeService from \"src/services/FeeService\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { StyleModal } from \"../styles\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nconst ModalGNGH = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"SoVanBang_Mon\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n setLoading(true)\n const values = allValues ? allValues : await form.validateFields()\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalGNGH\",\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiCacDonKhac\")\n // const res = await DossierOffService.TinhPhiCacDonKhac(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n\n return (\n \n \n \n {\n if (allValues.SoVanBang_Mon) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalGNGH\n","import { Col, Form, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { formatMoney } from \"src/lib/utils\"\nimport FeeService from \"src/services/FeeService\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { getListFee } from \"../../../../commonFunc\"\nimport { StyleModal } from \"../styles\"\n\nconst ModalGNĐB = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"SoVanBang_Mon\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n setLoading(true)\n const values = allValues ? allValues : await form.validateFields()\n\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalGNĐB\",\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiCacDonKhac\")\n // const res = await DossierOffService.TinhPhiCacDonKhac(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n\n return (\n \n \n \n {\n if (allValues.SoVanBang_Mon) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalGNĐB\n","import { Col, Form, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { formatMoney } from \"src/lib/utils\"\nimport FeeService from \"src/services/FeeService\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { StyleModal } from \"../styles\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nconst ModalKTGĐ = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"SoVanBang_Mon\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n setLoading(true)\n const values = allValues ? allValues : await form.validateFields()\n\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalKTGĐ\",\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiCacDonKhac\")\n // const res = await DossierOffService.TinhPhiCacDonKhac(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n\n return (\n \n \n \n {\n if (allValues.SoVanBang_Mon) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalKTGĐ\n","import { Col, Form, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { formatMoney } from \"src/lib/utils\"\nimport FeeService from \"src/services/FeeService\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { StyleModal } from \"../styles\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nconst ModalKTNV = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"SoVanBang_Mon\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n setLoading(true)\n const values = allValues ? allValues : await form.validateFields()\n\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalKTNV\",\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiCacDonKhac\")\n // const res = await DossierOffService.TinhPhiCacDonKhac(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n\n return (\n \n \n \n {\n if (allValues.SoVanBang_Mon) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalKTNV\n","import { Col, Form, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { formatMoney } from \"src/lib/utils\"\nimport FeeService from \"src/services/FeeService\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { StyleModal } from \"../styles\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nconst ModalPTĐD = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current &&\n formRef.current.getFieldInstance(\"SoVanBang_Mon\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n setLoading(true)\n const values = allValues ? allValues : await form.validateFields()\n\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalPTĐD\",\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiCacDonKhac\")\n // const res = await DossierOffService.TinhPhiCacDonKhac(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n\n return (\n \n \n \n {\n if (allValues.SoVanBang_Mon) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalPTĐD\n","import { Col, Form, InputNumber, Row, Space, Spin } from \"antd\"\nimport { useEffect, useRef, useState } from \"react\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport Button from \"src/components/MyButton/Button\"\nimport { formatMoney } from \"src/lib/utils\"\nimport FeeService from \"src/services/FeeService\"\nimport { disabledConfirmTinhPhi } from \"../../../../ManagementFileSingle/components/commonFunction\"\nimport { StyleModal } from \"../styles\"\nimport { getListFee } from \"../../../../commonFunc\"\n\nconst ModalTC = ({ open, onCancel, onOk }) => {\n const [form] = Form.useForm()\n const formRef = useRef(null)\n const [loading, setLoading] = useState(false)\n const [totalFee, setTotalFee] = useState(0)\n\n useEffect(() => {\n setTimeout(\n () =>\n formRef.current && formRef.current.getFieldInstance(\"SoYCBH\").focus(),\n 0,\n )\n if (open.InfoFee) {\n form.setFieldsValue({\n ...open.InfoFee,\n })\n setTotalFee(open.TotalFee)\n }\n }, [open])\n const handleEnterPress = event => {\n if (event.key === \"Enter\") {\n event.preventDefault()\n handleSubmit(true)\n }\n }\n\n const setTitleYCBH = () => {\n let title = \"\"\n switch (open?.DossierCateID) {\n case 28:\n case 29:\n title = \"Số điểm YCBH độc lập:\"\n break\n case 30:\n title = \"Tổng số Phương án/Sản phẩm:\"\n break\n case 31:\n title = \"Tổng số nhóm hàng hóa/dịch vụ:\"\n break\n\n default:\n title = \"Số điểm YCBH độc lập:\"\n }\n return title\n }\n\n const setRequireYCBH = () => {\n let title = \"\"\n switch (open?.DossierCateID) {\n case 28:\n case 29:\n title = \"Số điểm YCBH độc lập không được để trống!\"\n break\n case 30:\n title = \"Tổng số Phương án/Sản phẩm không được để trống!\"\n break\n case 31:\n title = \"Tổng số nhóm hàng hóa/dịch vụ không được để trống!\"\n break\n\n default:\n title = \"Thông tin không được để trống!\"\n }\n return title\n }\n\n const handleSubmit = async (isSubmit, allValues) => {\n try {\n setLoading(true)\n const values = allValues ? allValues : await form.validateFields()\n const body = {\n ListFee: getListFee({\n ModalType: \"ModalTC\",\n values,\n }),\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n\n const InfoFee = {\n ...values,\n DossierCateID:\n open?.listDossierCate?.find(i => +i.CodeValue === open.DossierCateID)\n ?.DossierCateID || open?.DossierCateID,\n DossierCateCode: open?.ProfileType,\n }\n const res = await FeeService.tinhFee(body, \"TinhPhiCacDonKhac\")\n // const res = await DossierOffService.TinhPhiCacDonKhac(body)\n if (res.isError) return\n setTotalFee(res.Object?.TotalFee)\n if (isSubmit) {\n onOk({\n TotalFee: res.Object?.TotalFee || \"0\",\n Phi: res.Object?.TotalPhi,\n LePhi: res.Object?.TotalLePhi,\n InfoFee: InfoFee,\n DossierFeeList: res.Object?.Data,\n })\n onCancel()\n }\n } finally {\n setLoading(false)\n }\n }\n const renderFooter = () => (\n \n handleSubmit(true)}\n disabled={disabledConfirmTinhPhi(open)}\n >\n Xác nhận\n \n \n \n )\n\n return (\n \n \n \n {\n if (allValues.SoYCBH) return handleSubmit(false, allValues)\n setTotalFee(0)\n }}\n >\n \n \n \n \n \n \n {open?.DossierCateID === 31 && (\n \n \n \n \n \n )}\n {!!totalFee && (\n \n \n \n
Tổng tiền (VNĐ):
\n \n \n \n {formatMoney(totalFee)} VNĐ\n \n \n
\n \n )}\n
\n \n
\n
\n \n )\n}\n\nexport default ModalTC\n","import styled from \"styled-components\"\n\nexport const StyleModal = styled.div`\n .ant-form-item-label {\n width: 50%;\n text-align: left;\n }\n`\n","import styled from \"styled-components\"\n\nexport const TreeSelectWrapper = styled.div`\n .ant-select-selection-item-remove {\n display: ${props => (props?.isAll ? \"none !important\" : \"flex\")};\n }\n .ant-select {\n width: 100%;\n border-radius: 8px;\n background-color: #fff !important;\n }\n .anticon {\n display: flex;\n align-items: center;\n }\n .ant-select-selector {\n background: #fff !important;\n }\n .ant-select-disabled {\n .ant-select-selector {\n background: #f0f0f0 !important;\n }\n }\n .ant-select-disabled:where(\n .css-dev-only-do-not-override-14wwjjs\n ).ant-select:not(.ant-select-customize-input)\n .ant-select-selector {\n background-color: #f0f0f0;\n color: #333;\n }\n label {\n background-color: ${props => props.bgcolor || \"#fff\"} !important;\n }\n .ant-select-selection-placeholder {\n z-index: 1;\n }\n\n &.border-bottom-only {\n .ant-select-selector {\n border-radius: unset !important;\n border: unset !important;\n border-bottom: 1px solid #ddd !important;\n }\n }\n`\n\nexport const FlWrapper = styled.div`\n position: relative;\n background: #fff;\n border-radius: 8px;\n &.border-bottom-only {\n .ant-input-affix-wrapper .ant-input {\n border-bottom: none !important;\n }\n .ant-input-affix-wrapper,\n .ant-input,\n .ant-input-number {\n border: unset !important;\n border-bottom: 1px solid #ddd !important;\n border-radius: unset !important;\n :focus,\n :hover {\n border-color: #d9d9d9;\n }\n }\n }\n &:hover {\n .fl-label {\n /* color: var(--color-primary); */\n }\n }\n .ant-input {\n height: 37px;\n }\n .ant-input:focus,\n .ant-input:hover {\n border-color: #d9d9d9;\n }\n .ant-input-search-with-button .ant-input {\n border-right: transparent;\n }\n .ant-input:focus {\n box-shadow: unset !important;\n }\n input {\n z-index: 3;\n /* background-color: #fff !important; */\n }\n\n .ant-btn-primary {\n color: #d9d9d9;\n border-color: unset;\n background: unset;\n text-shadow: unset;\n box-shadow: unset;\n /* height: 39px; */\n }\n\n .ant-input-group-addon {\n background-color: #ffffff;\n }\n\n .ant-input-search\n > .ant-input-group\n > .ant-input-group-addon:last-child\n .ant-input-search-button {\n border-radius: 0 8px 8px 0;\n padding-bottom: unset;\n height: 37px;\n }\n .ant-btn-primary:not(:disabled):hover {\n background-color: unset;\n border-color: #ddd;\n }\n\n .ant-input-search-button {\n justify-content: center;\n padding-top: 4px !important;\n }\n .ant-input-group-addon {\n border-radius: 8px !important;\n }\n .ant-select {\n z-index: 3;\n background-color: ${props =>\n props?.isFocus ? \"#fff !important\" : \"transparent\"};\n }\n .ant-select-selector {\n background-color: #fff !important;\n /* border: unset !important; */\n box-shadow: unset !important ;\n overflow: hidden;\n }\n .ant-select-disabled:where(\n .css-dev-only-do-not-override-14wwjjs\n ).ant-select:not(.ant-select-customize-input)\n .ant-select-selector {\n background-color: #f0f0f0;\n color: #333;\n }\n\n .ant-select-focused {\n box-shadow: unset !important ;\n }\n .ant-input-number {\n z-index: 3;\n background-color: transparent !important;\n }\n .ant-select-selection-search-input {\n height: 100% !important;\n }\n .ant-select-selection-search {\n padding-left: 10px;\n width: 100%;\n right: 0 !important;\n left: 0 !important;\n }\n .ant-input-affix-wrapper {\n /* border: unset !important; */\n align-items: center;\n background: transparent;\n padding: 0px 7px 0px 11px !important;\n height: 37px;\n :hover,\n :focus {\n background: transparent;\n border: 1px solid #d9d9d9;\n box-shadow: none;\n }\n }\n .ant-input-affix-wrapper-focused {\n border: 1px solid #d9d9d9;\n box-shadow: none;\n }\n .ant-picker {\n padding: 0;\n input {\n height: 100%;\n padding: 9.5px 11px;\n width: 100%;\n }\n .ant-picker-suffix {\n position: absolute;\n right: 10px;\n }\n .ant-picker-clear {\n right: 10px;\n z-index: 4;\n }\n }\n`\n\nexport const Label = styled.span`\n position: absolute;\n cursor: text;\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n top: ${props => (props?.isFl ? \"-7px\" : \"38%\")};\n font-size: ${props => (props?.isFl ? \"12px\" : \"14px\")};\n color: ${props => (props?.isFl ? \"#000\" : \"#868e96\")};\n z-index: 50;\n font-weight: normal;\n left: 10.8px;\n line-height: 10px;\n padding: 0 1px;\n background-color: #fff;\n pointer-events: none;\n\n &:focus {\n color: #0d99ff;\n }\n .redStar {\n color: red;\n margin-left: 5px;\n }\n &::after {\n content: \" \";\n display: block;\n position: absolute;\n height: 5px;\n top: 40%;\n left: -0.1em;\n right: -0.2em;\n z-index: -1;\n }\n`\n\nexport const RedStartFormDirect = styled.span`\n color: red;\n margin-left: 5px;\n`\n","import React from \"react\"\n\nimport useWindowSize from \"src/lib/useWindowSize\"\n// export const TitleNormalLayout = ({ title }) => {\n// const isSmallWidthLaptop = () => useWindowSize.isSmallWidthLaptop()\n// const isSmallHeightLaptop = () => useWindowSize.isSmallHeightLaptop()\n// return isSmallWidthLaptop || isSmallHeightLaptop ? <> : <>{title}\n// }\nconst TittleLayout = ({ title, classNameAdd, subComponent = () => {} }) => {\n const isSmallWidthLaptop = useWindowSize.isSmallWidthLaptop()\n const isSmallHeightLaptop = useWindowSize.isSmallHeightLaptop()\n return !!isSmallHeightLaptop ? (\n
{subComponent()}
\n ) : (\n
\n {title}\n {subComponent(\"d-flex-end f-wrap\")}\n
\n )\n}\n\nexport default TittleLayout\n","import { Form, Input, Tooltip } from \"antd\"\nimport React from \"react\"\nimport { handleFormatUpperCase } from \"../ManagementFilesProvide/conponents/ConfirmAccessFile\"\nimport { handleKeyDownByID } from \"src/lib/eventKey\"\n\nconst AddressInput = ({\n record,\n index,\n form,\n maxColumn,\n dataTable,\n setDataTable,\n setPosition,\n positionColAddress = 4,\n}) => {\n return (\n \n \n {\n handleFormatUpperCase({\n event,\n record,\n index,\n field: \"Address\",\n form,\n setDataTable,\n })\n }}\n className=\"input-border-bottom-only\"\n id={`field${positionColAddress}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: positionColAddress,\n row: index + 1,\n })\n }\n onKeyDown={event =>\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n })\n }\n />\n \n \n )\n}\n\nexport default AddressInput\n","import { Form, Input, Tooltip } from \"antd\"\nimport React from \"react\"\nimport { handleFormatUpperCase } from \"../ManagementFilesProvide/conponents/ConfirmAccessFile\"\nimport { handleKeyDownByID } from \"src/lib/eventKey\"\n\nconst OwnerInput = ({\n record,\n index,\n form,\n maxColumn,\n dataTable,\n dispatch,\n setDataTable,\n setPosition,\n positionColOwner = 3,\n}) => {\n return (\n \n \n \n handleFormatUpperCase({\n event,\n record,\n index,\n field: \"OwnerName\",\n form,\n setDataTable,\n })\n }\n className=\"input-border-bottom-only\"\n id={`field${positionColOwner}${index + 1}`}\n onFocus={() =>\n setPosition({\n col: positionColOwner,\n row: index + 1,\n })\n }\n onKeyDown={event =>\n handleKeyDownByID({\n setPosition,\n event,\n maxColumn,\n maxRow: dataTable?.length,\n dispatch,\n searchField: \"Owner\",\n nextLeft: !!record.disabledDossierRelative ? 2 : 1,\n })\n }\n />\n \n \n )\n}\n\nexport default OwnerInput\n","import { setSearchSingle } from \"src/redux/single\"\nimport PrintfService from \"src/services/PrintfService\"\n\nexport const setSingleNow = (dispatch, value) => {\n dispatch(\n setSearchSingle({\n ProfileCode: value,\n }),\n )\n}\nexport const setVBBH = (dispatch, value) => {\n dispatch(\n setSearchSingle({\n VBBHLQ: value,\n }),\n )\n}\nexport const setDossierRelative = (dispatch, value) => {\n dispatch(\n setSearchSingle({\n DossierRelative: value,\n }),\n )\n}\n\nexport const setOwnerNow = (dispatch, value) => {\n dispatch(\n setSearchSingle({\n OwnerName: value,\n }),\n )\n}\nexport const handleResetForm = ({ form, setDataTable, initValue }) => {\n form.resetFields()\n setDataTable(\n [\"1\", \"2\", \"3\", \"4\", \"5\"].map(i => ({\n ...initValue,\n NumericalOrder: i,\n })),\n )\n}\nexport const printReceipts = async ({\n setLoading,\n dataTable,\n setFilePdfFromHtml,\n isNewWindow = undefined,\n}) => {\n try {\n setLoading(true)\n const listID = dataTable?.filter(i => i.DossierID)?.map(i => i.DossierID)\n if (!listID?.length) return\n const res = await PrintfService.print_phieu_bao_thu(listID)\n if (res?.isError) return\n setFilePdfFromHtml({\n isDowload: false,\n isNewWindow: isNewWindow,\n htmlReceipt: res?.Object,\n })\n } finally {\n setLoading(false)\n }\n}\n","import { Divider } from \"antd\"\nimport CustomModal from \"src/components/Modal/CustomModal\"\nimport styled from \"styled-components\"\n\nconst Style = styled.div`\n ol > li {\n margin-left: 20px;\n }\n`\n\nconst ModalViewReason = ({ open, onCancel }) => {\n return (\n \n \n \n )\n}\n\nexport default ModalViewReason\n"],"names":["ModalSearchSingleStyle","styled","div","_templateObject","_taggedTemplateLiteral","_ref","_getListComboByKey4","open","onCancel","onOk","initSearch","PageSize","CurrentPage","StartDate","undefined","EndDate","pagination","setPagination","useState","textSearch","setTextSearch","openDetailAddFee3","setOpenDetailAddFee3","openDetailDossier","setOpenDetailDossier","openModalViewReason","setOpenModalViewReason","searchSingleNow","searchVBBH","searchOwnerNow","DossierRelative","textSeachQuick","useSelector","state","single","listSHCN","setListSHCN","loading","setLoading","loadingDossier","setLoadingDossier","listSystemKey","listSystemCate","useDispatch","appGlobal","ltDossierInfo","setLtDossierInfo","listDossierCate","setListDossierCate","dossierOffs","setDossierOffs","totalRow","setTotalRow","columns","title","dataIndex","align","width","render","val","record","idx","_jsx","className","children","_","style","display","textDecoration","Status","onClick","HinhThucNop","DossierType","TabID","_objectSpread","key","InfoFee","JSON","parse","DossierCateDescription","concat","ProfileType","Abstract","ProfileCodeOld","DossierOrigin","ProfileCode","_Fragment","value","moment","format","_jsxs","MainTableHeader","SubTableHeader","daiDien","length","find","i","RepresentID","Tooltip","mouseEnterDelay","OwnerName","Organize","FullName","MainTableData","SubTableData","_getListComboByKey","_getListComboByKey$fi","TotalFee","formatMoney","PaymentStatus","getListComboByKey","SYSTEM_KEY","INVOICE_PAYMENT_STATUS","item","CodeValue","Description","_getListComboByKey2","_getListComboByKey2$f","_getListComboByKey3","_getListComboByKey3$f","HINH_THUC_NOP","DOSSIER_OFF_STATUS","IsLocked","getDossier","async","_res$Object","_res$Object2","res","DossierService","traCuuDon","isError","Object","list","total","err","console","log","useEffect","DossierCateService","getDossierCateBySingleField","SingleField","TypeGet","UserService","getListRepresentativeByType","getListRepresentative","pre","isNotNullSeach","VBBHLQ","DossierCateID","DonVi","checkNullSeach","Drawer","color","InputNumber","min","onStep","infor","onPressEnter","e","_e$target","_e$target2","onlyNumbers","target","replace","Math","ceil","defaultValue","_e$target3","_e$target4","placement","onClose","marginTop","height","boxShadow","SpinCustom","spinning","Row","gutter","Col","span","FlInput","onSearch","onChange","_e$target5","search","allowClear","label","_e$target6","_e$target7","_e$target8","DatePicker","placeholder","dayjs","date1","date2","isBefore","isSame","FlDatePicker","isAfter","FlSelect","Select","Option","DANH_SACH_DON","map","showSearch","Code","filterOption","input","option","_option$children","_option$children$toLo","toLowerCase","indexOf","CH_MA_DON_VI","ParentItemID","CodeKey","ID","TableCustom","rowClassName","isPrimary","isResizeColumn","dataSource","textEmpty","rowKey","scroll","x","y","ModalViewReason","DetailDossier","ModalDetailAddFee3","_templateObject2","_templateObject3","_templateObject4","TableCustomStyled","_templateObject5","_templateObject6","createRowandNextField","setPosition","maxColumn","dataTable","handleAddNewRow","fieldFindIndex","passTaxCode","col","row","findIndex","handleKeyDownByID","_ref2","_ref3","event","maxRow","dispatch","searchField","valueConvertFunction","type","issued","nextLeft","nextRight","includes","preventDefault","shiftKey","ctrlKey","_event$target","_event$target2","valueConver","setSingleNow","setOwnerNow","setVBBH","setDiffModalSearchSingle","requireOutOfFormItem","form","listChecks","msg","arguments","nameErrors","nameTrue","forEach","condition","push","name","setFields","errors","UseWindowSize","isLess","size","setSize","useLayoutEffect","updateSize","currentWidth","global","window","innerWidth","addEventListener","removeEventListener","isLaptop","isDesktop","isMobile","isTablet","isSmallHeightLaptop","currentHeight","innerHeight","UseWindowHeightSize","isSmallWidthLaptop","ContentTabThreeStyle","CustomModal","footer","Space","Button","btnType","SvgIcon","StyleModal","checkHavePropertyName","object","propertyName","property","Form","useForm","formRef","useRef","totalFee","setTotalFee","checkbox","setCheckBox","handleEnterPress","handleSubmit","_open$InfoFee","_open$InfoFee2","_open$InfoFee3","_open$InfoFee4","setTimeout","current","getFieldInstance","focus","setFieldsValue","IsTĐND","IsBoSung","IsSuaDoi","IsGiaHan","isSubmit","allValues","values","validateFields","body","PhanLoai","IsClassifySC","DossierCateCode","FeeBSType","ListFee","getListFee","ModalType","FeeService","tinhFee","_res$Object3","_res$Object4","_res$Object5","Phi","TotalPhi","LePhi","TotalLePhi","DossierFeeList","Data","ButtonFee","IsModify","IsExtendedResponse","IsContentAppraisal","IsAdditional","disabled","disabledConfirmTinhPhi","ref","layout","notOperation","initialValues","onValuesChange","isCheckFirstCheckBox","Item","Checkbox","checked","check","setFieldValue","onKeyPress","rules","required","message","maxLength","_value$target","DiemBaoHo_TĐND","SoTrangTangThem_TĐND","SoUuTien","SoHinhAnhThem","IsYcTĐHT","IsYcTĐND","_value$target2","DiemBaoHo","SoTrangTangThem","valuePropName","IsClassifyKD","labelCol","IsStart","labelAlign","IsClassify","PhanLoaiQT","initValue","Address","TaxCode","listTitleModal","renderWarmingMess","code","setListWarmming","Type","listW","NumericalOrder","Warming","ContentTabTwoStyle","pdfFromHtmlStore","useContext","StoreContext","filePdfFromHtml","setFilePdfFromHtml","listWarmming","keydown","setKeyDown","errorNotice","setErrorNotice","currentRowSelect","setCurrentRowSelect","dataScrollLengthPre","setDataScrollLengthPre","filePdf","setFilePdf","openModalProtectionCertificate","setOpenModalProtectionCertificate","openAddFeeChargeIndustrialDesigns","setOpenAddFeeChargeIndustrialDesigns","openModalProtectionTrademark","setOpenModalProtectionTrademark","setDataTable","position","handleReset","handleResetListSingle","resetFunction","handleResetForm","_dataTable$filter","_dataTable$filter2","preSubmitF7","listData","filter","isCheck","some","Notice","isSuccess","_listSHCN$find","stringify","Represent","index","CB1","icon","okText","capSoDon","convertBodyCapSoDon","_res$Object15","_res$Object15$data$fi","_res$Object16","_res$Object16$data$fi","data","j","DossierID","handleSubmitIssueNumber","error","handleNotOpenModal","_res$Object17","_res$Object18","_res$Object19","_res$Object20","split","changeValueTable","newObject","handleBlur","_dataTable$find","formattedValue","formatterProfileCodeWithOnBlurAndPrefix","modifiedValue","slice","_dataTable$filter3","_res$Object13","_res$Object14","getInforDossierInWipo","RelationType","TabId","IsValid","preFee","tinhFeePre","fillRepresent","SHCN","RepresentCode","_res$Object6","_res$Object7","_res$Object8","_res$Object9","_res$Object10","_res$Object11","_res$Object12","ClaimsNumber","FiguresNumber","IncrepagesNumber","VariantsNumber","GroupNumber","PicturesNumber","GetDetailsProfile","column","RedStartFormDirect","text","formatter","formatterProfileCodeWithPrefix","parser","parserProfileCodeWithPrefix","onBlur","autoFocus","id","onFocus","step","onKeyDown","_e$target2$value","toString","WarningColumn","Input","handleFormatOwnerName","formatAcronym","handleFormatAddress","formattedText","formatTextName","RepresentSelect","TypeWarming","haveTaxCode","minWidth","initOpen","handleCharge","onCell","colSpan","ButtonCircle","iconName","newDataTable","element","document","getElementById","scrollTop","scrollHeight","printReceipts","handleCopyContentRow","listFieldCheck","listFieldNotCheck","checkKeyDown","getKeyDown","_ref4","stopPropagation","Spin","TittleLayout","classNameAdd","autocomplete","useMemo","bordered","onRow","sticky","offsetHeader","ID_SUBMIT_F7","ModalProtectionCertificate","AddFeeChargeIndustrialDesigns","ModalProtectionTrademark","ModalPrintReceive","ModaNoticeError","IsChangeFee","SoNhomSPDV","RedStar","SoYCBH","idPosition","popupMatchSelectWidth","_ref2$toLowerCase","onSelect","onInputKeyDown","handleDeleteSelect","_listWarmming$record$","_listWarmming$record$2","_listWarmming","_listWarmming2","_listWarmming2$Warmin","fontSize","WARNING_MESSAGE","itemWarningMess","_body","IsHasFee","newData","uniqueId","Date","now","_dataTable$indexNoDat","_itemCopy","_dataTable$indexNoDat2","_itemCopy2","_dataTable$indexNoDat3","indexNoData","itemCopy","listHaveData","checkNotEmpty","copyContent","valuesForm","listFormField","_dataTable$indexNoDat4","_open$ButtonShow","input1","setInput1","input2","setInput2","input3","setInput3","profileCode","setProfileCode","prefix","mainContent","suffix","newprofileCode","setNewProfileCode","setError","number","setNumber","inputRef","inputRef2","VBBHNumber","setVBBHNumber","profileCodeOld","setProfileCodeOld","listPhi","setListPhi","listLePhi","setListLePhi","_open$VBBH_Relative","_open$ProfileCode","_open$ProfileCode2","_open$ProfileCode3","_inputList$","_open$DossierFeeList","_open$DossierFeeList2","_open$DossierFeeList3","_open$DossierFeeList4","VBBHList","VBBH_Relative","_ProfileCode$","_ProfileCode$2","_ProfileCode$3","_ProfileCode$4","inputList","Suffix","FeeType","listMerge","_listLePhi$idx","_listLePhi$idx2","_listPhi$idx","_listPhi$idx2","LePhiID","FeeID","Fee","PhiID","getListPhiBS","Prefix","convertDataTableToArray","flatMap","_listLePhi$find","_listPhi$find","Total","FeeName","getDetailByVBBH","VBBH","getDetailByProfileCode","PrintfService","print_phieu_bao_thu","isDowload","htmlReceipt","setKeydown","DiplomaCode","SingleCode","DossierCateItemID","PbtNumber","reduce","PbtNbr","InvoiceID","SendDate","DossierOffService","updateSoDon","handleConvertProfileCode","convertDuoiSoDon","body2","_res$Object8$VBBH","_res$Object10$Profile","_input2$toString","midleContent","formatterProfileCodeNotPrefix","resetFields","virtual","_listLePhi$find2","_listLePhi$find3","_listPhi$find2","_option$children2","_option$children2$toL","PHI_BS_KHAC","_listPhi$find3","htmlType","ButtonShow","IsUpdate","Compact","toUpperCase","parserProfileCodeNotPrefix","flex","max","parsedValue","_option$children3","_option$children3$toL","_i$Organize","getFieldValue","represent","dataSetOpen","openModalCharge1","setOpenModalCharge1","openModalCharge2","setOpenModalCharge2","openModalCharge3","setOpenModalCharge3","openModalCharge4","setOpenModalCharge4","openModalCharge7","setOpenModalCharge7","openModalTransfer","setOpenModalTransfer","openModalChange","setOpenModalChange","openModalObjection","setOpenModalObjection","openModalTransferContact","setOpenModalTransferContact","openModalTrademarkTransferContact","setOpenModalTrademarkTransferContact","openModalMaintenanceRequirement","setOpenModalMaintenanceRequirement","openModalExtendVBBH","setOpenModalExtendVBBH","openModalExtendContactSHCN","setOpenModalExtendContactSHCN","openModalTranferContactSHCN","setOpenModalTranferContactSHCN","openModalRequestReissue","setOpenModalRequestReissue","openModalModifyContent","setOpenModalModifyContent","openModalCancelVBBH","setOpenModalCancelVBBH","openModalRequestModifyKDCN","setOpenModalRequestModifyKDCN","openModalGNGH","setOpenModalGNGH","openModalGNĐB","setOpenModalGNĐB","openModalKTGĐ","setOpenModalKTGĐ","openModalKTNV","setOpenModalKTNV","openModalPTĐD","setOpenModalPTĐD","openModalTC","setOpenModalTC","openApplicationModal","setOpenApplicationModal","openIndustrialModal","setOpenIndustrialModal","openLayoutModal","setOpenLayoutModal","openGeographicalIndication","setOpenGeographicalIndication","openTrademarkModal","setOpenTrademarkModal","LIST_FEE_ID","FeeID_1","Quantity","FeeID_12","FeeID_29","FeeID_27","getFee","TinhPhiDonLienQuanToiDon","isEditFee","TinhPhiDonLienQuanToiVanBang","TinhPhiCacDonKhac","charAt","tinhPhiBoSungDonVBBH","openModalCharge","ModalApplicationFees","ModalGPHI","ChargeIndustrialDesigns","ModalTrademarkFees","ModalLayoutDesign","ModalTransferFormFee","ModalChangeFormFee","ModalObjectionFormFee","ModalTranferContact","ModalTrademarkTransferContact","ModalMaintenanceRequirement","ModalExtendVBBH","ModalExtendContactSHCN","ModalRequestReissue","ModalModifyContent","ModalCancelVBBH","ModalRequestModifyKDCN","ModalGNGH","ModalGNĐB","ModalKTGĐ","ModalKTNV","ModalPTĐD","ModalTC","ModalApplicationFeesPBS","ModalIndustrialDesignApplication","ModalTrademarkFeesPBS","ModalGeographicalIndication","ModalLayoutDesignFees","_ltDossierInfo$filter","_ltDossierInfo$5","_ltDossierInfo$6","openBarcode","setOpenBarcode","openModalFee","setOpenModalFee","addonVBBHRelative","setAddonVBBHRelative","updateBtnStatus","setUpdateBtnStatus","_i$ButtonShow","handleChangeListAddon","listAddon","addonBefore","addonAfter","isDisabledDossierRelative","modifiedValue1","formattedValue1","handleChangeValue","getDetailsProfileLPBS","formattedValue2","modifiedValue2","keys","_ltDossierInfo$","_ltDossierInfo$2","_ltDossierInfo$3","splice","join","convertLtDossierWithView","value_key","getTaxCodeFromRepresentID","_res4","_res17","_res17$Object","_res18","_res18$Object","_res3","_res3$Object","_res5","_res6","_res6$Object","_res7","_res7$Object","_res8","_res8$Object","_res9","_res9$Object","_res10","_res10$Object","_listSHCN$find2","_res11","_res11$Object","_res12","_res12$Object","_res13","_res13$Object","_res14","_res14$Object","_res15","_res15$Object","_res16","_res16$Object","handleBlurSD","_ltDossierInfo$4","addon","formatterProfileCodeWithOnBlur","handleBlurVBBH","_res","_res2","_res2$Object","getDetailsProfile","mouseLeaveDelay","_record$ButtonShow","_addonVBBHRelative$fi","_addonVBBHRelative$fi2","_record$ButtonShow2","_record$ButtonShow3","_ltDossierInfo$7","_addonVBBHRelative$fi3","_addonVBBHRelative$fi4","_ltDossierInfo$8","_ltDossierInfo$9","_record$ButtonShow4","convertValue","convertSoDon_VBGoc","_record$ButtonShow5","_record$ButtonShow6","_record$ButtonShow7","_record$ButtonShow8","_record$ButtonShow9","_listSHCN$find3","_listSHCN$find4","_record$ButtonShow10","ButtonCustom","isEdit","disabledTinhPhi","_i$InfoFee","_i$InfoFee2","_i$InfoFee3","_i$InfoFee4","_i$InfoFee5","listResponse","itemFind","handleUpdate","handlePrintReceipts","setColumnTable","_ltDossierInfo$10","_ltDossierInfo$11","_ltDossierInfo$12","RenderModalFee","changeValueTableFee","ModalPrintBarCode","represents","_represents$find","_open$InfoFee$SoDonGo","checkNumber","setCheckNumber","setPrefix","inputRefTachDon","inputRefChuyenDoiDon","inputYCBH","checkValueExistence","checkValueExistenceComon","parts","SoDonGoc","_parts$slice","_open$InfoFee5","IsTachDon","IsChuyenDoiDon","IsBefoQDHopLe","_values$SoDonGoc","_values$SoDonGoc$toSt","_open$listDossierCate","_open$listDossierCate2","_open$listDossierCate3","_open$listDossierCate4","getFieldsValue","replaceAll","NumberEdit","checkSoDonGoc","Group","listChecked","options","OTHER_FEE_SC","shouldUpdate","noStyle","_getFieldValue","_inputRefTachDon$curr","valueSoDonGoc","valueconverSingleCorrectFormat2","_inputRefChuyenDoiDon","Radio","validator","Promise","reject","Error","resolve","OTHER_FEE_KDCN","KQ_TĐND","IsPhanLoai","TachMau","KQ_TĐND_NH","NH_Type","SubType","pattern","getNumberMinMax1_45","OTHER_FEE_NH","TreeSelect","maxTagCount","treeData","TRADEMARK_TYPE","l","newValue","require","bodyCheck","reset","printed","setPrinted","LIST_DOSSIER_PROVIDE","DOSSIER_PROVIDE","divRef","handlePrint","useReactToPrint","content","onAfterPrint","onPrintError","_open$filter","printPdfBarCodeHtml","FromNumber","ToNumber","ltData","itemft","_LIST_DOSSIER_PROVIDE","IsOnline","ApplicationType","itemProvice","FromLine","TotalNumber","rule","callback","dangerouslySetInnerHTML","__html","ContentViewPDF","fileUrl","ListAPIFee","checkSingleIsKN","ApplicationRelated","VBBHRelated","ApplicationOther","ListIDĐKHĐSD","GHLX","LXBB","PBLX","RBLX","SĐLX","ĐCLX","valueChangeOfĐKHĐSD","_listDossierCate$find2","_ref6","DossierCateGUIDID","changeValue","hideVBBHRelative","disabledDossierRelative","PB","RB","valueChangeNotĐKHĐSD","_listDossierCate$find3","_ref8","_ref9","dataCheck","_ref7","changeValueVBBHRelative","KN","RBPB","_ref10","_ref11","_ref12","HinhThuc","handleChangeVBBHRelated","_listDossierCate$find4","_ref14","_ref13","dossierCate","handleFillInputVBBHRelated","handleChangeDossierCateDefault","changeValueDefault","DossierCate","RĐ","listDisableColumsApplicationOther","checkNotDisabledColumnĐLQ","_DossierCate$Code","checkDisable","handleChangeApplicationOther","_listDossierCate$find","_ref5","dataChange","handleApplicationRelated","checkTypeNotModalFee","switchCaseXLQQT","handleFeeDefault","_ref15","CCGĐ","CCĐD","CLCC","CLGĐ","SĐGĐ","SĐĐD","TCGĐ","TCĐD","BSTL","CCTT1","CCTT2","CCTT3","CCTT4","CCTT6","CCTT7","XNQT","GNGH","GNĐB","KTGĐ","KTNV","PTĐD","TC","CB","DT","GH","LX","SB","ĐC","ĐN","ObjectName","handleFormatUpperCase","field","isUpperCase","ItemName","React","openModalPrintBarCode","setOpenModalPrintBarCode","d","o","_res$Object$data$find","_res$Object2$data$fin","useCallback","ProcedureSelect","OwnerInput","positionColOwner","AddressInput","positionColAddress","_event$target3","_event$target4","titleModal","ConfirmAccessFileContainer","default","checkIsduplicatedSoVBBH","NumberCheck","SingleHaveSoVBBHFree","dataIsduplicatedSoVBBH","checkEvent","num","checkDuplicateSubmit","checkDuplicate","isDuplicated","_number","_number2","_number3","_number4","digits","number2","number3","convertToZeroString","_number5","_number6","_number7","_number8","convertSoDonLienQuan_CapSoDonKhac","isBSTL_XNQT","numberCheck","result","_number13","_number14","_number15","_number16","number1","formatInputValue","trim","isNaN","parseInt","padStart","handleSubmitAfterCheck","setWidthProfileCode","_dataTable$filter4","_listDossierCate$find7","_listDossierCate$find8","numberVBBH","handleEnterPressCommon","convertBodyCheckValueExistence","SoVBBH","getRegexNumber","RootNumberInput","valueConvert","converSingleCorrectFormat","CODE_EXAMPLE","SoĐon","SoNam","getNumberMinMax1_10","getNumberMinMax1_20","radio","setRadio","getRegexNumberMoreThan0","SoDonTrcHopLe","SoDonSauHopLe","SoDiem","setTitle","changedValues","fontStyle","NumberItem","SoVanBang_Mon","setTitleYCBH","setRequireYCBH","props","isAll","bgcolor","isFocus","isFl","subComponent","useWindowSize","setSearchSingle","isNewWindow","listID","Style","closeIcon","Divider","ReasonForRefusal"],"sourceRoot":""}