import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
    {
    title: '名称',
    align:"center",
    dataIndex: 'title'
   },
   {
    title: '优惠金额',
    align:"center",
    dataIndex: 'amount'
   },
   {
    title: '有效期限',
    align:"center",
    dataIndex: 'validTime'
   },
   {
    title: '是否可被领取',
    align:"center",
    dataIndex: 'isFetch_dictText'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '名称',
    field: 'title',
    component: 'Input',
  },
  {
    label: '优惠金额',
    field: 'amount',
    component: 'InputNumber',
  },
  {
    label: '有效期限',
    field: 'validTime',
    component: 'Input',
  },
  {
    label: '是否可被领取',
    field: 'isFetch',
    component: 'JDictSelectTag',
    componentProps:{
        dictCode:"is_true"
     },
  },
];
