import type ICustomerLevel from '@/domain/iCustomerLevel.ts'; /** 门店 */ export default interface IStore { id?: number; name?: string; /** 门店编码 */ code?: string; /** 登录账号(小程序端 账号+密码 登录) */ username?: string; /** 登录密码(创建必填,编辑留空不修改;接口永不回显) */ password?: string; /** 头像 */ avatar?: string; /** 最后登录时间 */ last_login_at?: string | null; /** 客户等级ID(决定商品价格) */ level_id?: number; level?: ICustomerLevel; contact?: string; phone?: string; address?: string; /** 回款周期(天) */ payment_cycle_days?: number; /** 总采购金额(只统计商品金额,账单支付后累加) */ total_purchase_amount?: string; status?: number; remark?: string; created_at?: string; updated_at?: string; } export const STORE_STATUS_MAP: Record = { 0: { text: '停用', color: 'error' }, 1: { text: '正常', color: 'success' }, };