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
0e6848c6
Commit
0e6848c6
authored
Dec 04, 2020
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oi++
parent
79c67efb
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
433 additions
and
192 deletions
+433
-192
OperatingIndicatorMR.js
src/container/MonthlyReport/OperatingIndicatorMR.js
+424
-162
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+1
-1
OperatingIndicator.js
src/container/OprIndicator/OperatingIndicator.js
+8
-29
No files found.
src/container/MonthlyReport/OperatingIndicatorMR.js
View file @
0e6848c6
This diff is collapsed.
Click to expand it.
src/container/MonthlyReport/ProfitLossMR.js
View file @
0e6848c6
...
@@ -698,7 +698,7 @@ export default class ProfitLossMR extends Component {
...
@@ -698,7 +698,7 @@ export default class ProfitLossMR extends Component {
<
div
style
=
{{
flex
:
1
}}
>
<
div
style
=
{{
flex
:
1
}}
>
<
FormControlLabel
<
FormControlLabel
style
=
{{
margin
:
0
}}
style
=
{{
margin
:
0
}}
value
=
{
tableMeta
.
rowData
[
9
]}
value
=
{
tableMeta
.
rowData
[
7
]}
control
=
{
control
=
{
<
NumberFormat
<
NumberFormat
thousandSeparator
=
{
true
}
thousandSeparator
=
{
true
}
...
...
src/container/OprIndicator/OperatingIndicator.js
View file @
0e6848c6
...
@@ -255,34 +255,6 @@ export default class OperatingIndicator extends Component {
...
@@ -255,34 +255,6 @@ export default class OperatingIndicator extends Component {
})
})
}
}
getRevision
()
{
let
payload
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"periode"
:
this
.
state
.
periode
.
periode
}
api
.
create
().
getRevision
(
payload
).
then
(
response
=>
{
// console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
let
data
=
response
.
data
.
data
let
revisionData
=
data
.
map
((
item
)
=>
{
return
{
revision
:
item
,
}
})
let
defaultProps
=
{
options
:
revisionData
,
getOptionLabel
:
(
option
)
=>
option
.
revision
,
};
this
.
setState
({
listRevision
:
defaultProps
,
revision
:
revisionData
[
0
]
},
()
=>
{
this
.
getReport
()
this
.
getReportAttachment
()
})
}
}
})
}
getOperatingID
()
{
getOperatingID
()
{
let
payload
=
{
let
payload
=
{
"company_id"
:
this
.
state
.
company
.
company_id
,
"company_id"
:
this
.
state
.
company
.
company_id
,
...
@@ -410,6 +382,13 @@ export default class OperatingIndicator extends Component {
...
@@ -410,6 +382,13 @@ export default class OperatingIndicator extends Component {
})
})
}
}
saveMonthlyOI
(
payload
)
{
api
.
create
().
createMonthlyReportOI
(
payload
).
then
((
response
)
=>
{
this
.
getReport
()
this
.
getOperatingID
()
})
}
render
()
{
render
()
{
const
columns
=
[
"#"
,
"Report Type"
,
const
columns
=
[
"#"
,
"Report Type"
,
// {
// {
...
@@ -639,7 +618,7 @@ export default class OperatingIndicator extends Component {
...
@@ -639,7 +618,7 @@ export default class OperatingIndicator extends Component {
this
.
forceUpdate
()
this
.
forceUpdate
()
})}
})}
getReport
=
{()
=>
this
.
getOperatingID
()}
getReport
=
{()
=>
this
.
getOperatingID
()}
save
OperatingInd
=
{
this
.
saveOperatingInd
.
bind
(
this
)}
save
MonthlyOI
=
{
this
.
saveMonthlyOI
.
bind
(
this
)}
isSubmit
=
{
this
.
state
.
statusDetail
==
'closed'
?
false
:
this
.
state
.
isSubmit
}
isSubmit
=
{
this
.
state
.
statusDetail
==
'closed'
?
false
:
this
.
state
.
isSubmit
}
permission
=
{{
create
:
this
.
state
.
buttonCreate
,
edit
:
this
.
state
.
buttonEdit
,
delete
:
this
.
state
.
buttonDelete
}}
permission
=
{{
create
:
this
.
state
.
buttonCreate
,
edit
:
this
.
state
.
buttonEdit
,
delete
:
this
.
state
.
buttonDelete
}}
/
>
/
>
...
...
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