/*
 *    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 godownType=[
  {value:'0',label:"本地"},
  {value:'1',label:"其他"},
]
export const inventoryType=[
  {value:'0',label:"采购入库"},
  {value:'1',label:"销售退货"},
  {value:'2',label:"其他入库"},
]
export const YES_OR_N0=[
  {value:'0',label:"否"},
  {value:'1',label:"是"},
]
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
	  {
      label: '入库单号',
      labelWidth:120,
      addDisplay: false,
      editDisplay: false,
      prop: 'inventoryNo'
    },
    {
      label: '入库日期',
      labelWidth:120,
      prop: 'inventoryTime',
      type: "date",
      format: "yyyy-MM-dd",
      valueFormat: "yyyy-MM-dd",
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请填写入库日期"
      }]
    },
	  {
      label: '仓库位置',
      prop: 'godownType',
      labelWidth:120,
      type:'select',
      dicData:godownType,
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择仓库位置"
      }]
    },

    {
      label:'入库开始时间',
      prop:'beginTime',
      hide:true,
      search: true,
      addDisplay:false,
      editDisplay:false,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    },
    {
      label:'入库结束时间',
      prop:'endTime',
      hide:true,
      search: true,
      addDisplay:false,
      editDisplay:false,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    },
	  {
      label: '入库类型',
      labelWidth:120,
      type:'select',
      prop: 'inventoryType',
      dicData:inventoryType,
      props:{
        label:'label',
        value:'value'
      },
      rules: [{
        required: true,
        trigger: 'blur',
        message:"请选择入库类型"
      }]
    },
	  {
      label: '入库方账号',
      prop: 'inventoryUserNo',
      addDisplay: false,
      editDisplay: false,
      labelWidth:120,
      search:true
    },
	  {
      label: '入库方名称',
      labelWidth:120,
      addDisplay: false,
      editDisplay: false,
      prop: 'inventoryUserName',
      type:"select",
      dicUrl:'/professional/teacherbase/TeacherBaseList',
      props:{
        label:'realName',
        value:'teacherNo'
      },
    },
	  {
      label: '入库总金额',
      labelWidth:120,
      addDisplay: false,
      editDisplay: false,
      prop: 'inventoryMoney',
    },
	  {
      label: '班级',
      labelWidth:120,
      prop: 'classCode',
      addDisplay:false,
      editDisplay:false,
    },
	  {
      label: '专业',
      labelWidth:120,
      prop: 'majorCode',
      addDisplay:false,
      editDisplay:false,
    },

	  {
      label: '供应商',
      labelWidth:120,
      prop: 'supplierName',
      hide:true
    },
	  {
      label: '联系人',
      labelWidth:120,
      prop: 'contactsName',
      hide:true
    },
	  {
      label: '联系电话',
      labelWidth:120,
      prop: 'contactsPhone',
      hide:true
    },
    {
      label: '生成出库单',
      labelWidth:120,
      prop: 'isTbOut',
      type: "switch",
      dicData:YES_OR_N0,
      props:{
        label:'label',
        value:'value'
      },
      hide:true
    },
    {
      label: '实训耗材',
      labelWidth:120,
      prop: 'isHc',
      type: "switch",
      dicData:YES_OR_N0,
      props:{
        label:'label',
        value:'value'
      },
      hide:true
    },
    {
      label: '入库地址',
      labelWidth:120,
      span:24,
      prop: 'inventoryAddress',
      hide:true
    },
	  {
      label: '备注',
      labelWidth:120,
      span:24,
      type:'textarea',
      prop: 'remark'
    },
	  {
      label: '经办人',
      labelWidth:120,
      prop: 'handledUser',
      addDisplay: false,
      editDisplay: false,
      hide:true
    },

	  {
      label: '财务确认存货',
      labelWidth:120,
      prop: 'financeSure',
      addDisplay: false,
      editDisplay: false,
      hide:true
    },
	  {
      label: '财务确认人员',
      labelWidth:120,
      prop: 'financeUser',
      addDisplay: false,
      editDisplay: false,
      hide:true
    },
  ]
}
