/*
 *    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 {YES_OR_NO} from "../contract/contracttype";
import {number} from "echarts/src/export";

export const TYPE_=[
  {
    label:'培训项目',
    value:'1'
  },
  {
    label:'非培训项目',
    value:'2'
  }
]
export const PROC_STATUS=[
  {
    label:'待审核',
    value:'0'
  },
  {
    label:'驳回',
    value:'1'
  },
  {
    label:'撤销',
    value:'2'
  },
  {
    label:'通过',
    value:'3'
  },
]
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dialogHeight:700,
  maxHeight:600,
  dic: [],
  column: [
	  // {
    //   label: '主键',
    //   prop: 'id'
    // },
	  // {
    //   label: '创建人',
    //   prop: 'createBy'
    // },
	  // {
    //   label: '创建时间',
    //   prop: 'createTime'
    // },
	  // {
    //   label: '更新人',
    //   prop: 'updateBy'
    // },
	  // {
    //   label: '更新时间',
    //   prop: 'updateTime'
    // },
	  // {
    //   label: '删除标记',
    //   prop: 'delFlag'
    // },
	  // {
    //   label: '租户ID',
    //   prop: 'tenantId'
    // },
	  // {
    //   label: '备注',
    //   prop: 'remarks'
    // },
	  {
      label: '位置',
      prop: 'mansionId',
      labelWidth:120,
      formslot: true,
      editDisabled:true,
      search:true,
      type:'select',
      dicUrl: '/stuwork/buildingmansion/list',
      props: {
        label: 'mansionName',
        value: 'id'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择位置"
      }]
    },
	  {
      label: '位置名称',
      prop: 'mansionName',
      labelWidth:120,
      editDisabled:true,
      hide:true,
      addDisplay:false,
      editDisplay:false
    },
	  {
      label: '场地',
      prop: 'assemblyRoomId',
      labelWidth:120,
      editDisabled:true,
      search:true,
      formslot: true,
      type:'select',
      dicUrl: '/stuwork/buildingassemblyroom/list',
      props: {
        label: 'assemblyRoom',
        value: 'id'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择场地"
      }]
    },
	  {
      label: '场地名称',
      prop: 'assemblyRoomName',
      labelWidth:120,
      editDisabled:true,
      hide:true,
      addDisplay:false,
      editDisplay:false
    },
    {
      label:'使用日期',
      prop:'reserveDate',
      labelWidth:120,
      editDisabled:true,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat:'yyyy-MM-dd',
      rules: [{
        required: true,
        message: "请填写日期",
        trigger: "blur"
      }],
    },
    {
      label: '使用时间',
      prop: 'timeId',
      labelWidth:120,
      formslot: true,
      editDisabled:true,
      // rules: [{
      //   required: true,
      //   message: "请时间",
      //   trigger: "blur"
      // }],
    },

    {
      label: '部门',
      prop: 'deptCode',
      labelWidth:120,
      editDisabled:true,
      formslot: true,
      type:'select',
      dicUrl:'/basic/basicdept/getDeptList?deptLevel=2',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
    },
    {
      label: '部门名称',
      prop: 'deptName',
      labelWidth:120,
      editDisabled:true,
      hide:true,
      addDisplay:false,
      editDisplay:false
    },
    {
      label: '对接人',
      prop: 'oppositeNo',
      labelWidth:120,
      editDisabled:true,
      formslot: true,
      type:'select',
      dicUrl:'/professional/teacherbase/TeacherBaseList',
      props:{
        label:'realName',
        value:'teacherNo'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入对接人"
      }]
    },
    {
      label: '对接人姓名',
      prop: 'oppositePerson',
      labelWidth:120,
      editDisabled:true,
      hide:true,
      addDisplay:false,
      editDisplay:false
    },
    {
      label: '手机号',
      prop: 'phone',
      labelWidth:120,
      editDisabled:true,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入手机号"
      }]
    },
    {
      label: '类型',
      prop: 'type',
      labelWidth:120,
      type:'select',
      editDisabled:true,
      dicData:TYPE_,
      props:{
        label:'label',
        value:'value'
      },
    },
    {
      label: '项目标题',
      prop: 'projectSynopsis',
      labelWidth:120,
      editDisabled:true,
      type:'textarea',
      span:18,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入项目情况"
      }]
    },
    {
      label: '项目人数',
      prop: 'projectPersonNum',
      labelWidth:120,
      editDisabled:true,
      span:18,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入项目人数"
      }]
    },
    // {
    //   label: '布置会场日期时间',
    //   prop: 'prepareTime',
    //   labelWidth:120,
    //   editDisabled:true,
    //   rules: [{
    //     required: true,
    //     trigger: 'blur',
    //     message:"请输入手机号"
    //   }]
    // },
    {
      label: '横幅字幕内容',
      prop: 'subtitle',
      labelWidth:120,
      editDisabled:true,
    },
    // {
    //   label: '话筒数量',
    //   prop: 'microphoneNum',
    //   labelWidth:120,
    //   editDisabled:true,
    //   type:'number',
    //   minRows:0,
    //   rules: [{
    //     required: true,
    //     trigger: 'blur',
    //     message:"请输入话筒数量"
    //   }]
    // },



    {
      label: '手持话筒数量',
      prop: 'handMicrophoneNum',
      labelWidth:120,
      editDisabled:true,
      type:'number',
      maxRows:4,
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入话筒数量"
      }]
    },
    {
      label: '头戴话筒数量',
      prop: 'headMicrophoneNum',
      labelWidth:120,
      editDisabled:true,
      type:'number',
      maxRows:4,
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入话筒数量"
      }]
    },
    {
      label: '立式话筒数量',
      prop: 'standMicrophoneNum',
      labelWidth:120,
      editDisabled:true,
      type:'number',
      maxRows:2,
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入话筒数量"
      }]
    },
    {
      label: '吊式话筒数量',
      prop: 'hangMicrophoneNum',
      labelWidth:120,
      editDisabled:true,
      type:'number',
      maxRows:1,
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入话筒数量"
      }]
    },
    {
      label: '台式话筒数量',
      prop: 'tableMicrophoneNum',
      labelWidth:120,
      editDisabled:true,
      type:'number',
      maxRows:8,
      minRows:0,
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请输入话筒数量"
      }]
    },
    {
      label: '要求',
      prop: 'requireDescribe',
      labelWidth:120,
      editDisabled:true,
      type:'textarea',
      span:18,
      // rules: [{
      //   required: true,
      //   trigger: 'blur',
      //   message:"请输入要求"
      // }]
    },
    {
      label: '布置会场日期时间等其他需求',
      prop: 'otherRequire',
      labelWidth:120,
      editDisabled:true,
      type:'textarea',
      span:18,
      // rules: [{
      //   required: true,
      //   trigger: 'blur',
      //   message:"请输入要求"
      // }]
    },
	  {
      label: '费用',
      prop: 'cost',
      labelWidth:120,
      editDisabled:true,
    },
	  {
      label: '结束检查记录',
      prop: 'endInspectionRecord',
      labelWidth:120,
      type:'textarea',
      span:18,
      addDisplay:false,

    },
	  {
      label: '赔偿金额(元)',
      prop: 'compensation',
      labelWidth:120,
      addDisplay:false,
      type:'number',
      precision: 2,
      minRows:0,
    },
	  {
      label: '总金额(元)',
      prop: 'totalAmount',
      labelWidth:120,
      addDisplay:false,
      editDisabled:true,
      type:'number',
      precision: 2,
      min:0,
    },
    {
      label: '检查人',
      prop: 'inspectorNo',
      labelWidth:120,
      addDisplay:false,
      type:'select',
      filterable:true,
      dicUrl:'/professional/teacherbase/TeacherBaseList',
      props:{
        label:'realName',
        value:'teacherNo'
      },
    },
	  {
      label: '检查人',
      prop: 'inspector',
      labelWidth:120,
      addDisplay:false,
      editDisplay:false,
      hide:true
    },
	  {
      label: '检查人电话',
      prop: 'inspectorPhone',
      labelWidth:120,
      addDisplay:false,
    },
	  {
      label: '状态',
      prop: 'procStatus',
      addDisplay:false,
      editDisplay:false,
      search:true,
      type:'select',
      dicData:PROC_STATUS,
      props:{
        label:'label',
        value:'value'
      },
    },
	  {
      label: '流程ID',
      prop: 'procInsId',
      hide:true,
      addDisplay:false,
      editDisplay:false,
    },
  ]
}
