|
|
@@ -88,7 +88,7 @@ const FormPanel = ({ formData }) => { |
|
|
|
return obj.colCount === responseData.data.column |
|
|
|
})); |
|
|
|
formik.setFieldValue("noOfPages", responseData.data.no_of_page); |
|
|
|
formik.setFieldValue("fee", (data.groupType == "A" ? 6552 * responseData.data.no_of_page : responseData.data.length * colValue)); |
|
|
|
formik.setFieldValue("fee", (data.groupType == "Private Bill" ? 6552 * responseData.data.no_of_page : responseData.data.length * colValue)); |
|
|
|
setWait(false); |
|
|
|
}, |
|
|
|
onError: function () { |
|
|
@@ -214,7 +214,7 @@ const FormPanel = ({ formData }) => { |
|
|
|
type="file" |
|
|
|
accept=".pdf" |
|
|
|
style={{ display: 'none' }} |
|
|
|
disabled={attachments.length >= (formik.values.groupType == "A" ? 2 : 1)} |
|
|
|
disabled={attachments.length >= (formik.values.groupType == "Private Bill" ? 2 : 1)} |
|
|
|
onChange={(event) => { |
|
|
|
readFile(event) |
|
|
|
}} |
|
|
@@ -224,7 +224,7 @@ const FormPanel = ({ formData }) => { |
|
|
|
component="span" |
|
|
|
variant="contained" |
|
|
|
size="large" |
|
|
|
disabled={attachments.length >= (formik.values.groupType == "A" ? 2 : 1)} |
|
|
|
disabled={attachments.length >= (formik.values.groupType == "Private Bill" ? 2 : 1)} |
|
|
|
> |
|
|
|
<Typography variant="h5">Upload Files</Typography> |
|
|
|
</Button> |
|
|
@@ -259,7 +259,7 @@ const FormPanel = ({ formData }) => { |
|
|
|
|
|
|
|
|
|
|
|
{ |
|
|
|
formik.values.groupType == "A" ? |
|
|
|
formik.values.groupType == "Private Bill" ? |
|
|
|
<Grid item xs={12} md={12}> |
|
|
|
<Stack direction="row" sx={{ display: 'flex', alignItems: 'center' }}> |
|
|
|
<TextField |
|
|
|