import { reactive } from 'vue';
export const columns = [
  {
    title: '商品名称',
    dataIndex: 'name',
    key: 'name',
    width: '150px',
  },
  {
    title: '商品分类',
    dataIndex: 'categoryName',
    key: 'categoryName',
    ellipsis: true,
    width: '200px',
  },
  {
    title: '产品线',
    dataIndex: 'lineName',
    key: 'lineName',
    ellipsis: true,
    width: '200px',
  },
  {
    title: '上架',
    dataIndex: 'status',
    key: 'status',
  },
  {
    title: '重点',
    dataIndex: 'isImport',
    key: 'isImport',
  },
  {
    title: '新品',
    dataIndex: 'isNews',
    key: 'isNews',
  },
  {
    title: '非常规',
    dataIndex: 'isUnconventional',
    key: 'isUnconventional',
  },
  {
    title: '促销',
    dataIndex: 'isPromotion',
    key: 'isPromotion',
  },
  {
    title: '操作',
    key: 'action',
    width: '250px',
  },
];

export const stateOption = [
  { label: '上架', value: 'status' },
  { label: '重点', value: 'isImport' },
  { label: '非常规', value: 'isUnconventional' },
  { label: '新品', value: 'isNews' },
  { label: '促销', value: 'isPromotion' },
];

export const rulesRef = reactive({
  goodsCategoryList: [
    {
      required: true,
      message: '请选择商品分类',
    },
  ],
  name: [
    {
      required: true,
      message: '请输入商品名称',
    },
  ],
});

export const productColumns = [
  {
    title: '序号',
    dataIndex: 'index',
    key: 'index',
  },
  {
    title: '产品编号',
    dataIndex: 'thirdProductId',
    key: 'thirdProductId',
  },
  {
    title: '产品名称',
    dataIndex: 'index',
    key: 'index9',
  },
  {
    title: '型号',
    dataIndex: 'index',
    key: 'index8',
  },
  {
    title: '描述信息',
    dataIndex: 'index',
    key: 'index7',
  },
  {
    title: '产品线',
    dataIndex: 'index',
    key: 'index6',
  },
  {
    title: '所属医生',
    dataIndex: 'index',
    key: 'index5',
  },
  {
    title: '数量',
    dataIndex: 'quantity',
    key: 'quantity',
  },
  {
    title: '未税价格',
    dataIndex: 'index',
    key: 'index3',
  },
  {
    title: '套件数量',
    dataIndex: 'index',
    key: 'index2',
  },
  {
    title: '支付标识',
    dataIndex: 'index',
    key: 'index1',
  },
  {
    title: '操作',
    key: 'action',
  },
];

export const productRulesRef = {
  thirdProductId: [
    {
      required: true,
      message: '请选择产品编号',
    },
  ],
  quantity: [
    {
      required: true,
      message: '请输入数量',
    },
  ],
};
