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:last-name-en="customerBranchFormData.lastNameEN"
|
||||||
v-model:gender="customerBranchFormData.gender"
|
v-model:gender="customerBranchFormData.gender"
|
||||||
v-model:birth-date="customerBranchFormData.birthDate"
|
v-model:birth-date="customerBranchFormData.birthDate"
|
||||||
v-model:customer-name="customerBranchFormData.customerName"
|
|
||||||
v-model:legal-person-no="customerBranchFormData.legalPersonNo"
|
v-model:legal-person-no="customerBranchFormData.legalPersonNo"
|
||||||
v-model:branch-code="customerBranchFormData.code"
|
v-model:branch-code="customerBranchFormData.code"
|
||||||
v-model:register-name="customerBranchFormData.registerName"
|
v-model:register-name="customerBranchFormData.registerName"
|
||||||
|
|
|
||||||
|
|
@ -4410,7 +4410,6 @@ const emptyCreateDialog = ref(false);
|
||||||
await customerStore.createBranch({
|
await customerStore.createBranch({
|
||||||
...customerFormData.customerBranch[idx],
|
...customerFormData.customerBranch[idx],
|
||||||
customerId: customerFormState.editCustomerId,
|
customerId: customerFormState.editCustomerId,
|
||||||
id: undefined,
|
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
await customerStore.editBranchById(
|
await customerStore.editBranchById(
|
||||||
|
|
|
||||||
|
|
@ -167,20 +167,6 @@ watch(
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-12 row q-col-gutter-sm">
|
<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
|
<q-input
|
||||||
dense
|
dense
|
||||||
outlined
|
outlined
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,6 @@ withDefaults(
|
||||||
v-model:last-name-en="item.lastNameEN"
|
v-model:last-name-en="item.lastNameEN"
|
||||||
v-model:gender="item.gender"
|
v-model:gender="item.gender"
|
||||||
v-model:birth-date="item.birthDate"
|
v-model:birth-date="item.birthDate"
|
||||||
v-model:customer-name="item.customerName"
|
|
||||||
v-model:legal-person-no="item.legalPersonNo"
|
v-model:legal-person-no="item.legalPersonNo"
|
||||||
v-model:branch-code="item.code"
|
v-model:branch-code="item.code"
|
||||||
v-model:register-name="item.registerName"
|
v-model:register-name="item.registerName"
|
||||||
|
|
|
||||||
|
|
@ -218,7 +218,6 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
||||||
contactTel: v.contactTel,
|
contactTel: v.contactTel,
|
||||||
officeTel: v.officeTel,
|
officeTel: v.officeTel,
|
||||||
agentUserId: v.agentUserId || undefined,
|
agentUserId: v.agentUserId || undefined,
|
||||||
customerName: v.customerName,
|
|
||||||
authorizedName: v.authorizedName,
|
authorizedName: v.authorizedName,
|
||||||
authorizedNameEN: v.authorizedNameEN,
|
authorizedNameEN: v.authorizedNameEN,
|
||||||
|
|
||||||
|
|
@ -328,8 +327,6 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
||||||
currentFormData.value.customerBranch?.at(0)?.agentUserId || undefined,
|
currentFormData.value.customerBranch?.at(0)?.agentUserId || undefined,
|
||||||
status: 'CREATED',
|
status: 'CREATED',
|
||||||
|
|
||||||
customerName:
|
|
||||||
currentFormData.value.customerBranch?.at(0)?.customerName || '',
|
|
||||||
registerName:
|
registerName:
|
||||||
currentFormData.value.customerBranch?.at(0)?.registerName || '',
|
currentFormData.value.customerBranch?.at(0)?.registerName || '',
|
||||||
registerNameEN:
|
registerNameEN:
|
||||||
|
|
@ -571,7 +568,6 @@ export const useCustomerBranchForm = defineStore('form-customer-branch', () => {
|
||||||
agentUserId: undefined,
|
agentUserId: undefined,
|
||||||
status: 'CREATED',
|
status: 'CREATED',
|
||||||
|
|
||||||
customerName: '',
|
|
||||||
registerName: '',
|
registerName: '',
|
||||||
registerNameEN: '',
|
registerNameEN: '',
|
||||||
registerDate: undefined,
|
registerDate: undefined,
|
||||||
|
|
@ -657,7 +653,6 @@ export const useCustomerBranchForm = defineStore('form-customer-branch', () => {
|
||||||
officeTel: _data.officeTel,
|
officeTel: _data.officeTel,
|
||||||
agentUserId: _data.agentUserId || undefined,
|
agentUserId: _data.agentUserId || undefined,
|
||||||
codeCustomer: _data.codeCustomer,
|
codeCustomer: _data.codeCustomer,
|
||||||
customerName: _data.customerName,
|
|
||||||
homeCode: _data.homeCode,
|
homeCode: _data.homeCode,
|
||||||
authorizedName: _data.authorizedName,
|
authorizedName: _data.authorizedName,
|
||||||
authorizedNameEN: _data.authorizedNameEN,
|
authorizedNameEN: _data.authorizedNameEN,
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ export const columns = [
|
||||||
name: 'customer',
|
name: 'customer',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
label: 'general.customer',
|
label: 'general.customer',
|
||||||
field: (v: Invoice) => v.quotation.customerBranch.customerName,
|
field: (v: Invoice) => v.quotation.customerBranch.registerName,
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -406,7 +406,7 @@ watch(
|
||||||
value:
|
value:
|
||||||
item.row.quotation.customerBranch.customer
|
item.row.quotation.customerBranch.customer
|
||||||
.customerType === 'CORP'
|
.customerType === 'CORP'
|
||||||
? item.row.quotation.customerBranch.customerName
|
? item.row.quotation.customerBranch.registerName
|
||||||
: $i18n.locale === 'tha'
|
: $i18n.locale === 'tha'
|
||||||
? `${item.row.quotation.customerBranch.firstName} ${item.row.quotation.customerBranch.lastName}`
|
? `${item.row.quotation.customerBranch.firstName} ${item.row.quotation.customerBranch.lastName}`
|
||||||
: `${item.row.quotation.customerBranch.firstNameEN} ${item.row.quotation.customerBranch.lastNameEN}`,
|
: `${item.row.quotation.customerBranch.firstNameEN} ${item.row.quotation.customerBranch.lastNameEN}`,
|
||||||
|
|
|
||||||
|
|
@ -425,7 +425,7 @@ watch(
|
||||||
label: $t('quotation.customer'),
|
label: $t('quotation.customer'),
|
||||||
value:
|
value:
|
||||||
item.row.customerBranch.customer.customerType === 'CORP'
|
item.row.customerBranch.customer.customerType === 'CORP'
|
||||||
? item.row.customerBranch.customerName
|
? item.row.customerBranch.registerName
|
||||||
: $i18n.locale === 'tha'
|
: $i18n.locale === 'tha'
|
||||||
? `${item.row.customerBranch.firstName} ${item.row.customerBranch.lastName}`
|
? `${item.row.customerBranch.firstName} ${item.row.customerBranch.lastName}`
|
||||||
: `${item.row.customerBranch.firstNameEN} ${item.row.customerBranch.lastNameEN}`,
|
: `${item.row.customerBranch.firstNameEN} ${item.row.customerBranch.lastNameEN}`,
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ export type CustomerBranch = {
|
||||||
namePrefix: string;
|
namePrefix: string;
|
||||||
telephoneNo: string;
|
telephoneNo: string;
|
||||||
codeCustomer: string;
|
codeCustomer: string;
|
||||||
customerName: string;
|
|
||||||
updatedByUserId: string;
|
updatedByUserId: string;
|
||||||
createdByUserId: string;
|
createdByUserId: string;
|
||||||
code: string;
|
code: string;
|
||||||
|
|
@ -135,7 +134,6 @@ export type CustomerBranchCreate = {
|
||||||
officeTel?: string;
|
officeTel?: string;
|
||||||
agentUserId?: string;
|
agentUserId?: string;
|
||||||
status: Status;
|
status: Status;
|
||||||
customerName?: string;
|
|
||||||
registerName?: string;
|
registerName?: string;
|
||||||
registerNameEN?: string;
|
registerNameEN?: string;
|
||||||
registerDate?: string | Date | null;
|
registerDate?: string | Date | null;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue