/*
 *    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,
  stripe: true,
  menuAlign: 'center',
  menuWidth: 150,
  align: 'center',
  refreshBtn: false,
  showColumn: false,
  viewBtn:false,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  filterBtn: false,
  tree: true,
  page: false,
  dialogClickModal:false,
  size:"small",

  column: [
    {
      label: '品目编码',
      prop: 'code',
      rules: [{
        required: true,
        message: '请输入品目编码',
        trigger: 'blur'
      }]
    },
    {
      label: '父级节点',
      prop: 'parentId',
      hide:true,
      type:'tree',
      dicUrl: '/finance/purchasingcategory/tree',
      props: {
        label: 'name',
        value: 'code'
      },
    },
    {
      label: '品目名称',
      prop: 'name',
      rules: [{
        required: true,
        message: '请输入品目名称',
        trigger: 'blur'
      }]
    },

    {
      label: '备注',
      prop: 'remark',
    },
  ]
}
