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
dd1b5fbe
Commit
dd1b5fbe
authored
Dec 03, 2020
by
Rifka Kurnia
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'rifka' into 'master'
complete save tp mr See merge request
!741
parents
2724d562
31c9bb1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
5 deletions
+24
-5
TaxPlanningMR.js
src/container/MonthlyReport/TaxPlanningMR.js
+24
-5
No files found.
src/container/MonthlyReport/TaxPlanningMR.js
View file @
dd1b5fbe
...
...
@@ -60,10 +60,29 @@ export default class TaxPlanningMR extends Component {
}
componentDidMount
()
{
this
.
getItemHierarki
()
this
.
getSettingControl
()
// this.getItemHierarki()
// this.getLatestUpdate()
}
getSettingControl
()
{
let
body
=
{
group
:
'THRESHOLD_CONTROL'
,
company_id
:
this
.
props
.
company
.
company_id
,
type
:
'TAX_PLANNING'
}
api
.
create
().
getAllSettingByType
(
body
).
then
(
response
=>
{
// console.log(response);
this
.
setState
({
minValue
:
response
.
data
.
data
[
0
]
?
response
.
data
.
data
[
0
].
min_value
:
null
,
maxValue
:
response
.
data
.
data
[
0
]
?
response
.
data
.
data
[
0
].
max_value
:
null
,
},
()
=>
{
this
.
getItemHierarki
()
})
})
}
getLatestUpdate
()
{
let
payload
=
{
"report_id"
:
5
,
...
...
@@ -1584,9 +1603,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
(()
=>
{
...
...
@@ -1596,7 +1615,7 @@ export default class TaxPlanningMR extends Component {
}
style
=
{{
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
cursor
:
this
.
state
.
saveDraft
===
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