diff --git a/src/assets/images/misc/3d-safe-box-with-golden-dollar-coins.png b/src/assets/images/misc/3d-safe-box-with-golden-dollar-coins.png deleted file mode 100755 index be1b316..0000000 Binary files a/src/assets/images/misc/3d-safe-box-with-golden-dollar-coins.png and /dev/null differ diff --git a/src/assets/images/misc/3d-space-rocket-with-smoke.png b/src/assets/images/misc/3d-space-rocket-with-smoke.png deleted file mode 100755 index 6b94475..0000000 Binary files a/src/assets/images/misc/3d-space-rocket-with-smoke.png and /dev/null differ diff --git a/src/assets/images/misc/dollar-coins-flying-pink-piggy-bank.png b/src/assets/images/misc/dollar-coins-flying-pink-piggy-bank.png deleted file mode 100755 index 5d1fff3..0000000 Binary files a/src/assets/images/misc/dollar-coins-flying-pink-piggy-bank.png and /dev/null differ diff --git a/src/assets/images/misc/fleet-car.png b/src/assets/images/misc/fleet-car.png deleted file mode 100755 index b12f177..0000000 Binary files a/src/assets/images/misc/fleet-car.png and /dev/null differ diff --git a/src/assets/images/misc/remote_128.png b/src/assets/images/misc/remote_128.png new file mode 100644 index 0000000..8088b45 Binary files /dev/null and b/src/assets/images/misc/remote_128.png differ diff --git a/src/assets/images/misc/vnc_128.png b/src/assets/images/misc/vnc_128.png new file mode 100644 index 0000000..57f195d Binary files /dev/null and b/src/assets/images/misc/vnc_128.png differ diff --git a/src/assets/images/misc/vnc_256.png b/src/assets/images/misc/vnc_256.png new file mode 100644 index 0000000..4a9c6c5 Binary files /dev/null and b/src/assets/images/misc/vnc_256.png differ diff --git a/src/assets/images/misc/vnc_512.png b/src/assets/images/misc/vnc_512.png new file mode 100644 index 0000000..1dcd2f2 Binary files /dev/null and b/src/assets/images/misc/vnc_512.png differ diff --git a/src/models/storeData.ts b/src/models/storeData.ts new file mode 100644 index 0000000..be23e6b --- /dev/null +++ b/src/models/storeData.ts @@ -0,0 +1,51 @@ +interface Store { + id_structure: number + nom: string + ip_master: string + telephone: string + photoLink: string + enseigne: string + nb_caisses: number + adresse: string + caisses: Caisse[] +} + +interface Caisse { + id_caisse: number + ip: string +} + +interface Replication { + pendingReplications: number + minPendingReplicationDate: string + maxPendingReplicationDate: string +} + +interface Transaction { + backOfficeTransactions: number + minBackOfficeTransactionDate: string + maxBackOfficeTransactionDate: string + backOfficeBusinessDate: string +} + +interface XstoreTransaction { + count: number + minDate: string + minDateT: string + minDateH: string + maxDate: string + maxDateT: string + maxDateH: string +} + +export interface StoreData { + store: Store + replication: Replication + transaction: Transaction + openingTransaction: XstoreTransaction + closingTransaction: XstoreTransaction + saleTransaction: XstoreTransaction + xstoreVersion: string + xstoreVersionDate: string + xstoreVersionCustomer: string +} diff --git a/src/navigation/horizontal/index.ts b/src/navigation/horizontal/index.ts index 57dc678..80e8ac1 100755 --- a/src/navigation/horizontal/index.ts +++ b/src/navigation/horizontal/index.ts @@ -9,4 +9,12 @@ export default [ to: { name: 'store-list' }, icon: { icon: 'tabler-file' }, }, + { + title: 'Obi', + icon: { icon: 'tabler-file' }, + }, + { + title: 'Dotsoft', + icon: { icon: 'tabler-file' }, + }, ] diff --git a/src/navigation/vertical/index.ts b/src/navigation/vertical/index.ts index 57dc678..80e8ac1 100755 --- a/src/navigation/vertical/index.ts +++ b/src/navigation/vertical/index.ts @@ -9,4 +9,12 @@ export default [ to: { name: 'store-list' }, icon: { icon: 'tabler-file' }, }, + { + title: 'Obi', + icon: { icon: 'tabler-file' }, + }, + { + title: 'Dotsoft', + icon: { icon: 'tabler-file' }, + }, ] diff --git a/src/pages/index.vue b/src/pages/index.vue index b273185..8a01ae9 100755 --- a/src/pages/index.vue +++ b/src/pages/index.vue @@ -2,24 +2,11 @@
- All the best for your new project. - - Please make sure to read our - Template Documentation - to understand where to go from here and how to use our template. - - + A cet endroit bientรดt des statistiques - - We carefully crafted JWT flow so you can implement JWT with ease and with minimum efforts. - Please read our JWT Documentation to get more out of JWT authentication. + ๐Ÿ‘‰ Cliquez maintenant sur Boutique :)
diff --git a/src/pages/store/details/index.vue b/src/pages/store/details/index.vue index 4ce2b22..d2efcd4 100644 --- a/src/pages/store/details/index.vue +++ b/src/pages/store/details/index.vue @@ -3,6 +3,9 @@ import StoreHeader from '@/views/pages/store/view/StoreHeader.vue' import StoreTabAdmin from '@/views/pages/store/view/StoreTabAdmin.vue' import StoreTabGeneral from '@/views/pages/store/view/StoreTabGeneral.vue' import StoreTabItem from '@/views/pages/store/view/StoreTabItem.vue' +import StoreTabRemote from '@/views/pages/store/view/StoreTabRemote.vue' + +const { t } = useI18n() const route = useRoute('store-details') @@ -12,9 +15,10 @@ console.log(route.query.dbHost) // tabs const tabs = [ - { title: 'General', icon: 'tabler-users', tab: 'general' }, - { title: 'Item', icon: 'tabler-lock', tab: 'item' }, - { title: 'Admin', icon: 'tabler-file-text', tab: 'admin' }, + { title: 'General', icon: 'tabler-settings', tab: 'general' }, + { title: t('Item'), icon: 'tabler-shirt-sport', tab: 'item' }, + { title: t('Remote'), icon: 'tabler-brand-openvpn', tab: 'remote' }, + { title: 'Admin', icon: 'tabler-lock', tab: 'admin' }, ] const { data: storeData } = await useApi(`/stores/${route.query.storeId}/details?dbHost=${route.query.dbHost}`) @@ -49,19 +53,24 @@ const { data: storeData } = await useApi(`/stores/${route.query.storeId}/de class="mt-6 disable-tab-transition" :touch="false" > - + - + - + - + + + + + + diff --git a/src/pages/store/list/index.vue b/src/pages/store/list/index.vue index 5a0d81e..6ef8625 100644 --- a/src/pages/store/list/index.vue +++ b/src/pages/store/list/index.vue @@ -11,6 +11,7 @@ const headers = computed(() => [ { title: t('Phone'), key: 'telephone', sortable: false }, { title: t('Brand'), key: 'enseigne' }, { title: t('Country'), key: 'pays' }, + { title: '', key: 'actions', sortable: false }, ]) const selectedCountry = ref() @@ -75,6 +76,23 @@ const filteredStoresList = computed(() => { return filtered }) + +const selectedStore = ref(null) +const isDialogVisible = ref(false) + +const openPosList = (store: any) => { + selectedStore.value = store + isDialogVisible.value = true +} + +interface Store { + id_structure: number + caisses: Caisse[] +} +interface Caisse { + id_caisse: number + ip: string +}