correction bugs
This commit is contained in:
parent
e9f8c6bbcc
commit
7c73883e84
File diff suppressed because one or more lines are too long
|
@ -52,8 +52,13 @@ import {store} from "../../redux/store";
|
|||
import FontAwesome5 from "react-native-vector-icons/FontAwesome5";
|
||||
import FontAwesome from "react-native-vector-icons/FontAwesome";
|
||||
import {
|
||||
fetchGetAmountConsultationReset, fetchGetConsultationReset, fetchGetNetworkActsReset, fetchGetProviderClassReset,
|
||||
fetchGetSubscriptionListReset, fetchGetUserByIdQRCodeReset,
|
||||
fetchGetAmountConsultationReset,
|
||||
fetchGetConsultationReset,
|
||||
fetchGetDrugAppareilReset,
|
||||
fetchGetNetworkActsReset,
|
||||
fetchGetProviderClassReset,
|
||||
fetchGetSubscriptionListReset,
|
||||
fetchGetUserByIdQRCodeReset,
|
||||
fetchGetUserByNameOrNumberReset
|
||||
} from "../../redux/insurance/insurance.actions";
|
||||
|
||||
|
@ -124,6 +129,7 @@ class WalletOptionSelect extends Component {
|
|||
}
|
||||
|
||||
this.props.fetchGetSubscriptionListReset();
|
||||
this.props.fetchGetDrugAppareilReset();
|
||||
this.props.fetchGetUserByNameOrNumberReset();
|
||||
this.props.fetchGetUserByIdQRCodeReset();
|
||||
this.props.fetchGetProviderClassReset();
|
||||
|
@ -1272,6 +1278,7 @@ const mapDispatchToProps = dispatch => bindActionCreators({
|
|||
getNanoCreditUserHistoryReset,
|
||||
|
||||
fetchGetSubscriptionListReset,
|
||||
fetchGetDrugAppareilReset,
|
||||
fetchGetUserByNameOrNumberReset,
|
||||
fetchGetUserByIdQRCodeReset,
|
||||
fetchGetProviderClassReset,
|
||||
|
|
|
@ -2025,7 +2025,7 @@ const ModifierFeuilleSoinScreen = ({
|
|||
'firstname_patient',
|
||||
beneficiary.firstname,
|
||||
);
|
||||
fetchGetConsultation(item.user.id, 'TO_BILL', 'CONSULTATION', `&beneficiary_id=${beneficiary.id}`);
|
||||
fetchGetConsultation(item.user.id, 'UNTREATED', 'CONSULTATION', `&beneficiary_id=${beneficiary.id}`);
|
||||
}}>
|
||||
<View style={{width: 10}}/>
|
||||
<View style={{paddingHorizontal: 10, alignItems: 'flex-start'}}>
|
||||
|
|
|
@ -405,6 +405,17 @@ const HistoriqueNanoSanteUserScreen = ({
|
|||
:
|
||||
<ScrollView persistentScrollbar={true}>
|
||||
<View style={[styles.blockView, {borderBottomColor: Color.borderColor}]}>
|
||||
|
||||
<View style={{flexDirection: 'row', marginTop: 10}}>
|
||||
<View style={{flex: 1}}>
|
||||
<Text style={[styles.body2]}>{I18n.t('NETWORK')}</Text>
|
||||
</View>
|
||||
<View style={{flex: 1, alignItems: 'flex-end'}}>
|
||||
<Text
|
||||
style={[Typography.caption1, Color.grayColor]}>{historyItemDetail.network.name}</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
<View style={{flexDirection: 'row', marginTop: 10}}>
|
||||
<View style={{flex: 1}}>
|
||||
<Text style={[styles.body2]}>{I18n.t('PATIENT')}</Text>
|
||||
|
@ -664,6 +675,11 @@ const HistoriqueNanoSanteUserScreen = ({
|
|||
item
|
||||
});*/
|
||||
}}>
|
||||
<View style={{borderColor: Color.borderColor, flexDirection: "row",paddingBottom: 10, borderBottomWidth: 0.5}}>
|
||||
<View style={{flex: 1, alignItems: 'flex-start'}}>
|
||||
<Text caption1>{`${I18n.t('NETWORK')}: ${item.network.name}`}</Text>
|
||||
</View>
|
||||
</View>
|
||||
<View style={[styles.contentTop, {borderColor: Color.borderColor}]}>
|
||||
<View style={{flex: 1, alignItems: 'flex-start'}}>
|
||||
<Text
|
||||
|
|
|
@ -67,7 +67,7 @@ const ValidateConsultationScreen = ({
|
|||
readUser().then((user) => {
|
||||
setUser(user);
|
||||
console.log("User", user);
|
||||
fetchGetConsultation(user.id, 'UNTREATED', '');
|
||||
fetchGetConsultation(user.id, 'UNTREATED_ALL', '');
|
||||
});
|
||||
dispatch(fetchGetConsultationReset());
|
||||
dispatch(fetchAcceptRejectConsultationReset());
|
||||
|
@ -105,8 +105,9 @@ const ValidateConsultationScreen = ({
|
|||
{
|
||||
text: I18n.t("OK"), onPress: () => {
|
||||
dispatch(fetchAcceptRejectConsultationReset());
|
||||
fetchGetConsultation(user.id);
|
||||
setDisplayModalHistory(false);
|
||||
if (user !== null)
|
||||
fetchGetConsultation(user.id, 'UNTREATED_ALL', '');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -114,7 +115,7 @@ const ValidateConsultationScreen = ({
|
|||
{cancelable: false}
|
||||
);
|
||||
if (user !== null)
|
||||
fetchGetConsultation(user.id, 'UNTREATED');
|
||||
fetchGetConsultation(user.id, 'UNTREATED_ALL', '');
|
||||
}
|
||||
|
||||
if (acceptRefuseConsultation.error) {
|
||||
|
@ -125,6 +126,9 @@ const ValidateConsultationScreen = ({
|
|||
{
|
||||
text: I18n.t("OK"), onPress: () => {
|
||||
dispatch(fetchAcceptRejectConsultationReset());
|
||||
setDisplayModalHistory(false);
|
||||
if (user !== null)
|
||||
fetchGetConsultation(user.id, 'UNTREATED_ALL', '');
|
||||
}
|
||||
}
|
||||
],
|
||||
|
@ -136,9 +140,6 @@ const ValidateConsultationScreen = ({
|
|||
Utils.getErrorMsg(acceptRefuseConsultation),
|
||||
);
|
||||
dispatch(fetchAcceptRejectConsultationReset());*/
|
||||
setDisplayModalHistory(false);
|
||||
if (user !== null)
|
||||
fetchGetConsultation(user.id, 'UNTREATED');
|
||||
}
|
||||
}, [acceptRefuseConsultation]);
|
||||
|
||||
|
@ -168,6 +169,15 @@ const ValidateConsultationScreen = ({
|
|||
|
||||
<ScrollView persistentScrollbar={true}>
|
||||
<View style={[styles.blockView, {borderBottomColor: Color.borderColor}]}>
|
||||
<View style={{flexDirection: 'row', marginTop: 10}}>
|
||||
<View style={{flex: 1}}>
|
||||
<Text style={[styles.body2]}>{I18n.t('NETWORK')}</Text>
|
||||
</View>
|
||||
<View style={{flex: 1, alignItems: 'flex-end'}}>
|
||||
<Text
|
||||
style={[Typography.caption1, Color.grayColor]}>{`${historyItemDetail.network.name}`}</Text>
|
||||
</View>
|
||||
</View>
|
||||
<View style={{flexDirection: 'row', marginTop: 10}}>
|
||||
<View style={{flex: 1}}>
|
||||
<Text style={[styles.body2]}>{I18n.t('PATIENT')}</Text>
|
||||
|
@ -320,6 +330,12 @@ const ValidateConsultationScreen = ({
|
|||
item
|
||||
});*/
|
||||
}}>
|
||||
<View style={{borderColor: Color.borderColor, flexDirection: "row",paddingBottom: 10, borderBottomWidth: 0.5}}>
|
||||
<View style={{flex: 1, alignItems: 'flex-start'}}>
|
||||
<Text caption1>{`${I18n.t('NETWORK')}: ${item.network.name}`}</Text>
|
||||
</View>
|
||||
</View>
|
||||
|
||||
<View style={[styles.contentTop, {borderColor: Color.borderColor}]}>
|
||||
<View style={{flex: 1, alignItems: 'flex-start'}}>
|
||||
<Text caption1>{`${I18n.t('PATIENT')}: ${item.patient_lastname} ${item.patient_firstname}`}</Text>
|
||||
|
|
Loading…
Reference in New Issue