saisir feuille soin
This commit is contained in:
parent
2767c26524
commit
a1145e66f9
File diff suppressed because one or more lines are too long
|
@ -67,5 +67,6 @@
|
|||
"reattachAccountUser": "reattachAccountUser",
|
||||
"acceptPrestationAgent": "acceptPrestationAgent",
|
||||
"souscrireAssuranceUser": "souscrireAssuranceUser",
|
||||
"askPrestationUser": "askPrestationUser"
|
||||
"askPrestationUser": "askPrestationUser",
|
||||
"saisirFeuilleSoinScreen": "saisirFeuilleSoinScreen"
|
||||
}
|
||||
|
|
|
@ -577,8 +577,9 @@
|
|||
"ACTIVATE_INSSURANCE": "Activer son assurance",
|
||||
"AMOUNT_PER_DURATION": "Montant par durée",
|
||||
"AMOUNT_PRIME": "Montant de la prime",
|
||||
"NOM_ASSURE": "Nom de l'assuré",
|
||||
"ASSURE": "Assuré",
|
||||
"NUMERO_ASSURE": "Numéro de l'assuré",
|
||||
"NOM_ASSURE": "Nom de l'assuré",
|
||||
"PRENOM_ASSURE": "Prénom de l'assuré",
|
||||
"DATE_NAISSANCE": "Date de naissance",
|
||||
"SEXE": "Sexe",
|
||||
|
@ -588,6 +589,7 @@
|
|||
"ENFANT": "Enfant",
|
||||
"CONJOINT": "Conjoint",
|
||||
"ADD_AYANT_DROIT": "Ajouter un ayant droit",
|
||||
"AYANT_DROITS": "Ayant droit",
|
||||
"SELECT_INSURANCE": "Sélectionner une assurance",
|
||||
"COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE": "Acte \n naissance",
|
||||
"DOCUMENT_JUSTICE_ENFANT_ADOPTE": "Document adoption \n ou tutelle (facultatif) ",
|
||||
|
@ -603,5 +605,37 @@
|
|||
"DETAIL": "Détail",
|
||||
"PRIME_AMOUNT": "Montant de la prime",
|
||||
"AYANT_DROIT": "Ayant(s) droit(s)",
|
||||
"SELECT_SUBSCRIPTION": "Sélectionner une souscription"
|
||||
"SELECT_SUBSCRIPTION": "Sélectionner une souscription",
|
||||
"SAISIR_FEUILLE_SOIN": "Saisir une feuille de soin",
|
||||
"MODIFIER_FEUILLE_SOIN": "Modifier une feuille de soin",
|
||||
"FACTURER_FEUILLES_SOINS": "Facturer les feuilles de soins",
|
||||
"FICHE_DE_SOIN": "Fiche de soins",
|
||||
"PATIENT": "Patient",
|
||||
"PRATICIEN": "Praticien",
|
||||
"PRESCRIPTION_MEDICALE": "Prescription",
|
||||
"ADD_PRESCRIPTION_MEDICALE": "Ajouter une prescription",
|
||||
"SITUATION": "Situation",
|
||||
"CODE_AGREMENT_ETS": "Code agrément",
|
||||
"SITUATION": "Situation",
|
||||
"NOM_PRATICIEN": "Nom du praticien",
|
||||
"PRENOM_PRATICIEN": "Prénom du praticien",
|
||||
"NOM_CLIENT": "Nom du client",
|
||||
"PRENOM_CLIENT": "Prénom du client",
|
||||
"CODE_AGREMENT": "Code agrément",
|
||||
"CLASSIFICATION": "Classification",
|
||||
"COURANTE": "Courante",
|
||||
"LONGUE": "Longue",
|
||||
"ACCIDENT": "Accident",
|
||||
"GROSSESSE": "Grossesse",
|
||||
"ADD_PRESTATION": "Ajouter une prestation",
|
||||
"ADD_PRESCRIPTION": "Ajouter une prescription",
|
||||
"VISITE_DOMICILE": "Visite domicile ",
|
||||
"CODE_ACTE": "Code acte ",
|
||||
"TICKET_MONDERATEUR": "Ticket modérateur",
|
||||
"AMOUNT_PER_INSURANCE": "Montant par assurance",
|
||||
"VISITE_DOMICILE": "Visible domicile",
|
||||
"CONDITION_PRISE_CHARGE": "Condition de prise en charge",
|
||||
"AFFECTION_COURANTE": "Affection courante",
|
||||
"AFFECTION_LONGUE": "Affection longue durée",
|
||||
"EXONERE": "Exonéré"
|
||||
}
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
import React from 'react';
|
||||
import {StyleSheet, View} from 'react-native';
|
||||
import {Color} from "../config/Color";
|
||||
import Text from './Text';
|
||||
|
||||
const Circle = ({index, selectedIndex}) => {
|
||||
return (
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import {Platform, TextInput, View} from 'react-native';
|
||||
import {I18nManager, Platform, TextInput, View} from 'react-native';
|
||||
import PropTypes from 'prop-types';
|
||||
import {Color} from '../../config/Color';
|
||||
import Text from '../Text';
|
||||
|
@ -28,7 +28,6 @@ export default function Index(props) {
|
|||
height: 46,
|
||||
borderRadius: 5,
|
||||
paddingHorizontal: 10,
|
||||
width: '100%',
|
||||
justifyContent: 'space-between',
|
||||
alignItems: 'center',
|
||||
flexDirection: 'row',
|
||||
|
@ -36,16 +35,17 @@ export default function Index(props) {
|
|||
}, style]}>
|
||||
{React.Children.map(icon, child =>
|
||||
React.cloneElement(child, {
|
||||
color: success ? Color.primaryColor : Color.accentColor,
|
||||
color: success ? Color.primaryLightColor : Color.accentColor,
|
||||
style: {marginRight: Platform.OS === 'ios' ? 10 : 5}
|
||||
}),
|
||||
)}
|
||||
{/* @ts-ignore */}
|
||||
<TextInput
|
||||
style={{
|
||||
fontFamily: 'Raleway',
|
||||
flex: 1,
|
||||
width: "100%",
|
||||
height: '100%',
|
||||
color: Color.textColor,
|
||||
textAlign: I18nManager.isRTL ? 'right' : 'left',
|
||||
color: success ? Color.textColor : Color.accentColor,
|
||||
paddingTop: 5,
|
||||
paddingBottom: 5,
|
||||
}}
|
||||
|
@ -53,7 +53,9 @@ export default function Index(props) {
|
|||
onFocus={() => onFocus()}
|
||||
autoCorrect={false}
|
||||
placeholder={placeholder}
|
||||
placeholderTextColor={success ? Color.grayColor : Color.primaryColor}
|
||||
placeholderTextColor={
|
||||
success ? Color.grayColor : Color.accentColor
|
||||
}
|
||||
secureTextEntry={secureTextEntry}
|
||||
value={value}
|
||||
selectionColor={Color.primaryColor}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -286,7 +286,7 @@ const AddBeneficiaryScreen = ({
|
|||
|
||||
useEffect(() => {
|
||||
if (subscription !== null)
|
||||
console.log('Subscription', subscription.subscription);
|
||||
console.log('Subscription', subscription);
|
||||
}, [subscription]);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -558,10 +558,11 @@ const AddBeneficiaryScreen = ({
|
|||
]}/>
|
||||
<View style={[{marginBottom: 40}]}>
|
||||
<FlatList
|
||||
data={beneficiaries.concat(subscription.subscription.beneficiaries)}
|
||||
extraData={beneficiaries.concat(subscription.subscription.beneficiaries)}
|
||||
data={beneficiaries.concat(subscription.beneficiaries)}
|
||||
extraData={beneficiaries.concat(subscription.beneficiaries)}
|
||||
keyExtractor={(item, index) => index}
|
||||
renderItem={({item, index}) => {
|
||||
console.log("Item", item);
|
||||
return (
|
||||
<View style={styles.lineRow}>
|
||||
<View style={{alignItems: 'flex-start'}}>
|
||||
|
@ -731,9 +732,9 @@ const AddBeneficiaryScreen = ({
|
|||
onPress={(value) => {
|
||||
setFileAdded([]);
|
||||
if (value === 'CHILD')
|
||||
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription.subscription.network.age_limit_of_child_beneficiary)), 0, 1));
|
||||
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription.network.age_limit_of_child_beneficiary)), 0, 1));
|
||||
else
|
||||
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription.subscription.network.age_limit_of_insured_and_spouse)), 0, 1));
|
||||
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription.network.age_limit_of_insured_and_spouse)), 0, 1));
|
||||
setAffliliation(value);
|
||||
}}/>
|
||||
</View>
|
||||
|
@ -905,6 +906,7 @@ const AddBeneficiaryScreen = ({
|
|||
setSubscription(
|
||||
{
|
||||
id: value.id,
|
||||
network: value.network,
|
||||
insurance_subscription_id: value.insurance_subscription_id,
|
||||
network_id: value.network_id,
|
||||
user_id: value.user_id,
|
||||
|
@ -918,7 +920,8 @@ const AddBeneficiaryScreen = ({
|
|||
start_at: value.start_at,
|
||||
end_at: value.end_at,
|
||||
insured_id: value.insured_id,
|
||||
subscription: value.subscription
|
||||
subscription: value.subscription,
|
||||
beneficiaries: value.beneficiaries
|
||||
}
|
||||
);
|
||||
}}
|
||||
|
@ -926,7 +929,7 @@ const AddBeneficiaryScreen = ({
|
|||
return value
|
||||
}}
|
||||
labelExtractor={(value) => {
|
||||
return `${value.subscription.network.name} | ${I18n.t('ETAT')}: ${value.state} | ${I18n.t('AMOUNT_LABEL')}: ${value.subscription.total_bonus_amount}`
|
||||
return `${value.network.name} | ${I18n.t('ETAT')}: ${value.state} | ${I18n.t('AMOUNT_LABEL')}: ${value.total_bonus_amount}`
|
||||
}}
|
||||
/>
|
||||
</Animatable.View>
|
||||
|
@ -961,12 +964,13 @@ const AddBeneficiaryScreen = ({
|
|||
I18n.t('PLEASE_SELECT_INSURANCE_BEFORE'),
|
||||
);
|
||||
} else {
|
||||
console.log("Souscription", subscription);
|
||||
setModalVisible(true);
|
||||
setShowDateNaissancePicker(false);
|
||||
dispatch(fetchUploadInsuranceReset());
|
||||
setAffliliation('CHILD');
|
||||
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription.subscription.network.age_limit_of_child_beneficiary)), 0, 1));
|
||||
setDateNaissance('' + moment(new Date(((new Date()).getFullYear() - parseInt(subscription.subscription.network.age_limit_of_child_beneficiary)), 0, 1)).format('YYYY-MM-DD'));
|
||||
setCurrentYearMinusAgeLimit(new Date(((new Date()).getFullYear() - parseInt(subscription?.network?.age_limit_of_child_beneficiary)), 0, 1));
|
||||
setDateNaissance('' + moment(new Date(((new Date()).getFullYear() - parseInt(subscription?.network?.age_limit_of_child_beneficiary)), 0, 1)).format('YYYY-MM-DD'));
|
||||
setFirstNameBeneficiary(null);
|
||||
setLastNameBeneficiary(null);
|
||||
setFileAdded([]);
|
||||
|
@ -1011,7 +1015,7 @@ const AddBeneficiaryScreen = ({
|
|||
}}
|
||||
onPress={() => setModalViewBeneficiariesVisible(true)}
|
||||
>
|
||||
<Text whiteColor title2>{beneficiaries.concat(subscription.subscription.beneficiaries).length}</Text>
|
||||
<Text whiteColor title2>{beneficiaries.concat(subscription.beneficiaries).length}</Text>
|
||||
<Text whiteColor caption2>{I18n.t('AYANT_DROIT')}</Text>
|
||||
</TouchableOpacity>)}
|
||||
</ScreenComponent>
|
||||
|
|
|
@ -612,7 +612,7 @@ export const optionNanoSanteAgentScreen = {
|
|||
subTitle: 'CHOOSE_OPTION',
|
||||
options: [
|
||||
{
|
||||
screen: route.cautionNanoCreditAgent,
|
||||
screen: route.saisirFeuilleSoinScreen,
|
||||
icon: 'user-plus',
|
||||
title: 'SAISIR_FEUILLE_SOIN',
|
||||
},
|
||||
|
|
|
@ -577,8 +577,9 @@
|
|||
"ACTIVATE_INSSURANCE": "Activer son assurance",
|
||||
"AMOUNT_PER_DURATION": "Montant par durée",
|
||||
"AMOUNT_PRIME": "Montant de la prime",
|
||||
"NOM_ASSURE": "Nom de l'assuré",
|
||||
"ASSURE": "Assuré",
|
||||
"NUMERO_ASSURE": "Numéro de l'assuré",
|
||||
"NOM_ASSURE": "Nom de l'assuré",
|
||||
"PRENOM_ASSURE": "Prénom de l'assuré",
|
||||
"DATE_NAISSANCE": "Date de naissance",
|
||||
"SEXE": "Sexe",
|
||||
|
@ -588,6 +589,7 @@
|
|||
"ENFANT": "Enfant",
|
||||
"CONJOINT": "Conjoint",
|
||||
"ADD_AYANT_DROIT": "Ajouter un ayant droit",
|
||||
"AYANT_DROITS": "Ayant droit",
|
||||
"SELECT_INSURANCE": "Sélectionner une assurance",
|
||||
"COPIE_LEGALISE_ACTE_NAISSANCE_CERTIFICAT_NAISSANCE": "Acte \n naissance",
|
||||
"DOCUMENT_JUSTICE_ENFANT_ADOPTE": "Document adoption \n ou tutelle (facultatif) ",
|
||||
|
@ -606,5 +608,37 @@
|
|||
"SELECT_SUBSCRIPTION": "Sélectionner une souscription",
|
||||
"SAISIR_FEUILLE_SOIN": "Saisir une feuille de soin",
|
||||
"MODIFIER_FEUILLE_SOIN": "Modifier une feuille de soin",
|
||||
"FACTURER_FEUILLES_SOINS": "Facturer les feuilles de soins"
|
||||
"FACTURER_FEUILLES_SOINS": "Facturer les feuilles de soins",
|
||||
"FICHE_DE_SOIN": "Fiche de soins",
|
||||
"PATIENT": "Patient",
|
||||
"PRATICIEN": "Praticien",
|
||||
"PRESCRIPTION_MEDICALE": "Prescription",
|
||||
"ADD_PRESCRIPTION_MEDICALE": "Ajouter une prescription",
|
||||
"SITUATION": "Situation",
|
||||
"CODE_AGREMENT_ETS": "Code agrément",
|
||||
"SITUATION": "Situation",
|
||||
"NOM_PRATICIEN": "Nom du praticien",
|
||||
"PRENOM_PRATICIEN": "Prénom du praticien",
|
||||
"NOM_CLIENT": "Nom du client",
|
||||
"PRENOM_CLIENT": "Prénom du client",
|
||||
"CODE_AGREMENT": "Code agrément",
|
||||
"CLASSIFICATION": "Classification",
|
||||
"COURANTE": "Courante",
|
||||
"LONGUE": "Longue",
|
||||
"ACCIDENT": "Accident",
|
||||
"GROSSESSE": "Grossesse",
|
||||
"ADD_PRESTATION": "Ajouter une prestation",
|
||||
"ADD_PRESCRIPTION": "Ajouter une prescription",
|
||||
"VISITE_DOMICILE": "Visite domicile ",
|
||||
"CODE_ACTE": "Code acte ",
|
||||
"TICKET_MONDERATEUR": "Ticket modérateur",
|
||||
"AMOUNT_PER_INSURANCE": "Montant par assurance",
|
||||
"VISITE_DOMICILE": "Visible domicile",
|
||||
"CONDITION_PRISE_CHARGE": "Condition de prise en charge",
|
||||
"AFFECTION_COURANTE": "Affection courante",
|
||||
"AFFECTION_LONGUE": "Affection longue durée",
|
||||
"EXONERE": "Exonéré",
|
||||
"DATE_ACCIDENT": "Date accident",
|
||||
"DATE_DEBUT_GROSSESSE": "Date début de grossesse",
|
||||
"DATE_FIN_GROSSESSE": "Date fin de grossesse"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue