diff --git a/src/pages/Payment/Details_GLD/DataGrid.js b/src/pages/Payment/Details_GLD/DataGrid.js
index 3bc24fd..15d2bcb 100644
--- a/src/pages/Payment/Details_GLD/DataGrid.js
+++ b/src/pages/Payment/Details_GLD/DataGrid.js
@@ -2,10 +2,14 @@
import {
Typography,
} from '@mui/material';
-
+import {
+ isORGLoggedIn,
+ } from "utils/Utils";
import * as React from 'react';
import * as FormatUtils from "utils/FormatUtils"
import { FiDataGrid } from "components/FiDataGrid";
+import * as DateUtils from "utils/DateUtils"
+
// ==============================|| EVENT TABLE ||============================== //
export default function SearchPublicNoticeTable({ recordList }) {
@@ -23,14 +27,28 @@ export default function SearchPublicNoticeTable({ recordList }) {
}, [recordList]);
const columns = [
+ {
+ field: "id",
+ headerName: "No.",
+ filterable: false,
+ renderCell: (params) => {
+ return (params.row.index_number);
+
+ }
+ },
{
id: 'appNo',
field: 'appNo',
- headerName: 'App No.',
+ headerName:'Particulars',
flex: 1,
renderCell: (params) => {
- let appNo = params?.row?.appNo??"";
- return
{appNo}
{params?.row?.remarks??""}
+ let appNo = params.row.appNo;
+ // console.log(params)
+ return Gazette Supplement No. 6
+ {isORGLoggedIn()?<>Care Of: {params.row.careOf}
>:null}
+ App No: {appNo}
+ Issue Date: {DateUtils.dateStr(params.row.issueDate)}
+ Length: {params.row.length+ " cm"}
},
},
{
@@ -48,7 +66,7 @@ export default function SearchPublicNoticeTable({ recordList }) {
import('components/MainCard')));
const LoadingComponent = Loadable(React.lazy(() => import('pages/extra-pages/LoadingComponent')));
+import DownloadIcon from '@mui/icons-material/Download';
// ==============================|| DASHBOARD - DEFAULT ||============================== //
-const PaymentDetails = ({ formData, }) => {
+const PaymentDetails = ({ formData,doPrint }) => {
const [data, setData] = React.useState({});
const [onReady, setOnReady] = React.useState(false);
@@ -51,13 +53,13 @@ const PaymentDetails = ({ formData, }) => {
diff --git a/src/pages/Payment/Details_GLD/index.js b/src/pages/Payment/Details_GLD/index.js
index 3db673c..236ed56 100644
--- a/src/pages/Payment/Details_GLD/index.js
+++ b/src/pages/Payment/Details_GLD/index.js
@@ -4,7 +4,7 @@ import {
Typography,
Stack,
Box,
- Button
+ // Button
} from '@mui/material';
import * as UrlUtils from "utils/ApiPathConst";
import * as React from "react";
@@ -37,20 +37,20 @@ const Index = () => {
const [record, setRecord] = React.useState();
const [itemList, setItemList] = React.useState([]);
const [onReady, setOnReady] = React.useState(false);
- const [detailsOrder, setDetailsOrder] = React.useState(2);
+ // const [detailsOrder, setDetailsOrder] = React.useState(2);
React.useEffect(() => {
loadForm();
- window.addEventListener('resize', handleResize);
+ // window.addEventListener('resize', handleResize);
}, []);
React.useEffect(() => {
setOnReady(true);
}, [record]);
- const handleResize = () => {
- setDetailsOrder(window.innerWidth > 1023 ? 2 : -1);
- }
+ // const handleResize = () => {
+ // setDetailsOrder(window.innerWidth > 1023 ? 2 : -1);
+ // }
const doPrint = () => {
// window.print();
@@ -96,21 +96,12 @@ const Index = () => {
{/*row 1*/}
-
-
-
-
-
-
-
-
+
+
{
/>
+
+
+
+
+
{/*row 2*/}
diff --git a/src/pages/Payment/Details_Public/DataGrid.js b/src/pages/Payment/Details_Public/DataGrid.js
index 4f84296..4578ce1 100644
--- a/src/pages/Payment/Details_Public/DataGrid.js
+++ b/src/pages/Payment/Details_Public/DataGrid.js
@@ -40,7 +40,7 @@ export default function SearchPublicNoticeTable({ recordList }) {
{
id: 'appNo',
field: 'appNo',
- headerName:'詳細',
+ headerName:'項目',
flex: 1,
renderCell: (params) => {
let appNo = params.row.appNo;
@@ -55,7 +55,7 @@ export default function SearchPublicNoticeTable({ recordList }) {
{
id: 'fee',
field: 'fee',
- headerName: '金額 ($)',
+ headerName: '金額 (HK$)',
width: 150,
valueGetter: (params) => {
return (params?.value) ? "$ " + FormatUtils.currencyFormat(params?.value) : "";
@@ -77,7 +77,7 @@ export default function SearchPublicNoticeTable({ recordList }) {
}}
/>
- 付款總額: HK$ {FormatUtils.currencyFormat(total)}
+ 付款總額: (HK$) {FormatUtils.currencyFormat(total)}
);
}
diff --git a/src/pages/Payment/Details_Public/PaymentDetails.js b/src/pages/Payment/Details_Public/PaymentDetails.js
index 0305e6b..c24c444 100644
--- a/src/pages/Payment/Details_Public/PaymentDetails.js
+++ b/src/pages/Payment/Details_Public/PaymentDetails.js
@@ -3,6 +3,7 @@ import {
Grid,
Typography,
FormLabel,
+ Button
} from '@mui/material';
import * as React from "react";
@@ -11,8 +12,9 @@ import * as PaymentStatus from "utils/statusUtils/PaymentStatus";
import Loadable from 'components/Loadable';
const MainCard = Loadable(React.lazy(() => import('components/MainCard')));
const LoadingComponent = Loadable(React.lazy(() => import('pages/extra-pages/LoadingComponent')));
+import DownloadIcon from '@mui/icons-material/Download';
// ==============================|| DASHBOARD - DEFAULT ||============================== //
-const PaymentDetails = ({ formData, }) => {
+const PaymentDetails = ({ formData,doPrint }) => {
const [data, setData] = React.useState({});
const [onReady, setOnReady] = React.useState(false);
@@ -45,106 +47,125 @@ const PaymentDetails = ({ formData, }) => {
border={false}
content={false}
>
-
+
付款詳情