ui step กรอกข้อมูล

This commit is contained in:
Kittapath 2023-03-16 19:57:00 +07:00
parent b69bdd1bf3
commit 3310f7f4d9
12 changed files with 673 additions and 214 deletions

View file

@ -30,6 +30,7 @@ interface Information {
email: string
provinceId: string
cardIdDate: Date
statusId: string
}
interface Family {
@ -54,15 +55,30 @@ interface Family {
same: string
}
interface Occupation {
status: string
company: string
department: string
email: string
tel: string
official: string | null
personnel: string | null
officialsOther: string | null
employee: string | null
other: string | null
}
interface Address {
address: string
provinceId: string
districtId: string
subdistrictId: string
code: number
addressC: string
provinceIdC: string
districtIdC: string
subdistrictIdC: string
codeC: number
same: string
}
@ -80,50 +96,53 @@ interface zipCodeOption {
const defaultAddress: Address = {
address: 'บ้านเลขที่ 1/2 ซอย 56 ถนนตัดใหม่',
provinceId: 'f122211c-7e35-4bbc-ad0f-b3a853ed1cea',
districtId: '16813e59-c03a-4c97-ab6f-59438a44e422',
subdistrictId: '0d21e8af-6507-4312-a214-3e5a870f856d',
provinceId: 'กรุงเทพ',
districtId: 'หนองแขม',
subdistrictId: 'หนองค้างพลู',
code: 10160,
addressC: 'บ้านเลขที่ 1/2 ซอย 56 ถนนตัดใหม่',
provinceIdC: 'f122211c-7e35-4bbc-ad0f-b3a853ed1cea',
districtIdC: '16813e59-c03a-4c97-ab6f-59438a44e422',
subdistrictIdC: '0d21e8af-6507-4312-a214-3e5a870f856d',
provinceIdC: 'กรุงเทพ',
districtIdC: 'หนองแขม',
subdistrictIdC: 'หนองค้างพลู',
codeC: 10160,
same: '0'
}
const defaultInformation: Information = {
cardid: '10238002345325',
prefix: 'นางสาว',
prefixId: '0f6dc562-e4a4-4014-9b20-5c97ea811755',
prefixId: 'นางสาว',
firstname: 'ณัฐกา',
lastname: 'ชมสิน',
birthDate: new Date('2002-01-01'),
genderId: 'ee1063a0-8ceb-4f9c-af06-107a58823957',
bloodId: '5c0c5185-ca99-4593-a7a3-c5ec56230e03',
genderId: 'หญิง',
bloodId: 'O',
nationality: 'ไทย',
ethnicity: 'ไทย',
religionId: '1fe77f89-c3b2-4b2c-b255-558375acc35b',
religionId: 'พุทธ',
tel: '0914569982',
phone: '0914569982',
email: 'test@test.test',
provinceId: 'zxczxczxcasc',
cardIdDate: new Date('2000-01-10')
email: 'kittapath@frappet.com',
provinceId: 'กรุงเทพ',
cardIdDate: new Date('2000-01-10'),
statusId: 'โสด'
}
const defaultFamily: Family = {
prefixC: 'นาย',
prefixIdC: 'b3033046-20a8-46fc-9f9c-47447f49830b',
prefixIdC: 'นาย',
firstnameC: 'ธนาคาร',
lastnameC: 'กสิกร',
occupationC: 'ว่าง',
nationalityC: 'ไทย',
prefixM: 'นาย',
prefixIdM: 'b3033046-20a8-46fc-9f9c-47447f49830b',
prefixIdM: 'นาย',
firstnameM: 'ธนายุทธ',
lastnameM: 'ชมสิน',
occupationM: 'ว่าง',
nationalityM: 'ไทย',
prefixF: 'นางสาว',
prefixIdF: '0f6dc562-e4a4-4014-9b20-5c97ea811755',
prefixIdF: 'นางสาว',
firstnameF: 'ณัฐกาล',
lastnameF: 'ชมสิน',
occupationF: 'ว่าง',
@ -131,7 +150,20 @@ const defaultFamily: Family = {
same: '1'
}
export { defaultInformation, defaultFamily, defaultAddress }
const defaultOccupation: Occupation = {
status: 'official',
company: 'บริษัท ทรู คอร์ปอเรชั่น จำกัด (มหาชน)',
department: '-',
email: 'kittapath@frappet.com',
tel: '0846464646',
official: 'Direct Sales Staff',
personnel: null,
officialsOther: null,
employee: null,
other: null
}
export { defaultInformation, defaultFamily, defaultAddress, defaultOccupation }
export type {
Pagination,
DataOption,
@ -140,5 +172,6 @@ export type {
Information,
Family,
Address,
zipCodeOption
zipCodeOption,
Occupation
}