Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Ad1Appraisal-Mobile
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
Ad1Appraisal-Mobile
Commits
c19cda7a
Commit
c19cda7a
authored
Mar 09, 2020
by
Deni Rinaldi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getData
parent
1e809707
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
appraisal.js
app/container/home/appraisal/appraisal.js
+2
-1
approval.js
app/container/home/approval/approval.js
+3
-3
homepageScreen.js
app/container/home/homepageScreen.js
+2
-2
No files found.
app/container/home/appraisal/appraisal.js
View file @
c19cda7a
...
...
@@ -28,8 +28,9 @@ export default class Appraisal extends Component {
getListAppraisal
()
{
this
.
setState
({
loading
:
true
})
// alert(this.props.navigation.state.params.data.value)
api
.
create
().
getListAppraisal
({
warehouse_id
:
2
warehouse_id
:
Number
(
this
.
props
.
navigation
.
state
.
params
.
data
.
value
)
}).
then
((
response
)
=>
{
// alert(JSON.stringify(response.data))
if
(
response
.
data
.
status
==
"success"
)
{
...
...
app/container/home/approval/approval.js
View file @
c19cda7a
...
...
@@ -30,8 +30,8 @@ export default class Approval extends Component {
getListApproval
()
{
this
.
setState
({
loading
:
true
})
api
.
create
().
getListApproval
({
warehouse_id
:
2
api
.
create
().
getListApproval
({
warehouse_id
:
Number
(
this
.
props
.
navigation
.
state
.
params
.
data
.
value
)
}).
then
((
response
)
=>
{
reactotron
.
log
(
response
.
data
)
if
(
response
.
data
.
status
==
"success"
)
{
...
...
@@ -64,7 +64,7 @@ export default class Approval extends Component {
return
(
<
Container
style
=
{{
flex
:
1
}}
>
<
NavigationEvents
onDidFocus
=
{()
=>
this
.
getListAppr
ais
al
()}
onDidFocus
=
{()
=>
this
.
getListAppr
ov
al
()}
/
>
<
ScrollView
style
=
{{
paddingHorizontal
:
20
,
backgroundColor
:
'#F5F5F5'
,
paddingTop
:
10
}}
showsVerticalScrollIndicator
=
{
false
}
>
{
this
.
state
.
listData
.
map
((
item
,
index
)
=>
{
...
...
app/container/home/homepageScreen.js
View file @
c19cda7a
...
...
@@ -53,9 +53,9 @@ class HomePageScreen extends Component {
// alert('Select Warehouse First!')
}
}
else
if
(
item
==
'Appraisal'
)
{
this
.
props
.
navigation
.
navigate
(
'Appraisal'
)
this
.
props
.
navigation
.
navigate
(
'Appraisal'
,
{
data
:
this
.
state
.
selectedWarehouse
}
)
}
else
{
this
.
props
.
navigation
.
navigate
(
'Approval'
)
this
.
props
.
navigation
.
navigate
(
'Approval'
,
{
data
:
this
.
state
.
selectedWarehouse
}
)
}
}
...
...
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