refactor: customer

This commit is contained in:
puriphatt 2024-09-17 10:00:35 +07:00
parent 2ab96dc816
commit 234b03c7fa
12 changed files with 372 additions and 978 deletions

View file

@ -289,6 +289,7 @@ watch(districtId, fetchSubDistrict);
hide-bottom-space
class="col-3"
v-model="homeCode"
mask="###########"
:dense="dense"
:label="$t('customer.form.homeCode')"
:readonly="readonly || sameWithEmployer"
@ -365,7 +366,7 @@ watch(districtId, fetchSubDistrict);
outlined
hide-bottom-space
class="col-md-1 col-4"
v-model="moo"
:model-value="readonly ? moo || '-' : moo"
:dense="dense"
:label="$t('form.moo')"
:readonly="readonly || sameWithEmployer"
@ -375,7 +376,7 @@ watch(districtId, fetchSubDistrict);
outlined
hide-bottom-space
class="col-md-3 col-6"
v-model="soi"
:model-value="readonly ? soi || '-' : soi"
:dense="dense"
:label="$t('form.soi')"
:readonly="readonly || sameWithEmployer"
@ -385,7 +386,7 @@ watch(districtId, fetchSubDistrict);
outlined
hide-bottom-space
class="col-md-3 col-6"
v-model="street"
:model-value="readonly ? street || '-' : street"
:dense="dense"
:label="$t('form.street')"
:readonly="readonly || sameWithEmployer"
@ -593,7 +594,7 @@ watch(districtId, fetchSubDistrict);
outlined
hide-bottom-space
class="col-md-1 col-4"
v-model="mooEN"
:model-value="readonly ? mooEN || '-' : mooEN"
:dense="dense"
label="Moo"
:readonly="readonly || sameWithEmployer"
@ -603,7 +604,7 @@ watch(districtId, fetchSubDistrict);
outlined
hide-bottom-space
class="col-md-3 col-6"
v-model="soiEN"
:model-value="readonly ? soiEN || '-' : soiEN"
:dense="dense"
label="Soi"
:readonly="readonly || sameWithEmployer"
@ -613,7 +614,7 @@ watch(districtId, fetchSubDistrict);
outlined
hide-bottom-space
class="col-md-3 col-6"
v-model="streetEN"
:model-value="readonly ? streetEN || '-' : streetEN"
:dense="dense"
label="Street"
:readonly="readonly || sameWithEmployer"