/**
 * Mock数据 - 门店管理
 */

// 门店状态枚举
export enum ShopStatus {
  ACTIVE = 1,      // 正常营业
  INACTIVE = 0,    // 停业
  MAINTENANCE = 2  // 维护中
}

// 门店状态文字映射
export const ShopStatusText: Record<number, string> = {
  [ShopStatus.ACTIVE]: '营业中',
  [ShopStatus.INACTIVE]: '已停业',
  [ShopStatus.MAINTENANCE]: '维护中'
};

// 门店状态颜色映射
export const ShopStatusColor: Record<number, string> = {
  [ShopStatus.ACTIVE]: '#52c41a',
  [ShopStatus.INACTIVE]: '#999999',
  [ShopStatus.MAINTENANCE]: '#faad14'
};

// 门店列表Mock数据
export const mockShopList = [
  {
    id: 1,
    name: '万达广场店',
    address: '北京市朝阳区建国路93号万达广场B1层',
    contactName: '张经理',
    contactPhone: '13800138001',
    status: ShopStatus.ACTIVE,
    deviceCount: 2,
    todaySales: 1260,
    monthSales: 35680,
    createdAt: '2025-10-01 10:00:00'
  },
  {
    id: 2,
    name: '人民广场店',
    address: '上海市黄浦区人民大道100号',
    contactName: '李经理',
    contactPhone: '13800138002',
    status: ShopStatus.ACTIVE,
    deviceCount: 1,
    todaySales: 520,
    monthSales: 18920,
    createdAt: '2025-10-05 10:00:00'
  },
  {
    id: 3,
    name: '火车站店',
    address: '北京市东城区北京站东街1号',
    contactName: '王经理',
    contactPhone: '13800138003',
    status: ShopStatus.INACTIVE,
    deviceCount: 1,
    todaySales: 0,
    monthSales: 15680,
    createdAt: '2025-09-15 10:00:00'
  },
  {
    id: 4,
    name: '科技园店',
    address: '深圳市南山区科技园南区',
    contactName: '赵经理',
    contactPhone: '13800138004',
    status: ShopStatus.MAINTENANCE,
    deviceCount: 1,
    todaySales: 0,
    monthSales: 8960,
    createdAt: '2025-11-01 10:00:00'
  },
  {
    id: 5,
    name: '天河城店',
    address: '广州市天河区天河路208号',
    contactName: '钱经理',
    contactPhone: '13800138005',
    status: ShopStatus.ACTIVE,
    deviceCount: 1,
    todaySales: 890,
    monthSales: 28560,
    createdAt: '2025-12-01 10:00:00'
  }
];

// 门店详情Mock数据
export const mockShopDetail = {
  id: 1,
  name: '万达广场店',
  address: '北京市朝阳区建国路93号万达广场B1层',
  contactName: '张经理',
  contactPhone: '13800138001',
  status: ShopStatus.ACTIVE,
  businessHours: '08:00-22:00',
  area: 150,
  deviceCount: 2,
  todaySales: 1260,
  todayOrders: 45,
  monthSales: 35680,
  monthOrders: 1280,
  // 门店设备
  devices: [
    {
      id: 1,
      deviceId: 'DEV001',
      name: '1号柜机',
      status: 1,
      todaySales: 680,
      inventory: 156
    },
    {
      id: 5,
      deviceId: 'DEV005',
      name: '5号柜机',
      status: 1,
      todaySales: 580,
      inventory: 178
    }
  ],
  // 销售趋势
  salesTrend: [
    { date: '02-09', amount: 1120 },
    { date: '02-10', amount: 1350 },
    { date: '02-11', amount: 980 },
    { date: '02-12', amount: 1560 },
    { date: '02-13', amount: 1780 },
    { date: '02-14', amount: 1890 },
    { date: '02-15', amount: 1260 }
  ],
  createdAt: '2025-10-01 10:00:00',
  updatedAt: '2026-02-15 14:30:00'
};
