diff --git a/src/pages/05_quotation/QuotationFormProductSelect.vue b/src/pages/05_quotation/QuotationFormProductSelect.vue index 39be19e7..b2e92761 100644 --- a/src/pages/05_quotation/QuotationFormProductSelect.vue +++ b/src/pages/05_quotation/QuotationFormProductSelect.vue @@ -51,6 +51,8 @@ const emit = defineEmits<{ const selectedProductGroup = defineModel('selectedProductGroup', { default: '', }); + +const selectedProductGroupOption = ref(); const model = defineModel(); const inputSearch = defineModel('inputSearch'); const productGroup = defineModel('productGroup', { @@ -569,14 +571,18 @@ watch( {{ productGroup.find( (g) => g.id === selectedProductGroup, - )?.name || '-' + )?.name || + selectedProductGroupOption?.name || + '-' }} {{ productGroup.find( (g) => g.id === selectedProductGroup, - )?.code || '-' + )?.code || + selectedProductGroupOption?.code || + '-' }} @@ -862,13 +868,13 @@ watch( {{ $t('productService.group.title') }} -