fix: fix quotation customer branch id when create new employee
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 5s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 5s
This commit is contained in:
parent
ad715b20a2
commit
8ef2ca2e96
3 changed files with 13 additions and 4 deletions
|
|
@ -54,6 +54,7 @@ defineProps<{
|
|||
employeeOwnerOption?: CustomerBranch[];
|
||||
prefixId: string;
|
||||
showBtnSave?: boolean;
|
||||
disableCustomerSelect?: boolean;
|
||||
}>();
|
||||
|
||||
defineEmits<{
|
||||
|
|
@ -117,12 +118,16 @@ defineEmits<{
|
|||
|
||||
<div class="col-12 row" style="gap: var(--size-2)">
|
||||
<SelectCustomer
|
||||
id="form-select-customer-branch-id"
|
||||
for="form-select-customer-branch-id"
|
||||
v-model:value="customerBranchId"
|
||||
v-model:value-option="currentCustomerBranch"
|
||||
:label="$t('customer.form.branchCode')"
|
||||
class="col-12 field-two"
|
||||
simple
|
||||
required
|
||||
:readonly
|
||||
:disabled="disableCustomerSelect"
|
||||
/>
|
||||
|
||||
<q-input
|
||||
|
|
|
|||
|
|
@ -68,6 +68,8 @@ defineEmits<{
|
|||
:readonly
|
||||
/>
|
||||
<SelectCustomer
|
||||
id="about-select-customer-branch-id"
|
||||
for="about-select-customer-branch-id"
|
||||
v-model:value="customerBranchId"
|
||||
:label="$t('quotation.customer')"
|
||||
:creatable-disabled-text="`(${$t('form.error.selectField', {
|
||||
|
|
@ -88,14 +90,14 @@ defineEmits<{
|
|||
|
||||
<style scoped>
|
||||
:deep(
|
||||
label.q-field.row.no-wrap.items-start.q-field--outlined.q-select.field-one
|
||||
) {
|
||||
label.q-field.row.no-wrap.items-start.q-field--outlined.q-select.field-one
|
||||
) {
|
||||
padding-right: 4px;
|
||||
}
|
||||
|
||||
:deep(
|
||||
label.q-field.row.no-wrap.items-start.q-field--outlined.q-select.field-two
|
||||
) {
|
||||
label.q-field.row.no-wrap.items-start.q-field--outlined.q-select.field-two
|
||||
) {
|
||||
padding-left: 4px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -663,6 +663,7 @@ watch(
|
|||
:show="
|
||||
() => {
|
||||
employeeFormStore.resetFormDataEmployee(true);
|
||||
setCurrentBranchId();
|
||||
}
|
||||
"
|
||||
:before-close="
|
||||
|
|
@ -1035,6 +1036,7 @@ watch(
|
|||
</div>
|
||||
|
||||
<BasicInformation
|
||||
disable-customer-select
|
||||
no-action
|
||||
id="form-information"
|
||||
prefix-id="form-employee"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue