优化挂账
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user