|
|
@@ -12,6 +12,8 @@ import * as React from "react"; |
|
|
|
import * as ComboData from "utils/ComboData"; |
|
|
|
import * as DateUtils from "utils/DateUtils"; |
|
|
|
import * as FormatUtils from "utils/FormatUtils"; |
|
|
|
import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; |
|
|
|
import {ThemeProvider} from "@emotion/react"; |
|
|
|
// ==============================|| DASHBOARD - DEFAULT ||============================== // |
|
|
|
|
|
|
|
|
|
|
@@ -105,7 +107,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData |
|
|
|
|
|
|
|
{/*row 2*/} |
|
|
|
<Grid container alignItems={"center"}> |
|
|
|
<Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
<Grid item xs={12} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
<TextField |
|
|
|
fullWidth |
|
|
|
{...register("refNo")} |
|
|
@@ -118,7 +120,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={12} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
<TextField |
|
|
|
fullWidth |
|
|
|
{...register("code")} |
|
|
@@ -131,7 +133,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={12} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
<Autocomplete |
|
|
|
{...register("issueId")} |
|
|
|
disablePortal |
|
|
@@ -177,40 +179,48 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData |
|
|
|
/> |
|
|
|
</Grid> */} |
|
|
|
|
|
|
|
<Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
<TextField |
|
|
|
fullWidth |
|
|
|
{...register("dateFrom")} |
|
|
|
id="dateFrom" |
|
|
|
type="date" |
|
|
|
label="校對日期(從)" |
|
|
|
defaultValue={searchCriteria.dateFrom} |
|
|
|
InputProps={{ inputProps: { max: maxDate } }} |
|
|
|
onChange={(newValue) => { |
|
|
|
setMinDate(DateUtils.dateStr(newValue)); |
|
|
|
}} |
|
|
|
InputLabelProps={{ |
|
|
|
shrink: true |
|
|
|
}} |
|
|
|
/> |
|
|
|
</Grid> |
|
|
|
<Grid item xs={12} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
<Grid container> |
|
|
|
<Grid item xs={5.25} s={5.25} md={5.25} lg={5.5}> |
|
|
|
<TextField |
|
|
|
fullWidth |
|
|
|
{...register("dateFrom")} |
|
|
|
id="dateFrom" |
|
|
|
type="date" |
|
|
|
label="校對日期(從)" |
|
|
|
defaultValue={searchCriteria.dateFrom} |
|
|
|
InputProps={{ inputProps: { max: maxDate } }} |
|
|
|
onChange={(newValue) => { |
|
|
|
setMinDate(DateUtils.dateStr(newValue)); |
|
|
|
}} |
|
|
|
InputLabelProps={{ |
|
|
|
shrink: true |
|
|
|
}} |
|
|
|
/> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
<TextField |
|
|
|
fullWidth |
|
|
|
InputLabelProps={{ |
|
|
|
shrink: true |
|
|
|
}} |
|
|
|
{...register("dateTo")} |
|
|
|
InputProps={{ inputProps: { min: minDate } }} |
|
|
|
onChange={(newValue) => { |
|
|
|
setMaxDate(DateUtils.dateStr(newValue)); |
|
|
|
}} |
|
|
|
id="dateTo" |
|
|
|
type="date" |
|
|
|
label="校對日期(到)" |
|
|
|
defaultValue={searchCriteria.dateTo} |
|
|
|
/> |
|
|
|
<Grid item xs={1.5} s={1.5} md={1.5} lg={1} sx={{mt:1.3, display: 'flex', justifyContent:"center", alignItems: 'flex-start'}}> |
|
|
|
到 |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Grid item xs={5.25} s={5.25} md={5.25} lg={5.5}> |
|
|
|
<TextField |
|
|
|
fullWidth |
|
|
|
InputLabelProps={{ |
|
|
|
shrink: true |
|
|
|
}} |
|
|
|
{...register("dateTo")} |
|
|
|
InputProps={{ inputProps: { min: minDate } }} |
|
|
|
onChange={(newValue) => { |
|
|
|
setMaxDate(DateUtils.dateStr(newValue)); |
|
|
|
}} |
|
|
|
id="dateTo" |
|
|
|
type="date" |
|
|
|
//label="校對日期(到)" |
|
|
|
defaultValue={searchCriteria.dateTo} |
|
|
|
/> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
{/* <Grid item xs={9} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
@@ -227,10 +237,11 @@ 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={12} s={6} md={5} lg={3} sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
<Autocomplete |
|
|
|
{...register("status")} |
|
|
|
disablePortal={false} |
|
|
|
size="small" |
|
|
|
id="status" |
|
|
|
filterOptions={(options) => options} |
|
|
|
options={ComboData.proofStatus} |
|
|
@@ -258,32 +269,25 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData |
|
|
|
|
|
|
|
{/*last row*/} |
|
|
|
<Grid container maxWidth justifyContent="flex-end"> |
|
|
|
|
|
|
|
<Grid item sx={{ ml: 3, mr: 3, mb: 3, mt: 3 }}> |
|
|
|
<ThemeProvider theme={PNSPS_BUTTON_THEME}> |
|
|
|
<Grid item sx={{ mr: 3, mb: 3 }}> |
|
|
|
<Button |
|
|
|
size="large" |
|
|
|
variant="contained" |
|
|
|
onClick={resetForm} |
|
|
|
sx={{ |
|
|
|
textTransform: 'capitalize', |
|
|
|
alignItems: 'end' |
|
|
|
}}> |
|
|
|
<Typography variant="h5">重置</Typography> |
|
|
|
> |
|
|
|
重置 |
|
|
|
</Button> |
|
|
|
</Grid> |
|
|
|
|
|
|
|
<Grid item sx={{ ml: 3, mr: 3, mb: 3, mt: 3 }}> |
|
|
|
<Grid item sx={{ ml: 3, mr: 3, mb: 3 }}> |
|
|
|
<Button |
|
|
|
size="large" |
|
|
|
variant="contained" |
|
|
|
type="submit" |
|
|
|
sx={{ |
|
|
|
textTransform: 'capitalize', |
|
|
|
alignItems: 'end' |
|
|
|
}}> |
|
|
|
<Typography variant="h5">提交</Typography> |
|
|
|
> |
|
|
|
提交 |
|
|
|
</Button> |
|
|
|
</Grid> |
|
|
|
</ThemeProvider> |
|
|
|
</Grid> |
|
|
|
</form> |
|
|
|
</MainCard> |
|
|
|