优化挂账

This commit is contained in:
xianyi
2026-01-07 17:23:17 +08:00
parent 8eda537f67
commit 5d78dfed5a
2 changed files with 7 additions and 6 deletions

View File

@@ -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 实例

View File

@@ -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) => {
<button
key={`${option.value}-${idx}`}
type='button'
onClick={() => handleAccountCompanySelect(option.value)}
onClick={() => handleAccountCompanySelect(option.value, option.label)}
className={cls(
'w-full px-3 py-2 text-xs text-left transition-colors',
'hover:bg-gray-50',