customercreate
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1352,23 +1352,6 @@ const Createorder1 = () => {
|
||||
Pickup Details
|
||||
</Typography>
|
||||
<Stack direction={'row'} spacing={1} alignItems={'center'}>
|
||||
{/* <Typography>Customer</Typography>
|
||||
<Switch
|
||||
size="small"
|
||||
checked={pickupswitch}
|
||||
onChange={(e, val) => {
|
||||
if (val) {
|
||||
setPickupswitch(true);
|
||||
setDeliverytype('B');
|
||||
setTenantinfo({});
|
||||
} else {
|
||||
setPickupswitch(false);
|
||||
setTenantinfo({});
|
||||
setDeliverytype('C');
|
||||
}
|
||||
}}
|
||||
/>
|
||||
<Typography>Business</Typography> */}
|
||||
<Button
|
||||
variant="outlined"
|
||||
sx={{
|
||||
@@ -1394,64 +1377,6 @@ const Createorder1 = () => {
|
||||
</Button>
|
||||
</Stack>
|
||||
</Stack>
|
||||
{/* new1 */}
|
||||
{/* <Autocomplete
|
||||
disabled={!isLocation}
|
||||
fullWidth
|
||||
disablePortal
|
||||
id="combo-box-demo"
|
||||
// options={customerlist}
|
||||
options={clientdetailarr}
|
||||
getOptionLabel={(option) => `${option.firstname} (${option.contactno})`}
|
||||
sx={{ mt: 2, mb: 1 }}
|
||||
renderInput={(params) => (
|
||||
<TextField
|
||||
{...params}
|
||||
label="Search"
|
||||
onChange={(e) => {
|
||||
setSearchCustList(e.target.value);
|
||||
}}
|
||||
InputProps={{
|
||||
...params.InputProps,
|
||||
inputProps: {
|
||||
...params.inputProps,
|
||||
maxLength: 10
|
||||
}
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
onChange={(e, val, reason) => {
|
||||
if (val) {
|
||||
console.log('pickcustNew', val);
|
||||
setStartPoint({ latitude: val.latitude, longitude: val.longitude });
|
||||
setPickCust(val);
|
||||
setAddId1(1);
|
||||
setSearchCustList('');
|
||||
}
|
||||
if (reason == 'clear') {
|
||||
setSearchCustList('');
|
||||
}
|
||||
}}
|
||||
noOptionsText={
|
||||
/^[0-9]{10}$/.test(searchCustList) ? (
|
||||
<Stack sx={{ width: '100%', display: 'flex', alignItems: 'end', justifyContent: 'end' }}>
|
||||
<Chip
|
||||
label={'OK'}
|
||||
sx={{
|
||||
width: 50,
|
||||
cursor: 'pointer',
|
||||
'&:hover': { background: theme.palette.primary.main, color: 'white' }
|
||||
}}
|
||||
onClick={() => {
|
||||
setPickCust({ ...pickCust, contactno: searchCustList });
|
||||
handleOkClick1();
|
||||
setSearchCustList('');
|
||||
}}
|
||||
/>
|
||||
</Stack>
|
||||
) : null
|
||||
}
|
||||
/> */}
|
||||
</Grid>
|
||||
|
||||
<Grid item xs={12} sx={{}}>
|
||||
|
||||
Reference in New Issue
Block a user