| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410 |
- <!--
- Page 'Mon abonnement'
- @see https://ressources.opentalent.fr/display/SPEC/Mon+abonnement
- -->
- <template>
- <LayoutContainer>
- <v-col cols="12" sm="12" md="12">
- <h3 class="mb-5">{{ $t('my_subscription') }}</h3>
- <v-expansion-panels focusable multiple :value="[0,1]">
- <UiExpansionPanel id="informations" icon="fa-info">
- <v-container fluid class="container">
- <v-row>
- <v-simple-table>
- <tbody>
- <tr>
- <td>{{ $t('client_id') }}</td>
- <td>{{ dolibarrAccount ? dolibarrAccount.clientNumber : '-' }}</td>
- </tr>
- <tr>
- <td>{{ $t('version') }}</td>
- <td>{{ dolibarrAccount ? $t(dolibarrAccount.product) : '-' }}</td>
- </tr>
- <tr v-if="dolibarrAccount && dolibarrAccount.contract">
- <td>{{ $t('services') }}</td>
- <td>
- <div
- v-for="line in dolibarrAccount.contract.lines"
- :key="line.id"
- style="list-style: none;"
- >
- {{ line.serviceLabel }}
- </div>
- </td>
- </tr>
- <tr v-if="mobytStatus && mobytStatus.active">
- <td>{{ $t('remaining_sms_credit') }}</td>
- <td>
- {{ mobytStatus.money.toLocaleString($i18n.locale, { style: 'currency', currency: 'EUR' }) }}
- ({{ mobytStatus.amount }} SMS)
- </td>
- </tr>
- <tr v-if="organizationProfile.isCmf && organizationProfile.isArtistProduct">
- <td>{{ $t('paying_structure') }}</td>
- <td>
- CMF
- </td>
- </tr>
- </tbody>
- </v-simple-table>
- </v-row>
- </v-container>
- </UiExpansionPanel>
- <UiExpansionPanel id="bills" icon="fa-file">
- <v-container fluid class="container">
- <v-row>
- <v-simple-table v-if="!dolibarAccountFetch.pending && dolibarrAccount.bills.length > 0">
- <thead>
- <tr>
- <th>{{ $t('reference') }}</th>
- <th>{{ $t('date') }}</th>
- <th>{{ $t('taxExcludedAmount') }}</th>
- <th>{{ $t('status') }}</th>
- </tr>
- </thead>
- <tbody>
- <tr
- v-for="bill in dolibarrAccount.bills"
- :key="bill.id"
- >
- <td>{{ bill.ref }}</td>
- <td>{{ $moment(bill.date).format($moment.localeData($i18n.locale).longDateFormat('L')) }}</td>
- <td>{{ bill.taxExcludedAmount.toLocaleString($i18n.locale, { style: 'currency', currency: 'EUR' }) }}</td>
- <td>{{ bill.status === 1 ? $t('paid') : $t('unpaid') }}</td>
- </tr>
- </tbody>
- </v-simple-table>
- <div v-else class="ma-2">
- <i>{{ $t('no_bill_to_display') }}</i>
- </div>
- </v-row>
- </v-container>
- </UiExpansionPanel>
- <UiExpansionPanel id="more_features" icon="fa-plus">
- <v-container id="products-section" fluid class="container">
- <v-row>
- <v-simple-table>
- <template #default>
- <thead>
- <tr>
- <th v-if="organizationProfile.isArtistProduct">
- Opentalent Artist Premium
- </th>
- <th v-if="organizationProfile.isArtist">
- Opentalent School
- </th>
- <th v-if="organizationProfile.isSchoolProduct">
- Opentalent School Premium
- </th>
- <th>
- Sms
- </th>
- <th>
- Site internet
- </th>
- </tr>
- </thead>
- <tbody>
- <tr class="center-td-content">
- <td v-if="organizationProfile.isArtistProduct">
- <nuxt-img src="/images/Artist-Square.jpg" />
- </td>
- <td v-if="organizationProfile.isArtist">
- <nuxt-img src="/images/School-Square.jpg" />
- </td>
- <td v-if="organizationProfile.isSchoolProduct">
- <nuxt-img src="/images/School-Square.jpg" />
- </td>
- <td>
- <nuxt-img src="/images/sms_big.png" />
- </td>
- <td>
- <nuxt-img src="/images/nom-de-domaine.jpg" />
- </td>
- </tr>
- <tr>
- <!-- Opentalent Artist Premium -->
- <td v-if="organizationProfile.isArtistProduct">
- <p>
- Bénéficiez de plus de fonctionnalités avec la version
- <b>Opentalent Artist Premium</b>
- </p>
- <!-- Cmf member -->
- <div v-if="organizationProfile.isCmf">
- <p>
- Pour seulement 6,33 €.TTC par mois *
- </p>
- <p>
- <i>
- * Payable annuellement, soit 76 €.TTC / an.
- Offre réservée aux adhérents CMF (Prix public: 168€.TTC/an)
- </i>
- </p>
- </div>
- <!-- Not cmf member -->
- <div v-else>
- <p>
- Pour seulement 14 € TTC par mois *
- </p>
- <p>
- <i>
- * Payable annuellement soit 168 €.TTC/an
- </i>
- </p>
- </div>
- <p>
- <a href="https://www.opentalent.fr/uploads/opentalent/ficheproduit_Opentalentartist.pdf">
- Fiche produit Opentalent Artist Premium
- </a>
- </p>
- <p v-if="organizationProfile.isCmf">
- <a href="">
- Télécharger le bon de commande CMF
- </a>
- </p>
- <p v-else>
- <a href="">
- Télécharger le bon de commande
- </a>
- </p>
- </td>
- <!-- Opentalent School -->
- <td v-if="organizationProfile.isArtist">
- <p>
- Une solution économique adaptée à votre établissement d'enseignement
- artistique
- </p>
- <!-- Cmf member -->
- <div v-if="organizationProfile.isCmf">
- <p>A partir de 16.45€ TTC par mois *</p>
- <p>
- <i>
- * Payable annuellement, soit 198€ TTC par an
- Version <b>Opentalent School Standard</b> jusqu'à 69 élèves.
- Hors frais de licence d'utilisation et de formation.
- Offre réservée aux adhérents CMF (prix public: 358.80€ TTC par an)
- </i>
- </p>
- </div>
- <!-- Not cmf member -->
- <div v-else>
- <p>A partir de 29.90€ TTC par mois *</p>
- <p>
- <i>
- * Payable annuellement, soit 358 € TTC par an
- Version <b>Opentalent School Standard</b> jusqu'à 69 élèves.
- Hors frais de licence d'utilisation et de formation.
- </i>
- </p>
- </div>
- <p>
- <a href="https://www.opentalent.fr/uploads/opentalent/ficheproduit_Opentalentschool">
- Fiche produit Opentalent School
- </a>
- </p>
- <p>
- Essayez notre logiciel en toute liberté ! Contactez-nous sans plus tarder pour obtenir
- une présentation ainsi qu'un accès de démonstration.
- </p>
- <p>
- Contactez-nous au <a href="tel:+33972126017">0 972 126 017</a>, ou par mail à l'adresse
- <a href="mailto:contact@opentalent.fr">contact@opentalent.fr</a>
- </p>
- </td>
- <!-- Opentalent School Premium -->
- <td v-if="organizationProfile.isSchoolProduct">
- <p>
- Passez à la version <b>Opentalent School Premium</b> et bénéficiez:
- </p>
- <ul>
- <li>de comptes pour vos professeurs et élèves</li>
- <li>d'un site internet complet</li>
- </ul>
- <!-- Cmf member -->
- <div v-if="organizationProfile.isCmf">
- <p>A partir de 22.30€ TTC par mois *</p>
- <p>
- <i>* Payable annuellement, soit 267.60€ TTC par an
- Version <b>Opentalent School Premium</b> jusqu'à 69 élèves.
- Hors frais de licence d'utilisation et de formation.
- Offre réservée aux adhérents CMF (prix public: 438€ TTC/an)</i>
- </p>
- </div>
- <!-- Not cmf member -->
- <div v-else>
- <p>A partir de 36.50€ TTC par mois *</p>
- <p>
- <i>
- * Payable annuellement, soit 438€ TTC par an
- Version <b>Opentalent School Premium</b> jusqu'à 69 élèves.
- Hors frais de licence d'utilisation et de formation.
- </i>
- </p>
- </div>
- <p>
- <a href="https://www.opentalent.fr/uploads/opentalent/ficheproduit_Opentalentschool">
- Fiche produit Opentalent School
- </a>
- </p>
- <p>
- Contactez-nous au <a href="tel:+33972126017">0-972 126 017</a>, ou par mail à l'adresse
- <a href="mailto:contact@opentalent.fr">contact@opentalent.fr</a>
- </p>
- </td>
- <!-- SMS -->
- <td>
- <p>Envoyez des <b>SMS</b> directement depuis votre logiciel à vos membres / élèves</p>
- <!-- Cmf member -->
- <div v-if="organizationProfile.isCmf">
- <p>A partir de 0.10 €.TTC/sms *</p>
- <p><i>* pour 5000 SMS</i></p>
- <p>
- <a href="https://www.opentalent.fr/uploads/opentalent/Bon_commande_SMS_ouverture-CMF.pdf">
- Télécharger le bon de commande CMF
- </a>
- </p>
- </div>
- <!-- Not cmf member -->
- <div v-else>
- <p>A partir de 0.12 €.TTC/sms *</p>
- <p><i>* pour 5000 SMS</i></p>
- <p>
- <a href="https://www.opentalent.fr/uploads/opentalent/Bon_commande_SMS_ouverture-public.pdf">
- Télécharger le bon de commande
- </a>
- </p>
- </div>
- </td>
- <!-- Custom domain -->
- <td>
- <p>
- Bénéficiez de votre <b>propre nom de domaine</b> et 5 adresses email
- pour seulement 34.80 €.TTC / mois
- </p>
- <p>Exemple:</p>
- <table>
- <tr>
- <td style="width: 200px;">
- Nom de domaine:
- </td>
- <td>
- <i>ma-structure.fr</i>
- </td>
- </tr>
- <tr>
- <td>Adresse email associée: </td>
- <td>
- <i>contact@NomDeMaStructure.fr</i>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </tbody>
- </template>
- </v-simple-table>
- </v-row>
- </v-container>
- </UiExpansionPanel>
- </v-expansion-panels>
- </v-col>
- </LayoutContainer>
- </template>
- <script lang="ts">
- import { defineComponent, useFetch, useContext, ref, Ref } from '@nuxtjs/composition-api'
- import { $organizationProfile } from '~/services/profile/organizationProfile'
- import { QUERY_TYPE } from '~/types/enums'
- import {ApiResponse, DolibarrAccount, MobytUserStatus} from '~/types/interfaces'
- export default defineComponent({
- name: 'Subscription',
- setup () {
- const { store, $dataProvider } = useContext()
- const organizationProfile = $organizationProfile(store)
- const id: number = store.state.profile.organization.id
- const dolibarrAccount: Ref<DolibarrAccount | null> = ref(null)
- const mobytStatus: Ref<MobytUserStatus | null> = ref(null)
- // fetch the dolibarr account's data
- const {fetchState} = useFetch(async () => {
- try {
- const reponse:ApiResponse = await $dataProvider.invoke({
- type: QUERY_TYPE.DEFAULT,
- url: '/api/dolibarr/account/' + id
- })
- dolibarrAccount.value = reponse.data as DolibarrAccount
- } catch (Error) {
- // eslint-disable-next-line no-console
- console.error('Error: Dolibarr account not found')
- }
- })
- // fetch the mobyt status
- useFetch(async () => {
- try {
- const reponse:ApiResponse = await $dataProvider.invoke({
- type: QUERY_TYPE.DEFAULT,
- url: '/api/mobyt/status/' + id
- })
- mobytStatus.value = reponse.data as MobytUserStatus
- } catch (Error) {
- // eslint-disable-next-line no-console
- console.error('Error: Mobyt status not found')
- }
- })
- return {
- organizationProfile,
- dolibarrAccount,
- mobytStatus,
- dolibarAccountFetch : fetchState
- }
- }
- })
- </script>
- <style>
- #products-section table {
- table-layout: fixed;
- width: 100%;
- }
- #products-section table img {
- max-height: 250px;
- max-width: 100%;
- }
- #products-section tr.center-td-content td {
- text-align: center;
- }
- #products-section td {
- padding: 12px 18px;
- vertical-align: top;
- }
- </style>
|