- Categorie

- ProductInfo
This commit is contained in:
Surya Paolo
2023-12-27 02:58:23 +01:00
parent c27c293fbf
commit 6be8ccc906
30 changed files with 612 additions and 198 deletions

View File

@@ -15,7 +15,7 @@ import { CProductCard } from '@src/components/CProductCard'
export default defineComponent({
name: 'ProductInfo',
name: 'productInfo',
components: { CProductCard },
props: {},
setup() {
@@ -26,7 +26,8 @@ export default defineComponent({
const $route = useRoute()
const $q = useQuasar()
const { t } = useI18n();
const code = ref('')
const id = ref('')
const cosa = ref(0)
// const { setValDb, getValDb } = MixinBase()
@@ -34,11 +35,13 @@ export default defineComponent({
// Inizializza
console.log('created productInfo')
console.log($route)
if (!!$route.params.codprod) {
code.value = $route.params.codprod.toString()
if (!!$route.params.idprod) {
id.value = $route.params.idprod.toString()
}
if (!!$route.params.idprod) {
cosa.value = tools.strToVal($route.params.cosa.toString())
}
console.log('code', code)
}
onMounted(mounted)
@@ -49,7 +52,8 @@ export default defineComponent({
tools,
toolsext,
shared_consts,
code,
id,
cosa,
}
}
})