优化挂账

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

@@ -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',