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 {
this
.
getSettingControl
()
this
.
lastUpdate
()
this
.
handleViewOnly
()
console
.
log
(
this
.
props
)
console
.
log
(
this
.
state
.
viewOnly
)
}
handleViewOnly
()
{
...
...
@@ -98,7 +100,7 @@ export default class TaxPlanningOLPA extends Component {
checkStatus
=
false
}
//
this.setState({viewOnly: !checkApprover && checkLastStatus && checkStatus && checkPrevRev})
this
.
setState
({
viewOnly
:
!
checkApprover
&&
checkLastStatus
&&
checkStatus
&&
checkPrevRev
})
}
handleGetFor
(
type
)
{
...
...
@@ -3047,13 +3049,12 @@ export default class TaxPlanningOLPA extends Component {
<
/div
>
<
/button
>
<
/div
>
{
this
.
props
.
isApprover
===
true
||
this
.
state
.
dataTable
.
length
==
0
?
null
:
(
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'
)
?
// {this.props.isApprover === true ?
// <div className="col-2">
// </div> :
{
this
.
props
.
isApprover
===
true
?
<
div
className
=
"col-2"
>
<
/div>
:
<
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"
type
=
"button"
style
=
{{
...
...
@@ -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'
}}
>
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#354960'
,
textAlign
:
'center'
}}
>
Edit
<
/Typography
>
<
/div
>
<
/button>
}
<
/button
>
}
{
this
.
state
.
get_for
==
'edit'
&&
<
button
className
=
"button"
...
...
@@ -3150,7 +3152,7 @@ export default class TaxPlanningOLPA extends Component {
<
Typography
style
=
{{
fontSize
:
'11px'
,
color
:
'#fff'
,
textAlign
:
'center'
}}
>
Save
&
Complete
<
/Typography
>
<
/div
>
<
/button>
}
<
/div>
: nul
l
<
/div>
}
<
/div
>
<
/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