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
ba192509
Commit
ba192509
authored
Dec 23, 2020
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DATA INCOMPLETE
parent
30ff1786
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+12
-9
No files found.
src/container/MonthlyReport/ProfitLossMR.js
View file @
ba192509
...
@@ -349,6 +349,7 @@ export default class ProfitLossMR extends Component {
...
@@ -349,6 +349,7 @@ export default class ProfitLossMR extends Component {
}
}
backToMonthlyReport
(
type
)
{
backToMonthlyReport
(
type
)
{
console
.
log
(
'test'
);
// this.setState({ loading: true })
// this.setState({ loading: true })
let
data
=
[]
let
data
=
[]
this
.
state
.
dataTable
.
map
(
i
=>
{
this
.
state
.
dataTable
.
map
(
i
=>
{
...
@@ -2019,14 +2020,15 @@ export default class ProfitLossMR extends Component {
...
@@ -2019,14 +2020,15 @@ export default class ProfitLossMR extends Component {
type
=
"button"
type
=
"button"
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
saveDraft
!==
true
?
'pointer'
:
'default
'
,
cursor
:
'pointer
'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
marginRight
:
20
marginRight
:
20
}}
}}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
saveDraft
===
true
?
this
.
state
.
saveDraft
===
true
?
null
:
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete !'
,
tipeAlert
:
'error'
})
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
backToMonthlyReport
(
'draft'
)
this
.
backToMonthlyReport
(
'draft'
)
...
@@ -2045,10 +2047,10 @@ export default class ProfitLossMR extends Component {
...
@@ -2045,10 +2047,10 @@ export default class ProfitLossMR extends Component {
<
/button>
}
<
/button>
}
{
this
.
state
.
get_for
==
'edit'
&&
<
button
{
this
.
state
.
get_for
==
'edit'
&&
<
button
type
=
"button"
type
=
"button"
// disabled={this.state.butto
nError}
// 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
Incomplete !'
,
tipeAlert
:
'error
'
})
:
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
...
@@ -2056,7 +2058,7 @@ export default class ProfitLossMR extends Component {
...
@@ -2056,7 +2058,7 @@ export default class ProfitLossMR extends Component {
})}
})}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
cursor
:
'pointer'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
}}
}}
...
@@ -2149,14 +2151,15 @@ export default class ProfitLossMR extends Component {
...
@@ -2149,14 +2151,15 @@ export default class ProfitLossMR extends Component {
type
=
"button"
type
=
"button"
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
saveDraft
!==
true
?
'pointer'
:
'default
'
,
cursor
:
'pointer
'
,
borderColor
:
'transparent'
,
borderColor
:
'transparent'
,
outline
:
'none'
,
outline
:
'none'
,
marginRight
:
20
marginRight
:
20
}}
}}
onClick
=
{()
=>
onClick
=
{()
=>
this
.
state
.
saveDraft
===
true
?
this
.
state
.
saveDraft
===
true
?
null
:
this
.
setState
({
alert
:
true
,
messageAlert
:
'Data Incomplete !'
,
tipeAlert
:
'error'
})
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
uploadProfitLossMR
(
'draft'
)
this
.
uploadProfitLossMR
(
'draft'
)
...
@@ -2178,7 +2181,7 @@ export default class ProfitLossMR extends Component {
...
@@ -2178,7 +2181,7 @@ export default class ProfitLossMR extends Component {
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
Incomplete !'
,
tipeAlert
:
'error
'
})
:
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
state
.
handleTekTekTek
==
1
?
null
:
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
this
.
setState
({
handleTekTekTek
:
1
,
loading
:
true
},
()
=>
{
...
@@ -2186,7 +2189,7 @@ export default class ProfitLossMR extends Component {
...
@@ -2186,7 +2189,7 @@ export default class ProfitLossMR extends Component {
})}
})}
style
=
{{
style
=
{{
backgroundColor
:
'transparent'
,
backgroundColor
:
'transparent'
,
cursor
:
this
.
state
.
buttonError
===
true
?
'default'
:
'pointer'
,
cursor
:
'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