customercreate

This commit is contained in:
joshikannan
2024-04-29 19:01:57 +05:30
parent 8f54179ba5
commit 8416f56112
2 changed files with 462 additions and 600 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1352,23 +1352,6 @@ const Createorder1 = () => {
Pickup Details Pickup Details
</Typography> </Typography>
<Stack direction={'row'} spacing={1} alignItems={'center'}> <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 <Button
variant="outlined" variant="outlined"
sx={{ sx={{
@@ -1394,64 +1377,6 @@ const Createorder1 = () => {
</Button> </Button>
</Stack> </Stack>
</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>
<Grid item xs={12} sx={{}}> <Grid item xs={12} sx={{}}>