/*
 *    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: 'parentId',
      type:'select',
      dicUrl: '/finance/financetemporarycateone/list',
      props: {
        label: 'title',
        value: 'id'
      },
      rules: [{
        required: true,
        message: '请选择一级类目',
        trigger: 'blur'
      }],
      search:true
    },
	  {
      label: '名称',
      prop: 'title',
      rules: [{
        required: true,
        message: '请输入名称',
        trigger: 'blur'
      }],
      search:true
    },
	  {
      label: '代码',
      prop: 'code',
      rules: [{
        required: true,
        message: '请输入代码',
        trigger: 'blur'
      }],
    },
	  {
      label: '类型',
      prop: 'type',
      type:'select',
      dicData:[{label:"统一支出",value:"0"},{label:"分项支出",value:"1"}],
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        message: '请选择类型',
        trigger: 'blur'
      }],

    },
    {
      label: '是否允许报销',
      prop: 'isBx',
      labelWidth: 160,
      span: 24,
      type:'select',
      dicData:[{label:"否",value:"0"},{label:"是",value:"1"}],
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        message: '请选择是否允许报销',
        trigger: 'blur'
      }],

    },
    {
      label: '是否允许上传文件',
      prop: 'isUpdate',
      labelWidth: 160,
      span: 24,
      type:'select',
      dicData:[{label:"否",value:"0"},{label:"是",value:"1"}],
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        message: '请选择是否允许上传文件',
        trigger: 'blur'
      }],

    },
  ]
}
