fix: quotation customer & dialog props
This commit is contained in:
parent
f7d6cdfd6e
commit
00d297be4f
3 changed files with 7 additions and 16 deletions
|
|
@ -13,12 +13,13 @@ defineProps<{
|
|||
badgeLabel?: string;
|
||||
customerLabel?: string;
|
||||
badgeClass?: string;
|
||||
hideFooter?: boolean;
|
||||
maxWidth?: string;
|
||||
width?: string;
|
||||
height?: string;
|
||||
bgColor?: string;
|
||||
employee?: boolean;
|
||||
edit?: boolean;
|
||||
hideFooter?: boolean;
|
||||
hideDelete?: boolean;
|
||||
|
||||
saveAmount?: number;
|
||||
|
|
@ -160,6 +161,7 @@ const currentTab = defineModel<string>('currentTab');
|
|||
'surface-0': !employee,
|
||||
'surface-tab': employee || tabsList,
|
||||
}"
|
||||
:style="`background: ${bgColor} !important`"
|
||||
>
|
||||
<div
|
||||
v-if="tabsList && tabsList.length > 0"
|
||||
|
|
|
|||
|
|
@ -79,7 +79,9 @@ watch(
|
|||
:rules
|
||||
>
|
||||
<template v-slot:no-option>
|
||||
<q-item>
|
||||
<slot name="noOption"></slot>
|
||||
|
||||
<q-item v-if="!$slots.noOption">
|
||||
<q-item-section class="text-grey">
|
||||
{{ $t('general.noData') }}
|
||||
</q-item-section>
|
||||
|
|
|
|||
|
|
@ -658,22 +658,9 @@ onMounted(async () => {
|
|||
id="customer-form-content"
|
||||
style="height: 100%; max-height: 100%; overflow-y: auto"
|
||||
>
|
||||
<FormAbout prefixId="zxc" />
|
||||
<FormAbout prefixId="zxc" @add-customer="console.log('asdasd')" />
|
||||
</div>
|
||||
</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>
|
||||
|
||||
<!-- add employee -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue