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' }]}>
|
||||
<TouchableOpacity
|
||||
// onPress={openSecretChamber}
|
||||
onPress={openSecretChamber}
|
||||
activeOpacity={1}>
|
||||
<Image
|
||||
style={{ width: 35, height: 35, }}
|
||||
|
@ -98,7 +98,7 @@ class RepairIndex extends Component {
|
||||
// && data.details
|
||||
&& data.work_date
|
||||
&& data.work_time
|
||||
&& data.maintenanceList.length > 0
|
||||
// && data.maintenanceList.length > 0
|
||||
){
|
||||
this.setState({
|
||||
disableSubmit: false
|
||||
@ -402,7 +402,7 @@ class RepairIndex extends Component {
|
||||
zIndex={2}
|
||||
/>
|
||||
|
||||
{
|
||||
{/*{
|
||||
data.repair_list.map((repair, index) =>
|
||||
<View style={[Styles.RepairListContainer, Styles.mbt16]} key={'repair_list' + index}>
|
||||
<SelectionData
|
||||
@ -438,27 +438,27 @@ class RepairIndex extends Component {
|
||||
|
||||
</View>
|
||||
)
|
||||
}
|
||||
}*/}
|
||||
|
||||
<TouchableOpacity onPress={() => this.addRepairList()}>
|
||||
{/*<TouchableOpacity onPress={() => this.addRepairList()}>
|
||||
<View style={[Styles.BtnAddList, Styles.mbt16]}>
|
||||
<Text style={{color: '#00420A', textAlign: 'center'}}>+ {t('add_list')}</Text>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
</TouchableOpacity>*/}
|
||||
|
||||
</ScrollView>
|
||||
|
||||
{
|
||||
!this.state.visibleDate &&
|
||||
<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>{data.repair_list.length} {t('list_unit')}</Text>
|
||||
</View>
|
||||
<View style={[Styles.summary, {marginBottom: 10}]}>
|
||||
<Text>{t('summary_service')}</Text>
|
||||
<Text>{this.state.summary ? this.state.summary : 0} {t('baht')}</Text>
|
||||
</View>
|
||||
</View>*/}
|
||||
|
||||
<Button
|
||||
buttonStyle={{
|
||||
|
Loading…
Reference in New Issue
Block a user