/*
 *    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.
 *
 */

import global from "@/components/tools/commondict";

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
	  {
      label: '申请单编号',
      prop: 'purchasingNo',
      search:true
    },
    {
      label: '需求部门',
      prop: 'purchasingDept',
      type:'select',
      addDisplay: false,
      search:true,
      editDisplay: false,
      dicUrl: '/basic/basicdept/getDeptListByLevelTwo',
      props:{
        label:'deptName',
        value:'deptCode'
      }
    },
	  {
      label: '采购内容',
      prop: 'purchasingContent',
      hide:false,
      editDisabled:true,
    },
	  {
      label: '项目类别',
      prop: 'purchasingType',
      type:'select',
      search:true,
      dicData:global.purchasingType,
      props:{
        label:'label',
        value:'value'
      },
    },
	  {
      label: '预算金额',
      prop: 'budget',
      editDisabled:true,
    },
	  {
      label: '品目编码',
      prop: 'itemCode',
      editDisabled:true,
    },

	  {
      label: '类型',
      prop: 'type',
      type:'select',
      search:true,
      dicData:[{label:"内部采购流程",value:"1"},{label:"政府采购流程",value:"2"}],
      props:{
        label:'label',
        value:'value'
      },
    },
	  {
      label: '采购组织形式 1学校集中采购 2部门自行采购',
      prop: 'cgXs'
    },
	  {
      label: '采购途径 1校内自行组织采购 2委托代理机构采购',
      prop: 'cgTj'
    },
	  {
      label: '学校集中采购方式 1竞争性磋商 2竞争性谈判 3框架协议 4 询价 5单一来源采购 6网上商城 7线下比价 8根据供应商履约情况直接采购 9其他',
      prop: 'xxCg'
    },
	  {
      label: '部门内部自行采购方式 1网上商城 2线下询、比价 3询价 4根据供应商履约情况直接采购 5其他',
      prop: 'bmCg'
    },
	  {
      label: '部门审核人',
      prop: 'deptUser'
    },
	  {
      label: '部门审核时间',
      prop: 'deptTime'
    },
	  {
      label: '业务分管人',
      prop: 'ywUser'
    },
	  {
      label: '业务分管时间',
      prop: 'ywTime'
    },
	  {
      label: '后勤管理处意见',
      prop: 'hqUser'
    },
	  {
      label: '后期管理处时间',
      prop: 'hqTime'
    },
	  {
      label: '学院分管人',
      prop: 'fgUser'
    },
	  {
      label: '学院分管时间',
      prop: 'fgTime'
    },
	  {
      label: '政府采购组织形式 1集中采购 2分散采购',
      prop: 'zfXs'
    },
	  {
      label: '代理机构 1委托集中采购机构采购 2委托代理机构采购',
      prop: 'dlJg'
    },
	  {
      label: '采购方式 1公开招标 2邀请招标 3竞争性磋商 4竞争性谈判 5框架协议 6询价 7单一来源采购 8网上商城 9其他',
      prop: 'cgFs'
    },
  ]
}
