chore: format
This commit is contained in:
parent
e7852eb8aa
commit
10e0d638f5
6 changed files with 23 additions and 26 deletions
|
|
@ -33,14 +33,9 @@ onMounted(async () => {
|
|||
codeOption.value = option.tha.typeProduct;
|
||||
}
|
||||
|
||||
if(!!props.optionsBranch) {
|
||||
|
||||
|
||||
|
||||
registeredBranchId.value = props.optionsBranch[0].id ;
|
||||
if (!!props.optionsBranch) {
|
||||
registeredBranchId.value = props.optionsBranch[0].id;
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
@ -81,19 +76,21 @@ onMounted(async () => {
|
|||
map-options
|
||||
options-dense
|
||||
:label="$t('registeredBranch')"
|
||||
class="col-3 "
|
||||
class="col-3"
|
||||
option-label="name"
|
||||
option-value="id"
|
||||
v-model="registeredBranchId"
|
||||
:options="optionsBranch"
|
||||
:rules="[
|
||||
(val) => {
|
||||
const roles = getRole() || [];
|
||||
const isSpecialRole = ['admin', 'system', 'head_of_admin'].some(role => roles.includes(role));
|
||||
return isSpecialRole || !!val || 'กรุณากรอกข้อมูล';
|
||||
}
|
||||
]"
|
||||
clearable
|
||||
(val) => {
|
||||
const roles = getRole() || [];
|
||||
const isSpecialRole = ['admin', 'system', 'head_of_admin'].some(
|
||||
(role) => roles.includes(role),
|
||||
);
|
||||
return isSpecialRole || !!val || 'กรุณากรอกข้อมูล';
|
||||
},
|
||||
]"
|
||||
clearable
|
||||
/>
|
||||
|
||||
<q-input
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ export default {
|
|||
customerEmployerAdd: 'Add employer',
|
||||
customerEmployeeAdd: 'Add employee',
|
||||
|
||||
nameEmployee:'Name Employee',
|
||||
nameEmployee: 'Name Employee',
|
||||
|
||||
EMPLOYER: 'Employer',
|
||||
EMPLOYEE: 'Employee',
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
@ -63,7 +64,7 @@ export default {
|
|||
recordsPage: 'Showing {resultcurrentPage} out of {total} records',
|
||||
showing: 'Showing',
|
||||
dataSum: 'Data Summaries',
|
||||
createdAt: 'Created At',
|
||||
createdAt: 'Created At',
|
||||
...status,
|
||||
...main,
|
||||
...address,
|
||||
|
|
|
|||
|
|
@ -39,7 +39,8 @@ export default {
|
|||
displayField: 'ข้อมูลที่แสดง',
|
||||
deleteConfirmTitle: 'ยืนยันการลบข้อมูล',
|
||||
deleteConfirmMessage: 'คุณต้องการลบข้อมูลใช่หรือไม่',
|
||||
headquartersNotEstablished: 'ท่านยังไม่ได้สร้างสำนักงานใหญ่ ต้องสร้างสำนักงานใหญ่ก่อนจึงจะสร้าง บุคลากรได้',
|
||||
headquartersNotEstablished:
|
||||
'ท่านยังไม่ได้สร้างสำนักงานใหญ่ ต้องสร้างสำนักงานใหญ่ก่อนจึงจะสร้าง บุคลากรได้',
|
||||
changePassword: 'เปลี่ยนรหัสผ่าน',
|
||||
signature: 'ลายเซ็น',
|
||||
addSignature: 'เพิ่มลายเซ็น',
|
||||
|
|
|
|||
|
|
@ -33,9 +33,9 @@ export type Branch = {
|
|||
telephoneNo: string;
|
||||
lineId: string;
|
||||
contact: BranchContact[];
|
||||
_count:{
|
||||
branch:number
|
||||
}
|
||||
_count: {
|
||||
branch: number;
|
||||
};
|
||||
};
|
||||
|
||||
export type BranchWithChildren = Branch & { branch: Branch[] };
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { District, Province, SubDistrict } from '../address';
|
|||
import { Status } from '../types';
|
||||
import { User } from '../user/types';
|
||||
|
||||
import { Customer , CustomerBranch } from '../customer/types';
|
||||
import { Customer, CustomerBranch } from '../customer/types';
|
||||
|
||||
export type Employee = {
|
||||
id: string;
|
||||
|
|
@ -47,12 +47,10 @@ export type Employee = {
|
|||
district: District | null;
|
||||
province: Province | null;
|
||||
profileImageUrl: string | null;
|
||||
customerBranch: CustomerBranch & { customer: Customer } ;
|
||||
|
||||
customerBranch: CustomerBranch & { customer: Customer };
|
||||
};
|
||||
|
||||
export type EmployeeCreate = {
|
||||
|
||||
code: string;
|
||||
image: File | null;
|
||||
customerBranchId: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue