diff --git a/src/Pages/SupplierProductMapping/SuplierProductMappingForm.jsx b/src/Pages/SupplierProductMapping/SuplierProductMappingForm.jsx index c651c95..6d320f9 100644 --- a/src/Pages/SupplierProductMapping/SuplierProductMappingForm.jsx +++ b/src/Pages/SupplierProductMapping/SuplierProductMappingForm.jsx @@ -13,6 +13,7 @@ import { getSupplaierIdBasedProducts } from '../../Features/SupplierProductMapping/SupplierProductMapping.js'; import { getsupplierBasedOnCmpId, getsupplierBasedOnCmpIdBrId } from '../../Features/SupplierMaster/SupplierMaster.js'; +import "../../Pages/SupplierProductMapping/SupplierProductMapping.scss" const SupplierProductMappingForm = ({ isModalOpen = false, @@ -36,6 +37,8 @@ const SupplierProductMappingForm = ({ const [modalSelectedProduct, setModalSelectedProduct] = useState(null); const [tabledata, setTabledata] = useState([]); const [filteredTableData, setFilteredTableData] = useState([]); + const [currentPage, setCurrentPage] = useState(1); + const [pageSize, setPageSize] = useState(8); const details = { name: "tamil", address: { @@ -199,7 +202,9 @@ const SupplierProductMappingForm = ({ key: "ProdId", align: "center", width: "80px", - render: (text, object, index) => {index + 1}, + render: (text, object, index) => ( + {(currentPage - 1) * pageSize + index + 1} + ), }, { title: "Product Name", @@ -274,7 +279,7 @@ const SupplierProductMappingForm = ({ isOnchanges={false} alphabetfilter="Yes" /> -
@@ -293,12 +298,22 @@ const SupplierProductMappingForm = ({ )}
-
+
{ + setCurrentPage(page); + setPageSize(size); + }, + }} + ownPagination={true} rowKey="ProdId" />