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
2f2005bf
Commit
2f2005bf
authored
Dec 04, 2020
by
r.kurnia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
complete
parent
f5eef496
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+11
-12
No files found.
src/container/MonthlyReport/TaxPlanningMR.js
View file @
2f2005bf
...
...
@@ -47,12 +47,12 @@ export default class TaxPlanningMR extends Component {
visibleTP
:
true
,
disabledSave
:
true
,
editable
:
false
,
buttonError
:
false
,
judulColumn
:
null
,
updateBy
:
'-'
,
buttonDraft
:
true
,
handleTekTekTek
:
0
,
saveDraft
:
true
saveDraft
:
true
,
buttonError
:
true
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
...
...
@@ -181,7 +181,7 @@ export default class TaxPlanningMR extends Component {
}
}
})
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
})
this
.
setState
({
dataTable
,
loading
:
false
,
editable
:
true
})
}
else
{
this
.
setState
({
loading
:
false
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
))
{
...
...
@@ -193,7 +193,7 @@ export default class TaxPlanningMR extends Component {
})
}
}
else
{
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
})
this
.
setState
({
dataTable
,
loading
:
false
,
editable
:
true
})
}
console
.
log
(
this
.
state
.
dataTable
)
})
...
...
@@ -425,7 +425,7 @@ export default class TaxPlanningMR extends Component {
// this.setState({ loading: false, buttonError: false, editable: false, saveDraft: false })
// // alert("Type Input Can't be Empty")
// } else {
this
.
setState
({
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
saveDraft
:
false
})
this
.
setState
({
loading
:
false
,
editable
:
true
,
saveDraft
:
false
,
buttonError
:
false
})
// }
// })
}
...
...
@@ -1563,9 +1563,8 @@ export default class TaxPlanningMR extends Component {
className
=
"button"
type
=
"button"
onClick
=
{()
=>
// null
// this.state.saveDraft === true ?
// null :
this
.
state
.
saveDraft
===
true
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
setTimeout
(()
=>
{
...
...
@@ -1589,9 +1588,9 @@ export default class TaxPlanningMR extends Component {
type
=
"button"
// disabled={this.state.buttonError}
onClick
=
{()
=>
//
this.state.buttonError ?
//
this.setState({ alert: true, messageAlert: 'Data is not complete !', tipeAlert: 'warning' })
//
:
this
.
state
.
buttonError
?
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'warning'
})
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
setTimeout
(()
=>
{
...
...
@@ -1601,7 +1600,7 @@ export default class TaxPlanningMR extends Component {
}
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
saveDraft
===
true
?
'default'
:
'pointer'
,
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
borderColor
:
'transparent'
,
outline
:
'none'
}}
...
...
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