Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

144 Zeilen
6.2 KiB

  1. // material-ui
  2. import {
  3. Grid,
  4. Typography,
  5. Stack,
  6. Button,
  7. } from '@mui/material';
  8. import {
  9. checkIsOnlyOnlinePayment,
  10. } from "utils/Utils";
  11. import { useNavigate } from "react-router-dom";
  12. import * as DateUtils from "utils/DateUtils";
  13. import titleBackgroundImg from 'assets/images/dashboard/gazette-bar.png'
  14. import { FormattedMessage, useIntl } from "react-intl";
  15. const BackgroundHead = {
  16. backgroundImage: `url(${titleBackgroundImg})`,
  17. width: '100%',
  18. height: '100%',
  19. backgroundSize: 'contain',
  20. backgroundRepeat: 'no-repeat',
  21. backgroundColor: '#0C489E',
  22. backgroundPosition: 'right'
  23. }
  24. // ==============================|| DASHBOARD - DEFAULT ||============================== //
  25. const Index = ({ record }) => {
  26. const navigate = useNavigate()
  27. const intl = useIntl();
  28. const isAfter = checkIsOnlyOnlinePayment();
  29. return (
  30. (
  31. <Grid container sx={{ minHeight: '110vh', backgroundColor: '#fff' }} direction="column" justifyContent="flex-start" alignItems="center" >
  32. <Grid item xs={12} width="100%">
  33. <div style={BackgroundHead} width="100%" >
  34. <Stack direction="row" height='70px' >
  35. <Typography ml={15} color='#FFF' variant="h4" sx={{ display: { xs: 'none', sm: 'none', md: 'block' }, pt: 2 }} >
  36. <FormattedMessage id="proofRecord" />
  37. </Typography>
  38. </Stack>
  39. </div>
  40. </Grid>
  41. {/*row 1*/}
  42. <Grid item xs={12} md={12} >
  43. <Grid container justifyContent="flex-start" alignItems="center" >
  44. <center>
  45. <Grid item xs={12} md={8} >
  46. <Typography variant="h4" sx={{ textAlign: "left", ml: 4, mr: 4, mt: 4, borderBottom: "1px solid black" }}>
  47. <FormattedMessage
  48. id={isAfter ? "proofPaymentHeader_office2" : "proofPaymentHeader_office"}
  49. />
  50. </Typography>
  51. <Typography variant="h5" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "left" }}>
  52. <div dangerouslySetInnerHTML={{
  53. __html: intl.formatMessage(
  54. {
  55. id: 'proofPaymentBody_office'
  56. },
  57. {
  58. appNo: record?.appNo,
  59. }
  60. )
  61. }} />
  62. <br />
  63. <div dangerouslySetInnerHTML={{
  64. __html: intl.formatMessage(
  65. {
  66. id: 'proofPaymentBody_office2'
  67. },
  68. )
  69. }} />
  70. <br />
  71. <div dangerouslySetInnerHTML={{
  72. __html: intl.formatMessage(
  73. {
  74. id: 'proofPaymentBody_office3'
  75. }
  76. )
  77. }} />
  78. <br />
  79. <div dangerouslySetInnerHTML={{
  80. __html: intl.formatMessage(
  81. {
  82. id: 'proofPaymentBody_office4'
  83. }
  84. )
  85. }} />
  86. <br />
  87. <div dangerouslySetInnerHTML={{
  88. __html: intl.formatMessage(
  89. {
  90. id: 'proofPaymentBody_office5'
  91. },
  92. {
  93. paymentDeadline: DateUtils.dateFormat(record?.closingDate, intl.formatMessage({id: "dateStrFormat"})),
  94. }
  95. )
  96. }} />
  97. <br />
  98. <div dangerouslySetInnerHTML={{
  99. __html: intl.formatMessage(
  100. {
  101. id: 'proofPaymentBody_office6'
  102. }
  103. )
  104. }} />
  105. </Typography>
  106. <Typography variant="h3" sx={{ ml: 8, mt: 4, mr: 8, textAlign: "center" }}>
  107. <Button
  108. component="span"
  109. variant="contained"
  110. size="large"
  111. sx={{ m: 4 }}
  112. onClick={() => {
  113. navigate("/publicNotice");
  114. }}
  115. >
  116. <FormattedMessage id="backToNoticePage" />
  117. </Button>
  118. </Typography>
  119. </Grid>
  120. </center>
  121. </Grid>
  122. </Grid>
  123. {/*row 2*/}
  124. </Grid >
  125. )
  126. );
  127. };
  128. export default Index;