refactor: remove customer name
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
Some checks failed
Spell Check / Spell Check with Typos (push) Failing after 6s
This commit is contained in:
parent
fe2860d818
commit
e19d3f05f1
9 changed files with 3 additions and 27 deletions
|
|
@ -856,7 +856,6 @@ watch(
|
|||
v-model:last-name-en="customerBranchFormData.lastNameEN"
|
||||
v-model:gender="customerBranchFormData.gender"
|
||||
v-model:birth-date="customerBranchFormData.birthDate"
|
||||
v-model:customer-name="customerBranchFormData.customerName"
|
||||
v-model:legal-person-no="customerBranchFormData.legalPersonNo"
|
||||
v-model:branch-code="customerBranchFormData.code"
|
||||
v-model:register-name="customerBranchFormData.registerName"
|
||||
|
|
|
|||
|
|
@ -4410,7 +4410,6 @@ const emptyCreateDialog = ref(false);
|
|||
await customerStore.createBranch({
|
||||
...customerFormData.customerBranch[idx],
|
||||
customerId: customerFormState.editCustomerId,
|
||||
id: undefined,
|
||||
});
|
||||
} else {
|
||||
await customerStore.editBranchById(
|
||||
|
|
|
|||
|
|
@ -167,20 +167,6 @@ watch(
|
|||
</div>
|
||||
|
||||
<div class="col-12 row q-col-gutter-sm">
|
||||
<q-input
|
||||
dense
|
||||
outlined
|
||||
:readonly="readonly"
|
||||
hide-bottom-space
|
||||
class="col-12 col-md-5"
|
||||
:label="$t('customer.form.employerName')"
|
||||
for="input-legal-person-no"
|
||||
:model-value="customerName"
|
||||
@update:model-value="
|
||||
(v) => (typeof v === 'string' ? (customerName = v.trim()) : '')
|
||||
"
|
||||
/>
|
||||
|
||||
<q-input
|
||||
dense
|
||||
outlined
|
||||
|
|
|
|||
|
|
@ -142,7 +142,6 @@ withDefaults(
|
|||
v-model:last-name-en="item.lastNameEN"
|
||||
v-model:gender="item.gender"
|
||||
v-model:birth-date="item.birthDate"
|
||||
v-model:customer-name="item.customerName"
|
||||
v-model:legal-person-no="item.legalPersonNo"
|
||||
v-model:branch-code="item.code"
|
||||
v-model:register-name="item.registerName"
|
||||
|
|
|
|||
|
|
@ -218,7 +218,6 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
|||
contactTel: v.contactTel,
|
||||
officeTel: v.officeTel,
|
||||
agentUserId: v.agentUserId || undefined,
|
||||
customerName: v.customerName,
|
||||
authorizedName: v.authorizedName,
|
||||
authorizedNameEN: v.authorizedNameEN,
|
||||
|
||||
|
|
@ -328,8 +327,6 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
|||
currentFormData.value.customerBranch?.at(0)?.agentUserId || undefined,
|
||||
status: 'CREATED',
|
||||
|
||||
customerName:
|
||||
currentFormData.value.customerBranch?.at(0)?.customerName || '',
|
||||
registerName:
|
||||
currentFormData.value.customerBranch?.at(0)?.registerName || '',
|
||||
registerNameEN:
|
||||
|
|
@ -571,7 +568,6 @@ export const useCustomerBranchForm = defineStore('form-customer-branch', () => {
|
|||
agentUserId: undefined,
|
||||
status: 'CREATED',
|
||||
|
||||
customerName: '',
|
||||
registerName: '',
|
||||
registerNameEN: '',
|
||||
registerDate: undefined,
|
||||
|
|
@ -657,7 +653,6 @@ export const useCustomerBranchForm = defineStore('form-customer-branch', () => {
|
|||
officeTel: _data.officeTel,
|
||||
agentUserId: _data.agentUserId || undefined,
|
||||
codeCustomer: _data.codeCustomer,
|
||||
customerName: _data.customerName,
|
||||
homeCode: _data.homeCode,
|
||||
authorizedName: _data.authorizedName,
|
||||
authorizedNameEN: _data.authorizedNameEN,
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export const columns = [
|
|||
name: 'customer',
|
||||
align: 'center',
|
||||
label: 'general.customer',
|
||||
field: (v: Invoice) => v.quotation.customerBranch.customerName,
|
||||
field: (v: Invoice) => v.quotation.customerBranch.registerName,
|
||||
},
|
||||
|
||||
{
|
||||
|
|
|
|||
|
|
@ -406,7 +406,7 @@ watch(
|
|||
value:
|
||||
item.row.quotation.customerBranch.customer
|
||||
.customerType === 'CORP'
|
||||
? item.row.quotation.customerBranch.customerName
|
||||
? item.row.quotation.customerBranch.registerName
|
||||
: $i18n.locale === 'tha'
|
||||
? `${item.row.quotation.customerBranch.firstName} ${item.row.quotation.customerBranch.lastName}`
|
||||
: `${item.row.quotation.customerBranch.firstNameEN} ${item.row.quotation.customerBranch.lastNameEN}`,
|
||||
|
|
|
|||
|
|
@ -425,7 +425,7 @@ watch(
|
|||
label: $t('quotation.customer'),
|
||||
value:
|
||||
item.row.customerBranch.customer.customerType === 'CORP'
|
||||
? item.row.customerBranch.customerName
|
||||
? item.row.customerBranch.registerName
|
||||
: $i18n.locale === 'tha'
|
||||
? `${item.row.customerBranch.firstName} ${item.row.customerBranch.lastName}`
|
||||
: `${item.row.customerBranch.firstNameEN} ${item.row.customerBranch.lastNameEN}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue