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
0ac0e3ad
Commit
0ac0e3ad
authored
Oct 06, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/tia-dev
into deni-dev(pc)
parents
7c0eb70e
53eaa6ec
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1386 additions
and
173 deletions
+1386
-173
index.js
src/api/index.js
+2
-0
MonthlyReport.js
src/container/MonthlyReport.js
+13
-4
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+400
-0
OperatingIndicatorDetail.js
src/container/OprIndicator/OperatingIndicatorDetail.js
+21
-0
RollingOutlook.js
src/container/RollingOutlook.js
+950
-169
No files found.
src/api/index.js
View file @
0ac0e3ad
...
@@ -215,6 +215,7 @@ const create = (type = "") => {
...
@@ -215,6 +215,7 @@ const create = (type = "") => {
const
createOpetaingInd
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/create_submission_report'
,
body
)
const
createOpetaingInd
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/create_submission_report'
,
body
)
const
checkUploadOperatingInd
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/check_import'
,
body
)
const
checkUploadOperatingInd
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/check_import'
,
body
)
const
uploadOperatingInd
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/import_operating_indicator'
,
body
)
const
uploadOperatingInd
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/import_operating_indicator'
,
body
)
const
getLastestUpdateOI
=
(
body
)
=>
api
.
post
(
'transaction/operating_indicator/get_latest_update'
,
body
)
const
getDashboard
=
(
body
)
=>
api
.
get
(
'transaction/get_dashboard'
)
const
getDashboard
=
(
body
)
=>
api
.
get
(
'transaction/get_dashboard'
)
const
historyApproval
=
(
body
)
=>
api
.
post
(
'transaction/master_budget/history_approval'
,
body
)
const
historyApproval
=
(
body
)
=>
api
.
post
(
'transaction/master_budget/history_approval'
,
body
)
...
@@ -391,6 +392,7 @@ const create = (type = "") => {
...
@@ -391,6 +392,7 @@ const create = (type = "") => {
getLastPeriod
,
getLastPeriod
,
getSubmitMasterBudget
,
getSubmitMasterBudget
,
createPeriodeRevision
,
createPeriodeRevision
,
getLastestUpdateOI
,
getOutlookPAID
,
getOutlookPAID
,
getLastPeriodOLPA
,
getLastPeriodOLPA
,
getCompanySubmittedOLPA
,
getCompanySubmittedOLPA
,
...
...
src/container/MonthlyReport.js
View file @
0ac0e3ad
...
@@ -5,7 +5,6 @@ import Images from '../assets/Images';
...
@@ -5,7 +5,6 @@ import Images from '../assets/Images';
import
api
from
'../api'
;
import
api
from
'../api'
;
import
Autocomplete
from
'@material-ui/lab/Autocomplete'
;
import
Autocomplete
from
'@material-ui/lab/Autocomplete'
;
import
{
titleCase
}
from
'../library/Utils'
;
import
{
titleCase
}
from
'../library/Utils'
;
import
ProfitLoss
from
'./BudgetTahunan/ProfitLoss'
;
import
TaxPlanning
from
'./BudgetTahunan/TaxPlanning'
;
import
TaxPlanning
from
'./BudgetTahunan/TaxPlanning'
;
import
FixedAssetsMovement
from
'./BudgetTahunan/FixedAssetsMovement'
;
import
FixedAssetsMovement
from
'./BudgetTahunan/FixedAssetsMovement'
;
import
CorporateAnnualTarget
from
'./BudgetTahunan/CorporateAnnualTarget'
;
import
CorporateAnnualTarget
from
'./BudgetTahunan/CorporateAnnualTarget'
;
...
@@ -13,6 +12,7 @@ import { ExcelRenderer } from 'react-excel-renderer';
...
@@ -13,6 +12,7 @@ import { ExcelRenderer } from 'react-excel-renderer';
import
UploadFile
from
"../library/Upload"
;
import
UploadFile
from
"../library/Upload"
;
import
{
format
}
from
'date-fns'
;
import
{
format
}
from
'date-fns'
;
import
BalanceSheetMR
from
'./MonthlyReport/BalanceSheetMR'
;
import
BalanceSheetMR
from
'./MonthlyReport/BalanceSheetMR'
;
import
ProfitLossMR
from
'./MonthlyReport/ProfitLossMR'
;
export
default
class
MonthlyReport
extends
Component
{
export
default
class
MonthlyReport
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
...
@@ -162,6 +162,7 @@ export default class MonthlyReport extends Component {
...
@@ -162,6 +162,7 @@ export default class MonthlyReport extends Component {
}
}
clickDetail
(
item
,
id
,
revision
,
status
)
{
clickDetail
(
item
,
id
,
revision
,
status
)
{
console
.
log
(
item
)
this
.
setState
({
this
.
setState
({
report_id
:
id
,
report_id
:
id
,
revisionTable
:
revision
,
revisionTable
:
revision
,
...
@@ -176,7 +177,7 @@ export default class MonthlyReport extends Component {
...
@@ -176,7 +177,7 @@ export default class MonthlyReport extends Component {
visibleFAM
:
false
,
visibleFAM
:
false
,
visibleTP
:
false
,
visibleTP
:
false
,
})
})
}
else
if
(
item
===
'Profit
&
Loss'
)
{
}
else
if
(
item
===
'Profit Loss'
)
{
this
.
setState
({
this
.
setState
({
visibleMonthlyReport
:
false
,
visibleMonthlyReport
:
false
,
visibleBS
:
false
,
visibleBS
:
false
,
...
@@ -550,10 +551,18 @@ export default class MonthlyReport extends Component {
...
@@ -550,10 +551,18 @@ export default class MonthlyReport extends Component {
/
>
/
>
)}
)}
{
this
.
state
.
visiblePL
&&
(
{
this
.
state
.
visiblePL
&&
(
<
ProfitLoss
<
ProfitLossMR
open
=
{
this
.
props
.
open
}
report_id
=
{
this
.
state
.
report_id
}
report_id
=
{
this
.
state
.
report_id
}
height
=
{
this
.
props
.
height
}
width
=
{
this
.
props
.
width
}
company
=
{
this
.
state
.
company
}
company
=
{
this
.
state
.
company
}
onClickClose
=
{()
=>
this
.
setState
({
visiblePL
:
false
,
visibleMonthlyReport
:
true
})}
revision
=
{
this
.
state
.
revisionTable
}
periode
=
{
this
.
state
.
periode
.
periode
}
submissionID
=
{
this
.
state
.
submissionID
}
// saveToMasterBudget={this.saveToMasterBudget.bind(this)}
onClickClose
=
{()
=>
this
.
setState
({
visiblePL
:
false
,
visibleBudgetTahunan
:
true
})}
// getReport={this.getCompanyActive.bind(this)}
/
>
/
>
)}
)}
...
...
src/container/MonthlyReport/ProfitLossMR.js
0 → 100644
View file @
0ac0e3ad
This diff is collapsed.
Click to expand it.
src/container/OprIndicator/OperatingIndicatorDetail.js
View file @
0ac0e3ad
...
@@ -50,9 +50,29 @@ export default class BalanceSheet extends Component {
...
@@ -50,9 +50,29 @@ export default class BalanceSheet extends Component {
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
}
}
getLatestUpdate
()
{
let
payload
=
{
"operating_indicator_id"
:
this
.
props
.
data
.
operatingIndID
,
"report_id"
:
this
.
props
.
data
.
report_id
,
"company_id"
:
this
.
props
.
data
.
company
.
company_id
,
"periode"
:
this
.
props
.
data
.
periode
,
}
api
.
create
().
getLastestUpdateOI
(
payload
).
then
(
response
=>
{
console
.
log
(
response
.
data
)
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
updateBy
:
response
.
data
.
data
.
latest_update
===
null
?
'-'
:
response
.
data
.
data
.
latest_update
})
}
}
})
}
componentDidMount
()
{
componentDidMount
()
{
// this.getItemHierarki()
// this.getItemHierarki()
this
.
getDataDetail
()
this
.
getDataDetail
()
this
.
getLatestUpdate
()
console
.
log
(
this
.
props
);
console
.
log
(
this
.
props
);
}
}
...
@@ -1261,6 +1281,7 @@ export default class BalanceSheet extends Component {
...
@@ -1261,6 +1281,7 @@ export default class BalanceSheet extends Component {
/
>
/
>
<
/MuiThemeProvider
>
<
/MuiThemeProvider
>
<
/div
>
<
/div
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#4b4b4b'
,
marginTop
:
20
}}
>
Last
Updated
by
:
{
this
.
state
.
updateBy
}
<
/Typography
>
<
/div
>
<
/div
>
<
div
className
=
"grid grid-2x"
>
<
div
className
=
"grid grid-2x"
>
<
div
className
=
"col-1"
>
<
div
className
=
"col-1"
>
...
...
src/container/RollingOutlook.js
View file @
0ac0e3ad
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