/*
 *    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 tableIndexOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '主键',
      prop: 'id',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
    {
      label: '出库时间',
      prop: 'createTime'
    },
    {
      label: '出库单号',
      prop: 'outboundNo',
    },
    {
      label: '出库部门名称',
      prop: 'deptName'
    },

    {
      label: '总金额',
      prop: 'totalPrice'
    },

    {
      label: '出库数量',
      prop: 'outboundNum'
    },
    {
      label: '进度',
      prop: 'schedule',
      formslot:true,
      slot:true,
    },
    {
      label: '是否审核',
      prop: 'isExamine',
      type:'select',
      dicData:[
        {
          label:'待完善',
          value:"0"
        },{
          label:'通过',
          value:"1"
        },{
          label:'未通过',
          value:"2"
        },{
          label:'已完善,待审核',
          value:"3"
        }
      ]
    },
    {
      label: '审核意见',
      prop: 'examineValue'
    },{
      label: '备注',
      prop: 'remarks'
    },
    {
      label: '出库部门',
      prop: 'outDeptName',
      hide: true,
      addDisplay: false,
      editDisplay: false,
      type:'select',
      dicUrl: '/basic/basicdept/getDeptListByLevelTwo',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
    },
    {
      label: '开始时间',
      prop: 'beginTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd 00:00:00',
      editDisplay: false,
      addDisplay: false,
      hide: true
    },{
      label: '结束时间',
      prop: 'endTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd 23:59:59',
      editDisplay: false,
      addDisplay: false,
      hide: true
    }
  ]
}
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',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
    {
      label: '出库时间',
      prop: 'createTime'
    },
	  {
      label: '出库单号',
      prop: 'outboundNo',
      search:true
    },
    {
      label: '出库部门名称',
      prop: 'deptName'
    },

	  {
      label: '总金额',
      prop: 'totalPrice'
    },

	  {
      label: '出库数量',
      prop: 'outboundNum'
    },
    {
      label: '进度',
      prop: 'schedule',
      formslot:true,
      slot:true,
    },
    {
      label: '是否审核',
      prop: 'isExamine',
      type:'select',
      search:true,
      dicData:[
        {
          label:'待完善',
          value:"0"
        },{
          label:'通过',
          value:"1"
        },{
          label:'未通过',
          value:"2"
        },{
          label:'已完善,待后勤管理员审核',
          value:"3"
        },{
          label:'已完善,待资产负责人审核',
          value:"4"
        }
      ]
    },
    {
      label: '审核意见',
      prop: 'examineValue'
    },{
      label: '备注',
      prop: 'remarks'
    },
    {
      label: '出库部门',
      prop: 'outDeptName',
      search:true,
      hide: true,
      addDisplay: false,
      editDisplay: false,
      filterable:true,
      searchFilterable:true,
      type:'select',
      dicUrl: '/basic/basicdept/getDeptListByLevelTwo',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
    },
    {
      label: '开始时间',
      prop: 'beginTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd 00:00:00',
      editDisplay: false,
      addDisplay: false,
      search:true,
      hide: true
    },{
      label: '结束时间',
      prop: 'endTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd 23:59:59',
      editDisplay: false,
      addDisplay: false,
      search:true,
      hide: true
    }
  ]
}


export const tableDictItemOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  refreshBtn: false,
  showColumnBtn: false,
  searchSize: 'mini',
  dic: [],
  column: [
    {
      label: '主键',
      prop: 'id',
      hide: true,
      addDisplay:false,
      editDisabled:true,
      editDisplay:false,
      visdiplay:false
    },
    {
      label: '入库单号',
      prop: 'inboundNo'
    },
    {
      label: '出库单号',
      prop: 'outboundNo'
    } ,
    {
      label: '资产名称',
      prop: 'goodsName'
    },
    {
      label: '类别编码',
      prop: 'codeEnName'
    },
    {
      label: '开始编码',
      prop: 'codeStart'
    },
    {
      label: '结束编码',
      prop: 'codeEnd'
    },

    {
      label: '规格|型号',
      prop: 'spec'
    },
    {
      label: '面积',
      prop: 'area'
    },
    {
      label: '单位',
      prop: 'unit'
    },
    {
      label: '单价',
      prop: 'price'
    },
    {
      label: '出库数量',
      prop: 'outboundNum'
    },
    {
      label: '总金额',
      prop: 'totalPrice'
    },
    {
      label: '出库部门编码',
      prop: 'deptCode'
    },
    {
      label: '出库部门名称',
      prop: 'deptName'
    },
    {
      label: '备注',
      prop: 'remarks'
    },{
      label: '出库部门',
      prop: 'outDeptName',
      type:'select',
      hide: true,
      addDisplay: false,
      editDisplay: false,
      //dicUrl: '/asset/assetdept/list',
      dicUrl: '/basic/basicdept/getDeptList?teachFlag=1',
      props:{
        label:'deptName',
        value:'deptCode'
      },
    },
    {
      label: '最小数量',
      prop: 'minNum',
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    {
      label: '最大数量',
      prop: 'maxNum',
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    {
      label: '最小单价',
      prop: 'minPrice',
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    {
      label: '最大单价',
      prop: 'maxPrice',
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    {
      label: '最小面积',
      prop: 'minArea',
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    {
      label: '最大面积',
      prop: 'maxArea',
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    {
      label: '最小金额',
      prop: 'minTotal',
      addDisplay: false,
      editDisplay: false,
      hide: true
    },
    {
      label: '最大金额',
      prop: 'maxTotal',
      addDisplay: false,
      editDisplay: false,
      hide: true
    }
    ,{
      label: '开始时间',
      prop: 'beginTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      editDisplay: false,
      addDisplay: false,
      hide: true
    },{
      label: '结束时间',
      prop: 'endTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      editDisplay: false,
      addDisplay: false,
      hide: true
    }
  ]
}
