Added Qr Funtionalites
This commit is contained in:
parent
5bcd631700
commit
ff1aa2a609
|
|
@ -76,6 +76,8 @@ import AddAllProductsButton from './AddAllProductGrid.jsx';
|
||||||
import SettingsIconWithModal from './SettingsIconWithModal.jsx';
|
import SettingsIconWithModal from './SettingsIconWithModal.jsx';
|
||||||
import VirtualizedTable from './VirtualizedTable.jsx';
|
import VirtualizedTable from './VirtualizedTable.jsx';
|
||||||
import { useDebounce } from './UseDebounce.jsx';
|
import { useDebounce } from './UseDebounce.jsx';
|
||||||
|
import { isMobile } from 'react-device-detect';
|
||||||
|
import BarCodeScan from '../../Services/BarCodeScan.jsx';
|
||||||
|
|
||||||
const subDirectory = import.meta.env.BASE_URL;
|
const subDirectory = import.meta.env.BASE_URL;
|
||||||
const EditableContext = React.createContext(null);
|
const EditableContext = React.createContext(null);
|
||||||
|
|
@ -3813,6 +3815,28 @@ const StockForm = ({ formType }) => {
|
||||||
style={{ width: '250px' }}
|
style={{ width: '250px' }}
|
||||||
></AutoComplete>
|
></AutoComplete>
|
||||||
</FloatLabel>
|
</FloatLabel>
|
||||||
|
{/* <Tooltip title={'BarCode/QrCode'} placement={'top'}>
|
||||||
|
<BsUpcScan
|
||||||
|
strokeWidth={0.5}
|
||||||
|
color="#000"
|
||||||
|
style={{
|
||||||
|
fontSize: '16px',
|
||||||
|
color: scanner ? '#52c41a' : '#888',
|
||||||
|
fontWeight: '600',
|
||||||
|
}}
|
||||||
|
className="product-scan-Icon"
|
||||||
|
onClick={handleScanSearch}
|
||||||
|
/>
|
||||||
|
</Tooltip> */}
|
||||||
|
{isMobile ? (
|
||||||
|
<div className="IsmoBileBarcode">
|
||||||
|
<BarCodeScan
|
||||||
|
onScan={(value) => {
|
||||||
|
debouncedScannerSearch(value);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
<Tooltip title={'BarCode/QrCode'} placement={'top'}>
|
<Tooltip title={'BarCode/QrCode'} placement={'top'}>
|
||||||
<BsUpcScan
|
<BsUpcScan
|
||||||
strokeWidth={0.5}
|
strokeWidth={0.5}
|
||||||
|
|
@ -3826,6 +3850,7 @@ const StockForm = ({ formType }) => {
|
||||||
onClick={handleScanSearch}
|
onClick={handleScanSearch}
|
||||||
/>
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<Tooltip
|
<Tooltip
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue