diff --git a/src/components/05_quotation/FormAbout.vue b/src/components/05_quotation/FormAbout.vue index 0d7a5dac..af6309bc 100644 --- a/src/components/05_quotation/FormAbout.vue +++ b/src/components/05_quotation/FormAbout.vue @@ -17,13 +17,15 @@ const agentPrice = defineModel('agentPrice'); const branchOption = ref(); const customerOption = ref(); -defineProps<{ +const props = defineProps<{ outlined?: boolean; readonly?: boolean; separator?: boolean; employee?: boolean; title?: string; inputOnly?: boolean; + + onCreate?: boolean; }>(); defineEmits<{ @@ -83,14 +85,14 @@ onMounted(async () => { await init('', 'customer'); }); -// watch( -// () => branchId.value, -// async (v) => { -// if (v) { -// customerBranchId.value = ''; -// } -// }, -// ); +watch( + () => branchId.value, + async (v) => { + if (v && props.onCreate) { + customerBranchId.value = ''; + } + }, +);