更新加项pdf接口
This commit is contained in:
@@ -410,20 +410,28 @@ export interface InputAddItemBillInfo {
|
|||||||
CombinationCode: string;
|
CombinationCode: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 加项单PDF文件信息
|
||||||
|
*/
|
||||||
|
export interface OutputAddItemBillFileInfo {
|
||||||
|
/** 加项单编号 */
|
||||||
|
pdf_sort?: number | null;
|
||||||
|
/** PDF文件名称 */
|
||||||
|
pdf_name: string;
|
||||||
|
/** 支付状态(1-未支付 2-已支付) */
|
||||||
|
payment_status: string;
|
||||||
|
/** 支付状态名称 (1-未支付 2-已支付) */
|
||||||
|
payment_status_name: string;
|
||||||
|
/** PDF文件地址 */
|
||||||
|
pdf_url: string;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取体检加项单PDF出参
|
* 获取体检加项单PDF出参
|
||||||
*/
|
*/
|
||||||
export interface OutputAddItemBillInfo {
|
export interface OutputAddItemBillInfo {
|
||||||
/** 加项单编号 */
|
/** 加项单PDF信息列表 */
|
||||||
pdf_sort?: number | null;
|
listPdfInfo: OutputAddItemBillFileInfo[];
|
||||||
/** 支付状态 (1-未支付 2-已支付) */
|
|
||||||
payment_status?: string | null;
|
|
||||||
/** 支付状态名称 (1-未支付 2-已支付) */
|
|
||||||
payment_status_name?: string | null;
|
|
||||||
/** 加项单文件名称 */
|
|
||||||
pdf_name?: string | null;
|
|
||||||
/** PDF文件地址 */
|
|
||||||
pdf_url?: string | null;
|
|
||||||
/** 消息内容 */
|
/** 消息内容 */
|
||||||
message?: string | null;
|
message?: string | null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -367,8 +367,8 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
|
|||||||
CombinationCode: combinationItemCodes,
|
CombinationCode: combinationItemCodes,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (res.Status === 200 && res.Data?.pdf_url && res.Data?.pdf_sort !== undefined && res.Data?.pdf_sort !== null) {
|
if (res.Status === 200 && res.Data?.listPdfInfo && res.Data.listPdfInfo.length > 0) {
|
||||||
|
// 新的接口返回的是数组,至少有一个PDF文件即认为成功
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
console.error('获取加项PDF失败', res.Message);
|
console.error('获取加项PDF失败', res.Message);
|
||||||
@@ -743,7 +743,7 @@ export const ExamAddonPanel = ({ client, onGoToSign }: ExamAddonPanelProps) => {
|
|||||||
<div className='mt-auto pt-1'>
|
<div className='mt-auto pt-1'>
|
||||||
<div className='flex flex-col'>
|
<div className='flex flex-col'>
|
||||||
{origPrice >= 0 && origPrice >= currPrice && (
|
{origPrice >= 0 && origPrice >= currPrice && (
|
||||||
<span className='text-xs text-gray-400 line-through'>¥{origPrice.toFixed(0)}</span>
|
<span className='text-xs text-gray-400 line-through'>¥{origPrice.toFixed(2)}</span>
|
||||||
)}
|
)}
|
||||||
<div className='flex items-center justify-between gap-2'>
|
<div className='flex items-center justify-between gap-2'>
|
||||||
<span className='text-[14px] font-bold text-red-600'>¥{currPrice.toFixed(2)}</span>
|
<span className='text-[14px] font-bold text-red-600'>¥{currPrice.toFixed(2)}</span>
|
||||||
|
|||||||
@@ -292,7 +292,7 @@ export const ExamSignPanel = ({ examId, onBusyChange }: ExamSignPanelProps) => {
|
|||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
setMessage('签到请求失败,请稍后重试');
|
// setMessage('签到请求失败,请稍后重试');
|
||||||
} finally {
|
} finally {
|
||||||
setSignLoading(false);
|
setSignLoading(false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user