Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
Tia-dev
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dida Adams Arizona
Tia-dev
Commits
dd87395c
Commit
dd87395c
authored
Feb 15, 2021
by
rifkaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cpsm
parent
1921b4c3
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
1874 deletions
+54
-1874
Historical.js
src/container/SummaryTriputra/Historical.js
+0
-1823
SummaryOfTriputra.js
src/container/SummaryTriputra/SummaryOfTriputra.js
+16
-13
TableSummaryTriputra.js
src/container/SummaryTriputra/TableSummaryTriputra.js
+38
-38
No files found.
src/container/SummaryTriputra/Historical.js
deleted
100644 → 0
View file @
1921b4c3
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/container/SummaryTriputra/SummaryOfTriputra.js
View file @
dd87395c
...
...
@@ -807,19 +807,22 @@ export default class SummaryOfTriputra extends Component {
a
.
click
();
}
}
else
if
(
this
.
state
.
report
.
value
===
3
)
{
alert
(
"Download CPSM Report Coming Soon"
)
// let res = await fetch(
// `${process.env.REACT_APP_URL_MAIN_BE}/public/transaction/db_report_detail/export_master_budget?submission_id=${this.state.submissionID === null ? "" : this.state.submissionID}&&report_id=${this.state.report.value}&&company_id=${this.state.company.company_id}&&year=${this.state.periode.periode}&&revision=${this.state.lastRevision}`
// )
// res = await res.blob()
// this.setState({ loading: false })
// if (res.size > 0) {
// let url = window.URL.createObjectURL(res);
// let a = document.createElement('a');
// a.href = url;
// a.download = 'Report DB Profit & Loss.xlsx';
// a.click();
// }
// alert("Download CPSM Report Coming Soon")
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_cpsm/export_report?year=
${
this
.
state
.
periode
.
periode
}
&&months=
${
this
.
state
.
month
.
month_id
}
`
let
sub_null
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_cpsm/export_report?year=
${
this
.
state
.
periode
.
periode
}
&&months=
${
this
.
state
.
month
.
month_id
}
`
console
.
log
(
url
);
let
res
=
await
fetch
(
this
.
state
.
submissionID
==
null
?
sub_null
:
url
)
res
=
await
res
.
blob
()
this
.
setState
({
loading
:
false
})
if
(
res
.
size
>
0
)
{
let
url
=
window
.
URL
.
createObjectURL
(
res
);
let
a
=
document
.
createElement
(
'a'
);
a
.
href
=
url
;
a
.
download
=
'Report CPSM.xlsx'
;
a
.
click
();
}
}
else
if
(
this
.
state
.
report
.
value
===
4
)
{
// alert("Download Historical Report Coming Soon")
let
url
=
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/transaction/summary_historical/export_report?year=
${
this
.
state
.
periode
.
periode
}
`
...
...
src/container/SummaryTriputra/TableSummaryTriputra.js
View file @
dd87395c
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment