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

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

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

@ -66,7 +66,10 @@ class Reservation {
}
});
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;
} else {
@ -82,31 +85,35 @@ class Reservation {
referenceNumber: '', arrivalDate: '', tourGuide: ''
};
meetAndGreet = {
referenceNumber: '', customerNames: '', pax: ''
}
itineraryList = [
];
customerList = [
{
title: 'Crane / Gemma Chelse',
description: 'Gender: Male Nationality: United States Passport: 655844449 Expiration Date: 2030-09-07 Birth Date: 1979-12-23',
},
{
title: 'McCracken / Ryan Lee',
description: 'Gender: Female Nationality: United States Passport: 655844450 Expiration Date: 2030-09-07 Birth Date: 1983-05-17',
},
{
title: 'Ramlakhan / Darryl',
description: 'Gender: Female Nationality: United States Passport: 661810034 Expiration Date: 2026-03-16 Birth Date: 2006-07-12',
},
{
title: 'Ramlakhan / Reanne',
description: 'Gender: Male Nationality: United States Passport: 593422145 Expiration Date: 2023-04-25 Birth Date: 2012-03-26',
},
{
title: 'Alexander Daich',
description: 'Gender: Male Nationality: United States Passport: 593422145 Expiration Date: 2023-04-25 Birth Date: 2012-03-26s',
},
];
customerList = [];
// {
// title: 'Crane / Gemma Chelse',
// description: 'Gender: Male Nationality: United States Passport: 655844449 Expiration Date: 2030-09-07 Birth Date: 1979-12-23',
// },
// {
// title: 'McCracken / Ryan Lee',
// description: 'Gender: Female Nationality: United States Passport: 655844450 Expiration Date: 2030-09-07 Birth Date: 1983-05-17',
// },
// {
// title: 'Ramlakhan / Darryl',
// description: 'Gender: Female Nationality: United States Passport: 661810034 Expiration Date: 2026-03-16 Birth Date: 2006-07-12',
// },
// {
// title: 'Ramlakhan / Reanne',
// description: 'Gender: Male Nationality: United States Passport: 593422145 Expiration Date: 2023-04-25 Birth Date: 2012-03-26',
// },
// {
// title: 'Alexander Daich',
// description: 'Gender: Male Nationality: United States Passport: 593422145 Expiration Date: 2023-04-25 Birth Date: 2012-03-26s',
// },
// ];
customerNames = '';
}

@ -92,7 +92,7 @@ function Detail() {
<Row>
<Col span={24}>
<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"
dataSource={toJS(customerList)}
renderItem={(item, index) => (

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

Loading…
Cancel
Save