update repair form
This commit is contained in:
parent
e26581d425
commit
d97c979c08
Binary file not shown.
@ -363,7 +363,7 @@ const MainHeader = ({ navigation }) => {
|
|||||||
}, [])
|
}, [])
|
||||||
return <View style={[{ flex: 1, alignItems: 'center', flexDirection: 'row', marginTop: 0, paddingLeft: 10, backgroundColor: server_mode === 'develop' ? '#ff0000' : 'transparent' }]}>
|
return <View style={[{ flex: 1, alignItems: 'center', flexDirection: 'row', marginTop: 0, paddingLeft: 10, backgroundColor: server_mode === 'develop' ? '#ff0000' : 'transparent' }]}>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
// onPress={openSecretChamber}
|
onPress={openSecretChamber}
|
||||||
activeOpacity={1}>
|
activeOpacity={1}>
|
||||||
<Image
|
<Image
|
||||||
style={{ width: 35, height: 35, }}
|
style={{ width: 35, height: 35, }}
|
||||||
@ -418,7 +418,7 @@ const AppStack = createStackNavigator({
|
|||||||
navigationOptions: ({navigation}) => {
|
navigationOptions: ({navigation}) => {
|
||||||
let langIcon
|
let langIcon
|
||||||
console.log('locale >>> ', locale());
|
console.log('locale >>> ', locale());
|
||||||
|
|
||||||
switch (locale()) {
|
switch (locale()) {
|
||||||
case 'th':
|
case 'th':
|
||||||
langIcon = require('../../assets/images/locale_th.png')
|
langIcon = require('../../assets/images/locale_th.png')
|
||||||
|
@ -35,7 +35,7 @@ const SelectionData = (props) => {
|
|||||||
}}
|
}}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -98,7 +98,7 @@ class RepairIndex extends Component {
|
|||||||
// && data.details
|
// && data.details
|
||||||
&& data.work_date
|
&& data.work_date
|
||||||
&& data.work_time
|
&& data.work_time
|
||||||
&& data.maintenanceList.length > 0
|
// && data.maintenanceList.length > 0
|
||||||
){
|
){
|
||||||
this.setState({
|
this.setState({
|
||||||
disableSubmit: false
|
disableSubmit: false
|
||||||
@ -165,7 +165,7 @@ class RepairIndex extends Component {
|
|||||||
label: room.name
|
label: room.name
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this.setState({rooms})
|
this.setState({rooms})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@ -402,7 +402,7 @@ class RepairIndex extends Component {
|
|||||||
zIndex={2}
|
zIndex={2}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{
|
{/*{
|
||||||
data.repair_list.map((repair, index) =>
|
data.repair_list.map((repair, index) =>
|
||||||
<View style={[Styles.RepairListContainer, Styles.mbt16]} key={'repair_list' + index}>
|
<View style={[Styles.RepairListContainer, Styles.mbt16]} key={'repair_list' + index}>
|
||||||
<SelectionData
|
<SelectionData
|
||||||
@ -438,27 +438,27 @@ class RepairIndex extends Component {
|
|||||||
|
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}*/}
|
||||||
|
|
||||||
<TouchableOpacity onPress={() => this.addRepairList()}>
|
{/*<TouchableOpacity onPress={() => this.addRepairList()}>
|
||||||
<View style={[Styles.BtnAddList, Styles.mbt16]}>
|
<View style={[Styles.BtnAddList, Styles.mbt16]}>
|
||||||
<Text style={{color: '#00420A', textAlign: 'center'}}>+ {t('add_list')}</Text>
|
<Text style={{color: '#00420A', textAlign: 'center'}}>+ {t('add_list')}</Text>
|
||||||
</View>
|
</View>
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>*/}
|
||||||
|
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
{
|
{
|
||||||
!this.state.visibleDate &&
|
!this.state.visibleDate &&
|
||||||
<View style={{backgroundColor: 'white', marginHorizontal: -16, paddingHorizontal: 16, paddingVertical: 16, marginBottom: -16}}>
|
<View style={{backgroundColor: 'white', marginHorizontal: -16, paddingHorizontal: 16, paddingVertical: 16, marginBottom: -16}}>
|
||||||
<View style={[Styles.summary, {marginBottom: 10}]}>
|
{/*<View style={[Styles.summary, {marginBottom: 10}]}>
|
||||||
<Text>{t('repair_list')}</Text>
|
<Text>{t('repair_list')}</Text>
|
||||||
<Text>{data.repair_list.length} {t('list_unit')}</Text>
|
<Text>{data.repair_list.length} {t('list_unit')}</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={[Styles.summary, {marginBottom: 10}]}>
|
<View style={[Styles.summary, {marginBottom: 10}]}>
|
||||||
<Text>{t('summary_service')}</Text>
|
<Text>{t('summary_service')}</Text>
|
||||||
<Text>{this.state.summary ? this.state.summary : 0} {t('baht')}</Text>
|
<Text>{this.state.summary ? this.state.summary : 0} {t('baht')}</Text>
|
||||||
</View>
|
</View>*/}
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
buttonStyle={{
|
buttonStyle={{
|
||||||
@ -479,7 +479,7 @@ class RepairIndex extends Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
this.state.visibleDate &&
|
this.state.visibleDate &&
|
||||||
<View>
|
<View>
|
||||||
{
|
{
|
||||||
Platform.OS === 'ios' &&
|
Platform.OS === 'ios' &&
|
||||||
@ -504,7 +504,7 @@ class RepairIndex extends Component {
|
|||||||
/>
|
/>
|
||||||
</View>
|
</View>
|
||||||
}
|
}
|
||||||
|
|
||||||
<RNDateTimePicker
|
<RNDateTimePicker
|
||||||
value={this.state.select_date}
|
value={this.state.select_date}
|
||||||
onChange={this.handleDatePicked}
|
onChange={this.handleDatePicked}
|
||||||
|
Loading…
Reference in New Issue
Block a user