- edit campi prodotti
- edit ordini
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user