Browse Source

DemandNote

master
Anna Ho 1 year ago
parent
commit
bb33343644
4 changed files with 20 additions and 4 deletions
  1. +10
    -2
      src/pages/DemandNote/Search/DataGrid.js
  2. +8
    -1
      src/pages/DemandNote/Search/SearchForm.js
  3. +1
    -1
      src/pages/DemandNote/Search/index.js
  4. +1
    -0
      src/utils/ApiPathConst.js

+ 10
- 2
src/pages/DemandNote/Search/DataGrid.js View File

@@ -60,10 +60,9 @@ export default function SeaarchDemandNote({ recordList }) {

const columns = [
{
field: 'actions',
field: 'appNo',
headerName: 'App No.',
width: 150,
cellClassName: 'actions',
renderCell: (params) => {
return <Button onClick={handleEditClick(params)}><u>{params.row.appNo}</u></Button>;
},
@@ -140,6 +139,15 @@ export default function SeaarchDemandNote({ recordList }) {
return <Button onClick={onDownloadClick(params)}><u>{params.row.filename}</u></Button>;
},
},
{
id: 'status',
field: 'status',
headerName: '',
width: 150,
renderCell: (params) => {
return <Button onClick={onDownloadClick(params)}><u>View Details</u></Button>;
},
},
];




+ 8
- 1
src/pages/DemandNote/Search/SearchForm.js View File

@@ -51,6 +51,13 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue
applySearch(temp);
};

const findReadyToSend=()=>{
const temp = {
status: 'pending',
};
applySearch(temp);
}

React.useEffect(() => {
if (orgComboData && orgComboData.length > 0) {
setOrgCombo(orgComboData);
@@ -262,7 +269,7 @@ const SearchDemandNoteForm = ({ applySearch, orgComboData, searchCriteria, issue
<Button
size="large"
variant="contained"
onClick={resetForm}
onClick={findReadyToSend}
sx={{
textTransform: 'capitalize',
alignItems: 'end'


+ 1
- 1
src/pages/DemandNote/Search/index.js View File

@@ -55,7 +55,7 @@ const UserSearchPage_Individual = () => {

function getUserList() {
HttpUtils.get({
url: UrlUtils.GET_PUBLIC_NOTICE_LIST,
url: UrlUtils.DEMAND_NOTE_LIST,
params: searchCriteria,
onSuccess: function (responseData) {
setRecord(responseData);


+ 1
- 0
src/utils/ApiPathConst.js View File

@@ -96,6 +96,7 @@ export const PAYMENT_APP_LIST = apiPath+'/payment/applist';//POST

export const DEMAND_NOTE_PREVIEW = apiPath+'/demandNote/preview';//GET
export const DEMAND_NOTE_CREATE = apiPath+'/demandNote/create';//POST
export const DEMAND_NOTE_LIST = apiPath+'/demandNote/list';//GET





Loading…
Cancel
Save