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
cb751107
Commit
cb751107
authored
Sep 28, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'faisal' into 'master'
update fam 280920 sore See merge request
!380
parents
38830578
690ad270
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
FixedAssetsMovement.js
src/container/BudgetTahunan/FixedAssetsMovement.js
+19
-6
No files found.
src/container/BudgetTahunan/FixedAssetsMovement.js
View file @
cb751107
...
@@ -118,7 +118,8 @@ export default class FixedAssetsMovement extends Component {
...
@@ -118,7 +118,8 @@ export default class FixedAssetsMovement extends Component {
item
.
fixed_asset_movement
.
december
,
item
.
fixed_asset_movement
.
december
,
item
.
fixed_asset_movement
.
total_current_year
,
item
.
fixed_asset_movement
.
total_current_year
,
item
.
fixed_asset_movement
.
total_next_year
,
item
.
fixed_asset_movement
.
total_next_year
,
item
.
fixed_asset_movement
.
total_more_year
item
.
fixed_asset_movement
.
total_more_year
,
item
.
order
])
])
}
}
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
!==
null
)
{
...
@@ -152,7 +153,8 @@ export default class FixedAssetsMovement extends Component {
...
@@ -152,7 +153,8 @@ export default class FixedAssetsMovement extends Component {
item
.
fixed_asset_movement
.
december
,
item
.
fixed_asset_movement
.
december
,
item
.
fixed_asset_movement
.
total_current_year
,
item
.
fixed_asset_movement
.
total_current_year
,
item
.
fixed_asset_movement
.
total_next_year
,
item
.
fixed_asset_movement
.
total_next_year
,
item
.
fixed_asset_movement
.
total_more_year
item
.
fixed_asset_movement
.
total_more_year
,
item
.
order
])
])
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
!==
null
)
{
if
(
item
.
children
.
length
>
0
)
{
if
(
item
.
children
.
length
>
0
)
{
...
@@ -329,6 +331,7 @@ export default class FixedAssetsMovement extends Component {
...
@@ -329,6 +331,7 @@ export default class FixedAssetsMovement extends Component {
item
.
total_current_year
,
item
.
total_current_year
,
item
.
total_next_year
,
item
.
total_next_year
,
item
.
total_more_year
,
item
.
total_more_year
,
item
.
order
,
item
.
error
item
.
error
]
]
})
})
...
@@ -346,7 +349,7 @@ export default class FixedAssetsMovement extends Component {
...
@@ -346,7 +349,7 @@ export default class FixedAssetsMovement extends Component {
})
})
}
}
uploadFAM
()
{
uploadFAM
(
type
)
{
let
data
=
[]
let
data
=
[]
this
.
state
.
dataTable
.
map
(
i
=>
{
this
.
state
.
dataTable
.
map
(
i
=>
{
data
.
push
({
data
.
push
({
...
@@ -374,7 +377,8 @@ export default class FixedAssetsMovement extends Component {
...
@@ -374,7 +377,8 @@ export default class FixedAssetsMovement extends Component {
company_id
:
this
.
props
.
company
.
company_id
,
company_id
:
this
.
props
.
company
.
company_id
,
periode
:
this
.
props
.
periode
,
periode
:
this
.
props
.
periode
,
report_id
:
this
.
props
.
report_id
,
report_id
:
this
.
props
.
report_id
,
fixed_asset_movement
:
data
fixed_asset_movement
:
data
,
status
:
type
}
}
console
.
log
(
data
);
console
.
log
(
data
);
api
.
create
(
'UPLOAD'
).
uploadMasterBudget
(
body
).
then
(
response
=>
{
api
.
create
(
'UPLOAD'
).
uploadMasterBudget
(
body
).
then
(
response
=>
{
...
@@ -533,7 +537,14 @@ export default class FixedAssetsMovement extends Component {
...
@@ -533,7 +537,14 @@ export default class FixedAssetsMovement extends Component {
"formula"
:
rilFormula
"formula"
:
rilFormula
}
}
api
.
create
().
countingFormula
(
body
).
then
(
response
=>
{
api
.
create
().
countingFormula
(
body
).
then
(
response
=>
{
console
.
log
(
response
);
// console.log(response);
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
setTimeout
(()
=>
{
return
response
.
data
.
data
.
result
},
2000
);
}
}
})
})
}
else
{
}
else
{
let
body
=
{
let
body
=
{
...
@@ -548,7 +559,9 @@ export default class FixedAssetsMovement extends Component {
...
@@ -548,7 +559,9 @@ export default class FixedAssetsMovement extends Component {
// console.log(response)
// console.log(response)
if
(
response
.
data
)
{
if
(
response
.
data
)
{
if
(
response
.
data
.
status
===
"success"
)
{
if
(
response
.
data
.
status
===
"success"
)
{
setTimeout
(()
=>
{
return
response
.
data
.
data
.
result
return
response
.
data
.
data
.
result
},
2000
);
}
}
}
}
})
})
...
...
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