aggiornamento visualizzazione Ordini e Carrello
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user