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
b3463922
Commit
b3463922
authored
Nov 26, 2020
by
r.kurnia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
console mb bs
parent
93cac74f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
BalanceSheet.js
src/container/BudgetTahunan/BalanceSheet.js
+6
-6
No files found.
src/container/BudgetTahunan/BalanceSheet.js
View file @
b3463922
...
@@ -75,7 +75,7 @@ export default class BalanceSheet extends Component {
...
@@ -75,7 +75,7 @@ export default class BalanceSheet extends Component {
}
}
api
.
create
().
getAllSettingByType
(
body
).
then
(
response
=>
{
api
.
create
().
getAllSettingByType
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
//
console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
if
(
response
.
data
.
status
===
'success'
)
{
this
.
setState
({
this
.
setState
({
...
@@ -140,7 +140,7 @@ export default class BalanceSheet extends Component {
...
@@ -140,7 +140,7 @@ export default class BalanceSheet extends Component {
"submission_id"
:
this
.
props
.
submissionID
"submission_id"
:
this
.
props
.
submissionID
}
}
let
response
=
await
api
.
create
().
getDetailReportMB
(
payload
)
let
response
=
await
api
.
create
().
getDetailReportMB
(
payload
)
console
.
log
(
response
);
//
console.log(response);
let
dataTable
=
[]
let
dataTable
=
[]
if
(
response
.
data
)
{
if
(
response
.
data
)
{
let
res
=
response
.
data
.
data
let
res
=
response
.
data
.
data
...
@@ -288,7 +288,7 @@ export default class BalanceSheet extends Component {
...
@@ -288,7 +288,7 @@ export default class BalanceSheet extends Component {
ExcelRenderer
(
fileObj
,
(
err
,
resp
)
=>
{
ExcelRenderer
(
fileObj
,
(
err
,
resp
)
=>
{
// console.log(resp)
// console.log(resp)
if
(
err
)
{
if
(
err
)
{
console
.
log
(
err
);
//
console.log(err);
}
}
else
{
else
{
let
isi
=
resp
.
rows
.
slice
(
3
)
let
isi
=
resp
.
rows
.
slice
(
3
)
...
@@ -333,7 +333,7 @@ export default class BalanceSheet extends Component {
...
@@ -333,7 +333,7 @@ export default class BalanceSheet extends Component {
checkUpload
()
{
checkUpload
()
{
api
.
create
().
checkUploadMB
(
this
.
state
.
payload
).
then
(
response
=>
{
api
.
create
().
checkUploadMB
(
this
.
state
.
payload
).
then
(
response
=>
{
console
.
log
(
response
)
//
console.log(response)
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
'success'
)
{
if
(
response
.
data
.
status
===
'success'
)
{
this
.
setState
({
visibleUpload
:
false
,
visibleBalanceSheet
:
false
,
loading
:
true
})
this
.
setState
({
visibleUpload
:
false
,
visibleBalanceSheet
:
false
,
loading
:
true
})
...
@@ -371,7 +371,7 @@ export default class BalanceSheet extends Component {
...
@@ -371,7 +371,7 @@ export default class BalanceSheet extends Component {
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
,
editable
:
true
,
errorPreview
:
false
,
saveDraft
:
true
},
()
=>
{
this
.
setState
({
dataTable
,
dataLoaded
:
true
,
loading
:
false
,
buttonError
:
false
,
editable
:
true
,
errorPreview
:
false
,
saveDraft
:
true
},
()
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
this
.
state
.
dataTable
.
map
(
item
=>
{
if
(
item
[
26
].
length
>
0
)
{
if
(
item
[
26
].
length
>
0
)
{
console
.
log
(
'error'
)
//
console.log('error')
this
.
setState
({
buttonError
:
true
,
errorPreview
:
true
,
editable
:
true
,
saveDraft
:
true
})
this
.
setState
({
buttonError
:
true
,
errorPreview
:
true
,
editable
:
true
,
saveDraft
:
true
})
}
}
})
})
...
@@ -933,7 +933,7 @@ export default class BalanceSheet extends Component {
...
@@ -933,7 +933,7 @@ export default class BalanceSheet extends Component {
value
=
{
Number
(
value
).
toFixed
(
1
)}
value
=
{
Number
(
value
).
toFixed
(
1
)}
onBlur
=
{(
event
)
=>
{
onBlur
=
{(
event
)
=>
{
handleChange
(
event
.
target
.
value
,
tableMeta
)
handleChange
(
event
.
target
.
value
,
tableMeta
)
console
.
log
(
dataTable2
)
//
console.log(dataTable2)
}}
}}
/
>
/
>
}
}
...
...
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