diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js
index 6db41fe22..19ac131cf 100644
--- a/src/composables/useArrayData.js
+++ b/src/composables/useArrayData.js
@@ -178,7 +178,7 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
async function addOrder(field, direction = 'ASC') {
const newOrder = field + ' ' + direction;
- let order = store.order ?? [];
+ let order = store.order || [];
if (typeof order == 'string') order = [order];
let index = order.findIndex((o) => o.split(' ')[0] === field);
diff --git a/src/css/app.scss b/src/css/app.scss
index 3a33e3236..cf064a2fb 100644
--- a/src/css/app.scss
+++ b/src/css/app.scss
@@ -231,3 +231,26 @@ input::-webkit-inner-spin-button {
*::-webkit-scrollbar-track {
background: transparent;
}
+
+.q-table {
+ thead,
+ tbody {
+ th {
+ .q-select {
+ max-width: 120px;
+ }
+ }
+ td {
+ padding: 1px 10px 1px 10px;
+ max-width: 100px;
+ div span {
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ }
+ }
+ .expand {
+ max-width: 400px;
+ }
+ }
+}
diff --git a/src/pages/Customer/CustomerList.vue b/src/pages/Customer/CustomerList.vue
index f118c7c1c..a11b9fd1f 100644
--- a/src/pages/Customer/CustomerList.vue
+++ b/src/pages/Customer/CustomerList.vue
@@ -42,6 +42,9 @@ const columns = computed(() => [
name: 'name',
isTitle: true,
create: true,
+ columnField: {
+ class: 'expand',
+ },
},
{
align: 'left',
@@ -49,6 +52,9 @@ const columns = computed(() => [
label: t('customer.extendedList.tableVisibleColumns.socialName'),
isTitle: true,
create: true,
+ columnField: {
+ class: 'expand',
+ },
},
{
align: 'left',
@@ -78,8 +84,8 @@ const columns = computed(() => [
align: 'left',
label: t('customer.extendedList.tableVisibleColumns.credit'),
name: 'credit',
- component: 'number',
columnFilter: {
+ component: 'number',
inWhere: true,
},
},
@@ -87,8 +93,8 @@ const columns = computed(() => [
align: 'left',
label: t('customer.extendedList.tableVisibleColumns.creditInsurance'),
name: 'creditInsurance',
- component: 'number',
columnFilter: {
+ component: 'number',
inWhere: true,
},
},
@@ -130,6 +136,9 @@ const columns = computed(() => [
columnFilter: {
inWhere: true,
},
+ columnField: {
+ class: 'expand',
+ },
},
{
align: 'left',
@@ -179,8 +188,8 @@ const columns = computed(() => [
label: t('customer.extendedList.tableVisibleColumns.created'),
name: 'created',
format: ({ created }) => toDate(created),
- component: 'date',
columnFilter: {
+ component: 'date',
alias: 'c',
inWhere: true,
},