diff --git a/src/pages/Payment/Details_Public/DataGrid.js b/src/pages/Payment/Details_Public/DataGrid.js
index bbebc10..7b4816a 100644
--- a/src/pages/Payment/Details_Public/DataGrid.js
+++ b/src/pages/Payment/Details_Public/DataGrid.js
@@ -8,6 +8,8 @@ import {
import * as React from 'react';
import * as FormatUtils from "utils/FormatUtils"
import { FiDataGrid } from "components/FiDataGrid";
+import * as DateUtils from "utils/DateUtils"
+import * as Utils from "utils/Utils"
// ==============================|| EVENT TABLE ||============================== //
export default function SearchPublicNoticeTable({ recordList }) {
@@ -15,7 +17,8 @@ export default function SearchPublicNoticeTable({ recordList }) {
const [total, setTotal] = React.useState(0);
React.useEffect(() => {
- setRows(recordList);
+ const indexedData = recordList.map((obj, index) => ({ index_number: index + 1, ...obj }));
+ setRows(indexedData);
let countTotal = 0;
recordList.forEach(item => {
countTotal+=item.fee;
@@ -25,20 +28,34 @@ 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: isORGLoggedIn()?'申請編號/Care Of/我的備註':'申請編號/我的備註',
+ headerName:'詳細',
flex: 1,
renderCell: (params) => {
let appNo = params.row.appNo;
- return
{appNo}
{isORGLoggedIn()?<>{params.row.careOf}
>:null}{params.row.remarks}
+ // console.log(params)
+ return 憲報第6號副刊公告
+ {isORGLoggedIn()?<>Care Of: {params.row.careOf}
>:null}
+ 申請編號: {appNo}
+ 憲報日期: {DateUtils.dateStr_Cht(params.row.issueDate)}
+ 長度: {Utils.gazetteLength(params.row.length, params.row.noOfPages)}
},
},
{
id: 'fee',
field: 'fee',
- headerName: '費用 (HK$)',
+ headerName: '金額 ($)',
width: 150,
valueGetter: (params) => {
return (params?.value) ? "$ " + FormatUtils.currencyFormat(params?.value) : "";
@@ -50,7 +67,7 @@ export default function SearchPublicNoticeTable({ recordList }) {
{
if(props.selectedPaymentMethod === ""){
setPaymentMethod("")
}
- setPaymentMethod
- if(availableMethodData.length > 0){
setContent(
@@ -130,43 +129,43 @@ const MultiPaymentWindow = (props) => {
-
-
-
- 付款方式:
-
-
-
+
+
+
+ 請選擇付款方式:
+
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
-
+
+
-
+
{paymentMethod !=""?
@@ -186,15 +185,6 @@ const MultiPaymentWindow = (props) => {
: null}
)
- }else{
- setContent(
-
-
- 付款功能現在不可用。
-
-
- )
- }
}, [availableMethodData]);
const formik = useFormik({
@@ -208,14 +198,14 @@ const MultiPaymentWindow = (props) => {
return (