PASSAGGIO A VITE !
AGG. 1.1.23
This commit is contained in:
@@ -1,19 +1,20 @@
|
||||
import { defineComponent, onMounted, ref, computed, watch } from 'vue'
|
||||
import { tools } from '@store/Modules/tools'
|
||||
import { tools } from '@tools'
|
||||
import { useUserStore } from '@store/UserStore'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { useGlobalStore } from '@store/globalStore'
|
||||
import { useProducts } from '@store/Products'
|
||||
import { useI18n } from '@/boot/i18n'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
import { toolsext } from '@store/Modules/toolsext'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { costanti } from '@costanti'
|
||||
import { IBaseOrder, ICart, IOrder, IOrderCart, IProduct, IShareWithUs } from '@src/model/Products'
|
||||
import type { IBaseOrder, IOrder, IOrderCart, IProduct } from '@src/model/Products';
|
||||
import { ICart, IShareWithUs } from '@src/model/Products'
|
||||
|
||||
import { shared_consts } from '@src/common/shared_vuejs'
|
||||
|
||||
import { CSingleCart } from '../CSingleCart'
|
||||
import { CTitleBanner } from '@components'
|
||||
import { CTitleBanner } from '@src/components/CTitleBanner'
|
||||
|
||||
|
||||
export default defineComponent({
|
||||
@@ -71,7 +72,7 @@ export default defineComponent({
|
||||
function mounted() {
|
||||
// Inizializza
|
||||
load()
|
||||
|
||||
|
||||
allTotalPrice.value = recOrderCart.value.totalPrice
|
||||
}
|
||||
|
||||
@@ -190,11 +191,11 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
async function insertArticolo() {
|
||||
let lowerSearchText = search.value.trim();
|
||||
const lowerSearchText = search.value.trim();
|
||||
|
||||
const myprod = productStore.getProductByCode(lowerSearchText);
|
||||
if (myprod && myprod.active) {
|
||||
let myorder: IOrder = {
|
||||
const myorder: IOrder = {
|
||||
quantity: 1, quantitypreordered: 0,
|
||||
TotalPriceProduct: 0, TotalPriceProductCalc: 0, price: 0,
|
||||
idStorehouse: getActualIdStorehouse(myprod),
|
||||
@@ -208,7 +209,7 @@ export default defineComponent({
|
||||
|
||||
async function updateOrdersCart(paramstoupdate: any) {
|
||||
await productStore.updateOrdersCartById(props.idOrdersCart, paramstoupdate)
|
||||
|
||||
|
||||
}
|
||||
|
||||
function ordersUpdated() {
|
||||
@@ -217,13 +218,13 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function changeTotalPrice() {
|
||||
|
||||
|
||||
|
||||
|
||||
change_field('totalPrice')
|
||||
}
|
||||
|
||||
function updateTotalPrice() {
|
||||
updateOrdersCart({totalPrice: allTotalPrice.value})
|
||||
updateOrdersCart({ totalPrice: allTotalPrice.value })
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user