/*
 *    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.
 *
 */
const  statusDic=[
  {label:"待提交",value:"0"},
  {label:"待部门审核",value:"1"},
  {label:"待教学研究中心审核",value:"2"},
  {label:"通过",value:"100"},
  {label:"驳回",value:"-1"},
]
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  dialogHeight:700,
  dialogWidth:"90%",
  labelWidth:150,
  column: [
    {
      label: '审核状态 ',
      prop: 'state',
      search:true,
      dicData: statusDic,
      type:'select',
      props:{
        label:'label',
        value:'value'
      },
      display:false
    },
    {
      label: "驳回理由",
      prop: "backReason",
      display: false
    },
    {
      label:'证明材料',
      prop:"zmcl",
      slot:true,
      display:false,
      minWidth:150
    },
    {
      label: '工号',
      prop: 'createBy',
      display:false,
      search:true

    },
    {
      label: '姓名',
      prop: 'realName',
      display:false,
      search:true
    },
	  {
      label: '课题所属部门',
      prop: 'deptName',
      display: false
    },
	  {
      label: '课题名称',
      prop: 'topicName',
      rules: [{
        required: true,
        message: '请填写课题名称',
        trigger: 'blur'
      }],
      minWidth:200
    },
	  {
      label: '课题负责人',
      prop: 'topicLeader',
      rules: [{
        required: true,
        message: '请填写课题负责人',
        trigger: 'blur'
      }]
    },
	  {
      label: '课题参与人',
      prop: 'topicJoiner'
    },
	  {
      label: '课题来源',
      prop: 'topicSourceConfigId',
      type: 'select',
      dicUrl: '/professional/professionaltopicsourceconfig/getTopicSourceList',
      props: {
        label:'sourceName',
        value:'id'
      },
      rules: [{
        required: true,
        message: '请选择来源',
        trigger: 'blur'
      }]
    },
	  {
      label: '级别',
      prop: 'topicLevelConfigId',
      type: 'select',
      dicUrl: '/professional/professionaltopiclevelconfig/getTopicLevelList',
      props: {
        label:'levelName',
        value:'id'
      },
      rules: [{
        required: true,
        message: '请选择级别',
        trigger: 'blur'
      }]
    },
	  {
      label: '结题时间',
      prop: 'finishTime',
      type:'datetime',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      rules: [{
        required: true,
        message: '请选择结题时间',
        trigger: 'blur'
      }]
    },
	  {
      label: '颁奖单位',
      prop: 'awardingUnit'
    },
	  {
      label: '获奖等级',
      prop: 'awardingLevel'
    },
     {
      label: '备注',
      prop: 'remarks',
      hide:true
    },
    {
      label:'立项申报书',
      prop:"projectApp",
      formslot:true,
      hide:true
    },
    {
      label:'*结题证书',
      prop:"conclusionBook",
      formslot:true,
      hide:true
    },
    {
      label:'结题报告',
      prop:"conclusionReport",
      formslot:true,
      hide:true
    },

    {
      label:'其他材料',
      prop:"otherImg",
      formslot:true,
      hide:true
    },

  ]
}
