Files
xin-procurement/web/domain/iCustomerLevel.ts
T
2026-08-17 16:27:15 +08:00

23 lines
611 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type {ISysFileInfo} from "@/domain/iSysFile.ts";
/** 客户等级 */
export default interface ICustomerLevel {
id?: number;
/** 等级名称 */
name?: string;
/** 价格上浮比例(%,售价 = 成本价 × (100 + percent) / 100 */
percent?: string | number;
sort?: number;
status?: number;
icon_id?: number;
icon?: ISysFileInfo;
icon_url?: string;
created_at?: string;
updated_at?: string;
}
export const CUSTOMER_LEVEL_STATUS_MAP: Record<number, { text: string; color: string }> = {
0: { text: '停用', color: 'error' },
1: { text: '正常', color: 'success' },
};