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
5675f958
Commit
5675f958
authored
Nov 12, 2020
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CPSM
parent
67c8b0e0
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
364 additions
and
4 deletions
+364
-4
SummaryOfTriputra.js
src/container/SummaryTriputra/SummaryOfTriputra.js
+40
-4
TableSummaryTriputra.js
src/container/SummaryTriputra/TableSummaryTriputra.js
+324
-0
No files found.
src/container/SummaryTriputra/SummaryOfTriputra.js
View file @
5675f958
...
...
@@ -4,7 +4,7 @@ import Constant from '../../library/Constant'
import
api
from
'../../api'
import
{
titleCase
}
from
'../../library/Utils'
import
{
Autocomplete
}
from
'@material-ui/lab'
// import TableSubHolding from './TableSubHolding
'
import
TableSummaryTriputra
from
'./TableSummaryTriputra
'
import
{
PropagateLoader
}
from
'react-spinners'
import
ReactTooltip
from
'react-tooltip'
import
Images
from
'../../assets/Images'
...
...
@@ -162,6 +162,42 @@ export default class SummaryOfTriputra extends Component {
})
}
getReportType
()
{
let
payload
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"periode"
:
this
.
state
.
periode
.
periode
,
"report_type"
:
"Master Budget"
,
}
api
.
create
().
getReportTypeBody
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
this
.
state
.
report
.
value
===
1
)
{
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
report_name
===
'MTD Report'
)
{
this
.
setState
({
revisionType
:
item
.
revision
},
()
=>
{
this
.
getSubmission
()
})
}
})
}
else
if
(
this
.
state
.
report
.
value
===
1
)
{
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
report_name
===
'YTD Report'
)
{
this
.
setState
({
revisionType
:
item
.
revision
},
()
=>
{
this
.
getSubmission
()
})
}
})
}
else
{
this
.
setState
({
revisionType
:
0
},
()
=>
{
this
.
getSubmission
()
})
}
}
}
})
}
getSubmission
()
{
this
.
setState
({
loading
:
true
})
let
payload
=
{
...
...
@@ -709,8 +745,8 @@ export default class SummaryOfTriputra extends Component {
)}
<
/div
>
{
this
.
state
.
loading
&&
loadingComponent
}
{
/* {
this.state.previewTable && (
<TableSu
bHolding
{
this
.
state
.
previewTable
&&
(
<
TableSu
mmaryTriputra
width
=
{
this
.
props
.
width
}
height
=
{
this
.
props
.
height
}
open
=
{
this
.
props
.
open
}
...
...
@@ -718,7 +754,7 @@ export default class SummaryOfTriputra extends Component {
dataTable
=
{
this
.
state
.
dataTable
}
periode
=
{
this
.
state
.
periode
?
this
.
state
.
periode
.
periode
:
null
}
/
>
)}
*/
}
)}
<
/div
>
<
/Paper
>
<
/div
>
...
...
src/container/SummaryTriputra/TableSummaryTriputra.js
0 → 100644
View file @
5675f958
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