refactor: hide add customer at quotation

This commit is contained in:
Thanaphon Frappet 2024-10-29 09:03:54 +07:00
parent 62b21f185e
commit 9e28126f80
2 changed files with 3 additions and 2 deletions

View file

@ -27,6 +27,7 @@ defineProps<{
employee?: boolean; employee?: boolean;
title?: string; title?: string;
inputOnly?: boolean; inputOnly?: boolean;
hideAdd?: boolean;
onCreate?: boolean; onCreate?: boolean;
}>(); }>();
@ -151,7 +152,7 @@ onMounted(async () => {
<template #option="{ scope }"> <template #option="{ scope }">
<q-item <q-item
clickable clickable
v-if="scope.index === 0" v-if="scope.index === 0 && !hideAdd"
@click.stop="$emit('addCustomer')" @click.stop="$emit('addCustomer')"
> >
<q-item-section> <q-item-section>

View file

@ -964,6 +964,7 @@ const view = ref<View>(View.Quotation);
> >
<template #issue-info> <template #issue-info>
<FormAbout <FormAbout
hide-add
class="col-12 col-md-8" class="col-12 col-md-8"
input-only input-only
v-model:branch-id="quotationFormData.registeredBranchId" v-model:branch-id="quotationFormData.registeredBranchId"
@ -971,7 +972,6 @@ const view = ref<View>(View.Quotation);
quotationFormData.customerBranchId quotationFormData.customerBranchId
" "
:readonly="readonly" :readonly="readonly"
@add-customer=""
/> />
</template> </template>
</QuotationFormMetadata> </QuotationFormMetadata>