- edit campi prodotti
- edit ordini
This commit is contained in:
@@ -102,6 +102,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function load() {
|
||||
endload.value = false
|
||||
recOrderCart.value = productStore.getOrdersCartById(props.idOrdersCart)
|
||||
if (recOrderCart.value) {
|
||||
oldrec.value = myrec.value
|
||||
@@ -181,6 +182,16 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
|
||||
function updateOrdersCart(paramstoupdate: any) {
|
||||
productStore.updateOrdersCartById(props.idOrdersCart, paramstoupdate)
|
||||
}
|
||||
|
||||
function ordersUpdated() {
|
||||
console.log('ordersUpdated')
|
||||
load()
|
||||
}
|
||||
|
||||
|
||||
onMounted(mounted)
|
||||
|
||||
return {
|
||||
@@ -200,6 +211,8 @@ export default defineComponent({
|
||||
endload,
|
||||
search,
|
||||
insertArticolo,
|
||||
updateOrdersCart,
|
||||
ordersUpdated,
|
||||
t,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
:idOrdersCart="recOrderCart._id"
|
||||
:editmode="tools.isManager()"
|
||||
:nomodif="true"
|
||||
@update="ordersUpdated()"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user