From caaa87ceb34f21ac943b5e08b25d24dcca30849c Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Fri, 10 Nov 2023 12:15:42 +0800 Subject: [PATCH] update --- src/components/MainCard.js | 2 +- src/pages/PublicNotice/ListPanel/BaseGrid.js | 48 ++++++++--------- .../ListPanel/PendingPaymentTab.js | 52 +++++++++---------- .../ListPanel/SearchPublicNoticeTable.js | 46 ++++++++-------- 4 files changed, 74 insertions(+), 74 deletions(-) diff --git a/src/components/MainCard.js b/src/components/MainCard.js index bc1a196..8b3124c 100644 --- a/src/components/MainCard.js +++ b/src/components/MainCard.js @@ -62,7 +62,7 @@ const MainCard = forwardRef( fontFamily: theme.typography.fontFamily, fontSize: '0.75rem' }, - maxWidth: { xs: 700, sm: 900, md: 1000, lg: 1300, xl: 1850 }, + // maxWidth: { xs: 700, sm: 900, md: 1000, lg: 1300, xl: 1850 }, // minWidth: { xs: 600, sm: 800, md: 900, lg: 1000, xl: 1000 }, margin: { xs: 2.5, md: 3 }, // '& > *': { diff --git a/src/pages/PublicNotice/ListPanel/BaseGrid.js b/src/pages/PublicNotice/ListPanel/BaseGrid.js index 16adc71..0e565cf 100644 --- a/src/pages/PublicNotice/ListPanel/BaseGrid.js +++ b/src/pages/PublicNotice/ListPanel/BaseGrid.js @@ -33,32 +33,32 @@ export default function BaseGrid({rows}) { return DateUtils.datetimeStr(params?.value); } }, - { - id: 'contactPerson', - field: 'contactPerson', - headerName: '聯絡人', - flex: 2, - renderCell: (params) => { - let phone = JSON.parse(params.row.contactTelNo); - let faxNo = JSON.parse(params.row.contactFaxNo); + // { + // id: 'contactPerson', + // field: 'contactPerson', + // headerName: '聯絡人', + // flex: 2, + // renderCell: (params) => { + // let phone = JSON.parse(params.row.contactTelNo); + // let faxNo = JSON.parse(params.row.contactFaxNo); - let contact = ""; - if (phone) { - contact = "電話: " + phone?.countryCode + " " + phone?.phoneNumber - } + // let contact = ""; + // if (phone) { + // contact = "電話: " + phone?.countryCode + " " + phone?.phoneNumber + // } - if (faxNo && faxNo?.faxNumber) { - if (contact != "") - contact = contact + ", " - contact = contact + "傳真:" + faxNo?.countryCode + " " + faxNo?.faxNumber - } + // if (faxNo && faxNo?.faxNumber) { + // if (contact != "") + // contact = contact + ", " + // contact = contact + "傳真:" + faxNo?.countryCode + " " + faxNo?.faxNumber + // } - return (<> - {params?.value}
- {contact} - ); - } - }, + // return (<> + // {params?.value}
+ // {contact} + // ); + // } + // }, { id: 'remarks', field: 'remarks', @@ -90,7 +90,7 @@ export default function BaseGrid({rows}) { } return ( -
+
{ - let phone = JSON.parse(params.row.contactTelNo); - let faxNo = JSON.parse(params.row.contactFaxNo); - - let contact = ""; - if (phone) { - contact = "電話: " + phone?.countryCode + " " + phone?.phoneNumber - } - - if (faxNo && faxNo?.faxNumber) { - if (contact != "") - contact = contact + ", " - contact = contact + "傳真:" + faxNo?.countryCode + " " + faxNo?.faxNumber - } - - return (<> - {params?.value}
- {contact} - ); - } - }, + // { + // id: 'contactPerson', + // field: 'contactPerson', + // headerName: '聯絡人', + // flex: 2, + // renderCell: (params) => { + // let phone = JSON.parse(params.row.contactTelNo); + // let faxNo = JSON.parse(params.row.contactFaxNo); + + // let contact = ""; + // if (phone) { + // contact = "電話: " + phone?.countryCode + " " + phone?.phoneNumber + // } + + // if (faxNo && faxNo?.faxNumber) { + // if (contact != "") + // contact = contact + ", " + // contact = contact + "傳真:" + faxNo?.countryCode + " " + faxNo?.faxNumber + // } + + // return (<> + // {params?.value}
+ // {contact} + // ); + // } + // }, { id: 'remarks', field: 'remarks', diff --git a/src/pages/PublicNotice/ListPanel/SearchPublicNoticeTable.js b/src/pages/PublicNotice/ListPanel/SearchPublicNoticeTable.js index 4a4241e..87bedfd 100644 --- a/src/pages/PublicNotice/ListPanel/SearchPublicNoticeTable.js +++ b/src/pages/PublicNotice/ListPanel/SearchPublicNoticeTable.js @@ -37,32 +37,32 @@ export default function SearchPublicNoticeTable({ recordList }) { return DateUtils.datetimeStr(params?.value); } }, - { - id: 'contactPerson', - field: 'contactPerson', - headerName: '聯絡人', - flex: 2, - renderCell: (params) => { - let phone = JSON.parse(params.row.contactTelNo); - let faxNo = JSON.parse(params.row.contactFaxNo); + // { + // id: 'contactPerson', + // field: 'contactPerson', + // headerName: '聯絡人', + // flex: 2, + // renderCell: (params) => { + // let phone = JSON.parse(params.row.contactTelNo); + // let faxNo = JSON.parse(params.row.contactFaxNo); - let contact = ""; - if (phone) { - contact = "電話: " + phone?.countryCode + " " + phone?.phoneNumber - } + // let contact = ""; + // if (phone) { + // contact = "電話: " + phone?.countryCode + " " + phone?.phoneNumber + // } - if (faxNo && faxNo?.faxNumber) { - if (contact != "") - contact = contact + ", " - contact = contact + "傳真:" + faxNo?.countryCode + " " + faxNo?.faxNumber - } + // if (faxNo && faxNo?.faxNumber) { + // if (contact != "") + // contact = contact + ", " + // contact = contact + "傳真:" + faxNo?.countryCode + " " + faxNo?.faxNumber + // } - return (<> - {params?.value}
- {contact} - ); - } - }, + // return (<> + // {params?.value}
+ // {contact} + // ); + // } + // }, { id: 'remarks', field: 'remarks',