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
6b1962f4
Commit
6b1962f4
authored
Mar 09, 2020
by
didam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
didam
parent
b5d200fd
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
121 additions
and
70 deletions
+121
-70
history.js
app/container/history/history.js
+5
-1
sampleMenuApproval2.js
app/container/home/approval/sampleMenuApproval2.js
+33
-47
sampleMenuApproval3.js
app/container/home/approval/sampleMenuApproval3.js
+58
-15
penerimaan.js
app/container/home/penerimaan/penerimaan.js
+4
-1
sampleMenuPenerimaan2.js
app/container/home/penerimaan/sampleMenuPenerimaan2.js
+2
-2
sampleMenuPenerimaan3.js
app/container/home/penerimaan/sampleMenuPenerimaan3.js
+12
-1
profile.js
app/container/profile/profile.js
+7
-3
No files found.
app/container/history/history.js
View file @
6b1962f4
...
...
@@ -10,6 +10,7 @@ import fonts from '../../library/fonts';
import
api
from
'../../service/api'
;
import
reactotron
from
'reactotron-react-native'
;
import
moment
from
'moment'
;
import
{
NavigationEvents
}
from
'react-navigation'
;
const
dateNow
=
M
().
format
(
'DD-MM-YYYY'
)
...
...
@@ -122,6 +123,9 @@ class History extends Component {
Width_Layout
:
event
.
nativeEvent
.
layout
.
width
,
Height_Layout
:
event
.
nativeEvent
.
layout
.
height
},
()
=>
this
.
DetectOrientation
())}
>
<
NavigationEvents
onDidFocus
=
{()
=>
this
.
getHistory
()}
/>
<
View
style
=
{
this
.
state
.
OrientationStatus
==
'Landscape'
?
{
width
:
'100%'
,
backgroundColor
:
'#e4b300'
,
zIndex
:
1
,
height
:
80
}
:
{
width
:
'100%'
,
backgroundColor
:
'#e4b300'
,
zIndex
:
1
,
height
:
'10%'
}}
>
<
View
style
=
{{
alignItems
:
'center'
,
justifyContent
:
'center'
,
marginTop
:
20
}}
>
<
Text
style
=
{{
fontWeight
:
'bold'
,
fontSize
:
20
,
fontStyle
:
'italic'
}}
>
My
History
<
/Text
>
...
...
app/container/home/approval/sampleMenuApproval2.js
View file @
6b1962f4
...
...
@@ -10,6 +10,7 @@ import AwesomeButton from "react-native-really-awesome-button";
import
DocumentPicker
from
'react-native-document-picker'
import
RNFetchBlob
from
'rn-fetch-blob'
import
Colors
from
'../../../library/colors'
;
import
reactotron
from
'reactotron-react-native'
;
export
default
class
sampleMenuPenerimaan3
extends
Component
{
constructor
(
props
)
{
...
...
@@ -27,7 +28,7 @@ export default class sampleMenuPenerimaan3 extends Component {
}
componentDidMount
()
{
// alert(JSON.stringify(this.state.data)
)
reactotron
.
log
(
this
.
state
.
data
.
photo_unit
)
}
async
requestCameraPermission
(
type
)
{
...
...
@@ -145,7 +146,7 @@ export default class sampleMenuPenerimaan3 extends Component {
<
View
style
=
{{
height
:
30
,
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
fontSize
:
13
}}
>
Foto
No
Rangka
<
/Text
>
<
/View
>
<
TouchableOpacity
style
=
{
styles
.
viewRangka
}
onPress
=
{()
=>
this
.
requestCameraPermission
(
'rangka'
)
}
>
<
TouchableOpacity
style
=
{
styles
.
viewRangka
}
onPress
=
{()
=>
null
}
>
<
View
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
borderColor
:
'rgba(237, 57, 99, .5)'
,
borderStyle
:
'dotted'
,
borderWidth
:
2
,
borderRadius
:
5
...
...
@@ -156,7 +157,7 @@ export default class sampleMenuPenerimaan3 extends Component {
<
Text
style
=
{{
color
:
'rgba(237, 57, 99, .5)'
,
textAlign
:
'center'
,
fontSize
:
40
}}
>+<
/Text
>
<
/View>
:
<
Image
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
resizeMode
:
'cover'
}}
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
resizeMode
:
'cover'
,
borderRadius
:
5
}}
source
=
{{
uri
:
data
.
chassis_number_photo
}}
/
>
}
...
...
@@ -168,7 +169,7 @@ export default class sampleMenuPenerimaan3 extends Component {
<
View
style
=
{{
height
:
30
,
justifyContent
:
'center'
}}
>
<
Text
style
=
{{
fontSize
:
13
}}
>
Foto
No
Mesin
<
/Text
>
<
/View
>
<
TouchableOpacity
style
=
{
styles
.
viewRangka
}
onPress
=
{()
=>
{
this
.
state
.
imageMesin
!=
''
?
this
.
setState
({
viewerMesin
:
true
})
:
this
.
requestCameraPermission
(
'mesin'
)
}}
>
<
TouchableOpacity
style
=
{
styles
.
viewRangka
}
onPress
=
{()
=>
{
null
}}
>
<
View
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
borderColor
:
'rgba(237, 57, 99, .5)'
,
borderStyle
:
'dotted'
,
borderWidth
:
2
,
borderRadius
:
5
...
...
@@ -179,7 +180,7 @@ export default class sampleMenuPenerimaan3 extends Component {
<
Text
style
=
{{
color
:
'rgba(237, 57, 99, .5)'
,
textAlign
:
'center'
,
fontSize
:
40
}}
>+<
/Text
>
<
/View>
:
<
Image
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
resizeMode
:
'stretch'
}}
style
=
{{
width
:
'100%'
,
height
:
'100%'
,
resizeMode
:
'stretch'
,
borderRadius
:
5
}}
source
=
{{
uri
:
data
.
engine_number_photo
}}
/
>
}
...
...
@@ -193,51 +194,36 @@ export default class sampleMenuPenerimaan3 extends Component {
<
/View
>
<
View
style
=
{
styles
.
viewFotoUnit
}
>
<
View
style
=
{{
flexDirection
:
'row'
,
height
:
'45%'
,
justifyContent
:
'space-between'
}}
>
{
this
.
state
.
data
.
photo_unit
.
map
((
item
,
index
)
=>
{
if
(
index
<
3
)
{
return
(
<
View
style
=
{{
width
:
'30%'
,
height
:
'100%'
,
borderColor
:
'rgba(237, 57, 99, .5)'
,
borderStyle
:
'dotted'
,
borderWidth
:
2
,
borderRadius
:
5
}}
>
<
/View
>
<
View
style
=
{{
width
:
'30%'
,
height
:
'100%'
,
borderColor
:
'rgba(237, 57, 99, .5)'
,
borderStyle
:
'dotted'
,
borderWidth
:
2
,
borderRadius
:
5
}}
>
<
/View
>
<
View
style
=
{{
width
:
'30%'
,
height
:
'100%'
,
borderColor
:
'rgba(237, 57, 99, .5)'
,
borderStyle
:
'dotted'
,
borderWidth
:
2
,
borderRadius
:
5
}}
>
<
Image
source
=
{{
uri
:
item
}}
resizeMode
=
{
'stretch'
}
style
=
{{
height
:
'100%'
,
width
:
'100%'
,
borderRadius
:
20
}}
/
>
<
/View>
)
}
})}
<
/View
>
<
View
style
=
{{
flexDirection
:
'row'
,
height
:
'45%'
,
justifyContent
:
'space-between'
}}
>
{
this
.
state
.
data
.
photo_unit
.
map
((
item
,
index
)
=>
{
reactotron
.
log
(
item
)
if
(
index
>
2
)
{
return
(
<
View
style
=
{{
width
:
'30%'
,
height
:
'100%'
,
borderColor
:
'rgba(237, 57, 99, .5)'
,
borderStyle
:
'dotted'
,
borderWidth
:
2
,
borderRadius
:
5
}}
>
<
/View
>
<
View
style
=
{{
width
:
'30%'
,
height
:
'100%'
,
borderColor
:
'rgba(237, 57, 99, .5)'
,
borderStyle
:
'dotted'
,
borderWidth
:
2
,
borderRadius
:
5
}}
>
<
/View
>
<
View
style
=
{{
width
:
'30%'
,
height
:
'100%'
,
borderColor
:
'rgba(237, 57, 99, .5)'
,
borderStyle
:
'dotted'
,
borderWidth
:
2
,
borderRadius
:
5
}}
>
<
Image
source
=
{{
uri
:
item
}}
resizeMode
=
{
'stretch'
}
style
=
{{
height
:
'100%'
,
width
:
'100%'
,
borderRadius
:
20
}}
/
>
<
/View>
)
}
})}
<
/View
>
<
/View
>
...
...
app/container/home/approval/sampleMenuApproval3.js
View file @
6b1962f4
...
...
@@ -25,17 +25,17 @@ export default class sampleMenuApproval3 extends Component {
collapseFrame
:
true
,
collapseElectrical
:
true
,
collapseEngine
:
true
,
ban
:
''
,
velg
:
''
,
rem
:
''
,
shock
:
''
,
lampu
:
''
,
meter
:
''
,
holder
:
''
,
mesin
:
''
,
blok
:
''
,
sistem
:
''
,
radiaotor
:
''
ban
:
'
85
'
,
velg
:
'
85
'
,
rem
:
'
75
'
,
shock
:
'
50
'
,
lampu
:
'
50
'
,
meter
:
'
75
'
,
holder
:
'
75
'
,
mesin
:
'
75
'
,
blok
:
'
85
'
,
sistem
:
'
100
'
,
radiaotor
:
'
100
'
}
}
...
...
@@ -44,7 +44,6 @@ export default class sampleMenuApproval3 extends Component {
api
.
create
().
postApprovalDetail
({
contract_id
:
this
.
props
.
navigation
.
state
.
params
.
data
.
contract_id
}).
then
((
response
)
=>
{
alert
(
JSON
.
stringify
(
response
))
this
.
props
.
navigation
.
navigate
(
'Approval'
)
})
}
...
...
@@ -53,7 +52,6 @@ export default class sampleMenuApproval3 extends Component {
api
.
create
().
postRejectApproval
({
contract_id
:
this
.
props
.
navigation
.
state
.
params
.
data
.
contract_id
}).
then
((
response
)
=>
{
alert
(
JSON
.
stringify
(
response
))
this
.
props
.
navigation
.
navigate
(
'Approval'
)
})
}
...
...
@@ -64,7 +62,7 @@ export default class sampleMenuApproval3 extends Component {
<
ScrollView
showsVerticalScrollIndicator
=
{
false
}
>
<
View
style
=
{{
padding
:
20
,
justifyContent
:
'center'
,
width
:
'100%'
}}
>
<
Text
style
=
{{
alignSelf
:
'center'
,
fontSize
:
18
,
fontWeight
:
'bold'
}}
>
Appr
ais
al
<
/Text
>
<
Text
style
=
{{
alignSelf
:
'center'
,
fontSize
:
18
,
fontWeight
:
'bold'
}}
>
Appr
ov
al
<
/Text
>
<
/View
>
<
StepIndicator
labels
=
{
Array
.
labelAppraisal
}
...
...
@@ -128,7 +126,8 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'50%'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
}}
>
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"25"
value
=
{
this
.
state
.
ban
}
disabled
=
{
true
}
status
=
{
this
.
state
.
ban
===
'25'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
ban
:
'25'
});
}}
/
>
...
...
@@ -136,6 +135,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"50"
disabled
=
{
true
}
status
=
{
this
.
state
.
ban
===
'50'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
ban
:
'50'
});
}}
/
>
...
...
@@ -143,6 +143,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"75"
disabled
=
{
true
}
status
=
{
this
.
state
.
ban
===
'75'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
ban
:
'75'
});
}}
/
>
...
...
@@ -150,6 +151,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"85"
// disabled={true}
status
=
{
this
.
state
.
ban
===
'85'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
ban
:
'85'
});
}}
/
>
...
...
@@ -157,6 +159,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"100"
disabled
=
{
true
}
status
=
{
this
.
state
.
ban
===
'100'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
ban
:
'100'
});
}}
/
>
...
...
@@ -172,6 +175,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"25"
disabled
=
{
true
}
status
=
{
this
.
state
.
velg
===
'25'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
velg
:
'25'
});
}}
/
>
...
...
@@ -179,6 +183,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"50"
disabled
=
{
true
}
status
=
{
this
.
state
.
velg
===
'50'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
velg
:
'50'
});
}}
/
>
...
...
@@ -186,6 +191,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"75"
disabled
=
{
true
}
status
=
{
this
.
state
.
velg
===
'75'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
velg
:
'75'
});
}}
/
>
...
...
@@ -200,6 +206,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"100"
disabled
=
{
true
}
status
=
{
this
.
state
.
velg
===
'100'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
velg
:
'100'
});
}}
/
>
...
...
@@ -215,6 +222,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"25"
disabled
=
{
true
}
status
=
{
this
.
state
.
rem
===
'25'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
rem
:
'25'
});
}}
/
>
...
...
@@ -222,6 +230,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"50"
disabled
=
{
true
}
status
=
{
this
.
state
.
rem
===
'50'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
rem
:
'50'
});
}}
/
>
...
...
@@ -236,6 +245,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"85"
disabled
=
{
true
}
status
=
{
this
.
state
.
rem
===
'85'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
rem
:
'85'
});
}}
/
>
...
...
@@ -243,6 +253,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"100"
disabled
=
{
true
}
status
=
{
this
.
state
.
rem
===
'100'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
rem
:
'100'
});
}}
/
>
...
...
@@ -258,6 +269,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"25"
disabled
=
{
true
}
status
=
{
this
.
state
.
shock
===
'25'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
shock
:
'25'
});
}}
/
>
...
...
@@ -272,6 +284,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"75"
disabled
=
{
true
}
status
=
{
this
.
state
.
shock
===
'75'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
shock
:
'75'
});
}}
/
>
...
...
@@ -279,6 +292,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"85"
disabled
=
{
true
}
status
=
{
this
.
state
.
shock
===
'85'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
shock
:
'85'
});
}}
/
>
...
...
@@ -286,6 +300,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"100"
disabled
=
{
true
}
status
=
{
this
.
state
.
shock
===
'100'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
shock
:
'100'
});
}}
/
>
...
...
@@ -329,6 +344,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"25"
disabled
=
{
true
}
status
=
{
this
.
state
.
lampu
===
'25'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
lampu
:
'25'
});
}}
/
>
...
...
@@ -343,6 +359,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"75"
disabled
=
{
true
}
status
=
{
this
.
state
.
lampu
===
'75'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
lampu
:
'75'
});
}}
/
>
...
...
@@ -350,6 +367,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"85"
disabled
=
{
true
}
status
=
{
this
.
state
.
lampu
===
'85'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
lampu
:
'85'
});
}}
/
>
...
...
@@ -357,6 +375,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"100"
disabled
=
{
true
}
status
=
{
this
.
state
.
lampu
===
'100'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
lampu
:
'100'
});
}}
/
>
...
...
@@ -372,6 +391,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"25"
disabled
=
{
true
}
status
=
{
this
.
state
.
meter
===
'25'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
meter
:
'25'
});
}}
/
>
...
...
@@ -379,6 +399,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"50"
disabled
=
{
true
}
status
=
{
this
.
state
.
meter
===
'50'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
meter
:
'50'
});
}}
/
>
...
...
@@ -393,6 +414,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"85"
disabled
=
{
true
}
status
=
{
this
.
state
.
meter
===
'85'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
meter
:
'85'
});
}}
/
>
...
...
@@ -400,6 +422,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"100"
disabled
=
{
true
}
status
=
{
this
.
state
.
meter
===
'100'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
meter
:
'100'
});
}}
/
>
...
...
@@ -415,6 +438,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"25"
disabled
=
{
true
}
status
=
{
this
.
state
.
holder
===
'25'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
holder
:
'25'
});
}}
/
>
...
...
@@ -422,6 +446,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"50"
disabled
=
{
true
}
status
=
{
this
.
state
.
holder
===
'50'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
holder
:
'50'
});
}}
/
>
...
...
@@ -436,6 +461,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"85"
disabled
=
{
true
}
status
=
{
this
.
state
.
holder
===
'85'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
holder
:
'85'
});
}}
/
>
...
...
@@ -443,6 +469,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"100"
disabled
=
{
true
}
status
=
{
this
.
state
.
holder
===
'100'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
holder
:
'100'
});
}}
/
>
...
...
@@ -486,6 +513,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"25"
disabled
=
{
true
}
status
=
{
this
.
state
.
mesin
===
'25'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
mesin
:
'25'
});
}}
/
>
...
...
@@ -493,6 +521,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"50"
disabled
=
{
true
}
status
=
{
this
.
state
.
mesin
===
'50'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
mesin
:
'50'
});
}}
/
>
...
...
@@ -507,6 +536,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"85"
disabled
=
{
true
}
status
=
{
this
.
state
.
mesin
===
'85'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
mesin
:
'85'
});
}}
/
>
...
...
@@ -514,6 +544,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"100"
disabled
=
{
true
}
status
=
{
this
.
state
.
mesin
===
'100'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
mesin
:
'100'
});
}}
/
>
...
...
@@ -529,6 +560,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"25"
disabled
=
{
true
}
status
=
{
this
.
state
.
blok
===
'25'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
blok
:
'25'
});
}}
/
>
...
...
@@ -536,6 +568,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"50"
disabled
=
{
true
}
status
=
{
this
.
state
.
blok
===
'50'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
blok
:
'50'
});
}}
/
>
...
...
@@ -543,6 +576,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"75"
disabled
=
{
true
}
status
=
{
this
.
state
.
blok
===
'75'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
blok
:
'75'
});
}}
/
>
...
...
@@ -557,6 +591,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"100"
disabled
=
{
true
}
status
=
{
this
.
state
.
blok
===
'100'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
blok
:
'100'
});
}}
/
>
...
...
@@ -572,6 +607,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"25"
disabled
=
{
true
}
status
=
{
this
.
state
.
sistem
===
'25'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
sistem
:
'25'
});
}}
/
>
...
...
@@ -579,6 +615,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"50"
disabled
=
{
true
}
status
=
{
this
.
state
.
sistem
===
'50'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
sistem
:
'50'
});
}}
/
>
...
...
@@ -586,6 +623,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"75"
disabled
=
{
true
}
status
=
{
this
.
state
.
sistem
===
'75'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
sistem
:
'75'
});
}}
/
>
...
...
@@ -593,6 +631,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"85"
disabled
=
{
true
}
status
=
{
this
.
state
.
sistem
===
'85'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
sistem
:
'85'
});
}}
/
>
...
...
@@ -615,6 +654,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"25"
disabled
=
{
true
}
status
=
{
this
.
state
.
radiaotor
===
'25'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
radiaotor
:
'25'
});
}}
/
>
...
...
@@ -622,6 +662,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"50"
disabled
=
{
true
}
status
=
{
this
.
state
.
radiaotor
===
'50'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
radiaotor
:
'50'
});
}}
/
>
...
...
@@ -629,6 +670,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"75"
disabled
=
{
true
}
status
=
{
this
.
state
.
radiaotor
===
'75'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
radiaotor
:
'75'
});
}}
/
>
...
...
@@ -636,6 +678,7 @@ export default class sampleMenuApproval3 extends Component {
<
View
style
=
{{
width
:
'20%'
}}
>
<
RadioButton
value
=
"85"
disabled
=
{
true
}
status
=
{
this
.
state
.
radiaotor
===
'85'
?
'checked'
:
'unchecked'
}
onPress
=
{()
=>
{
this
.
setState
({
radiaotor
:
'85'
});
}}
/
>
...
...
app/container/home/penerimaan/penerimaan.js
View file @
6b1962f4
...
...
@@ -4,6 +4,7 @@ import { Container, Fab, Icon } from 'native-base'
import
SvgAnimatedLinearGradient
from
'react-native-svg-animated-linear-gradient'
import
Svg
,
{
Circle
,
Rect
}
from
'react-native-svg'
import
api
from
'../../../service/api'
import
{
NavigationEvents
}
from
'react-navigation'
export
default
class
Penerimaan
extends
Component
{
...
...
@@ -44,8 +45,10 @@ export default class Penerimaan extends Component {
render
()
{
return
(
<
Container
style
=
{{
flex
:
1
}}
>
<
NavigationEvents
onDidFocus
=
{()
=>
this
.
getListData
()}
/
>
<
ScrollView
style
=
{{
paddingHorizontal
:
20
,
backgroundColor
:
'#F5F5F5'
,
paddingTop
:
10
}}
showsVerticalScrollIndicator
=
{
false
}
>
{
this
.
state
.
listClar
.
map
((
item
,
index
)
=>
{
return
(
<
View
key
=
{
index
}
style
=
{{
paddingHorizontal
:
7
}}
>
...
...
app/container/home/penerimaan/sampleMenuPenerimaan2.js
View file @
6b1962f4
...
...
@@ -73,7 +73,7 @@ export default class sampleMenuPenerimaan2 extends Component {
<
View
style
=
{{
borderColor
:
'rgba(237, 57, 99, .5)'
,
borderWidth
:
.
8
,
justifyContent
:
'center'
,
borderRadius
:
5
,
width
:
'60%'
}}
>
<
TextInput
style
=
{{
paddingHorizontal
:
10
,
paddingVertical
:
0
,
color
:
'#999999'
}}
value
=
{
'Test'
}
value
=
{
data
.
model
}
/
>
<
/View
>
<
View
style
=
{{
width
:
'40%'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingHorizontal
:
5
}}
>
...
...
@@ -104,7 +104,7 @@ export default class sampleMenuPenerimaan2 extends Component {
<
View
style
=
{{
borderColor
:
'rgba(237, 57, 99, .5)'
,
borderWidth
:
.
8
,
justifyContent
:
'center'
,
borderRadius
:
5
,
width
:
'60%'
}}
>
<
TextInput
style
=
{{
paddingHorizontal
:
10
,
paddingVertical
:
0
,
color
:
'#999999'
}}
value
=
{
this
.
state
.
data
==
""
?
""
:
`
${
data
.
brand
}
-
${
data
.
model
}
`
}
value
=
{
this
.
state
.
data
==
""
?
""
:
`
${
data
.
brand
}
`
}
/
>
<
/View
>
<
View
style
=
{{
width
:
'40%'
,
flexDirection
:
'row'
,
justifyContent
:
'space-between'
,
paddingHorizontal
:
5
}}
>
...
...
app/container/home/penerimaan/sampleMenuPenerimaan3.js
View file @
6b1962f4
...
...
@@ -10,6 +10,8 @@ import AwesomeButton from "react-native-really-awesome-button";
import
DocumentPicker
from
'react-native-document-picker'
import
RNFetchBlob
from
'rn-fetch-blob'
import
Colors
from
'../../../library/colors'
;
import
api
from
'../../../service/api'
;
import
reactotron
from
'reactotron-react-native'
;
export
default
class
sampleMenuPenerimaan3
extends
Component
{
constructor
(
props
)
{
...
...
@@ -90,6 +92,15 @@ export default class sampleMenuPenerimaan3 extends Component {
}
}
handlePenerimaan
()
{
api
.
create
().
postPenerimaan
({
contract_id
:
this
.
state
.
data
.
contract_id
}).
then
((
Response
)
=>
{
reactotron
.
log
(
Response
)
})
this
.
props
.
navigation
.
navigate
(
'Penerimaan'
)
}
render
()
{
let
{
data
}
=
this
.
state
return
(
...
...
@@ -259,7 +270,7 @@ export default class sampleMenuPenerimaan3 extends Component {
progress
=
{
!
this
.
state
.
progress
}
onPress
=
{
next
=>
{
setTimeout
(()
=>
{
this
.
props
.
navigation
.
navigate
(
'Penerimaan'
)
this
.
handlePenerimaan
(
)
next
()
},
300
);
}}
...
...
app/container/profile/profile.js
View file @
6b1962f4
...
...
@@ -97,10 +97,14 @@ class Profile extends Component {
<
AwesomeButton
width
=
{
'100%'
}
raiseLevel
=
{
3
}
springRelease
=
{
true
}
type
=
"primary"
progress
backgroundDarker
=
{
'#e3b91f'
}
backgroundShadow
=
{
'#e3c143'
}
backgroundColor
=
{
Colors
.
yellowBasic
}
backgroundShadow
=
{
'#DBDBDB'
}
backgroundPlaceholder
=
{
null
}
backgroundDarker
=
{
'#FFED75'
}
// backgroundDarker={'#e3b91f'}
// backgroundShadow={'#e3c143'}
height
=
{
50
}
borderColor
=
{
Colors
.
blackBasic
}
//
borderColor={Colors.blackBasic}
backgroundColor
=
{
'#e4b300'
}
backgroundProgress
=
{
'#ffef85'
}
progressLoadingTime
=
{
300
}
...
...
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