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
6dfdcdd4
Commit
6dfdcdd4
authored
4 years ago
by
Riri Novita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'riri' into 'master'
mtd month See merge request
!1082
parents
da6b4f59
fd587cd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
69 additions
and
13 deletions
+69
-13
index.js
src/api/index.js
+3
-1
TableSubHolding.js
src/container/Laporan/TableSubHolding.js
+54
-0
SummaryOfTriputra.js
src/container/SummaryTriputra/SummaryOfTriputra.js
+12
-12
No files found.
src/api/index.js
View file @
6dfdcdd4
...
@@ -265,6 +265,7 @@ const create = (type = "") => {
...
@@ -265,6 +265,7 @@ const create = (type = "") => {
const
getReportBSSuma
=
(
body
)
=>
api
.
post
(
'/transaction/summary_balance_sheet/summary/get_report_hierarki'
,
body
)
const
getReportBSSuma
=
(
body
)
=>
api
.
post
(
'/transaction/summary_balance_sheet/summary/get_report_hierarki'
,
body
)
const
getDashboardCAT
=
(
body
)
=>
api
.
post
(
'/dashboard/cat'
,
body
)
const
getDashboardCAT
=
(
body
)
=>
api
.
post
(
'/dashboard/cat'
,
body
)
const
getHierarkiReportHistorical
=
(
body
)
=>
api
.
post
(
'/transaction/historical/get_historical_hierarki'
,
body
)
const
getHierarkiReportHistorical
=
(
body
)
=>
api
.
post
(
'/transaction/historical/get_historical_hierarki'
,
body
)
const
getHierarkiReportMTD
=
(
body
)
=>
api
.
post
(
'/transaction/summary/mtd/get_report_hierarki'
,
body
)
//CASH FLOW
//CASH FLOW
const
getDetailReportCF
=
(
body
)
=>
api
.
post
(
'/transaction/cash_flow/master_budget/get_report_hierarki'
,
body
)
const
getDetailReportCF
=
(
body
)
=>
api
.
post
(
'/transaction/cash_flow/master_budget/get_report_hierarki'
,
body
)
...
@@ -637,7 +638,8 @@ const create = (type = "") => {
...
@@ -637,7 +638,8 @@ const create = (type = "") => {
createReportPLMB
,
createReportPLMB
,
createReportPLMR
,
createReportPLMR
,
getPLID
,
getPLID
,
getHierarkiReportHistorical
getHierarkiReportHistorical
,
getHierarkiReportMTD
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
src/container/Laporan/TableSubHolding.js
View file @
6dfdcdd4
...
@@ -3913,6 +3913,60 @@ export default class TableSubHolding extends Component {
...
@@ -3913,6 +3913,60 @@ export default class TableSubHolding extends Component {
)
)
}
}
}
}
}, {
name: "Notes",
options: {
customHeadRender: (columnMeta) => (
dataTable2.length > 0 ?
<TableCell style={{ ...stylenotes, top: 0, zIndex: 103, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell> :
<TableCell style={{ ...styleNotesEmpty, top: 0, zIndex: 103, backgroundColor: '#1c71b8', width: 96 }}>
<Typography style={{ color: 'white', fontSize: 12, fontWeight: 'bold', textAlign: 'center' }}>{columnMeta.name}</Typography>
</TableCell>
),
setCellProps: () => ({
style: {
position: "sticky",
background: "white",
zIndex: 101,
left: 350
}
}),
customBodyRender: (value, tableMeta, updateValue) => {
return (
<div style={{ textAlign: 'right' }}>
<div style={{ flex: 1 }}>
{tableMeta.rowData[0] === 4 ? null : tableMeta.rowData[4] === 0 ? null : tableMeta.rowData[4] === 1 ? null :
<FormControlLabel
style={{ margin: 0 }}
// value={tableMeta.rowData[51]}
control={
<Input
disableUnderline={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'left', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
// value={tableMeta.rowData[51]}
defaultValue={tableMeta.rowData[51]}
inputProps={{
style: {
color: "#5198ea"
}
}}
// onBlur={(event) => {
// handleNotes(event.target.value, tableMeta, 0)
// }}
/>
}
/>
}
</div>
</div>
)
}
}
}, {
}, {
name: `MB ${this.props.periode}`,
name: `MB ${this.props.periode}`,
options: {
options: {
This diff is collapsed.
Click to expand it.
src/container/SummaryTriputra/SummaryOfTriputra.js
View file @
6dfdcdd4
...
@@ -32,6 +32,7 @@ export default class SummaryOfTriputra extends Component {
...
@@ -32,6 +32,7 @@ export default class SummaryOfTriputra extends Component {
loading
:
false
,
loading
:
false
,
previewTable
:
false
,
previewTable
:
false
,
listMonths
:
null
,
listMonths
:
null
,
month
:
null
}
}
}
}
...
@@ -193,7 +194,7 @@ export default class SummaryOfTriputra extends Component {
...
@@ -193,7 +194,7 @@ export default class SummaryOfTriputra extends Component {
let
index
=
data
.
findIndex
((
val
)
=>
val
.
month_name
==
month
)
let
index
=
data
.
findIndex
((
val
)
=>
val
.
month_name
==
month
)
console
.
log
(
index
)
console
.
log
(
index
)
console
.
log
(
monthData
)
console
.
log
(
monthData
)
this
.
setState
({
listMonths
:
defaultProps
,
month
:
index
==
-
1
?
monthData
[
0
]
.
month_name
:
monthData
[
index
].
month_name
},
()
=>
{
this
.
setState
({
listMonths
:
defaultProps
,
month
:
index
==
-
1
?
monthData
[
0
]
:
monthData
[
index
]
},
()
=>
{
this
.
getDataTable
()
this
.
getDataTable
()
})
})
console
.
log
(
this
.
state
.
month
)
console
.
log
(
this
.
state
.
month
)
...
@@ -263,21 +264,19 @@ export default class SummaryOfTriputra extends Component {
...
@@ -263,21 +264,19 @@ export default class SummaryOfTriputra extends Component {
}
}
getDataTable
()
{
getDataTable
()
{
// let payload = {
let
payload
=
{
// "report_id": this.state.report.value,
"report_type"
:
this
.
state
.
report
.
value
,
// "revision": this.state.lastRevision,
"periode"
:
this
.
state
.
periode
.
periode
,
// "periode": this.state.periode.periode,
"months"
:
this
.
state
.
month
.
month_id
// "company_id": this.state.company.company_id,
}
// "submission_id": this.state.submissionID
// }
let
newPayload
=
{
let
newPayload
=
{
"periode"
:
this
.
state
.
periode
.
periode
,
"periode"
:
this
.
state
.
periode
.
periode
,
"report_type"
:
"historical"
"report_type"
:
"historical"
}
}
if
(
this
.
state
.
report
.
value
===
1
)
{
if
(
this
.
state
.
report
.
value
===
1
)
{
// api.create().getDetailReportMB
(payload).then(response => {
api
.
create
().
getHierarkiReportMTD
(
payload
).
then
(
response
=>
{
// //
console.log(response);
console
.
log
(
response
);
// //
console.log(payload)
console
.
log
(
payload
)
let
dataTable
=
[]
let
dataTable
=
[]
// if (response.data) {
// if (response.data) {
// let res = response.data.data
// let res = response.data.data
...
@@ -357,7 +356,7 @@ export default class SummaryOfTriputra extends Component {
...
@@ -357,7 +356,7 @@ export default class SummaryOfTriputra extends Component {
// } else {
// } else {
// this.setState({ dataTable: [], previewTable: false, loading: false, previewDownload: false })
// this.setState({ dataTable: [], previewTable: false, loading: false, previewDownload: false })
// }
// }
//
})
})
}
else
if
(
this
.
state
.
report
.
value
===
2
)
{
}
else
if
(
this
.
state
.
report
.
value
===
2
)
{
// api.create().getDetailReportMB(payload).then(response => {
// api.create().getDetailReportMB(payload).then(response => {
// console.log(payload);
// console.log(payload);
...
@@ -794,6 +793,7 @@ export default class SummaryOfTriputra extends Component {
...
@@ -794,6 +793,7 @@ export default class SummaryOfTriputra extends Component {
width
=
{
this
.
props
.
width
}
width
=
{
this
.
props
.
width
}
height
=
{
this
.
props
.
height
}
height
=
{
this
.
props
.
height
}
open
=
{
this
.
props
.
open
}
open
=
{
this
.
props
.
open
}
month
=
{
this
.
state
.
month
}
type
=
{
this
.
state
.
report
?
this
.
state
.
report
.
value
:
1
}
type
=
{
this
.
state
.
report
?
this
.
state
.
report
.
value
:
1
}
dataTable
=
{
this
.
state
.
dataTable
}
dataTable
=
{
this
.
state
.
dataTable
}
periode
=
{
this
.
state
.
periode
?
this
.
state
.
periode
.
periode
:
null
}
periode
=
{
this
.
state
.
periode
?
this
.
state
.
periode
.
periode
:
null
}
...
...
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