/**
 * Mock数据 - 库存管理
 */

// 库存记录Mock数据
export const mockInventoryList = [
  {
    id: 1,
    shopName: '万达广场店',
    deviceName: '1号柜机',
    productName: '可口可乐',
    productImage: '',
    currentStock: 15,
    minStock: 10,
    maxStock: 50,
    status: 'normal' // normal, low, out
  },
  {
    id: 2,
    shopName: '万达广场店',
    deviceName: '1号柜机',
    productName: '矿泉水',
    productImage: '',
    currentStock: 3,
    minStock: 10,
    maxStock: 50,
    status: 'low'
  },
  {
    id: 3,
    shopName: '人民广场店',
    deviceName: '2号柜机',
    productName: '方便面',
    productImage: '',
    currentStock: 0,
    minStock: 5,
    maxStock: 30,
    status: 'out'
  },
  {
    id: 4,
    shopName: '火车站店',
    deviceName: '3号柜机',
    productName: '薯片',
    productImage: '',
    currentStock: 28,
    minStock: 10,
    maxStock: 40,
    status: 'normal'
  },
  {
    id: 5,
    shopName: '科技园店',
    deviceName: '4号柜机',
    productName: '巧克力',
    productImage: '',
    currentStock: 8,
    minStock: 10,
    maxStock: 30,
    status: 'low'
  }
];

// 库存日志Mock数据
export const mockInventoryLogList = [
  {
    id: 1,
    type: 'in', // in, out, adjust
    typeName: '入库',
    shopName: '万达广场店',
    deviceName: '1号柜机',
    productName: '可口可乐',
    quantity: 50,
    beforeStock: 15,
    afterStock: 65,
    operatorName: '张补货员',
    remark: '常规补货',
    createdAt: '2026-02-15 09:30:00'
  },
  {
    id: 2,
    type: 'out',
    typeName: '销售出库',
    shopName: '万达广场店',
    deviceName: '1号柜机',
    productName: '可口可乐',
    quantity: 2,
    beforeStock: 65,
    afterStock: 63,
    operatorName: '系统',
    remark: '订单出库',
    createdAt: '2026-02-15 14:30:25'
  },
  {
    id: 3,
    type: 'adjust',
    typeName: '盘点调整',
    shopName: '人民广场店',
    deviceName: '2号柜机',
    productName: '矿泉水',
    quantity: -2,
    beforeStock: 15,
    afterStock: 13,
    operatorName: '李盘点员',
    remark: '盘点差异调整',
    createdAt: '2026-02-15 10:00:00'
  }
];

// 库存统计
export const mockInventoryStats = {
  totalProducts: 120,
  lowStockCount: 8,
  outOfStockCount: 3,
  totalValue: 125680,
  todayInCount: 5,
  todayOutCount: 156
};
