export const columns = [
  {
    title: '商品名称',
    dataIndex: 'name',
    key: 'name',
  },
  {
    title: '产品线',
    dataIndex: 'lineName',
    key: 'lineName',
  },
  {
    title: '经销商',
    dataIndex: 'distributor',
    key: 'distributor',
  },
  {
    title: '原价',
    dataIndex: 'discountPrice',
    key: 'discountPrice',
  },
  {
    title: '折扣',
    dataIndex: 'discountRate',
    key: 'discountRate',
  },
  {
    title: '折扣时间期限',
    dataIndex: 'time',
    key: 'time',
  },
  {
    title: '状态',
    dataIndex: 'status',
    key: 'status',
  },
  {
    title: '操作',
    key: 'action',
    width: '350px',
  },
];

export const rulesRef = {
  distributorId: [
    {
      required: true,
      message: '请选择经销商',
    },
  ],
  goods: [
    {
      required: true,
      message: '请选择商品',
    },
  ],
  time: [
    {
      required: true,
      message: '请选择折扣时间期限',
    },
  ],
  discountRate: [
    {
      required: true,
      message: '请设置折扣',
    },
  ],
  status: [
    {
      required: true,
      message: '请选择状态',
    },
  ],
};
