- edit campi prodotti

- edit ordini
This commit is contained in:
Surya Paolo
2024-01-13 00:29:02 +01:00
parent 89e8575aae
commit 3ffa2893e5
23 changed files with 749 additions and 65 deletions

View File

@@ -38,7 +38,7 @@ export default defineComponent({
},
},
components: { CTitleBanner, CCardState, CCopyBtn },
setup(props) {
setup(props, { emit }) {
const products = useProducts()
const order = toRef(props, 'order')
const { t } = useI18n()
@@ -110,8 +110,9 @@ export default defineComponent({
}
function updateOrder(val: any) {
async function updateOrder(paramstoupdate: any) {
await products.updateOrderByOrder(props.idOrdersCart, order.value._id, paramstoupdate)
emit('update')
}
function getRisparmio(): string {