|
|
@@ -17,7 +17,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria,issueComboData |
|
|
|
}) => { |
|
|
|
|
|
|
|
const [type, setType] = React.useState([]); |
|
|
|
const [status, setStatus] = React.useState({ key: 0, label: 'All', type: 'all' }); |
|
|
|
const [status, setStatus] = React.useState(ComboData.proofStatus[0]); |
|
|
|
const [issueSelected, setIssueSelected] = React.useState({}); |
|
|
|
const [issueCombo, setIssueCombo] = React.useState([]); |
|
|
|
const [groupSelected, setGroupSelected] = React.useState({}); |
|
|
@@ -42,7 +42,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria,issueComboData |
|
|
|
gazettGroup: groupSelected?.type, |
|
|
|
dateFrom: data.dateFrom, |
|
|
|
dateTo: data.dateTo, |
|
|
|
contact: data.contact, |
|
|
|
//contact: data.contact, |
|
|
|
replyed: (status?.type && status?.type != 'all') ? status?.type : "", |
|
|
|
}; |
|
|
|
applySearch(temp); |
|
|
@@ -57,8 +57,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria,issueComboData |
|
|
|
|
|
|
|
function resetForm() { |
|
|
|
setType([]); |
|
|
|
setStatus({ key: 0, label: 'All', type: 'all' }); |
|
|
|
setOrgSelected({}); |
|
|
|
setStatus(ComboData.proofStatus[0]); |
|
|
|
setIssueSelected({}); |
|
|
|
setGroupSelected({}); |
|
|
|
reset(); |
|
|
@@ -129,9 +128,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria,issueComboData |
|
|
|
inputValue={(issueSelected?.id) ? getIssueLabel(issueSelected) : ""} |
|
|
|
getOptionLabel={(option)=>getIssueLabel(option)} |
|
|
|
onChange={(event, newValue) => { |
|
|
|
if (newValue !== null) { |
|
|
|
setIssueSelected(newValue); |
|
|
|
} |
|
|
|
setIssueSelected(newValue); |
|
|
|
}} |
|
|
|
renderInput={(params) => ( |
|
|
|
<TextField {...params} |
|
|
@@ -154,9 +151,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria,issueComboData |
|
|
|
inputValue={(groupSelected?.labelCht)?groupSelected?.labelCht:""} |
|
|
|
getOptionLabel={(option)=>option.labelCht} |
|
|
|
onChange={(event, newValue) => { |
|
|
|
if (newValue !== null) { |
|
|
|
setGroupSelected(newValue); |
|
|
|
} |
|
|
|
setGroupSelected(newValue); |
|
|
|
}} |
|
|
|
renderInput={(params) => ( |
|
|
|
<TextField {...params} |
|
|
@@ -205,7 +200,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria,issueComboData |
|
|
|
/> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
{/* <Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
<TextField |
|
|
|
fullWidth |
|
|
|
{...register("contact")} |
|
|
@@ -217,7 +212,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria,issueComboData |
|
|
|
}} |
|
|
|
/> |
|
|
|
|
|
|
|
</Grid> |
|
|
|
</Grid> */} |
|
|
|
|
|
|
|
<Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
<Autocomplete |
|
|
|