import { BasicColumn, FormSchema } from '@/components/Table';
import { getRightTable } from '@/api/sys/categories';
export const columns: BasicColumn[] = [
  {
    title: '序号',
    dataIndex: 'RowNumber',
    width: 80
  },
  {
    title: '建筑物编码',
    dataIndex: 'jzwbm',
  },
  {
    title: '建筑名称',
    dataIndex: 'jzwmc',
  },
  {
    title: '建筑物结构',
    dataIndex: 'jzwjg',
  },
  {
    title: '建筑物实际占地面积',
    dataIndex: 'jzwsjmj',
  },
  {
    title: '建筑物发证面积',
    dataIndex: 'jzwfzmj',
  },
  {
    title: '竣工日期',
    dataIndex: 'jgrq',
  },
  {
    title: '调查日期',
    dataIndex: 'dcrq',
  },
  {
    title: '备注',
    dataIndex: 'bz',
  }
];

export const searchFormSchema: FormSchema[] = [
  {
    field: 'jzwbm',
    label: '建筑物编码',
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: 'jzwmc',
    label: '建筑名称',
    component: 'Input',
    colProps: { span: 5 },
  },
  {
    field: 'jzwjg',
    component: 'ApiSelect',
    label: '建筑物结构',
    colProps: {
      span: 5,
    },
    componentProps: () => {
      return {
        api: getRightTable,
        params: {
          code: 'FWjg',
        },
        resultField: '',
        labelField: 'itemName',
        valueField: 'itemName',
      };
    },
  },
  {
    component: 'DatePicker',
    label: '竣工日期',
    field: 'jgrq',
    colProps: { span: 5 },
    componentProps: {},
  },
];
export const defaultValue = {
  "gid": 0,
  "objectid": 0,
  "shape_leng": 0,
  "shape_area": 0,
  "szzdbm": "",
  "jzwbm": "",
  "jzwjg": "",
  "jzwcs": "",
  "szcs": "",
  "jgrq": "",
  "qdfs": "",
  "symj": 0,
  "mjjsxs": 0,
  "jzwsjzdmj": 0,
  "jzwsjmj": 0,
  "jzwfzmj": 0,
  "dcr": "",
  "dcrq": "",
  "clr": "",
  "clrq": "",
  "bz": "",
  "bdcdyh": "",
  "jzwmc": "",
  "fwybh": "",
  "geom": "",
  "jzwsyqr": "",
  "jzsyqr": ""
}
