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
10a30efc
Commit
10a30efc
authored
Apr 15, 2021
by
r.kurnia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ketinggalan push tp olpa
parent
88bcedf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
TaxPlanningOLPA.js
src/container/OutlookPA/TaxPlanningOLPA.js
+11
-9
No files found.
src/container/OutlookPA/TaxPlanningOLPA.js
View file @
10a30efc
...
@@ -66,6 +66,8 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -66,6 +66,8 @@ export default class TaxPlanningOLPA extends Component {
this
.
getSettingControl
()
this
.
getSettingControl
()
this
.
lastUpdate
()
this
.
lastUpdate
()
this
.
handleViewOnly
()
this
.
handleViewOnly
()
console
.
log
(
this
.
props
)
console
.
log
(
this
.
state
.
viewOnly
)
}
}
handleViewOnly
()
{
handleViewOnly
()
{
...
@@ -98,7 +100,7 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -98,7 +100,7 @@ export default class TaxPlanningOLPA extends Component {
checkStatus
=
false
checkStatus
=
false
}
}
//
this.setState({viewOnly: !checkApprover && checkLastStatus && checkStatus && checkPrevRev})
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
&&
checkPrevRev
})
}
}
handleGetFor
(
type
)
{
handleGetFor
(
type
)
{
...
@@ -3047,13 +3049,12 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -3047,13 +3049,12 @@ export default class TaxPlanningOLPA extends Component {
<
/div
>
<
/div
>
<
/button
>
<
/button
>
<
/div
>
<
/div
>
{
this
.
props
.
isApprover
===
true
||
this
.
state
.
dataTable
.
length
==
0
?
null
:
{
this
.
props
.
isApprover
===
true
?
(
this
.
props
.
lastStatus
===
'SUBMIT'
||
this
.
props
.
lastStatus
===
'REVISION'
)
&&
this
.
props
.
prevRevision
===
false
&&
(
this
.
props
.
status
===
'revision'
||
this
.
props
.
status
===
'not-yet'
||
this
.
props
.
status
===
'draft'
||
this
.
props
.
status
===
'submitted'
)
?
<
div
className
=
"col-2"
>
// {this.props.isApprover === true ?
<
/div>
:
// <div className="col-2">
// </div> :
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
}}
>
<
div
className
=
"col-2"
style
=
{{
display
:
'flex'
,
justifyContent
:
'flex-end'
,
maxWidth
:
'100%'
}}
>
{
this
.
state
.
get_for
==
'view'
&&
this
.
state
.
viewOnly
&&
<
button
{
this
.
state
.
get_for
==
'view'
&&
this
.
state
.
viewOnly
&&
<
button
className
=
"button"
className
=
"button"
type
=
"button"
type
=
"button"
style
=
{{
style
=
{{
...
@@ -3072,7 +3073,8 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -3072,7 +3073,8 @@ export default class TaxPlanningOLPA extends Component {
<
div
style
=
{{
backgroundColor
:
'#fff'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
border
:
'solid 1px #354960'
}}
>
<
div
style
=
{{
backgroundColor
:
'#fff'
,
width
:
105
,
height
:
25
,
borderRadius
:
3
,
justifyContent
:
'center'
,
display
:
'flex'
,
alignItems
:
'center'
,
border
:
'solid 1px #354960'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#354960'
,
textAlign
:
'center'
}}
>
Edit
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#354960'
,
textAlign
:
'center'
}}
>
Edit
<
/Typography
>
<
/div
>
<
/div
>
<
/button>
}
<
/button
>
}
{
this
.
state
.
get_for
==
'edit'
&&
{
this
.
state
.
get_for
==
'edit'
&&
<
button
<
button
className
=
"button"
className
=
"button"
...
@@ -3150,7 +3152,7 @@ export default class TaxPlanningOLPA extends Component {
...
@@ -3150,7 +3152,7 @@ export default class TaxPlanningOLPA extends Component {
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
<
/div
>
<
/div
>
<
/button>
}
<
/button>
}
<
/div>
: nul
l
<
/div>
}
}
<
/div
>
<
/div
>
<
/Paper
>
<
/Paper
>
...
...
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