diff --git a/src/pages/DemandNote/Search/DataGrid.js b/src/pages/DemandNote/Search/DataGrid.js index b026814..d533c88 100644 --- a/src/pages/DemandNote/Search/DataGrid.js +++ b/src/pages/DemandNote/Search/DataGrid.js @@ -67,6 +67,18 @@ export default function SearchDemandNote({ recordList, reloadFun }) { } + const doUploadFile = (event) => { + let file = event.target.files[0]; + HttpUtils.postWithFiles({ + url:UrlUtils.DEMAND_NOTE_ATTACH, + files:[file], + onSuccess() { + if (reloadFun) reloadFun(); + }, + }); + document.getElementById("uploadFileBtn").value = ""; + } + const markPaid = () => { setConfirmPopUp(false); let idList = []; @@ -171,11 +183,32 @@ export default function SearchDemandNote({ recordList, reloadFun }) { return (
+ + { + doUploadFile(event) + }} + /> + +