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
b5d200fd
Commit
b5d200fd
authored
Mar 09, 2020
by
didam
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://103.44.149.204/d.arizona/ad1appraisal-mobile
parents
53da7a24
332ae142
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
2048 additions
and
64 deletions
+2048
-64
appraisal.js
app/container/home/appraisal/appraisal.js
+22
-24
sampleMenuAppraisal.js
app/container/home/appraisal/sampleMenuAppraisal.js
+52
-12
sampleMenuAppraisal2.js
app/container/home/appraisal/sampleMenuAppraisal2.js
+4
-1
sampleMenuAppraisal3.js
app/container/home/appraisal/sampleMenuAppraisal3.js
+12
-2
approval.js
app/container/home/approval/approval.js
+21
-23
sampleMenuApproval.js
app/container/home/approval/sampleMenuApproval.js
+916
-0
sampleMenuApproval2.js
app/container/home/approval/sampleMenuApproval2.js
+281
-0
sampleMenuApproval3.js
app/container/home/approval/sampleMenuApproval3.js
+717
-0
penerimaan.js
app/container/home/penerimaan/penerimaan.js
+2
-1
appNavigation.js
app/navigation/appNavigation.js
+6
-0
api.js
app/service/api.js
+15
-1
No files found.
app/container/home/appraisal/appraisal.js
View file @
b5d200fd
...
...
@@ -30,13 +30,11 @@ export default class Appraisal extends Component {
api
.
create
().
getListAppraisal
({
warehouse_id
:
2
}).
then
((
response
)
=>
{
console
.
log
(
JSON
.
stringify
(
response
.
data
))
// alert
(JSON.stringify(response.data))
if
(
response
.
data
.
status
==
"success"
)
{
let
listData
=
[]
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
appraisal_status
!=
'Rejected'
)
{
listData
.
push
(
item
)
}
listData
.
push
(
item
)
})
this
.
setState
({
listData
},
()
=>
{
setTimeout
(()
=>
{
...
...
@@ -54,29 +52,29 @@ export default class Appraisal extends Component {
{
this
.
state
.
listData
.
map
((
item
,
index
)
=>
{
return
(
<
View
key
=
{
index
}
style
=
{{
paddingHorizontal
:
7
}}
>
{
!
this
.
state
.
loading
&&
(
<
TouchableOpacity
style
=
{{
marginTop
:
10
,
borderRadius
:
20
}}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'MenuAppraisal'
,
{
data
:
item
})}
>
<
View
style
=
{{
height
:
60
,
backgroundColor
:
'#e4b300'
,
justifyContent
:
'space-between'
,
paddingHorizontal
:
20
,
flexDirection
:
'row'
,
borderTopRightRadius
:
10
,
borderTopLeftRadius
:
10
}}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
16
,
fontWeight
:
'700'
}}
>
{
item
.
contract_number
}
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
14
}}
>
{
item
.
nasabah_name
}
<
/Text
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
14
,
textAlign
:
'center'
}}
>
{
item
.
warehouse_code
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
height
:
60
,
backgroundColor
:
'#E6E6E6'
,
justifyContent
:
'space-between'
,
paddingHorizontal
:
20
,
flexDirection
:
'row'
,
borderBottomRightRadius
:
10
,
borderBottomLeftRadius
:
10
}}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
brand
}
-
{
item
.
model
}
<
/Text
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
police_number
}
<
/Text
>
<
TouchableOpacity
style
=
{{
marginTop
:
10
,
borderRadius
:
20
}}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'MenuAppraisal'
,
{
data
:
item
})}
>
<
View
style
=
{{
height
:
60
,
backgroundColor
:
'#e4b300'
,
justifyContent
:
'space-between'
,
paddingHorizontal
:
20
,
flexDirection
:
'row'
,
borderTopRightRadius
:
10
,
borderTopLeftRadius
:
10
}}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
16
,
fontWeight
:
'700'
}}
>
{
item
.
contract_number
}
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
14
}}
>
{
item
.
nasabah_name
}
<
/Text
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
14
,
textAlign
:
'center'
}}
>
{
item
.
warehouse_code
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
appraisal_status
}
<
/Text
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
pull_officer
}
<
/Text
>
<
View
style
=
{{
height
:
60
,
backgroundColor
:
'#E6E6E6'
,
justifyContent
:
'space-between'
,
paddingHorizontal
:
20
,
flexDirection
:
'row'
,
borderBottomRightRadius
:
10
,
borderBottomLeftRadius
:
10
}}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
brand
}
-
{
item
.
model
}
<
/Text
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
police_number
}
<
/Text
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
appraisal_status
}
<
/Text
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
pull_officer
}
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
)}
{
this
.
state
.
loading
&&
(
<
SvgAnimatedLinearGradient
...
...
app/container/home/appraisal/sampleMenuAppraisal.js
View file @
b5d200fd
...
...
@@ -9,14 +9,15 @@ import DateTimePicker from 'react-native-modal-datetime-picker';
import
{
Array
}
from
'../../../library/Array'
;
import
AwesomeButton
from
"react-native-really-awesome-button"
;
import
Colors
from
'../../../library/colors'
;
import
api
from
'../../../service/api'
;
export
default
class
sampleMenuAppraisal
extends
Component
{
constructor
(
props
)
{
super
(
props
)
this
.
state
=
{
data
:
this
.
props
.
navigation
.
state
.
params
.
data
||
""
,
dateUpdate
:
M
(
new
Date
()).
format
(
'
DD-MMM-YYYY
'
),
datePenerimaan
:
M
(
new
Date
()).
format
(
'
DD-MMM-YYYY
'
),
dateUpdate
:
M
(
new
Date
()).
format
(
'
YYYY-MM-DD
'
),
datePenerimaan
:
M
(
new
Date
()).
format
(
'
YYYY-MM-DD
'
),
checked
:
'first'
,
progress
:
false
,
kodeWerehouse
:
''
,
...
...
@@ -36,7 +37,7 @@ export default class sampleMenuAppraisal extends Component {
}
componentDidMount
()
{
// alert(
this.state.date
)
// alert(
JSON.stringify(this.state.data)
)
}
handlePenerimaanDate
(
date
)
{
...
...
@@ -49,6 +50,14 @@ export default class sampleMenuAppraisal extends Component {
this
.
setState
({
dateUpdate
,
isDateTimePickerVisible
:
false
})
}
draftData
()
{
api
.
create
().
postDraftAppraisal
({
contract_id
:
this
.
state
.
data
.
contract_id
}).
then
((
response
)
=>
{
this
.
props
.
navigation
.
navigate
(
'Appraisal'
)
})
}
render
()
{
let
{
data
}
=
this
.
state
return
(
...
...
@@ -283,7 +292,7 @@ export default class sampleMenuAppraisal extends Component {
<
TextInput
onChangeText
=
{(
e
)
=>
this
.
setState
({
namaRemote
:
e
})}
style
=
{
styles
.
textInput
}
value
=
{
this
.
state
.
data
==
""
?
null
:
String
(
data
.
assessment_type
)}
value
=
{
this
.
state
.
data
==
""
?
null
:
String
(
data
.
assessment_type
==
null
?
"-"
:
data
.
assessment_type
)}
editable
=
{
this
.
state
.
data
==
""
?
true
:
false
}
/
>
<
/View
>
...
...
@@ -409,14 +418,23 @@ export default class sampleMenuAppraisal extends Component {
<
View
style
=
{{
height
:
30
,
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
fontSize
:
13
}}
>
Tgl
Perubahan
Data
<
/Text
>
<
/View
>
<
View
style
=
{
styles
.
viewInputEnable
}
>
<
TouchableOpacity
style
=
{
styles
.
viewInputEnable
}
onPress
=
{()
=>
this
.
setState
({
isDateTimePickerVisiblePenerimaan
:
true
})}
>
<
DateTimePicker
mode
=
{
'date'
}
isVisible
=
{
this
.
state
.
isDateTimePickerVisiblePenerimaan
}
onConfirm
=
{(
date
)
=>
this
.
handlePenerimaanDate
(
date
)}
onCancel
=
{()
=>
this
.
setState
({
isDateTimePickerVisiblePenerimaan
:
false
})}
/
>
<
TextInput
onChangeText
=
{(
e
)
=>
this
.
setState
({
namaRemote
:
e
})}
style
=
{
styles
.
textInput
}
value
=
{
this
.
state
.
namaRemote
}
editable
value
=
{
this
.
state
.
datePenerimaan
}
editable
=
{
false
}
/
>
<
/
View
>
<
/
TouchableOpacity
>
<
/View
>
<
/View
>
...
...
@@ -732,7 +750,7 @@ export default class sampleMenuAppraisal extends Component {
<
TextInput
onChangeText
=
{(
e
)
=>
this
.
setState
({
namaRemote
:
e
})}
style
=
{
styles
.
textInput
}
value
=
{
this
.
state
.
data
==
""
?
null
:
String
(
data
.
key
)}
value
=
{
this
.
state
.
data
==
""
?
null
:
String
(
data
.
unit_
key
)}
editable
=
{
this
.
state
.
data
==
""
?
true
:
false
}
/
>
<
/View
>
...
...
@@ -860,7 +878,29 @@ export default class sampleMenuAppraisal extends Component {
<
/CollapseBody
>
<
/Collapse
>
<
View
style
=
{{
width
:
'100%'
,
justifyContent
:
'flex-end'
,
marginTop
:
20
,
alignSelf
:
'center'
,
alignContent
:
'flex-end'
,
alignItems
:
'center'
,
marginBottom
:
20
}}
>
<
View
style
=
{{
width
:
'100%'
,
justifyContent
:
'space-evenly'
,
marginTop
:
20
,
alignSelf
:
'center'
,
alignContent
:
'flex-end'
,
alignItems
:
'center'
,
marginBottom
:
20
,
flexDirection
:
'row'
}}
>
<
AwesomeButton
backgroundColor
=
{
Colors
.
yellowBasic
}
backgroundShadow
=
{
'#DBDBDB'
}
backgroundPlaceholder
=
{
null
}
backgroundDarker
=
{
'#FFED75'
}
backgroundProgress
=
{
null
}
width
=
{
120
}
height
=
{
45
}
raiseLevel
=
{
5
}
borderRadius
=
{
10
}
progressLoadingTime
=
{
1000
}
progress
=
{
!
this
.
state
.
progress
}
onPress
=
{
next
=>
{
setTimeout
(()
=>
{
this
.
draftData
()
next
()
},
300
);
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontWeight
:
'700'
}}
>
Draft
<
/Text
>
<
/AwesomeButton
>
<
AwesomeButton
backgroundColor
=
{
Colors
.
yellowBasic
}
backgroundShadow
=
{
'#DBDBDB'
}
...
...
@@ -875,7 +915,7 @@ export default class sampleMenuAppraisal extends Component {
progress
=
{
!
this
.
state
.
progress
}
onPress
=
{
next
=>
{
setTimeout
(()
=>
{
this
.
props
.
navigation
.
navigate
(
'MenuAppraisal2'
)
this
.
props
.
navigation
.
navigate
(
'MenuAppraisal2'
,
{
contract_id
:
this
.
state
.
data
.
contract_id
}
)
next
()
},
300
);
}}
...
...
app/container/home/appraisal/sampleMenuAppraisal2.js
View file @
b5d200fd
...
...
@@ -25,6 +25,9 @@ export default class sampleMenuAppraisal2 extends Component {
}
}
componentDidMount
(){
}
async
requestCameraPermission
(
type
)
{
try
{
const
granted
=
await
PermissionsAndroid
.
request
(
...
...
@@ -251,7 +254,7 @@ export default class sampleMenuAppraisal2 extends Component {
progress
=
{
!
this
.
state
.
progress
}
onPress
=
{
next
=>
{
setTimeout
(()
=>
{
this
.
props
.
navigation
.
navigate
(
'MenuAppraisal3'
)
this
.
props
.
navigation
.
navigate
(
'MenuAppraisal3'
,
{
contract_id
:
this
.
props
.
navigation
.
state
.
params
.
contract_id
}
)
next
()
},
300
);
}}
...
...
app/container/home/appraisal/sampleMenuAppraisal3.js
View file @
b5d200fd
...
...
@@ -7,6 +7,7 @@ import StepIndicator from 'react-native-step-indicator';
import
{
Array
}
from
'../../../library/Array'
;
import
AwesomeButton
from
"react-native-really-awesome-button"
;
import
Colors
from
'../../../library/colors'
;
import
api
from
'../../../service/api'
;
export
default
class
sampleMenuAppraisal3
extends
Component
{
constructor
(
props
)
{
...
...
@@ -37,6 +38,15 @@ export default class sampleMenuAppraisal3 extends Component {
radiaotor
:
''
}
}
validasi
(){
api
.
create
().
postAppraisal
({
contract_id
:
this
.
props
.
navigation
.
state
.
params
.
contract_id
}).
then
((
response
)
=>
{
this
.
props
.
navigation
.
navigate
(
'Appraisal'
)
})
}
render
()
{
return
(
<
Container
style
=
{{
flex
:
1
,
paddingHorizontal
:
10
}}
>
...
...
@@ -650,12 +660,12 @@ export default class sampleMenuAppraisal3 extends Component {
progress
=
{
!
this
.
state
.
progress
}
onPress
=
{
next
=>
{
setTimeout
(()
=>
{
this
.
props
.
navigation
.
navigate
(
'Appraisal'
)
this
.
validasi
(
)
next
()
},
300
);
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontWeight
:
'700'
}}
>
Berikutnya
<
/Text
>
<
Text
style
=
{{
color
:
'black'
,
fontWeight
:
'700'
}}
>
Simpan
<
/Text
>
<
/AwesomeButton
>
<
/View
>
...
...
app/container/home/approval/approval.js
View file @
b5d200fd
...
...
@@ -34,9 +34,7 @@ export default class Approval extends Component {
if
(
response
.
data
.
status
==
"success"
)
{
let
listData
=
[]
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
appraisal_status
!=
'Rejected'
)
{
listData
.
push
(
item
)
}
listData
.
push
(
item
)
})
this
.
setState
({
listData
},
()
=>
{
setTimeout
(()
=>
{
...
...
@@ -54,29 +52,29 @@ export default class Approval extends Component {
{
this
.
state
.
listData
.
map
((
item
,
index
)
=>
{
return
(
<
View
key
=
{
index
}
style
=
{{
paddingHorizontal
:
7
}}
>
{
!
this
.
state
.
loading
&&
(
<
TouchableOpacity
style
=
{{
marginTop
:
10
,
borderRadius
:
20
}}
onLongPress
=
{()
=>
alert
(
'takeit'
)}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'MenuAppraisal'
,
{
data
:
item
})}
>
<
View
style
=
{{
height
:
60
,
backgroundColor
:
'#e4b300'
,
justifyContent
:
'space-between'
,
paddingHorizontal
:
20
,
flexDirection
:
'row'
,
borderTopRightRadius
:
10
,
borderTopLeftRadius
:
10
}}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
16
,
fontWeight
:
'700'
}}
>
{
item
.
contract_number
}
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
14
}}
>
{
item
.
nasabah_name
}
<
/Text
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
14
,
textAlign
:
'center'
}}
>
{
item
.
warehouse_code
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
height
:
60
,
backgroundColor
:
'#E6E6E6'
,
justifyContent
:
'space-between'
,
paddingHorizontal
:
20
,
flexDirection
:
'row'
,
borderBottomRightRadius
:
10
,
borderBottomLeftRadius
:
10
}}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
brand
}
-
{
item
.
model
}
<
/Text
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
police_number
}
<
/Text
>
<
TouchableOpacity
style
=
{{
marginTop
:
10
,
borderRadius
:
20
}}
onLongPress
=
{()
=>
alert
(
'takeit'
)}
onPress
=
{()
=>
this
.
props
.
navigation
.
navigate
(
'MenuApproval'
,
{
data
:
item
})}
>
<
View
style
=
{{
height
:
60
,
backgroundColor
:
'#e4b300'
,
justifyContent
:
'space-between'
,
paddingHorizontal
:
20
,
flexDirection
:
'row'
,
borderTopRightRadius
:
10
,
borderTopLeftRadius
:
10
}}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
16
,
fontWeight
:
'700'
}}
>
{
item
.
contract_number
}
<
/Text
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
14
}}
>
{
item
.
nasabah_name
}
<
/Text
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'white'
,
fontSize
:
14
,
textAlign
:
'center'
}}
>
{
item
.
warehouse_code
}
<
/Text
>
<
/View
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
appraisal_status
}
<
/Text
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
pull_officer
}
<
/Text
>
<
View
style
=
{{
height
:
60
,
backgroundColor
:
'#E6E6E6'
,
justifyContent
:
'space-between'
,
paddingHorizontal
:
20
,
flexDirection
:
'row'
,
borderBottomRightRadius
:
10
,
borderBottomLeftRadius
:
10
}}
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
brand
}
-
{
item
.
model
}
<
/Text
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
police_number
}
<
/Text
>
<
/View
>
<
View
style
=
{{
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
appraisal_status
}
<
/Text
>
<
Text
style
=
{{
color
:
'black'
,
fontSize
:
14
}}
>
{
item
.
pull_officer
}
<
/Text
>
<
/View
>
<
/View
>
<
/View
>
<
/TouchableOpacity
>
<
/TouchableOpacity
>
)}
{
this
.
state
.
loading
&&
(
<
SvgAnimatedLinearGradient
...
...
app/container/home/approval/sampleMenuApproval.js
0 → 100644
View file @
b5d200fd
This diff is collapsed.
Click to expand it.
app/container/home/approval/sampleMenuApproval2.js
0 → 100644
View file @
b5d200fd
This diff is collapsed.
Click to expand it.
app/container/home/approval/sampleMenuApproval3.js
0 → 100644
View file @
b5d200fd
This diff is collapsed.
Click to expand it.
app/container/home/penerimaan/penerimaan.js
View file @
b5d200fd
...
...
@@ -26,8 +26,9 @@ export default class Penerimaan extends Component {
getListData
()
{
api
.
create
().
getListClar
({
warehouse_id
:
Number
(
this
.
props
.
navigation
.
state
.
params
.
data
)
warehouse_id
:
Number
(
this
.
props
.
navigation
.
state
.
params
.
data
.
value
)
}).
then
((
response
)
=>
{
// alert(JSON.stringify(response))
let
listClar
=
[]
response
.
data
.
data
.
map
((
item
,
index
)
=>
{
listClar
.
push
(
item
)
...
...
app/navigation/appNavigation.js
View file @
b5d200fd
...
...
@@ -20,6 +20,9 @@ import MenuPenerimaan from '../container/home/penerimaan/sampleMenuPenerimaan'
import
MenuPenerimaan2
from
'../container/home/penerimaan/sampleMenuPenerimaan2'
import
MenuPenerimaan3
from
'../container/home/penerimaan/sampleMenuPenerimaan3'
import
Approval
from
'../container/home/approval/approval'
import
MenuApproval
from
'../container/home/approval/sampleMenuApproval'
import
MenuApproval2
from
'../container/home/approval/sampleMenuApproval2'
import
MenuApproval3
from
'../container/home/approval/sampleMenuApproval3'
//IconBack
import
IconBack
from
'react-native-vector-icons/MaterialIcons'
...
...
@@ -48,6 +51,9 @@ const MainNavigator = createStackNavigator({
MenuPenerimaan2
:
{
screen
:
MenuPenerimaan2
,
navigationOptions
:
{
title
:
'Menu Penerimaan'
}
},
MenuPenerimaan3
:
{
screen
:
MenuPenerimaan3
,
navigationOptions
:
{
title
:
'Menu Penerimaan'
}
},
Approval
:
{
screen
:
Approval
,
navigationOptions
:
{
title
:
'Approval'
}
},
MenuApproval
:
{
screen
:
MenuApproval
,
navigationOptions
:
{
title
:
'Menu Approval'
}
},
MenuApproval2
:
{
screen
:
MenuApproval2
,
navigationOptions
:
{
title
:
'Menu Approval'
}
},
MenuApproval3
:
{
screen
:
MenuApproval3
,
navigationOptions
:
{
title
:
'Menu Approval'
}
},
// LatihanDragDrop: { screen: LatihanDragDrop, navigationOptions: { title: 'Latihan'}}
},
{
headerMode
:
'screen'
,
...
...
app/service/api.js
View file @
b5d200fd
...
...
@@ -44,11 +44,18 @@ const create = () => {
const
login
=
(
value
)
=>
POST
(
'auth/login'
,
value
)
const
getListClar
=
(
value
)
=>
api
.
post
(
'demo/get_list_clar'
,
value
)
const
postPenerimaan
=
(
value
)
=>
POST
(
'demo/accepted'
,
value
)
const
postPenolakan
=
(
value
)
=>
POST
(
'demo/rejecting_accept'
,
value
)
const
getWarehouse
=
()
=>
GET
(
'demo/get_user_warehouse'
)
const
getPermission
=
()
=>
GET
(
'demo/get_permission'
)
const
getUserWarehouse
=
()
=>
GET
(
'demo/get_user_warehouse'
)
const
getListAppraisal
=
(
value
)
=>
POST
(
'demo/get_list_appraisal'
,
value
)
const
postDraftAppraisal
=
(
value
)
=>
POST
(
'demo/drafting_appraisal'
,
value
)
const
postAppraisal
=
(
value
)
=>
POST
(
'demo/appraisal'
,
value
)
const
getListApproval
=
(
value
)
=>
POST
(
'demo/get_list_approval'
,
value
)
const
postApproval
=
(
value
)
=>
POST
(
'demo/approval'
,
value
)
const
postRejectApproval
=
(
value
)
=>
POST
(
'demo/rejecting_approval'
,
value
)
const
postApprovalDetail
=
(
value
)
=>
POST
(
'demo/approval_detail'
,
value
)
const
getHistory
=
()
=>
GET
(
'demo/get_history'
)
...
...
@@ -60,7 +67,14 @@ const create = () => {
getUserWarehouse
,
getListAppraisal
,
getListApproval
,
getHistory
getHistory
,
postPenerimaan
,
postAppraisal
,
postApproval
,
postPenolakan
,
postDraftAppraisal
,
postRejectApproval
,
postApprovalDetail
}
}
...
...
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