fix: quotation customer & dialog props

This commit is contained in:
puriphatt 2024-09-30 11:37:18 +07:00
parent f7d6cdfd6e
commit 00d297be4f
3 changed files with 7 additions and 16 deletions

View file

@ -13,12 +13,13 @@ defineProps<{
badgeLabel?: string; badgeLabel?: string;
customerLabel?: string; customerLabel?: string;
badgeClass?: string; badgeClass?: string;
hideFooter?: boolean;
maxWidth?: string; maxWidth?: string;
width?: string; width?: string;
height?: string; height?: string;
bgColor?: string;
employee?: boolean; employee?: boolean;
edit?: boolean; edit?: boolean;
hideFooter?: boolean;
hideDelete?: boolean; hideDelete?: boolean;
saveAmount?: number; saveAmount?: number;
@ -160,6 +161,7 @@ const currentTab = defineModel<string>('currentTab');
'surface-0': !employee, 'surface-0': !employee,
'surface-tab': employee || tabsList, 'surface-tab': employee || tabsList,
}" }"
:style="`background: ${bgColor} !important`"
> >
<div <div
v-if="tabsList && tabsList.length > 0" v-if="tabsList && tabsList.length > 0"

View file

@ -79,7 +79,9 @@ watch(
:rules :rules
> >
<template v-slot:no-option> <template v-slot:no-option>
<q-item> <slot name="noOption"></slot>
<q-item v-if="!$slots.noOption">
<q-item-section class="text-grey"> <q-item-section class="text-grey">
{{ $t('general.noData') }} {{ $t('general.noData') }}
</q-item-section> </q-item-section>

View file

@ -658,22 +658,9 @@ onMounted(async () => {
id="customer-form-content" id="customer-form-content"
style="height: 100%; max-height: 100%; overflow-y: auto" style="height: 100%; max-height: 100%; overflow-y: auto"
> >
<FormAbout prefixId="zxc" /> <FormAbout prefixId="zxc" @add-customer="console.log('asdasd')" />
</div> </div>
</section> </section>
<template #footer>
<q-btn
style="
border-radius: var(--radius-2);
padding-block: var(--size-1);
padding-inline: var(--size-2);
"
color="negative"
outline
:label="$t('general.add', { text: $t('quotation.newCustomer') })"
/>
</template>
</DialogForm> </DialogForm>
<!-- add employee --> <!-- add employee -->