diff --git a/src/api/request.ts b/src/api/request.ts index a736b28..0a52e0b 100644 --- a/src/api/request.ts +++ b/src/api/request.ts @@ -9,11 +9,11 @@ const API_CONFIG = { EXTERNAL_URL: 'https://apihis.circleharmonyhospital.cn:8982/platform-api', // 默认使用外网地址,可根据环境变量切换 // 开发环境使用内网,生产环境使用外网 - BASE_URL: import.meta.env.NODE_ENV === 'development' - ? 'http://10.1.5.118:8077/platform-api' + BASE_URL: import.meta.env.NODE_ENV === 'development' + ? 'http://10.1.5.118:8077/platform-api' : 'http://apihis.circleharmonyhospital.cn:8982/platform-api', - // 请求超时时间(30秒) - TIMEOUT: 30000, + // 请求超时时间(120秒) + TIMEOUT: 120000, }; // 创建 axios 实例 diff --git a/src/components/exam/ExamAddonPanel.tsx b/src/components/exam/ExamAddonPanel.tsx index 774c70e..8caa641 100644 --- a/src/components/exam/ExamAddonPanel.tsx +++ b/src/components/exam/ExamAddonPanel.tsx @@ -316,8 +316,9 @@ export const ExamAddonPanel = ({ client }: ExamAddonPanelProps) => { }; // 处理挂账公司选择 - const handleAccountCompanySelect = (value: string) => { + const handleAccountCompanySelect = (value: string, label: string) => { setAccountCompany(value); + setAccountCompanySearch(label); setIsAccountCompanyDropdownOpen(false); }; @@ -845,7 +846,7 @@ export const ExamAddonPanel = ({ client }: ExamAddonPanelProps) => {