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
ebf07473
Commit
ebf07473
authored
Jan 11, 2021
by
Dida Adams Arizona
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'didam' into 'master'
apdet See merge request
!934
parents
ffb15871
d6a16624
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
78 additions
and
91 deletions
+78
-91
Parameter.js
src/container/MasterData/Parameter/Parameter.js
+2
-2
Perusahaan.js
src/container/MasterData/Perusahaan/Perusahaan.js
+2
-2
ReportItems.js
src/container/MasterData/ReportItems.js
+2
-2
UnitBisnis.js
src/container/MasterData/UnitBisnis.js
+2
-2
BalanceSheetMR.js
src/container/MonthlyReport/BalanceSheetMR.js
+6
-3
ListOfCreditFacilities.js
src/container/MonthlyReport/ListOfCreditFacilities.js
+62
-78
User.js
src/container/Otorisasi/User.js
+2
-2
No files found.
src/container/MasterData/Parameter/Parameter.js
View file @
ebf07473
...
@@ -224,7 +224,7 @@ export default class Parameter extends Component {
...
@@ -224,7 +224,7 @@ export default class Parameter extends Component {
downloadFile
=
async
()
=>
{
downloadFile
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
"${process.env.REACT_APP_URL_MAIN_BE}/public/attachment/download_file?fileName=ParameterTemplate&&fileType=xlsx"
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/attachment/download_file?fileName=ParameterTemplate&&fileType=xlsx`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
// console.log(res)
// console.log(res)
...
@@ -239,7 +239,7 @@ export default class Parameter extends Component {
...
@@ -239,7 +239,7 @@ export default class Parameter extends Component {
downloadDataTable
=
async
()
=>
{
downloadDataTable
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
"${process.env.REACT_APP_URL_MAIN_BE}/public/setting/export_setting"
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/setting/export_setting`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
// console.log(res)
// console.log(res)
...
...
src/container/MasterData/Perusahaan/Perusahaan.js
View file @
ebf07473
...
@@ -468,7 +468,7 @@ export default class Perusahaan extends Component {
...
@@ -468,7 +468,7 @@ export default class Perusahaan extends Component {
downloadFile
=
async
()
=>
{
downloadFile
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
"${process.env.REACT_APP_URL_MAIN_BE}/public/attachment/download_file?fileName=CompanyTemplate&&fileType=xlsx"
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/attachment/download_file?fileName=CompanyTemplate&&fileType=xlsx`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
console
.
log
(
res
)
console
.
log
(
res
)
...
@@ -483,7 +483,7 @@ export default class Perusahaan extends Component {
...
@@ -483,7 +483,7 @@ export default class Perusahaan extends Component {
downloadDataTable
=
async
()
=>
{
downloadDataTable
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
"${process.env.REACT_APP_URL_MAIN_BE}/public/company/export_company"
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/company/export_company`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
console
.
log
(
res
)
console
.
log
(
res
)
...
...
src/container/MasterData/ReportItems.js
View file @
ebf07473
...
@@ -752,7 +752,7 @@ export default class ReportItems extends Component {
...
@@ -752,7 +752,7 @@ export default class ReportItems extends Component {
downloadFile
=
async
()
=>
{
downloadFile
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
"${process.env.REACT_APP_URL_MAIN_BE}/public/attachment/download_file?fileName=ItemReportTemplate&&fileType=xlsx"
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/attachment/download_file?fileName=ItemReportTemplate&&fileType=xlsx`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
// console.log(res)
// console.log(res)
...
@@ -767,7 +767,7 @@ export default class ReportItems extends Component {
...
@@ -767,7 +767,7 @@ export default class ReportItems extends Component {
downloadDataTable
=
async
()
=>
{
downloadDataTable
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
"${process.env.REACT_APP_URL_MAIN_BE}/public/item_report/export_item_report"
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/item_report/export_item_report`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
// console.log(res)
// console.log(res)
...
...
src/container/MasterData/UnitBisnis.js
View file @
ebf07473
...
@@ -418,7 +418,7 @@ export default class UnitBisnis extends Component {
...
@@ -418,7 +418,7 @@ export default class UnitBisnis extends Component {
downloadFile
=
async
()
=>
{
downloadFile
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
"${process.env.REACT_APP_URL_MAIN_BE}/public/attachment/download_file?fileName=BusinessUnitTemplate&&fileType=xlsx"
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/attachment/download_file?fileName=BusinessUnitTemplate&&fileType=xlsx`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
console
.
log
(
res
)
console
.
log
(
res
)
...
@@ -433,7 +433,7 @@ export default class UnitBisnis extends Component {
...
@@ -433,7 +433,7 @@ export default class UnitBisnis extends Component {
downloadDataTable
=
async
()
=>
{
downloadDataTable
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
"${process.env.REACT_APP_URL_MAIN_BE}/public/business_unit/export_business_unit"
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/business_unit/export_business_unit`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
console
.
log
(
res
)
console
.
log
(
res
)
...
...
src/container/MonthlyReport/BalanceSheetMR.js
View file @
ebf07473
...
@@ -352,7 +352,8 @@ export default class BalanceSheetMR extends Component {
...
@@ -352,7 +352,8 @@ export default class BalanceSheetMR extends Component {
periode
:
this
.
props
.
periode
,
periode
:
this
.
props
.
periode
,
report_id
:
this
.
props
.
report_id
,
report_id
:
this
.
props
.
report_id
,
balance_sheet
:
payload
,
balance_sheet
:
payload
,
months
:
this
.
props
.
month
.
month_id
months
:
this
.
props
.
month
.
month_id
,
status
:
'submitted'
}
}
console
.
log
(
body
)
console
.
log
(
body
)
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
0
][
0
]
})
this
.
setState
({
payload
:
body
,
judul
:
resp
.
rows
[
1
][
0
],
judulColumn
:
resp
.
rows
[
0
][
0
]
})
...
@@ -456,13 +457,15 @@ export default class BalanceSheetMR extends Component {
...
@@ -456,13 +457,15 @@ export default class BalanceSheetMR extends Component {
"balance_sheet"
:
data
"balance_sheet"
:
data
}
}
console
.
log
(
body
);
console
.
log
(
body
);
//
console.log(JSON.stringify(body));
console
.
log
(
JSON
.
stringify
(
body
));
console
.
log
(
body
)
console
.
log
(
body
)
api
.
create
(
'UPLOAD'
).
uploadMonthlyReportBS
(
body
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
uploadMonthlyReportBS
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
props
.
onClickClose
()
// this.props.onClickClose()
this
.
props
.
saveToMonthlyReport
()
this
.
setState
({
loading
:
false
,
handleTekTekTek
:
0
})
// this.props.getReport()
// this.props.getReport()
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
,
handleTekTekTek
:
0
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
,
handleTekTekTek
:
0
},
()
=>
{
...
...
src/container/MonthlyReport/ListOfCreditFacilities.js
View file @
ebf07473
This diff is collapsed.
Click to expand it.
src/container/Otorisasi/User.js
View file @
ebf07473
...
@@ -431,7 +431,7 @@ export default class UserRole extends Component {
...
@@ -431,7 +431,7 @@ export default class UserRole extends Component {
downloadFile
=
async
()
=>
{
downloadFile
=
async
()
=>
{
let
res
=
await
fetch
(
let
res
=
await
fetch
(
"${process.env.REACT_APP_URL_MAIN_BE}/public/attachment/download_file?fileName=UserTemplate&&fileType=xlsx"
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/attachment/download_file?fileName=UserTemplate&&fileType=xlsx`
)
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
// console.log(res)
// console.log(res)
...
@@ -445,7 +445,7 @@ export default class UserRole extends Component {
...
@@ -445,7 +445,7 @@ export default class UserRole extends Component {
}
}
downloadDataTables
=
async
()
=>
{
downloadDataTables
=
async
()
=>
{
let
res
=
await
fetch
(
"${process.env.REACT_APP_URL_MAIN_BE}/public/user/export_user"
)
let
res
=
await
fetch
(
`
${
process
.
env
.
REACT_APP_URL_MAIN_BE
}
/public/user/export_user`
)
res
=
await
res
.
blob
()
res
=
await
res
.
blob
()
// console.log(res)
// console.log(res)
if
(
res
.
size
>
0
)
{
if
(
res
.
size
>
0
)
{
...
...
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