- Import di un file XLS contenente una lista di libri, all'interno di un catalogo.
This commit is contained in:
@@ -2394,7 +2394,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function addProductToList(element: IProduct, where: string) {
|
||||
// console.log('addProductToList', element)
|
||||
console.log('addProductToList', element)
|
||||
|
||||
if (element) {
|
||||
// add this record to lista_prodotti
|
||||
|
||||
@@ -203,7 +203,7 @@
|
||||
></q-btn>-->
|
||||
|
||||
<q-btn
|
||||
v-if="!showListaFiltrata"
|
||||
v-if="!showListaFiltrata && tools.isCollaboratore()"
|
||||
rounded
|
||||
label="Aggiungi"
|
||||
icon="fas fa-plus"
|
||||
@@ -253,6 +253,8 @@
|
||||
table="products"
|
||||
@rigenera="generaListaLibri()"
|
||||
:title="getTitoloCatalogo()"
|
||||
:canadd="!showListaFiltrata"
|
||||
@addtolist="(elem: any) => addProductToList(elem, shared_consts.WHERE_INSERT.ONBOTTOM)"
|
||||
/>
|
||||
</q-tab-panel>
|
||||
<q-tab-panel
|
||||
@@ -1862,7 +1864,8 @@
|
||||
table="products"
|
||||
@rigenera="generaListaLibri()"
|
||||
:title="getTitoloCatalogo()"
|
||||
@addtolist="(elem) => addProductToList(elem, shared_consts.WHERE_INSERT.ONTOP)"
|
||||
:canadd="!showListaFiltrata"
|
||||
@addtolist="(elem: any) => addProductToList(elem, shared_consts.WHERE_INSERT.ONTOP)"
|
||||
/>
|
||||
</q-tab-panel>
|
||||
</q-tab-panels>
|
||||
|
||||
Reference in New Issue
Block a user