完成团计划详情、接机牌内容展示

release
Jimmy Liow 2 years ago
parent 59d2e9241d
commit 8dbdeb3fe6

@ -9,8 +9,8 @@ class Auth {
login = { login = {
userId: 1, userId: 1,
username: 'Vu Xuan Giang(TOI)', username: 'Vu Xuan Giang(ANP)',
travelAgencyId: 30333 travelAgencyId: 32531
} }
} }

@ -66,7 +66,10 @@ class Reservation {
} }
}); });
this.reservationDetail = { this.reservationDetail = {
referenceNumber: json.PlanDetail[0].GRI_Name, tourGuide: json.Guide[0].TGI2_Name, arrivalDate: json.PlanDetail[0].eoi_getdate referenceNumber: json.PlanDetail[0].GRI_Name, tourGuide: json.PlanDetail[0].Guide, arrivalDate: json.PlanDetail[0].eoi_getdate
};
this.meetAndGreet = {
customerNames: json.JJPInfo[0].CustomerName, referenceNumber: json.JJPInfo[0].GroupName, pax: json.JJPInfo[0].Str_PersonNum
}; };
this.customerNames = json.CusAndRequest[0].GCI_CustomerList; this.customerNames = json.CusAndRequest[0].GCI_CustomerList;
} else { } else {
@ -82,31 +85,35 @@ class Reservation {
referenceNumber: '', arrivalDate: '', tourGuide: '' referenceNumber: '', arrivalDate: '', tourGuide: ''
}; };
meetAndGreet = {
referenceNumber: '', customerNames: '', pax: ''
}
itineraryList = [ itineraryList = [
]; ];
customerList = [ customerList = [];
{ // {
title: 'Crane / Gemma Chelse', // title: 'Crane / Gemma Chelse',
description: 'Gender: Male Nationality: United States Passport: 655844449 Expiration Date: 2030-09-07 Birth Date: 1979-12-23', // description: 'Gender: Male Nationality: United States Passport: 655844449 Expiration Date: 2030-09-07 Birth Date: 1979-12-23',
}, // },
{ // {
title: 'McCracken / Ryan Lee', // title: 'McCracken / Ryan Lee',
description: 'Gender: Female Nationality: United States Passport: 655844450 Expiration Date: 2030-09-07 Birth Date: 1983-05-17', // description: 'Gender: Female Nationality: United States Passport: 655844450 Expiration Date: 2030-09-07 Birth Date: 1983-05-17',
}, // },
{ // {
title: 'Ramlakhan / Darryl', // title: 'Ramlakhan / Darryl',
description: 'Gender: Female Nationality: United States Passport: 661810034 Expiration Date: 2026-03-16 Birth Date: 2006-07-12', // description: 'Gender: Female Nationality: United States Passport: 661810034 Expiration Date: 2026-03-16 Birth Date: 2006-07-12',
}, // },
{ // {
title: 'Ramlakhan / Reanne', // title: 'Ramlakhan / Reanne',
description: 'Gender: Male Nationality: United States Passport: 593422145 Expiration Date: 2023-04-25 Birth Date: 2012-03-26', // description: 'Gender: Male Nationality: United States Passport: 593422145 Expiration Date: 2023-04-25 Birth Date: 2012-03-26',
}, // },
{ // {
title: 'Alexander Daich', // title: 'Alexander Daich',
description: 'Gender: Male Nationality: United States Passport: 593422145 Expiration Date: 2023-04-25 Birth Date: 2012-03-26s', // description: 'Gender: Male Nationality: United States Passport: 593422145 Expiration Date: 2023-04-25 Birth Date: 2012-03-26s',
}, // },
]; // ];
customerNames = ''; customerNames = '';
} }

@ -92,7 +92,7 @@ function Detail() {
<Row> <Row>
<Col span={24}> <Col span={24}>
<List <List
header={<Title level={5}>Customer Names (Full name as it appears on passport)</Title>} header={<><Title level={5}>Customer Names (Full name as it appears on passport)</Title><span>{customerNames}</span></>}
itemLayout="horizontal" itemLayout="horizontal"
dataSource={toJS(customerList)} dataSource={toJS(customerList)}
renderItem={(item, index) => ( renderItem={(item, index) => (

@ -40,7 +40,7 @@ function NameCard() {
const navigate = useNavigate(); const navigate = useNavigate();
const { reservationId } = useParams(); const { reservationId } = useParams();
const { reservationStore } = useStore(); const { reservationStore } = useStore();
const { itineraryList, customerList } = reservationStore; const { meetAndGreet } = reservationStore;
useEffect(() => { useEffect(() => {
console.info('Detail.useEffect: ' + reservationId); console.info('Detail.useEffect: ' + reservationId);
@ -51,17 +51,12 @@ function NameCard() {
<Space direction="vertical" style={{ width: '100%' }}> <Space direction="vertical" style={{ width: '100%' }}>
<Row gutter={{ md: 24 }}> <Row gutter={{ md: 24 }}>
<Col span={24}> <Col span={24}>
<Title level={1}>Mr. Prasanna Venkatesa</Title> <Title level={1}>{meetAndGreet.customerNames}</Title>
</Col> </Col>
</Row> </Row>
<Row gutter={{ md: 24 }}> <Row gutter={{ md: 24 }}>
<Col span={24}> <Col span={24}>
<Title level={1}>Nathan Group</Title> <Title level={1}>{meetAndGreet.pax}</Title>
</Col>
</Row>
<Row gutter={{ md: 24 }}>
<Col span={24}>
<Title level={1}>(4 Persons)</Title>
</Col> </Col>
</Row> </Row>
</Space> </Space>

Loading…
Cancel
Save