refactor: handle agentUserId
This commit is contained in:
parent
5fc865b827
commit
803baca721
1 changed files with 5 additions and 4 deletions
|
|
@ -194,7 +194,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
||||||
homeCode: v.homeCode,
|
homeCode: v.homeCode,
|
||||||
contactTel: v.contactTel,
|
contactTel: v.contactTel,
|
||||||
officeTel: v.officeTel,
|
officeTel: v.officeTel,
|
||||||
agentUserId: v.agentUserId,
|
agentUserId: v.agentUserId || undefined,
|
||||||
customerName: v.customerName,
|
customerName: v.customerName,
|
||||||
authorizedName: v.authorizedName,
|
authorizedName: v.authorizedName,
|
||||||
authorizedNameEN: v.authorizedNameEN,
|
authorizedNameEN: v.authorizedNameEN,
|
||||||
|
|
@ -295,7 +295,7 @@ export const useCustomerForm = defineStore('form-customer', () => {
|
||||||
contactTel: currentFormData.value.customerBranch?.at(0)?.contactTel || '',
|
contactTel: currentFormData.value.customerBranch?.at(0)?.contactTel || '',
|
||||||
officeTel: currentFormData.value.customerBranch?.at(0)?.officeTel || '',
|
officeTel: currentFormData.value.customerBranch?.at(0)?.officeTel || '',
|
||||||
agentUserId:
|
agentUserId:
|
||||||
currentFormData.value.customerBranch?.at(0)?.agentUserId || '',
|
currentFormData.value.customerBranch?.at(0)?.agentUserId || undefined,
|
||||||
status: 'CREATED',
|
status: 'CREATED',
|
||||||
|
|
||||||
customerName:
|
customerName:
|
||||||
|
|
@ -509,7 +509,7 @@ export const useCustomerBranchForm = defineStore('form-customer-branch', () => {
|
||||||
wageRateText: _data.wageRateText,
|
wageRateText: _data.wageRateText,
|
||||||
contactTel: _data.contactTel,
|
contactTel: _data.contactTel,
|
||||||
officeTel: _data.officeTel,
|
officeTel: _data.officeTel,
|
||||||
agentUserId: _data.agentUserId,
|
agentUserId: _data.agentUserId || undefined,
|
||||||
codeCustomer: _data.codeCustomer,
|
codeCustomer: _data.codeCustomer,
|
||||||
customerName: _data.customerName,
|
customerName: _data.customerName,
|
||||||
homeCode: _data.homeCode,
|
homeCode: _data.homeCode,
|
||||||
|
|
@ -642,7 +642,7 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
||||||
id: '',
|
id: '',
|
||||||
code: '',
|
code: '',
|
||||||
customerBranchId: '',
|
customerBranchId: '',
|
||||||
nrcNo: '',
|
nrcNo: undefined,
|
||||||
dateOfBirth: null,
|
dateOfBirth: null,
|
||||||
gender: '',
|
gender: '',
|
||||||
nationality: '',
|
nationality: '',
|
||||||
|
|
@ -1126,6 +1126,7 @@ export const useEmployeeForm = defineStore('form-employee', () => {
|
||||||
|
|
||||||
currentFromDataEmployee.value = structuredClone(resetEmployeeData);
|
currentFromDataEmployee.value = structuredClone(resetEmployeeData);
|
||||||
|
|
||||||
|
|
||||||
state.value.currentIndexPassport =
|
state.value.currentIndexPassport =
|
||||||
(currentFromDataEmployee.value.employeePassport?.length || 0) - 1;
|
(currentFromDataEmployee.value.employeePassport?.length || 0) - 1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue