chore: format
This commit is contained in:
parent
e7852eb8aa
commit
10e0d638f5
6 changed files with 23 additions and 26 deletions
|
|
@ -34,13 +34,8 @@ onMounted(async () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!!props.optionsBranch) {
|
if (!!props.optionsBranch) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
registeredBranchId.value = props.optionsBranch[0].id;
|
registeredBranchId.value = props.optionsBranch[0].id;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -89,9 +84,11 @@ onMounted(async () => {
|
||||||
:rules="[
|
:rules="[
|
||||||
(val) => {
|
(val) => {
|
||||||
const roles = getRole() || [];
|
const roles = getRole() || [];
|
||||||
const isSpecialRole = ['admin', 'system', 'head_of_admin'].some(role => roles.includes(role));
|
const isSpecialRole = ['admin', 'system', 'head_of_admin'].some(
|
||||||
|
(role) => roles.includes(role),
|
||||||
|
);
|
||||||
return isSpecialRole || !!val || 'กรุณากรอกข้อมูล';
|
return isSpecialRole || !!val || 'กรุณากรอกข้อมูล';
|
||||||
}
|
},
|
||||||
]"
|
]"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,8 @@ export default {
|
||||||
displayField: 'Display Fields',
|
displayField: 'Display Fields',
|
||||||
deleteConfirmTitle: 'Comfirm Deletion',
|
deleteConfirmTitle: 'Comfirm Deletion',
|
||||||
deleteConfirmMessage: 'Do you want to delete this item?',
|
deleteConfirmMessage: 'Do you want to delete this item?',
|
||||||
headquartersNotEstablished: 'You have not yet established the headquarters. You need to establish the headquarters before you can create personnel.',
|
headquartersNotEstablished:
|
||||||
|
'You have not yet established the headquarters. You need to establish the headquarters before you can create personnel.',
|
||||||
|
|
||||||
changePassword: 'Change Password',
|
changePassword: 'Change Password',
|
||||||
signature: 'Signature',
|
signature: 'Signature',
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,8 @@ export default {
|
||||||
displayField: 'ข้อมูลที่แสดง',
|
displayField: 'ข้อมูลที่แสดง',
|
||||||
deleteConfirmTitle: 'ยืนยันการลบข้อมูล',
|
deleteConfirmTitle: 'ยืนยันการลบข้อมูล',
|
||||||
deleteConfirmMessage: 'คุณต้องการลบข้อมูลใช่หรือไม่',
|
deleteConfirmMessage: 'คุณต้องการลบข้อมูลใช่หรือไม่',
|
||||||
headquartersNotEstablished: 'ท่านยังไม่ได้สร้างสำนักงานใหญ่ ต้องสร้างสำนักงานใหญ่ก่อนจึงจะสร้าง บุคลากรได้',
|
headquartersNotEstablished:
|
||||||
|
'ท่านยังไม่ได้สร้างสำนักงานใหญ่ ต้องสร้างสำนักงานใหญ่ก่อนจึงจะสร้าง บุคลากรได้',
|
||||||
changePassword: 'เปลี่ยนรหัสผ่าน',
|
changePassword: 'เปลี่ยนรหัสผ่าน',
|
||||||
signature: 'ลายเซ็น',
|
signature: 'ลายเซ็น',
|
||||||
addSignature: 'เพิ่มลายเซ็น',
|
addSignature: 'เพิ่มลายเซ็น',
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,8 @@ export type Branch = {
|
||||||
lineId: string;
|
lineId: string;
|
||||||
contact: BranchContact[];
|
contact: BranchContact[];
|
||||||
_count: {
|
_count: {
|
||||||
branch:number
|
branch: number;
|
||||||
}
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type BranchWithChildren = Branch & { branch: Branch[] };
|
export type BranchWithChildren = Branch & { branch: Branch[] };
|
||||||
|
|
|
||||||
|
|
@ -48,11 +48,9 @@ export type Employee = {
|
||||||
province: Province | null;
|
province: Province | null;
|
||||||
profileImageUrl: string | null;
|
profileImageUrl: string | null;
|
||||||
customerBranch: CustomerBranch & { customer: Customer };
|
customerBranch: CustomerBranch & { customer: Customer };
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export type EmployeeCreate = {
|
export type EmployeeCreate = {
|
||||||
|
|
||||||
code: string;
|
code: string;
|
||||||
image: File | null;
|
image: File | null;
|
||||||
customerBranchId: string;
|
customerBranchId: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue