优化挂账

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

@@ -12,8 +12,8 @@ const API_CONFIG = {
BASE_URL: import.meta.env.NODE_ENV === 'development' BASE_URL: import.meta.env.NODE_ENV === 'development'
? 'http://10.1.5.118:8077/platform-api' ? 'http://10.1.5.118:8077/platform-api'
: 'http://apihis.circleharmonyhospital.cn:8982/platform-api', : 'http://apihis.circleharmonyhospital.cn:8982/platform-api',
// 请求超时时间(30秒 // 请求超时时间(120秒
TIMEOUT: 30000, TIMEOUT: 120000,
}; };
// 创建 axios 实例 // 创建 axios 实例

View File

@@ -316,8 +316,9 @@ export const ExamAddonPanel = ({ client }: ExamAddonPanelProps) => {
}; };
// 处理挂账公司选择 // 处理挂账公司选择
const handleAccountCompanySelect = (value: string) => { const handleAccountCompanySelect = (value: string, label: string) => {
setAccountCompany(value); setAccountCompany(value);
setAccountCompanySearch(label);
setIsAccountCompanyDropdownOpen(false); setIsAccountCompanyDropdownOpen(false);
}; };
@@ -845,7 +846,7 @@ export const ExamAddonPanel = ({ client }: ExamAddonPanelProps) => {
<button <button
key={`${option.value}-${idx}`} key={`${option.value}-${idx}`}
type='button' type='button'
onClick={() => handleAccountCompanySelect(option.value)} onClick={() => handleAccountCompanySelect(option.value, option.label)}
className={cls( className={cls(
'w-full px-3 py-2 text-xs text-left transition-colors', 'w-full px-3 py-2 text-xs text-left transition-colors',
'hover:bg-gray-50', 'hover:bg-gray-50',