diff --git a/src/assets/images/barcode-number.png b/src/assets/images/barcode-number.png
new file mode 100644
index 0000000..983f1da
Binary files /dev/null and b/src/assets/images/barcode-number.png differ
diff --git a/src/pages/labellingHome/index.js b/src/pages/labellingHome/index.js
index 1d1d00e..8527005 100644
--- a/src/pages/labellingHome/index.js
+++ b/src/pages/labellingHome/index.js
@@ -14,7 +14,7 @@ function LabelingHome() {
},
{
name: 'Widget Label',
- path: '/setup/labeling',
+ path: '/setup/labeling/widget-label',
icon:
}
];
diff --git a/src/pages/widgetLabel/index.js b/src/pages/widgetLabel/index.js
new file mode 100644
index 0000000..81b120e
--- /dev/null
+++ b/src/pages/widgetLabel/index.js
@@ -0,0 +1,327 @@
+import { Box, Grid, TableBody, TableCell, TableRow } from '@mui/material';
+import DashboardNavbar from 'components/DashboardNavbar';
+import DashboardLayout from 'layouts/DashboardLayout';
+import { makeStyles } from '@mui/styles';
+import OutlinedInput from '@mui/material/OutlinedInput';
+import MenuItem from '@mui/material/MenuItem';
+import Select from '@mui/material/Select';
+import React from 'react';
+import SearchBar from 'components/SearchBar';
+import BasicTable from 'components/BasicTable';
+import Barcodeimage from 'assets/images/barcode-number.png';
+import MDButton from 'components/Button';
+
+const useStyles = makeStyles({
+ labelSize: {
+ fontSize: '16px',
+ letterSpacing: '0.01em',
+ color: '#000',
+ marginBottom: '4px'
+ },
+ customLabel: {
+ backgroundColor: '#fff'
+ },
+ buttondiv: {
+ display: 'flex',
+ alignItems: 'center',
+ justifyContent: 'center',
+ margin: '52px 0px'
+ }
+});
+const records = [
+ {
+ warehouse: 'Ipsum',
+ zone: 'Vivera',
+ area: 'Nisi',
+ row: 'Nulla',
+ label: 'Mauris',
+ bay: 'Senectus',
+ barcodenumber: '2085550112',
+ barcodeimage: Barcodeimage
+ },
+ {
+ warehouse: 'Ipsum',
+ zone: 'Vivera',
+ area: 'Nisi',
+ row: 'Nulla',
+ label: 'Mauris',
+ bay: 'Senectus',
+ barcodenumber: '2085550112',
+ barcodeimage: Barcodeimage
+ },
+ {
+ warehouse: 'Ipsum',
+ zone: 'Vivera',
+ area: 'Nisi',
+ row: 'Nulla',
+ label: 'Mauris',
+ bay: 'Senectus',
+ barcodenumber: '2085550112',
+ barcodeimage: Barcodeimage
+ }
+];
+
+const recordsNew = [
+ {
+ warehouse: 'Ipsum',
+ zone: 'Vivera',
+ area: 'Nisi',
+ barcodenumber: '2085550112',
+ barcodeimage: Barcodeimage
+ },
+ {
+ warehouse: 'Ipsum',
+ zone: 'Vivera',
+ area: 'Nisi',
+ barcodenumber: '2085550112',
+ barcodeimage: Barcodeimage
+ },
+ {
+ warehouse: 'Ipsum',
+ zone: 'Vivera',
+ area: 'Nisi',
+ barcodenumber: '2085550112',
+ barcodeimage: Barcodeimage
+ },
+ {
+ warehouse: 'Ipsum',
+ zone: 'Vivera',
+ area: 'Nisi',
+ barcodenumber: '2085550112',
+ barcodeimage: Barcodeimage
+ }
+];
+
+const headCells = [
+ {
+ id: 'inventory',
+ label: 'Inventory'
+ },
+ {
+ id: 'Family',
+ label: 'Family'
+ },
+ {
+ id: 'Subfamily',
+ label: 'Subfamily'
+ },
+ {
+ id: 'Name',
+ label: 'Name'
+ },
+ {
+ id: 'Manufacture',
+ label: 'Manufacture'
+ },
+ {
+ id: 'Size',
+ label: 'Size'
+ },
+ {
+ id: 'barcode number',
+ label: 'Barcode number'
+ },
+ {
+ id: 'Barcode',
+ label: 'Barcode'
+ }
+];
+const headCellsNew = [
+ {
+ id: 'Inventory Name',
+ label: 'Inventory Name'
+ },
+ {
+ id: 'Item Name',
+ label: 'Item Name'
+ },
+ {
+ id: 'Item Description',
+ label: 'Item Description'
+ },
+ {
+ id: 'Barcode Number',
+ label: 'Barcode Number'
+ },
+ {
+ id: 'Barcode',
+ label: 'Barcode'
+ }
+];
+function WidgetLabel() {
+ const classes = useStyles();
+ const [personName, setPersonName] = React.useState([]);
+
+ const handleChange = (event) => {
+ const {
+ target: { value }
+ } = event;
+ setPersonName(
+ // On autofill we get a stringified value.
+ typeof value === 'string' ? value.split(',') : value
+ );
+ };
+ return (
+ <>
+
+
+
+
+
+
+ Select Inventory
+
+
+ }
+ renderValue={(selected) => {
+ if (selected.length === 0) {
+ return 'Placeholder';
+ }
+
+ return selected.join(', ');
+ }}
+ inputProps={{ 'aria-label': 'Without label' }}
+ sx={{
+ width: '100%'
+ }}
+ onChange={handleChange}
+ >
+
+
+
+
+
+
+
+ Select Family
+
+
+ }
+ renderValue={(selected) => {
+ if (selected.length === 0) {
+ return 'Placeholder';
+ }
+
+ return selected.join(', ');
+ }}
+ inputProps={{ 'aria-label': 'Without label' }}
+ sx={{
+ width: '100%'
+ }}
+ onChange={handleChange}
+ >
+
+
+
+
+
+
+
+ Select Sub Family
+
+
+ }
+ renderValue={(selected) => {
+ if (selected.length === 0) {
+ return 'Placeholder';
+ }
+
+ return selected.join(', ');
+ }}
+ inputProps={{ 'aria-label': 'Without label' }}
+ sx={{
+ width: '100%'
+ }}
+ onChange={handleChange}
+ >
+
+
+
+
+
+
+
+ Search Keyword
+
+
+
+
+
+
+
+
+
+ {records &&
+ records.map((item) => (
+
+ {item.warehouse}
+ {item.zone}
+ {item.area}
+ {item.row}
+ {item.label}
+ {item.bay}
+ {item.barcodenumber}
+
+
+
+
+ ))}
+
+
+
+
+
+
+ {recordsNew &&
+ recordsNew.map((item) => (
+
+ {item.warehouse}
+ {item.zone}
+ {item.area}
+ {item.barcodenumber}
+
+
+
+
+ ))}
+
+
+
+
+ {'Print Labels'}
+
+
+
+ >
+ );
+}
+
+export default WidgetLabel;
diff --git a/src/routes/index.js b/src/routes/index.js
index 7599d94..5ee232e 100644
--- a/src/routes/index.js
+++ b/src/routes/index.js
@@ -58,6 +58,7 @@ import SetupInventory from 'pages/setupInventory';
import HomeIcon from 'assets/images/HomeIcon';
import SetupIcon from 'assets/images/SetupIcon';
import AddNewProduct from '../pages/addNewProduct';
+import WidgetLabel from 'pages/widgetLabel';
// Images
// import profilePicture from 'assets/images/team-3.jpg';
@@ -194,6 +195,13 @@ const protectedRoutes = [
route: '/setup/warehouse/edit-warehouse',
hide: true,
component:
+ },
+ {
+ name: 'Widget Label',
+ key: 'widget-label',
+ route: '/setup/labeling/widget-label',
+ hide: true,
+ component:
}
]
}