@@ -543,6 +601,10 @@ es:
color: var(--vn-text-color);
}
+.color-vn-text {
+ color: var(--vn-text-color);
+}
+
.q-table--dark .q-table__bottom,
.q-table--dark thead,
.q-table--dark tr,
diff --git a/src/components/VnTable/VnVisibleColumn.vue b/src/components/VnTable/VnVisibleColumn.vue
index 0f979acd3d..e3bb52637a 100644
--- a/src/components/VnTable/VnVisibleColumn.vue
+++ b/src/components/VnTable/VnVisibleColumn.vue
@@ -12,6 +12,10 @@ const $props = defineProps({
type: String,
default: '',
},
+ skip: {
+ type: Array,
+ default: () => [],
+ },
});
const { notify } = useNotify();
@@ -30,8 +34,12 @@ function setUserConfigViewData(data, isLocal) {
if (!data) return;
// Importante: El name de las columnas de la tabla debe conincidir con el name de las variables que devuelve la view config
if (!isLocal) localColumns.value = [];
+ // Array to Object
+ const skippeds = $props.skip.reduce((a, v) => ({ ...a, [v]: v }), {});
+
for (let column of columns.value) {
const { label, name } = column;
+ if (skippeds[name]) continue;
column.visible = data[name] ?? true;
if (!isLocal) localColumns.value.push({ name, label, visible: column.visible });
}
@@ -127,7 +135,7 @@ onMounted(async () => {
});
-
+
diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue
index 4981a163f1..7792ed2cd9 100644
--- a/src/components/ui/CardDescriptor.vue
+++ b/src/components/ui/CardDescriptor.vue
@@ -56,7 +56,12 @@ onBeforeMount(async () => {
skip: 0,
});
store = arrayData.store;
- entity = computed(() => (Array.isArray(store.data) ? store.data[0] : store.data));
+ entity = computed(() => {
+ const data = (Array.isArray(store.data) ? store.data[0] : store.data) ?? {};
+ if (data) emit('onFetch', data);
+ return data;
+ });
+
// It enables to load data only once if the module is the same as the dataKey
if (!isSameDataKey.value || !route.params.id) await getData();
watch(
@@ -85,9 +90,9 @@ function getValueFromPath(path) {
const keys = path.toString().split('.');
let current = entity.value;
- for (let i = 0; i < keys.length; i++) {
- if (current[keys[i]] === undefined) return undefined;
- else current = current[keys[i]];
+ for (const key of keys) {
+ if (current[key] === undefined) return undefined;
+ else current = current[key];
}
return current;
}
diff --git a/src/components/ui/CatalogItem.vue b/src/components/ui/CatalogItem.vue
index 2b4724e35e..5c5d71018e 100644
--- a/src/components/ui/CatalogItem.vue
+++ b/src/components/ui/CatalogItem.vue
@@ -52,6 +52,10 @@ const dialog = ref(null);
:value="item?.[`value${index + 4}`]"
/>
+
+
+ {{ item.minQuantity }}
+