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
d5e4ba43
Commit
d5e4ba43
authored
Oct 13, 2020
by
EKSAD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matiin console log
parent
cd5fe3ce
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
86 deletions
+86
-86
ProfitLoss.js
src/container/BudgetTahunan/ProfitLoss.js
+31
-31
OperatingIndicator.js
src/container/OprIndicator/OperatingIndicator.js
+18
-18
OutlookPA.js
src/container/OutlookPA.js
+37
-37
No files found.
src/container/BudgetTahunan/ProfitLoss.js
View file @
d5e4ba43
This diff is collapsed.
Click to expand it.
src/container/OprIndicator/OperatingIndicator.js
View file @
d5e4ba43
...
@@ -58,7 +58,7 @@ export default class OperatingIndicator extends Component {
...
@@ -58,7 +58,7 @@ export default class OperatingIndicator extends Component {
menu
:
"operating indicator"
menu
:
"operating indicator"
}
}
api
.
create
().
getPermission
(
payload
).
then
(
response
=>
{
api
.
create
().
getPermission
(
payload
).
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
.
setState
({
this
.
setState
({
...
@@ -76,7 +76,7 @@ export default class OperatingIndicator extends Component {
...
@@ -76,7 +76,7 @@ export default class OperatingIndicator extends Component {
getLastPeriod
()
{
getLastPeriod
()
{
api
.
create
().
getLastPeriodOI
(
this
.
state
.
company
.
company_id
).
then
(
response
=>
{
api
.
create
().
getLastPeriodOI
(
this
.
state
.
company
.
company_id
).
then
(
response
=>
{
console
.
log
(
response
);
//
console.log(response);
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
this
.
setState
({
lastPeriod
:
response
.
data
.
data
.
last_periode
,
latestPeriode
:
response
.
data
.
data
.
latest_periode
},
()
=>
{
this
.
setState
({
lastPeriod
:
response
.
data
.
data
.
last_periode
,
latestPeriode
:
response
.
data
.
data
.
latest_periode
},
()
=>
{
this
.
getPeriode
()
this
.
getPeriode
()
...
@@ -97,7 +97,7 @@ export default class OperatingIndicator extends Component {
...
@@ -97,7 +97,7 @@ export default class OperatingIndicator extends Component {
this
.
setState
({
listAttachment
:
response
.
data
.
data
})
this
.
setState
({
listAttachment
:
response
.
data
.
data
})
}
}
}
}
// console.log(response);
//
//
console.log(response);
})
})
}
}
...
@@ -108,7 +108,7 @@ export default class OperatingIndicator extends Component {
...
@@ -108,7 +108,7 @@ export default class OperatingIndicator extends Component {
"report_type"
:
"operating indicator"
,
"report_type"
:
"operating indicator"
,
}
}
api
.
create
().
getAllOperatingInd
(
payload
).
then
(
response
=>
{
api
.
create
().
getAllOperatingInd
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
//
console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
let
dataTable
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
let
dataTable
=
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
...
@@ -120,7 +120,7 @@ export default class OperatingIndicator extends Component {
...
@@ -120,7 +120,7 @@ export default class OperatingIndicator extends Component {
item
.
is_can_upload
item
.
is_can_upload
]
]
})
})
// console.log(dataTable);
//
//
console.log(dataTable);
this
.
setState
({
dataTable
,
dataReport
:
response
.
data
.
data
})
this
.
setState
({
dataTable
,
dataReport
:
response
.
data
.
data
})
}
}
}
}
...
@@ -220,17 +220,17 @@ export default class OperatingIndicator extends Component {
...
@@ -220,17 +220,17 @@ export default class OperatingIndicator extends Component {
if
(
item
>=
2000
&&
item
<=
(
Number
(
currentYear
)
+
1
))
{
if
(
item
>=
2000
&&
item
<=
(
Number
(
currentYear
)
+
1
))
{
data
.
push
(
item
)
data
.
push
(
item
)
}
}
console
.
log
(
'bibim'
)
//
console.log('bibim')
}
else
{
}
else
{
if
((
item
>=
2000
)
&&
(
item
==
this
.
state
.
lastPeriod
||
item
<
this
.
state
.
lastPeriod
))
{
if
((
item
>=
2000
)
&&
(
item
==
this
.
state
.
lastPeriod
||
item
<
this
.
state
.
lastPeriod
))
{
data
.
push
(
item
)
data
.
push
(
item
)
}
}
console
.
log
(
'bubum'
)
//
console.log('bubum')
}
}
})
})
console
.
log
(
this
.
state
.
lastPeriod
)
//
console.log(this.state.lastPeriod)
console
.
log
(
this
.
state
.
lastPeriod
)
//
console.log(this.state.lastPeriod)
console
.
log
(
this
.
state
.
isApprover
)
//
console.log(this.state.isApprover)
let
periodeData
=
data
.
map
((
item
)
=>
{
let
periodeData
=
data
.
map
((
item
)
=>
{
return
{
return
{
periode
:
item
,
periode
:
item
,
...
@@ -240,7 +240,7 @@ export default class OperatingIndicator extends Component {
...
@@ -240,7 +240,7 @@ export default class OperatingIndicator extends Component {
options
:
periodeData
,
options
:
periodeData
,
getOptionLabel
:
(
option
)
=>
option
.
periode
,
getOptionLabel
:
(
option
)
=>
option
.
periode
,
};
};
console
.
log
(
defaultProps
)
//
console.log(defaultProps)
let
periode
=
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
)
+
1
)
:
this
.
state
.
lastPeriod
)
let
periode
=
(
this
.
state
.
lastPeriod
==
""
?
String
(
Number
(
currentYear
)
+
1
)
:
this
.
state
.
lastPeriod
)
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
===
periode
)
let
index
=
data
.
sort
((
a
,
b
)
=>
a
-
b
).
findIndex
((
val
)
=>
val
===
periode
)
this
.
setState
({
listPeriode
:
defaultProps
,
periode
:
index
==
-
1
?
periodeData
[
0
]
:
periodeData
[
index
]
},
()
=>
{
this
.
setState
({
listPeriode
:
defaultProps
,
periode
:
index
==
-
1
?
periodeData
[
0
]
:
periodeData
[
index
]
},
()
=>
{
...
@@ -257,7 +257,7 @@ export default class OperatingIndicator extends Component {
...
@@ -257,7 +257,7 @@ export default class OperatingIndicator extends Component {
"periode"
:
this
.
state
.
periode
.
periode
"periode"
:
this
.
state
.
periode
.
periode
}
}
api
.
create
().
getRevision
(
payload
).
then
(
response
=>
{
api
.
create
().
getRevision
(
payload
).
then
(
response
=>
{
console
.
log
(
response
);
//
console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
let
data
=
response
.
data
.
data
let
data
=
response
.
data
.
data
...
@@ -286,7 +286,7 @@ export default class OperatingIndicator extends Component {
...
@@ -286,7 +286,7 @@ export default class OperatingIndicator extends Component {
}
}
api
.
create
().
getOpetratingIndID
(
payload
).
then
(
response
=>
{
api
.
create
().
getOpetratingIndID
(
payload
).
then
(
response
=>
{
if
(
response
)
{
if
(
response
)
{
console
.
log
(
response
.
data
.
data
)
//
console.log(response.data.data)
this
.
getLatestPeriodSubmit
()
this
.
getLatestPeriodSubmit
()
if
(
response
.
data
.
data
)
{
if
(
response
.
data
.
data
)
{
this
.
setState
({
operatingIndID
:
response
.
data
.
data
.
operating_indicator_id
})
this
.
setState
({
operatingIndID
:
response
.
data
.
data
.
operating_indicator_id
})
...
@@ -303,7 +303,7 @@ export default class OperatingIndicator extends Component {
...
@@ -303,7 +303,7 @@ export default class OperatingIndicator extends Component {
"periode"
:
this
.
state
.
periode
.
periode
"periode"
:
this
.
state
.
periode
.
periode
}
}
api
.
create
().
getSubmitOI
(
body
).
then
(
response
=>
{
api
.
create
().
getSubmitOI
(
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
.
setState
({
isSubmit
:
response
.
data
.
data
.
is_can_submit
},
()
=>
{
this
.
setState
({
isSubmit
:
response
.
data
.
data
.
is_can_submit
},
()
=>
{
...
@@ -335,9 +335,9 @@ export default class OperatingIndicator extends Component {
...
@@ -335,9 +335,9 @@ export default class OperatingIndicator extends Component {
fileHandler
=
(
event
)
=>
{
fileHandler
=
(
event
)
=>
{
let
fileObj
=
event
let
fileObj
=
event
ExcelRenderer
(
fileObj
,
(
err
,
resp
)
=>
{
ExcelRenderer
(
fileObj
,
(
err
,
resp
)
=>
{
// console.log(resp)
//
//
console.log(resp)
if
(
err
)
{
if
(
err
)
{
console
.
log
(
err
);
//
console.log(err);
}
}
else
{
else
{
const
formData
=
new
FormData
();
const
formData
=
new
FormData
();
...
@@ -360,7 +360,7 @@ export default class OperatingIndicator extends Component {
...
@@ -360,7 +360,7 @@ export default class OperatingIndicator extends Component {
})
})
}
}
}
}
// console.log(response)
//
//
console.log(response)
})
})
}
}
...
@@ -390,7 +390,7 @@ export default class OperatingIndicator extends Component {
...
@@ -390,7 +390,7 @@ export default class OperatingIndicator extends Component {
// <Select
// <Select
// value={val}
// value={val}
// onChange={event => {
// onChange={event => {
// // console.log(event.target)
// //
//
console.log(event.target)
// updateValue(event.target.value)
// updateValue(event.target.value)
// this.handleChange(event.target.value, tableMeta)
// this.handleChange(event.target.value, tableMeta)
// }}
// }}
...
...
src/container/OutlookPA.js
View file @
d5e4ba43
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