| @@ -37,6 +37,8 @@ import { | |||||
| import CloseIcon from '@mui/icons-material/Close'; | import CloseIcon from '@mui/icons-material/Close'; | ||||
| import EditNoteIcon from '@mui/icons-material/EditNote'; | import EditNoteIcon from '@mui/icons-material/EditNote'; | ||||
| import DownloadIcon from '@mui/icons-material/Download'; | import DownloadIcon from '@mui/icons-material/Download'; | ||||
| import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | |||||
| import {ThemeProvider} from "@emotion/react"; | |||||
| // ==============================|| DASHBOARD - DEFAULT ||============================== // | // ==============================|| DASHBOARD - DEFAULT ||============================== // | ||||
| const ApplicationDetailCard = ( | const ApplicationDetailCard = ( | ||||
| { applicationDetailData, | { applicationDetailData, | ||||
| @@ -159,20 +161,18 @@ const ApplicationDetailCard = ( | |||||
| </Button> | </Button> | ||||
| : null | : null | ||||
| } | } | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| // size="large" | |||||
| variant="contained" | variant="contained" | ||||
| onClick={cancelledClick()} | onClick={cancelledClick()} | ||||
| color="edit" | |||||
| disabled={currentApplicationDetailData.status !== "submitted"} | disabled={currentApplicationDetailData.status !== "submitted"} | ||||
| title={"取消"} | title={"取消"} | ||||
| sx={{ | |||||
| textTransform: 'capitalize', | |||||
| alignItems: 'end', | |||||
| backgroundColor: '#ffa733' | |||||
| }}> | |||||
| <CloseIcon sx={{ mb: 0.5 }} /> | |||||
| <Typography ml={1} variant="h5"> 取消</Typography> | |||||
| > | |||||
| <CloseIcon sx={{mr:1}} /> | |||||
| 取消 | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Stack> | </Stack> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -520,15 +520,17 @@ const ApplicationDetailCard = ( | |||||
| </FormControl> | </FormControl> | ||||
| </Grid> | </Grid> | ||||
| <Grid item xs={12} sm={12} md={3} lg={3} > | <Grid item xs={12} sm={12} md={3} lg={3} > | ||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <Button | <Button | ||||
| variant="contained" | variant="contained" | ||||
| onClick={onDownloadClick()} | onClick={onDownloadClick()} | ||||
| title="下載" | title="下載" | ||||
| sx={{justifyContent: 'flex-end'}} | |||||
| > | |||||
| <DownloadIcon sx={{ mb: 0.5 }} /> | |||||
| <Typography sx={{ ml: 1 }} variant="h5">下載</Typography> | |||||
| color="save" | |||||
| > | |||||
| <DownloadIcon sx={{ mr:1 }} /> | |||||
| 下載 | |||||
| </Button> | </Button> | ||||
| </ThemeProvider> | |||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| </Grid> | </Grid> | ||||
| @@ -16,9 +16,10 @@ import { | |||||
| DialogTitle, | DialogTitle, | ||||
| FormLabel, | FormLabel, | ||||
| } from '@mui/material'; | } from '@mui/material'; | ||||
| import { Grid } from "../../../../node_modules/@mui/material/index"; | |||||
| import { useFormik,FormikProvider } from 'formik'; | import { useFormik,FormikProvider } from 'formik'; | ||||
| import * as yup from 'yup'; | import * as yup from 'yup'; | ||||
| import {PNSPS_BUTTON_THEME} from "../../../themes/buttonConst"; | |||||
| import {ThemeProvider} from "@emotion/react"; | |||||
| const StatusChangeDialog = (props) => { | const StatusChangeDialog = (props) => { | ||||
| @@ -26,7 +27,7 @@ const StatusChangeDialog = (props) => { | |||||
| useEffect(() => { | useEffect(() => { | ||||
| console.log(Object.keys(!props.selectedGazetteGroup).length) | console.log(Object.keys(!props.selectedGazetteGroup).length) | ||||
| if(props.getStatus == "cancel"){ | |||||
| if(props.getStatus === "cancel"){ | |||||
| setStatus("取消") | setStatus("取消") | ||||
| } | } | ||||
| }, [props.getStatus]); | }, [props.getStatus]); | ||||
| @@ -58,42 +59,44 @@ const StatusChangeDialog = (props) => { | |||||
| maxWidth={'xs'} | maxWidth={'xs'} | ||||
| > | > | ||||
| <DialogTitle > | <DialogTitle > | ||||
| <Grid container> | |||||
| <Grid item> | |||||
| <Stack direction="row" height='70px' justifyContent="flex-start" alignItems="center"> | |||||
| <Typography variant="h4" color="error"> | |||||
| {status}公共啟事 | |||||
| </Typography> | |||||
| </Stack> | |||||
| </Grid> | |||||
| </Grid> | |||||
| <Typography variant="h4" color="error"> | |||||
| {status}公共啟事 | |||||
| </Typography> | |||||
| </DialogTitle> | </DialogTitle> | ||||
| <FormikProvider value={formik}> | <FormikProvider value={formik}> | ||||
| <form> | <form> | ||||
| <DialogContent> | <DialogContent> | ||||
| <DialogContentText> | <DialogContentText> | ||||
| <Grid container direction="row" justifyContent="center" alignItems="center"> | |||||
| <Grid item xs={12} md={8} lg={8} sx={{mb: 5,}}> | |||||
| <FormLabel sx={{fontSize: "18px", color:"#000000",textAlign:"center"}}> | |||||
| <Typography variant="h5">確定{status}公共啟事?</Typography> | |||||
| </FormLabel> | |||||
| </Grid> | |||||
| </Grid> | |||||
| <FormLabel sx={{fontSize: "18px", color:"#000000",textAlign:"center"}}> | |||||
| <Typography variant="h5">確定{status}公共啟事?</Typography> | |||||
| </FormLabel> | |||||
| </DialogContentText> | </DialogContentText> | ||||
| </DialogContent> | </DialogContent> | ||||
| </form> | </form> | ||||
| </FormikProvider> | </FormikProvider> | ||||
| <Stack direction="row" justifyContent="space-around"> | |||||
| <Stack direction="row" justifyContent="space-around" sx={{mb:2}}> | |||||
| <ThemeProvider theme={PNSPS_BUTTON_THEME}> | |||||
| <DialogActions> | <DialogActions> | ||||
| <Button variant="contained" onClick={props.handleClose} autoFocus> | |||||
| <Typography variant="h5">取消</Typography> | |||||
| <Button | |||||
| variant="contained" | |||||
| onClick={props.handleClose} | |||||
| autoFocus | |||||
| color="delete" | |||||
| > | |||||
| 取消 | |||||
| </Button> | </Button> | ||||
| </DialogActions> | </DialogActions> | ||||
| <DialogActions> | <DialogActions> | ||||
| <Button variant="contained" color="error" onClick={acceptedHandle()} autoFocus > | |||||
| <Typography variant="h5">確定</Typography> | |||||
| <Button | |||||
| variant="contained" | |||||
| color="save" | |||||
| onClick={acceptedHandle()} | |||||
| autoFocus | |||||
| > | |||||
| 確定 | |||||
| </Button> | </Button> | ||||
| </DialogActions> | </DialogActions> | ||||
| </ThemeProvider> | |||||
| </Stack> | </Stack> | ||||
| </Dialog> | </Dialog> | ||||
| ); | ); | ||||
| @@ -52,7 +52,6 @@ const DashboardDefault = () => { | |||||
| const title = appNo + ", " + gazetteIssue + ", " + issueNum | const title = appNo + ", " + gazetteIssue + ", " + issueNum | ||||
| const _sx = { | const _sx = { | ||||
| padding: "4 2 4 2", | |||||
| boxShadow: 1, | boxShadow: 1, | ||||
| border: 1, | border: 1, | ||||
| borderColor: '#DDD', | borderColor: '#DDD', | ||||
| @@ -177,7 +176,7 @@ const DashboardDefault = () => { | |||||
| </Box> | </Box> | ||||
| </Grid> | </Grid> | ||||
| <Grid item width="75%"> | <Grid item width="75%"> | ||||
| <Box xs={12} mt={3} sx={{ border: '0px groove grey', borderRadius: '10px', ..._sx }}> | |||||
| <Box xs={12} mt={3} sx={{ border: '0px groove grey', borderRadius: '10px', ..._sx, mb:2 }}> | |||||
| <TabTableDetail | <TabTableDetail | ||||
| proofList={proofList} | proofList={proofList} | ||||
| paymentList={paymentList} | paymentList={paymentList} | ||||
| @@ -49,7 +49,7 @@ const PublicNotice = ({ proofList, paymentList }) => { | |||||
| !onReady ? | !onReady ? | ||||
| <LoadingComponent /> | <LoadingComponent /> | ||||
| : | : | ||||
| <Grid container sx={{ minHeight: '40vh', p:2}}> | |||||
| <Grid container> | |||||
| {/*col 2*/} | {/*col 2*/} | ||||
| <Grid item xs={12}> | <Grid item xs={12}> | ||||
| <TabContext value={selectedTab}> | <TabContext value={selectedTab}> | ||||
| @@ -55,7 +55,7 @@ export const PNSPS_BUTTON_THEME = createTheme({ | |||||
| root: { | root: { | ||||
| fontSize: '1.2rem', | fontSize: '1.2rem', | ||||
| fontWeight: '600', | fontWeight: '600', | ||||
| height: '40px', | |||||
| height: '45px', | |||||
| width: '40vw', // Default width for xs screen sizes | width: '40vw', // Default width for xs screen sizes | ||||
| '@media (min-width: 600px)': { // sm breakpoint | '@media (min-width: 600px)': { // sm breakpoint | ||||
| width: '20vw', | width: '20vw', | ||||
| @@ -64,10 +64,12 @@ export const PNSPS_BUTTON_THEME = createTheme({ | |||||
| width: '15vw', | width: '15vw', | ||||
| }, | }, | ||||
| '@media (min-width: 1280px)': { // lg breakpoint | '@media (min-width: 1280px)': { // lg breakpoint | ||||
| width: '7vw', | |||||
| width: '9vw', | |||||
| }, | }, | ||||
| textTransform: "none", | textTransform: "none", | ||||
| alignItems: 'center' | |||||
| display: 'flex', | |||||
| alignItems: 'center', | |||||
| justifyContent: 'center', | |||||
| }, | }, | ||||
| }, | }, | ||||
| }, | }, | ||||
| @@ -106,7 +108,7 @@ export const PNSPS_LONG_BUTTON_THEME = createTheme({ | |||||
| contrastText: '#FFFFFF', | contrastText: '#FFFFFF', | ||||
| }, | }, | ||||
| edit:{ | edit:{ | ||||
| main: '#F3AF2B', | |||||
| main: '#ffa733', | |||||
| contrastText: '#FFFFFF', | contrastText: '#FFFFFF', | ||||
| }, | }, | ||||
| exportExcel:{ | exportExcel:{ | ||||
| @@ -129,7 +131,7 @@ export const PNSPS_LONG_BUTTON_THEME = createTheme({ | |||||
| root: { | root: { | ||||
| fontSize: '1.2rem', | fontSize: '1.2rem', | ||||
| fontWeight: '600', | fontWeight: '600', | ||||
| height: '40px', | |||||
| height: '45px', | |||||
| width: '60vw', // Default width for xs screen sizes | width: '60vw', // Default width for xs screen sizes | ||||
| '@media (min-width: 600px)': { // sm breakpoint | '@media (min-width: 600px)': { // sm breakpoint | ||||
| width: '33vw', | width: '33vw', | ||||
| @@ -141,7 +143,9 @@ export const PNSPS_LONG_BUTTON_THEME = createTheme({ | |||||
| width: '16vw', | width: '16vw', | ||||
| }, | }, | ||||
| textTransform: "none", | textTransform: "none", | ||||
| alignItems: 'center' | |||||
| display: 'flex', | |||||
| alignItems: 'center', | |||||
| justifyContent: 'center', | |||||
| }, | }, | ||||
| }, | }, | ||||
| }, | }, | ||||
| @@ -366,6 +366,13 @@ export const PNSPS_THEME = createTheme({ | |||||
| overflow: 'visible' | overflow: 'visible' | ||||
| } | } | ||||
| } | } | ||||
| }, | |||||
| MuiTabPanel:{ | |||||
| styleOverrides:{ | |||||
| root:{ | |||||
| padding: 0 | |||||
| } | |||||
| } | |||||
| } | } | ||||
| }, | }, | ||||
| }); | }); | ||||