/*
 *    Copyright (c) 2018-2025, cyweb All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 *
 */

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
	  // {
    //   label: '主键',
    //   prop: 'id'
    // },
	  // {
    //   label: '创建人',
    //   prop: 'createBy'
    // },
	  // {
    //   label: '创建时间',
    //   prop: 'createTime'
    // },
	  // {
    //   label: '更新人',
    //   prop: 'updateBy'
    // },
	  // {
    //   label: '更新时间',
    //   prop: 'updateTime'
    // },
	  // {
    //   label: '删除标记',
    //   prop: 'delFlag'
    // },
    {
      label: '单位名称',
      prop: 'companyName',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入单位名称"
      }]
    },
    {
      label: '组织机构代码',
      prop: 'orgCode',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入组织机构代码"
      }]
    },
    {
      label: '单位性质',
      prop: 'orgProperty',
      type:'radio',
      dicUrl:'/admin/dict/item/type/org_property',
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择单位性质"
      }]
    },
    {
      label: '单位规模',
      prop: 'orgScale',
      type:'radio',
      dicUrl:'/admin/dict/item/type/org_scale',
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择单位规模"
      }]
    },
    {
      label: '所属产业',
      prop: 'orgIndustryLevel',
      type:'radio',
      dicUrl:'/admin/dict/item/type/org_industry_level',
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择所属产业"
      }]
    },
    {
      label: '所属行业',
      prop: 'orgIndustry',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入所属行业"
      }]
    },
    {
      label: '单位简介',
      prop: 'remarks',
      type:'textarea',
      span:24
    },
    {
      label: '主营业务',
      prop: 'orgBusiness',
      type:'textarea',
      span:24,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入主营业务"
      }]
    },
    {
      label: '组织机构代码证(附件)',
      prop: 'orgCodeLicense',
      formslot: true,
      slot:true
    },
    {
      label: '营业执照(附件)',
      prop: 'orgBusinessLicense',
      formslot: true,
      slot:true
    },
    {
      label: '单位公章(附件)',
      prop: 'orgSeal',
      formslot: true,
      slot:true
    },
    {
      label: '审核状态',
      prop: 'status',
      addDisplay:false,
      editDisplay:false,
      type:'select',
      dicUrl:'/admin/dict/item/type/company_information_status',
      props:{
        label:'label',
        value:'value'
      },
    },
  ]
}
