/*
 *    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: '企业名称',
      labelWidth:200,
      prop: 'companyId',
      filterable:true,
      searchFilterable:true,
      search:true,
      type:'select',
      dicUrl: '/professional/phaseintentioncompany/list',
      props: {
        label: 'companyName',
        value: 'id'
      },
      rules: [{
        required: true,
        message: '企业不能为空',
        trigger: 'blur'
      }
      ]
    },

	  {
      label: '建设人',
      labelWidth:200,
      prop: 'checkPeople'
    },
	  {
      label: '建设地点',
      labelWidth:200,
      prop: 'checkAddress'
    },
	  {
      label: '检查或与实习基地建设情况',
      labelWidth:200,
      prop: 'checkBaseSituation'
    },
	  {
      label: '问题及处理情况',
      labelWidth:200,
      prop: 'feedback'
    },
	  {
      label: '监察人',
      labelWidth:200,
      prop: 'checkName'
    },
    {
      label: '填写日期',
      prop: 'inTime',
      type:'date',
      labelWidth:200,
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [{
        required: true,
        message: "请选择时间",
        trigger: "blur"
      }],
    },
    {
      label: '检查文件上传',
      labelWidth:200,
      prop: 'filePath',
      hide: true,
      slot:true,
      formslot:true
    },
    {
      label: '检查文件上传',
      labelWidth:120,
      prop: 'filePathValue',
      addDisplay: false,
      editDisplay: false,
      slot:true,
    },
    {
      label: '备注',
      type:'textarea',
      labelWidth:200,
      row:true,
      span:24,
      prop: 'remarks'
    },
  ]
}
