/*
 *    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: '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: 'buildNo',
      labelWidth:120,
      search:true,
      formslot:true,
      type:"select",
      dicUrl:'/stuwork/dormbuilding/list',
      props:{
        label:'buildingNo',
        value:'buildingNo'
      },
      rules: [{
        required: true,
        message: '请选择楼号',
        trigger: 'blur'
      }]
    },
	  {
      label: '宿舍号',
      prop: 'roomNo',
      search:true,
      labelWidth:120,
      formslot:true,
      type:"select",
      searchFilterable:true,
      filterable:true,
      dicUrl:'/stuwork/dormroom/list',
      props:{
        label:'roomNo',
        value:'roomNo'
      },
      rules: [{
        required: true,
        message: '请选择宿舍号',
        trigger: 'blur'
      }]
    },
	  {
      label: '几人间',
      prop: 'bedNum',
      labelWidth:120,
      formslot:true,
      rules: [{
        required: true,
        message: '请选择几人间',
        trigger: 'blur'
      }]
    },
	  {
      label: '已住人数',
      prop: 'liveNum',
      labelWidth:120,
      formslot:true,
      rules: [{
        required: true,
        message: '请填写已住人数',
        trigger: 'blur'
      }]
    },
	  {
      label: '班号',
      prop: 'classNo',
      hide:true,
      labelWidth:120,
    },
	  {
      label: '班主任工号',
      prop: 'teacherNo',
      hide:true,
      labelWidth:120,
    },
	  {
      label: '班主任姓名',
      prop: 'teacherRealName',
      hide:true,
      labelWidth:120,
    },
	  {
      label: '校园补贴',
      prop: 'oddbMoney',
      labelWidth:120,
      type:'number',
      minRows:0,
      precision:2,
      rules: [{
        required: true,
        message: '请填写校园补贴',
        trigger: 'blur'
      }]
    },
	  {
      label: '充值金额',
      prop: 'rechargeMoney',
      addDisplay:false,
      editDisplay:false
    },
	  {
      label: '消费金额',
      prop: 'costMoney',
      labelWidth:120,
      type:'number',
      // formslot:true,
      minRows:0,
      precision:2,
      rules: [{
        required: true,
        message: '请填写消费金额',
        trigger: 'blur'
      }]
    },
    {
      label: '可用余额',
      prop: 'effectiveMoney',
      sortable:true,
      // search:true,
      type:'number',
      minRows:0,
      precision:2,
      addDisplay:false,
      editDisplay:false,
    },
  ]
}
