import { BasicColumn, FormSchema } from '@/components/Table';
import { GetStreetInfo } from '@/api/qydata/index';
export const columns: BasicColumn[] = [
  {
    title: '序号',
    dataIndex: 'RowNumber',
    width: 80
  },
  {
    title: '社会信用代码',
    dataIndex: 'shxydm',
  },
  {
    title: '企业名称',
    dataIndex: 'syrmc',
  },
  {
    title: '行业',
    dataIndex: 'hy',
  },
  {
    title: '所在乡镇',
    dataIndex: 'djqmc',
  },
  {
    title: '所在村庄',
    dataIndex: 'djzqmc',
  },
  {
    title: '法人代表',
    dataIndex: 'frdb',
  },
  {
    title: '联系方式',
    dataIndex: 'lxfs',
  },
  {
    title: '测算财源',
    dataIndex: 'cscy',
  }
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'shxydm',
    label: '社会信用代码',
    component: 'Input',
    colProps: { span: 4 },
  },
  {
    field: 'syrmc',
    label: '企业名称',
    component: 'Input',
    colProps: { span: 4 },
  },
  // {
  //   field: 'djqmc',
  //   label: '乡镇',
  //   component: 'Input',
  //   colProps: { span: 6 },
  // },
  {
    field: 'djqdm',
    component: 'ApiSelect',
    label: '乡镇',
    colProps: {
      span: 4,
    },
    componentProps: () => {
      return {
        api: GetStreetInfo,
        params: {
          code: 'FWjg',
        },
        resultField: '',
        labelField: 'djqmc',
        valueField: 'djqdm',
      };
    },
  },
  {
    field: 'frdb',
    label: '法人代表',
    component: 'Input',
    colProps: { span: 4 },
  },
  {
    field: 'hy',
    label: '行业',
    component: 'Input',
    colProps: { span: 4 },
  },
];
export const defaultValue = {
    id: 0,
    shxydm: "",
    frdb: "",
    frsfzh: "",
    lxfs: "",
    hy: "",
    jyzt: "",
    ydhm: "",
    ydhh: "",
    dgyf: "",
    yrhm: null,
    yrhh: null,
    rgyf: null,
    yqhm: null,
    yqhh: null,
    qgyf: null,
    yshm: null,
    yshh: null,
    sgyf: null,
    dcr: "",
    dcrq: "",
    clr: "",
    clrq: "",
    bz: null,
    gdzc: null,
    xmgxcc: null,
    cscy: null,
    gdtzze: null,
    sfgsqy: null,
    syrmc: "",
    djqdm: "",
    djqmc: "",
    djzqdm: "",
    djzqmc: ""
}
