aggiornamento visualizzazione Ordini e Carrello

This commit is contained in:
Surya Paolo
2023-12-09 19:38:30 +01:00
parent 2b6411eb77
commit 59c03f28f2
13 changed files with 371 additions and 226 deletions

View File

@@ -34,7 +34,7 @@ export default defineComponent({
const conferma_carrello = ref(false)
const conferma_ordine = ref(false)
const taborders = ref('incorso')
const taborders = ref(shared_consts.OrderStatStr.IN_CORSO)
const statusnow = ref(0)
const arrnumstatus = ref(<any[]>[])
const columns = ref(<any>[
@@ -93,7 +93,9 @@ export default defineComponent({
}
function getOrdersCart(): IOrderCart[] | undefined {
return productStore.getOrdersCart(taborders.value)
const ris = productStore.getOrdersCart(taborders.value)
console.log(ris)
return ris
}
function getAllOrdersCart() {
@@ -102,8 +104,10 @@ export default defineComponent({
function updateorders() {
myorderscart.value = getOrdersCart()
for (const ordercart of myorderscart.value!) {
myarrrec.value[ordercart._id] = Object.keys(ordercart)
if (myorderscart.value) {
for (const ordercart of myorderscart.value) {
myarrrec.value[ordercart._id] = Object.keys(ordercart)
}
}
const allorders = getAllOrdersCart()