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
7bc69b6e
Commit
7bc69b6e
authored
Dec 29, 2020
by
Riri Novita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apdet
parent
389a3ac4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
index.js
src/api/index.js
+2
-2
ProfitLossMR.js
src/container/MonthlyReport/ProfitLossMR.js
+3
-4
No files found.
src/api/index.js
View file @
7bc69b6e
...
@@ -24,7 +24,7 @@ const create = (type = "") => {
...
@@ -24,7 +24,7 @@ const create = (type = "") => {
'Content-Type'
:
'application/json'
,
'Content-Type'
:
'application/json'
,
},
},
// 60 second timeout...
// 60 second timeout...
timeout
:
6
0000
timeout
:
12
0000
})
})
break
;
break
;
case
'UPLOAD'
:
case
'UPLOAD'
:
...
@@ -38,7 +38,7 @@ const create = (type = "") => {
...
@@ -38,7 +38,7 @@ const create = (type = "") => {
'Content-Type'
:
'application/json'
,
'Content-Type'
:
'application/json'
,
},
},
// 40 second timeout...
// 40 second timeout...
timeout
:
6
0000
timeout
:
12
0000
})
})
break
;
break
;
default
:
default
:
...
...
src/container/MonthlyReport/ProfitLossMR.js
View file @
7bc69b6e
...
@@ -608,15 +608,14 @@ export default class ProfitLossMR extends Component {
...
@@ -608,15 +608,14 @@ export default class ProfitLossMR extends Component {
}
}
// console.log(JSON.stringify(payload));
// console.log(JSON.stringify(payload));
api
.
create
().
validateSubmitReportPL
(
payload
).
then
((
response
)
=>
{
api
.
create
().
validateSubmitReportPL
(
payload
).
then
((
response
)
=>
{
//
console.log(response.data.data.result)
console
.
log
(
response
.
data
.
data
.
result
)
//
console.log(err);
console
.
log
(
err
);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
data
.
result
&&
err
===
false
)
{
if
(
response
.
data
.
data
.
result
&&
err
===
false
)
{
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
saveDraft
:
false
})
this
.
setState
({
loading
:
false
,
buttonError
:
false
,
editable
:
false
,
saveDraft
:
false
})
}
else
{
}
else
{
this
.
setState
({
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
saveDraft
:
fals
e
})
this
.
setState
({
loading
:
false
,
buttonError
:
true
,
editable
:
true
,
saveDraft
:
tru
e
})
}
}
}
else
{
}
else
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
this
.
setState
({
alert
:
true
,
messageAlert
:
response
.
data
.
message
,
tipeAlert
:
'warning'
,
loading
:
false
},
()
=>
{
...
...
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