31 lines
815 B
TypeScript
31 lines
815 B
TypeScript
import type ICustomerLevel from '@/domain/iCustomerLevel.ts';
|
|
|
|
/** 门店 */
|
|
export default interface IStore {
|
|
id?: number;
|
|
name?: string;
|
|
/** 门店编码 */
|
|
code?: string;
|
|
/** 客户等级ID(决定商品价格) */
|
|
level_id?: number;
|
|
level?: ICustomerLevel;
|
|
contact?: string;
|
|
phone?: string;
|
|
address?: string;
|
|
/** 回款周期(天) */
|
|
payment_cycle_days?: number;
|
|
/** 待回筐数量(生成账单压筐累加,回筐登记扣减) */
|
|
pending_box_num?: number;
|
|
/** 待回托盘数量 */
|
|
pending_tray_num?: number;
|
|
status?: number;
|
|
remark?: string;
|
|
created_at?: string;
|
|
updated_at?: string;
|
|
}
|
|
|
|
export const STORE_STATUS_MAP: Record<number, { text: string; color: string }> = {
|
|
0: { text: '停用', color: 'error' },
|
|
1: { text: '正常', color: 'success' },
|
|
};
|