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 {
...
@@ -47,12 +47,12 @@ export default class TaxPlanningMR extends Component {
visibleTP
:
true
,
visibleTP
:
true
,
disabledSave
:
true
,
disabledSave
:
true
,
editable
:
false
,
editable
:
false
,
buttonError
:
false
,
judulColumn
:
null
,
judulColumn
:
null
,
updateBy
:
'-'
,
updateBy
:
'-'
,
buttonDraft
:
true
,
buttonDraft
:
true
,
handleTekTekTek
:
0
,
handleTekTekTek
:
0
,
saveDraft
:
true
saveDraft
:
true
,
buttonError
:
true
}
}
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
this
.
fileHandler
=
this
.
fileHandler
.
bind
(
this
);
...
@@ -181,7 +181,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -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
{
}
else
{
this
.
setState
({
loading
:
false
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
this
.
setState
({
loading
:
false
,
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
},
()
=>
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
))
{
if
(
response
.
data
.
message
.
includes
(
"Someone Logged In"
))
{
...
@@ -193,7 +193,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -193,7 +193,7 @@ export default class TaxPlanningMR extends Component {
})
})
}
}
}
else
{
}
else
{
this
.
setState
({
dataTable
,
loading
:
false
,
buttonError
:
true
,
editable
:
true
})
this
.
setState
({
dataTable
,
loading
:
false
,
editable
:
true
})
}
}
console
.
log
(
this
.
state
.
dataTable
)
console
.
log
(
this
.
state
.
dataTable
)
})
})
...
@@ -425,7 +425,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -425,7 +425,7 @@ export default class TaxPlanningMR extends Component {
// this.setState({ loading: false, buttonError: false, editable: false, saveDraft: false })
// this.setState({ loading: false, buttonError: false, editable: false, saveDraft: false })
// // alert("Type Input Can't be Empty")
// // alert("Type Input Can't be Empty")
// } else {
// } 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 {
...
@@ -1563,9 +1563,8 @@ export default class TaxPlanningMR extends Component {
className
=
"button"
className
=
"button"
type
=
"button"
type
=
"button"
onClick
=
{()
=>
onClick
=
{()
=>
// null
this
.
state
.
saveDraft
===
true
?
// this.state.saveDraft === true ?
null
:
// null :
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -1589,9 +1588,9 @@ export default class TaxPlanningMR extends Component {
...
@@ -1589,9 +1588,9 @@ export default class TaxPlanningMR extends Component {
type
=
"button"
type
=
"button"
// disabled={this.state.buttonError}
// disabled={this.state.buttonError}
onClick
=
{()
=>
onClick
=
{()
=>
//
this.state.buttonError ?
this
.
state
.
buttonError
?
//
this.setState({ alert: true, messageAlert: 'Data is not complete !', tipeAlert: 'warning' })
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data is not complete !'
,
tipeAlert
:
'warning'
})
//
:
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
@@ -1601,7 +1600,7 @@ export default class TaxPlanningMR extends Component {
...
@@ -1601,7 +1600,7 @@ export default class TaxPlanningMR extends Component {
}
}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
saveDraft
===
true
?
'default'
:
'pointer'
,
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
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