/*
 *    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.
 *
 */
import {states} from "@/const/crud/asset/assetsinvalid/assetassetsinvalid";

export const companyType=[
  {
    label:'入驻',
    value:'0'
  },
  {
    label:'合作',
    value:'1'
  },
]
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  dialogHeight: 800,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
	  {
      label: '主键',
      prop: 'id',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
    {
      label: '学院',
      prop: 'deptCode',
      type:'select',
      multiple:true,
      labelWidth:120,
      search:true,
      filterable:true,
      searchFilterable:true,
      dicUrl: '/basic/basicdept/getDeptList?secondFlag=1',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择学院"
      }]
    },
    {
      label: '入驻类型',
      labelWidth:120,
      prop: 'companyType',
      type: 'select',
      search:true,
      dicData:companyType,
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择是否入驻类型"
      }]
    },
	  {
      label: '公司名称',
      labelWidth:120,
      prop: 'companyName',
      search:true,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写公司名称"
      },
        { max: 30, message: '长度在 30 个字符', trigger: 'blur' },
      ]
    },
	  {
      label: '统一社会编码',
      labelWidth:120,
      prop: 'companyCode',
      search:true,
      editDisabled:true,
      editDisplay:true,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写统一社会编码"
      },
        { max: 30, message: '长度在 30 个字符', trigger: 'blur' },
      ]
    },
    {
      label: '联系人',
      labelWidth:120,
      prop: 'contactsName',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写联系人"
      },
        { max: 30, message: '长度在 30 个字符', trigger: 'blur' },
      ]
    },
    {
      label: '联系电话',
      labelWidth:120,
      prop: 'contactsPhone',
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写联系电话"
      },
        { max: 30, message: '长度在 30 个字符', trigger: 'blur' },
      ]
    },
    {
      label: '高新技术企业',
      labelWidth:120,
      prop: 'isTechnology',
      type: 'select',
      search:true,
      dicUrl: '/admin/dict/item/type/yes_no',
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择是否高新技术企业"
      }]
    },

	  {
      label: '员工数',
      labelWidth:120,
      type:'number',
      prop: 'employeesNum',
    },
    {
      label: '企业场景',
      labelWidth:120,
      prop: 'companyImg',
      hide: true,
      slot:true,
      formslot:true
    },
	  {
      label: '年产值(万元)',
      labelWidth:120,
      type:'number',
      prop: 'annualOutputValue'
    },
	  {
      label: '设备总值(万元)',
      labelWidth:120,
      prop: 'equipmentValue',
      hide: true,
      type:'number'
    },

	  {
      label: '厂房面积(m²)',
      prop: 'plantArea',
      hide: true,
      type:'number',
      labelWidth:120
    },
	  {
      label: '发明专利数',
      prop: 'inventionPatent',
      labelWidth:120,
      hide: true,
      type:'number'
    },
	  {
      label: '实用新型专利数',
      labelWidth:120,
      prop: 'utilityModel',
      hide: true,
      type:'number'
    },
    {
      label: '企业规模',
      labelWidth:120,
      prop: 'enterpriseSize',
      hide: true
    },
    {
      label: '注册资本',
      labelWidth:120,
      prop: 'registeredCapital',
      hide: true
    },
    {
      label: '存续年限',
      labelWidth:120,
      prop: 'survivalPeriod',
      hide: true
    },
    {
      label: '所处行业',
      labelWidth:120,
      prop: 'industryCode',
      type: 'select',
      span:24,
      search:true,
      dicUrl: '/admin/dict/item/type/company_industry',
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择是否高新技术企业"
      }]
    },
    {
      label: '目标房型1',
      labelWidth:120,
      prop: 'targetRoomOne',
      span:8,
      hide: true
    },
    {
      label: '楼层要求1',
      labelWidth:120,
      span:8,
      prop: 'floorRequirementsOne',
      hide: true
    },
    {
      label: '面积要求1',
      labelWidth:120,
      span:8,
      prop: 'areaRequirementsOne',
      hide: true
    },
    {
      label: '目标房型2',
      labelWidth:120,
      span:8,
      prop: 'targetRoomTwo',
      hide: true
    },
    {
      label: '楼层要求2',
      labelWidth:120,
      span:8,
      prop: 'floorRequirementsTwo',
      hide: true
    },
    {
      label: '面积要求2',
      labelWidth:120,
      span:8,
      prop: 'areaRequirementsTwo',
      hide: true
    },
    {
      label: '目标房型3',
      labelWidth:120,
      span:8,
      prop: 'targetRoomThree',
      hide: true
    },
    {
      label: '楼层要求3',
      labelWidth:120,
      span:8,
      prop: 'floorRequirementsThree',
      hide: true
    },
    {
      label: '面积要求3',
      labelWidth:120,
      span:8,
      prop: 'areaRequirementsThree',
      hide: true
    },
	  {
      label: '技术技能',
      labelWidth:120,
      prop: 'technicalSkills',
      hide: true,
      type:'textarea',
      row:true,
      span:24,
      rules: [
        { max: 255, message: '长度在 255 个字符', trigger: 'blur' },
      ]
    },
    {
      label: '主营业务',
      labelWidth:120,
      prop: 'mainBusiness',
      type:'textarea',
      row:true,
      span:24,
      rules: [
        {
          required: true,
          trigger: 'blur',
          message:"请填写主营业务"
        },
        { max: 255, message: '长度在 255 个字符', trigger: 'blur' },
      ]
    },
    {
      label: '主要产品',
      labelWidth:120,
      prop: 'mainProducts',
      hide: true,
      type:'textarea',
      row:true,
      span:24,
      rules: [
        { max: 255, message: '长度在 255 个字符', trigger: 'blur' },
      ]
    },
	  {
      label: '近三年生产总值',
      labelWidth:120,
      prop: 'gross',
      hide: true,
      type:'textarea',
      row:true,
      span:24,
      rules: [
        { max: 255, message: '长度在 255 个字符', trigger: 'blur' },
      ]
    },
	  {
      label: '发展前景',
      labelWidth:120,
      prop: 'developmentProspects',
      hide: true,
      type:'textarea',
      row:true,
      span:24,
      rules: [
        { max: 255, message: '长度在 255 个字符', trigger: 'blur' },
      ]
    },
	  {
      label: '投入计划',
      labelWidth:120,
      prop: 'investmentPlan',
      hide: true,
      type:'textarea',
      row:true,
      span:24,
      rules: [
        { max: 255, message: '长度在 255 个字符', trigger: 'blur' },
      ]
    },

	  {
      label: '经营范围',
      labelWidth:120,
      prop: 'businessScope',
      hide: true,
      type:'textarea',
      row:true,
      span:24,
      rules: [
        { max: 255, message: '长度在 255 个字符', trigger: 'blur' },
      ]
    },
    {
      label: '备注',
      labelWidth:120,
      prop: 'remarks',
      type:'textarea',
      row:true,
      span:24,
      rules: [
        { max: 255, message: '长度在 255 个字符', trigger: 'blur' },
      ]
    },
    {
      label: '校企协议书',
      labelWidth:120,
      prop: 'agreement',
      addDisplay: false,
      editDisplay: false,
      slot:true,
    },
    {
      label: '校企协议书',
      labelWidth:120,
      prop: 'isAgreement',
      type: 'select',
      search:true,
      dicUrl: '/admin/dict/item/type/yes_no',
      props:{
        label:'label',
        value:'value'
      },
      addDisplay: false,
      editDisplay: false,
      hide:true
    },
  ]
}
