chore: format

This commit is contained in:
Methapon2001 2024-07-26 10:57:31 +07:00
parent e7852eb8aa
commit 10e0d638f5
6 changed files with 23 additions and 26 deletions

View file

@ -34,13 +34,8 @@ onMounted(async () => {
}
if (!!props.optionsBranch) {
registeredBranchId.value = props.optionsBranch[0].id;
}
});
</script>
@ -89,9 +84,11 @@ onMounted(async () => {
:rules="[
(val) => {
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 || 'กรุณากรอกข้อมูล';
}
},
]"
clearable
/>

View file

@ -39,7 +39,8 @@ export default {
displayField: 'Display Fields',
deleteConfirmTitle: 'Comfirm Deletion',
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',
signature: 'Signature',

View file

@ -39,7 +39,8 @@ export default {
displayField: 'ข้อมูลที่แสดง',
deleteConfirmTitle: 'ยืนยันการลบข้อมูล',
deleteConfirmMessage: 'คุณต้องการลบข้อมูลใช่หรือไม่',
headquartersNotEstablished: 'ท่านยังไม่ได้สร้างสำนักงานใหญ่ ต้องสร้างสำนักงานใหญ่ก่อนจึงจะสร้าง บุคลากรได้',
headquartersNotEstablished:
'ท่านยังไม่ได้สร้างสำนักงานใหญ่ ต้องสร้างสำนักงานใหญ่ก่อนจึงจะสร้าง บุคลากรได้',
changePassword: 'เปลี่ยนรหัสผ่าน',
signature: 'ลายเซ็น',
addSignature: 'เพิ่มลายเซ็น',

View file

@ -34,8 +34,8 @@ export type Branch = {
lineId: string;
contact: BranchContact[];
_count: {
branch:number
}
branch: number;
};
};
export type BranchWithChildren = Branch & { branch: Branch[] };

View file

@ -48,11 +48,9 @@ export type Employee = {
province: Province | null;
profileImageUrl: string | null;
customerBranch: CustomerBranch & { customer: Customer };
};
export type EmployeeCreate = {
code: string;
image: File | null;
customerBranchId: string;