diff --git a/src/components/05_quotation/FormAbout.vue b/src/components/05_quotation/FormAbout.vue index 54f19f90..6038df2a 100644 --- a/src/components/05_quotation/FormAbout.vue +++ b/src/components/05_quotation/FormAbout.vue @@ -4,6 +4,9 @@ import { CustomerBranch } from 'src/stores/customer'; import SelectCustomer from '../shared/select/SelectCustomer.vue'; import SelectBranch from '../shared/select/SelectBranch.vue'; +import { CustomerBranch } from 'src/stores/customer'; +import { ref } from 'vue'; + const branchId = defineModel('branchId'); const customerBranchId = defineModel('customerBranchId'); const agentPrice = defineModel('agentPrice'); @@ -73,6 +76,7 @@ defineEmits<{ required :readonly /> + (); + const employeeStore = useEmployeeStore(); const route = useRoute(); const useReceiptStore = useReceipt(); @@ -1110,6 +1112,15 @@ watch( const productServiceNodes = ref([]); +watch(customerBranchOption, () => { + if (!customerBranchOption.value) return; + + quotationFormData.value.contactName = + customerBranchOption.value.contactName || ''; + quotationFormData.value.contactTel = + customerBranchOption.value.contactTel || ''; +}); + watch( () => productServiceList.value, () => {