function getcolumns(setdrawer) {
  return [
    {
      title: '单号类型',
      dataIndex: 'noTypeName',
      key: 'noTypeId',
      valueType: 'select',
      options: { path: '/base/bmNoType/queryAllSelect', params: {} },
      formItemProps: {
        rules: [
          {
            required: true,
            message: '此项为必填项',
          },
        ],
      },
    },
    {
      title: '预览',
      dataIndex: 'ruleNames',
      key: 'ruleNames',
      search: false,
      formItemProps: { rules: [{ required: true, message: '此项为必填项' }] },
      hideInForm: true,
    },
    {
      title: '规则配置',
      dataIndex: 'nrList',
      hideInTable: true,
      search: false,
      valueType: 'diyrules',
      colProps: {
        span: 24,
      },
    },
  ];
}

export default getcolumns;
