immagini dei prodotti marocco
visualizzazione di una pagina web su di un q-dialog
@@ -74,6 +74,7 @@
|
||||
"vue-svgicon": "^4.0.0-alpha.3",
|
||||
"vue-timeago3": "^2.3.0",
|
||||
"vue2-dragula": "^2.5.5",
|
||||
"vue3-pdf-app": "^1.0.3",
|
||||
"vuex": "^4.1.0",
|
||||
"vuex-router-sync": "^6.0.0-rc.1"
|
||||
},
|
||||
|
||||
@@ -7,7 +7,7 @@ import { useGlobalStore } from '@store/globalStore'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { useQuasar } from 'quasar'
|
||||
|
||||
import { Chart, ChartItem, ChartConfiguration } from 'chart.js/auto'
|
||||
import { Chart, ChartItem, ChartConfiguration } from 'chart.js'
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
|
||||
@@ -19,6 +19,12 @@ import { shared_consts } from '@src/common/shared_vuejs'
|
||||
import { useRouter } from 'vue-router'
|
||||
|
||||
import { costanti } from '@costanti'
|
||||
|
||||
import VuePdfApp from 'vue3-pdf-app'
|
||||
// import this to use default icons for buttons
|
||||
import 'vue3-pdf-app/dist/icons/main.css'
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
name: 'CProductCard',
|
||||
props: {
|
||||
@@ -61,6 +67,8 @@ export default defineComponent({
|
||||
|
||||
const fullscreenImage = ref(<any>null)
|
||||
|
||||
const apriSchedaPDF = ref(false)
|
||||
|
||||
let myorder = reactive(<IOrder>{
|
||||
idapp: process.env.APP_ID,
|
||||
quantity: 0,
|
||||
@@ -89,6 +97,7 @@ export default defineComponent({
|
||||
const startY = ref(0)
|
||||
const scale = ref(1)
|
||||
|
||||
|
||||
const valoriopt = computed(() => (item: any, addall: boolean, addnone: boolean) => {
|
||||
// console.log('valoriopt', item.table)
|
||||
return globalStore.getTableJoinByName(item.table, addall, addnone, item.filter)
|
||||
@@ -271,6 +280,7 @@ export default defineComponent({
|
||||
|
||||
function mounted() {
|
||||
load()
|
||||
|
||||
// Start the timer when the component is mounted
|
||||
startTimer();
|
||||
}
|
||||
@@ -456,6 +466,7 @@ export default defineComponent({
|
||||
updateproductmodif,
|
||||
isOrdineChiuso,
|
||||
ricarica,
|
||||
apriSchedaPDF,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -47,16 +47,7 @@
|
||||
style="bottom: -10px; right: 0px; transform: translateY(-50%)"
|
||||
/>
|
||||
</div>
|
||||
<!--<q-btn
|
||||
v-if="!complete"
|
||||
fab
|
||||
color="primary"
|
||||
icon="fas fa-info"
|
||||
class="absolute semi-transparent"
|
||||
style="top: 0; right: -15px; transform: translateY(-66%)"
|
||||
:to="`/product/` + myproduct._id + '/' + cosa"
|
||||
/>
|
||||
-->
|
||||
|
||||
<q-list>
|
||||
<q-item>
|
||||
<q-item-section avatar>
|
||||
@@ -253,7 +244,7 @@
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-card-section v-if="complete && myproduct.productInfo.link_scheda">
|
||||
<div class="text-blue text-title row">
|
||||
<div v-if="complete" class="text-blue text-title row">
|
||||
<q-icon size="sm" name="fas fa-list-ul" class="q-mr-sm" />
|
||||
{{ t('products.link_scheda') }}
|
||||
</div>
|
||||
@@ -361,8 +352,11 @@
|
||||
<q-card-section v-if="isOrdGas()">
|
||||
<q-item
|
||||
v-if="
|
||||
(myproduct.bookableAvailableQty > 0 && myproduct.bookableAvailableQty < shared_consts.MAX_QTA_PREORD) ||
|
||||
(myproduct.maxbookableGASQty > 0 && myproduct.maxbookableGASQty < shared_consts.MAX_QTA_PREORD) || editOn
|
||||
(myproduct.bookableAvailableQty > 0 &&
|
||||
myproduct.bookableAvailableQty < shared_consts.MAX_QTA_PREORD) ||
|
||||
(myproduct.maxbookableGASQty > 0 &&
|
||||
myproduct.maxbookableGASQty < shared_consts.MAX_QTA_PREORD) ||
|
||||
editOn
|
||||
"
|
||||
:clickable="tools.isManager()"
|
||||
@click="
|
||||
@@ -754,6 +748,25 @@
|
||||
@click="addtoCart(true)"
|
||||
>
|
||||
</q-btn>
|
||||
<q-btn
|
||||
v-if="!complete && myproduct.productInfo.link_scheda"
|
||||
rounded
|
||||
color="primary"
|
||||
icon="fas fa-file-alt"
|
||||
label="Dettagli Scheda"
|
||||
class="q-mb-xs q-mt-md"
|
||||
@click="apriSchedaPDF = true"
|
||||
/>
|
||||
<q-btn
|
||||
v-else-if="!complete"
|
||||
rounded
|
||||
color="primary"
|
||||
icon="fas fa-info"
|
||||
label="Dettagli"
|
||||
class="q-mb-xs q-mt-md"
|
||||
:to="`/product/` + myproduct._id + '/' + cosa"
|
||||
/>
|
||||
|
||||
<q-btn
|
||||
v-if="myorder.quantity + myorder.quantitypreordered > 0"
|
||||
rounded
|
||||
@@ -819,7 +832,8 @@
|
||||
</CMyValueDb>
|
||||
</q-card>
|
||||
|
||||
<q-dialog v-model="openlistorders">
|
||||
|
||||
<q-dialog v-if="myproduct" v-model="openlistorders">
|
||||
<q-card class="dialog_card">
|
||||
<q-toolbar class="bg-primary text-white">
|
||||
<q-toolbar-title>
|
||||
@@ -902,6 +916,35 @@
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
|
||||
<q-dialog v-if="myproduct && myproduct.productInfo && myproduct.productInfo.link_scheda" v-model="apriSchedaPDF" maximized>
|
||||
<q-card>
|
||||
<q-toolbar class="bg-primary text-white">
|
||||
<q-toolbar-title>
|
||||
{{ myproduct.productInfo.name }}
|
||||
</q-toolbar-title>
|
||||
<q-btn flat round color="white" label="CHIUDI" icon="close" v-close-popup></q-btn>
|
||||
</q-toolbar>
|
||||
<q-card-main>
|
||||
<iframe :src="myproduct.productInfo.link_scheda" frameborder="0" width="100%" height="100%"></iframe>
|
||||
</q-card-main>
|
||||
</q-card>
|
||||
<q-card-actions align="bottom">
|
||||
<q-btn color="primary" label="Chiudi" @click="apriSchedaPDF = false" />
|
||||
</q-card-actions>
|
||||
</q-dialog>
|
||||
|
||||
<!--
|
||||
<q-dialog v-if="myproduct && myproduct.productInfo && myproduct.productInfo.link_scheda" v-model="apriSchedaPDF" fullscreen>
|
||||
<div class="q-pa-md">
|
||||
<vue-pdf-app style="height: 100vh;" :pdf="myproduct.productInfo.link_scheda"></vue-pdf-app>
|
||||
|
||||
</div>
|
||||
<q-card-actions align="bottom">
|
||||
<q-btn color="primary" label="Chiudi" @click="apriSchedaPDF = false" />
|
||||
</q-card-actions>
|
||||
</q-dialog>
|
||||
-->
|
||||
|
||||
<q-dialog
|
||||
v-model="isFullScreen"
|
||||
position="top"
|
||||
|
||||
@@ -44,7 +44,7 @@ export default defineComponent({
|
||||
// console.log('load VREG')
|
||||
let param: ILinkReg = { idlink: '' }
|
||||
if (route.query.idlink)
|
||||
param = { idlink: route.query.idlink!.toString() }
|
||||
param = { idlink: route.query.idlink.toString() }
|
||||
|
||||
// console.log('idlink = ', param)
|
||||
return userStore.vreg(param)
|
||||
|
||||
BIN
upload/products/20210430-170812-photoroom-1-100x100.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
upload/products/20210430-170812-photoroom-1-150x150.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
upload/products/20210430-170812-photoroom-1-300x300.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
upload/products/20210430-170812-photoroom-1-800x800.png
Normal file
|
After Width: | Height: | Size: 115 KiB |
BIN
upload/products/acqua-artemisia-100x100.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
upload/products/acqua-artemisia-150x150.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
upload/products/acqua-artemisia-300x300.png
Normal file
|
After Width: | Height: | Size: 28 KiB |
BIN
upload/products/acqua-artemisia-800x800.png
Normal file
|
After Width: | Height: | Size: 161 KiB |
BIN
upload/products/acqua-di-geranio-100x100.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
upload/products/acqua-di-geranio-150x150.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
upload/products/acqua-di-geranio-300x300.png
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
upload/products/acqua-di-geranio-800x800.png
Normal file
|
After Width: | Height: | Size: 148 KiB |
BIN
upload/products/acqua-di-rose-di-damasco-2-100x100.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
upload/products/acqua-di-rose-di-damasco-2-150x150.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
upload/products/acqua-di-rose-di-damasco-2-300x300.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
upload/products/acqua-di-rose-di-damasco-2-800x800.png
Normal file
|
After Width: | Height: | Size: 134 KiB |
BIN
upload/products/acqua-di-rosmarino-100-ml-100x100.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
upload/products/acqua-di-rosmarino-100-ml-150x150.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
upload/products/acqua-di-rosmarino-100-ml-300x300.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
upload/products/acqua-di-rosmarino-100-ml-800x800.png
Normal file
|
After Width: | Height: | Size: 134 KiB |
BIN
upload/products/acqua-di-salvia-100-ml-100x100.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
upload/products/acqua-di-salvia-100-ml-150x150.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
upload/products/acqua-di-salvia-100-ml-300x300.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
upload/products/acqua-di-salvia-100-ml-800x800.png
Normal file
|
After Width: | Height: | Size: 146 KiB |
BIN
upload/products/amlou-izourane-2-100x100.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
upload/products/amlou-izourane-2-150x150.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
upload/products/amlou-izourane-2-300x300.png
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
upload/products/argan-assafar-100-ml-100x100.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
upload/products/argan-assafar-100-ml-150x150.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
upload/products/argan-assafar-100-ml-300x300.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
upload/products/argan-assafar-100-ml-800x800.png
Normal file
|
After Width: | Height: | Size: 116 KiB |
BIN
upload/products/artemisia-in-foglie-1-100x100.png
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
upload/products/artemisia-in-foglie-1-150x150.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
upload/products/artemisia-in-foglie-1-300x300.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
upload/products/artemisia-in-foglie-1-800x800.png
Normal file
|
After Width: | Height: | Size: 207 KiB |
BIN
upload/products/berkoukch-100x100.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
upload/products/berkoukch-150x150.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
upload/products/berkoukch-300x300.png
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
upload/products/berkoukch-800x800.png
Normal file
|
After Width: | Height: | Size: 301 KiB |
BIN
upload/products/cannella-nour-salam-100x100.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
upload/products/cannella-nour-salam-150x150.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
upload/products/cannella-nour-salam-300x300.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
upload/products/carruba-macinata-100x100.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
upload/products/carruba-macinata-150x150.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
upload/products/carruba-macinata-300x300.png
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
upload/products/cestini-ovali-assalam-2-100x100.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
upload/products/cestini-ovali-assalam-2-150x150.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
upload/products/cestini-ovali-assalam-2-300x300.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
upload/products/cestini-ovali-assalam-2-800x800.png
Normal file
|
After Width: | Height: | Size: 107 KiB |
BIN
upload/products/cestini-tiznkade-1-2-100x100.png
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
upload/products/cestini-tiznkade-1-2-150x150.png
Normal file
|
After Width: | Height: | Size: 9.8 KiB |
BIN
upload/products/cestini-tiznkade-1-2-300x300.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
upload/products/cestini-tiznkade-1-2-800x800.png
Normal file
|
After Width: | Height: | Size: 176 KiB |
BIN
upload/products/cetriolini-100x100.jpg
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
upload/products/cetriolini-150x150.jpg
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
upload/products/cetriolini-300x300.jpg
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
upload/products/cetriolini-800x800.jpg
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
upload/products/ciotola-per-sito-100x100.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
upload/products/ciotola-per-sito-150x150.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
upload/products/ciotola-per-sito-300x300.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
upload/products/confettura-di-rose-100x100.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
upload/products/confettura-di-rose-150x150.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
upload/products/confettura-di-rose-300x300.png
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
upload/products/confettura-di-rose-800x800.png
Normal file
|
After Width: | Height: | Size: 267 KiB |
BIN
upload/products/couscous-5-stelle-1-100x100.jpg
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
upload/products/couscous-5-stelle-1-150x150.jpg
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
upload/products/couscous-5-stelle-1-300x300.jpg
Normal file
|
After Width: | Height: | Size: 9.1 KiB |
|
After Width: | Height: | Size: 5.5 KiB |
|
After Width: | Height: | Size: 11 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 205 KiB |
BIN
upload/products/couscous-carruba-100x100.jpg
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
upload/products/couscous-carruba-150x150.jpg
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
upload/products/couscous-carruba-300x300.jpg
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
upload/products/couscous-carruba-800x800.jpg
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
upload/products/couscous-miglio-100x100.jpg
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
upload/products/couscous-miglio-150x150.jpg
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
upload/products/couscous-miglio-300x300.jpg
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
BIN
upload/products/couscous-miglio-800x800.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
upload/products/cumino-nour-salam-1-100x100.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
upload/products/cumino-nour-salam-1-150x150.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
upload/products/cumino-nour-salam-1-300x300.png
Normal file
|
After Width: | Height: | Size: 44 KiB |
BIN
upload/products/curcuma-nour-salam-100x100.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
upload/products/curcuma-nour-salam-150x150.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
upload/products/curcuma-nour-salam-300x300.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
upload/products/cuscsuc-avena-1-100x100.jpg
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
upload/products/cuscsuc-avena-1-150x150.jpg
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
upload/products/cuscsuc-avena-1-300x300.jpg
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
BIN
upload/products/cuscsuc-avena-1-800x800.jpg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
upload/products/cuscus-5-cereali-afous-1-kg-100x100.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
upload/products/cuscus-5-cereali-afous-1-kg-150x150.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
upload/products/cuscus-5-cereali-afous-1-kg-300x300.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
upload/products/cuscus-5-cereali-afous-1-kg-800x800.png
Normal file
|
After Width: | Height: | Size: 225 KiB |
BIN
upload/products/cuscus-grano-duro-1-100x100.jpg
Normal file
|
After Width: | Height: | Size: 2.0 KiB |