correction bugs

This commit is contained in:
Brice Zele 2022-02-10 11:26:14 +01:00
parent e9f8c6bbcc
commit 7c73883e84
5 changed files with 52 additions and 13 deletions

File diff suppressed because one or more lines are too long

View File

@ -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,

View File

@ -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'}}>

View File

@ -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

View File

@ -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>