23 lines
611 B
TypeScript
23 lines
611 B
TypeScript
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' },
|
||
};
|