diff --git a/src/boot/qformMixin.js b/src/boot/qformMixin.js index 8a75e1af7..187ca6dbc 100644 --- a/src/boot/qformMixin.js +++ b/src/boot/qformMixin.js @@ -1,6 +1,5 @@ function focusFirstInput(input) { input.focus(); - return; } export default { mounted: function () { diff --git a/src/components/FormModel.vue b/src/components/FormModel.vue index 2cb6ad8e6..c569f2553 100644 --- a/src/components/FormModel.vue +++ b/src/components/FormModel.vue @@ -293,6 +293,7 @@ defineExpose({ class="q-pa-md" :style="maxWidth ? 'max-width: ' + maxWidth : ''" id="formModel" + :prevent-submit="$attrs['prevent-submit']" > { : $props.defaultMode; stateStore.rightDrawer = quasar.screen.gt.xs; columnsVisibilitySkipped.value = [ - ...splittedColumns.value.columns.filter((c) => !c.visible).map((c) => c.name), + ...splittedColumns.value.columns + .filter((c) => c.visible === false) + .map((c) => c.name), ...['tableActions'], ]; createForm.value = $props.create; diff --git a/src/components/VnTable/VnVisibleColumn.vue b/src/components/VnTable/VnVisibleColumn.vue index f5c3458cd..dad950d73 100644 --- a/src/components/VnTable/VnVisibleColumn.vue +++ b/src/components/VnTable/VnVisibleColumn.vue @@ -152,7 +152,7 @@ onMounted(async () => { diff --git a/src/components/ui/VnSearchbar.vue b/src/components/ui/VnSearchbar.vue index ccf87c6d6..4e90245d6 100644 --- a/src/components/ui/VnSearchbar.vue +++ b/src/components/ui/VnSearchbar.vue @@ -51,10 +51,6 @@ const props = defineProps({ type: Object, default: null, }, - staticParams: { - type: Array, - default: () => [], - }, exprBuilder: { type: Function, default: null, diff --git a/src/css/app.scss b/src/css/app.scss index 63a9f5c46..abb388be9 100644 --- a/src/css/app.scss +++ b/src/css/app.scss @@ -264,6 +264,10 @@ input::-webkit-inner-spin-button { .shrink { max-width: 75px; } + .number { + text-align: right; + width: 96px; + } .expand { max-width: 400px; } diff --git a/src/pages/Customer/components/CustomerNewPayment.vue b/src/pages/Customer/components/CustomerNewPayment.vue index 291f28642..c2c38b55a 100644 --- a/src/pages/Customer/components/CustomerNewPayment.vue +++ b/src/pages/Customer/components/CustomerNewPayment.vue @@ -189,6 +189,7 @@ async function getAmountPaid() { :url-create="urlCreate" :mapper="onBeforeSave" @on-data-saved="onDataSaved" + :prevent-submit="true" > diff --git a/src/pages/Item/ItemRequest.vue b/src/pages/Item/ItemRequest.vue index 734fe26de..4447d1bcf 100644 --- a/src/pages/Item/ItemRequest.vue +++ b/src/pages/Item/ItemRequest.vue @@ -1,10 +1,9 @@