fix(*): 全量 UI 审查与 undefined 展示异常修复
This commit is contained in:
@@ -17,6 +17,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
import { formatIdReference } from '../../../helpers/safeDisplay';
|
||||
|
||||
// 与后端 model/org_fund.go 常量一一对应
|
||||
export const FUND_STATE = { NEVER: 0, ON: 1, OFF: 2 };
|
||||
export const FUND_ACCOUNT_TYPE = { POOL: 0, UNALLOCATED: 1, DEPT: 2 };
|
||||
@@ -62,7 +64,7 @@ export const fundAccountDisplay = (t, accountType, deptName) => {
|
||||
export const fundDeptDisplay = (t, deptId, deptName) => {
|
||||
if (deptId === null || deptId === undefined) return '—';
|
||||
if (!deptId) return t('未归属部门');
|
||||
return deptName || `#${deptId}`;
|
||||
return deptName || formatIdReference(deptId);
|
||||
};
|
||||
|
||||
// 一次分配/回收的幂等键:打开弹窗时生成,重试沿用(F-12)。
|
||||
|
||||
Reference in New Issue
Block a user