feat:地接确认内容增加上传附件

main^2
LiaoYijun 3 weeks ago
parent b6af34d48a
commit 9429a84ca9

@ -52,15 +52,17 @@ function Detail() {
} }
function attachmentRender(_, confirm) { function attachmentRender(_, confirm) {
const attachmentKey = `GHH/${travelAgencyId}/${reservationId}/PCISN${confirm.key}`;
return ( return (
<> <>
{confirm.attachmentList.map(attch => { {/* {confirm.attachmentList.map(attch => {
return ( return (
<Tag key={attch.file_name} bordered={false} icon={<FileOutlined />}> <Tag key={attch.file_name} bordered={false} icon={<FileOutlined />}>
<a href={attch.file_url} target='_blank' rel='noreferrer'>{attch.file_name}</a> <a href={attch.file_url} target='_blank' rel='noreferrer'>{attch.file_name}</a>
</Tag> </Tag>
)} )}
)} )} */}
<ImageUploader osskey={attachmentKey} ignore_case={false} deletable={false} />
</> </>
); );
} }
@ -116,6 +118,10 @@ function Detail() {
setIsModalOpen(false); setIsModalOpen(false);
}; };
console.info("detail: ", reservationDetail)
console.info("confirmationList: ", confirmationList)
useEffect(() => { useEffect(() => {
setDataLoading(true); setDataLoading(true);
@ -134,7 +140,7 @@ function Detail() {
.finally(() => { .finally(() => {
setDataLoading(false); setDataLoading(false);
}); });
}, [reservationId, getReservationDetail, notification]); }, [reservationId]);
return ( return (
<> <>

Loading…
Cancel
Save