import {isInvalid} from "@/const/crud/asset/assets/assetassets";

export const procInsStatusList=[
  {label:"待提交",value:"0"},
  {label:"待部门审核",value:"1"},
  {label:"部门审核驳回",value:"2"},
  {label:"待业务分管处审核",value:"3"},
  {label:"业务分管处驳回",value:"4"},
  {label:"待财务审核",value:"5"},
  {label:"财务审核驳回",value:"6"},
  {label:"待部门负责人审批",value:"7"},
  {label:"部门负责人驳回",value:"8"},
  {label:"待分管院领导审批",value:"9"},
  {label:"分管院领导驳回",value:"10"},
  {label:"待校党委审批",value:"11"},
  {label:"校党委驳回",value:"12"},
  {label:"审核通过",value:"13"},
]
export const procInsWanderStatusList=[
  {label:"待采购处确认",value:"-1"},
  {label:"待部门完善信息",value:"0"},
  {label:"待部门审核",value:"1"},
  {label:"部门审核驳回",value:"2"},
  {label:"待业务分管处审核",value:"3"},
  {label:"业务分管处驳回",value:"4"},
  {label:"待财务审核",value:"5"},
  {label:"财务审核驳回",value:"6"},
  {label:"待部门负责人审批",value:"7"},
  {label:"部门负责人驳回",value:"8"},
  {label:"待分管院领导审批",value:"9"},
  {label:"分管院领导驳回",value:"10"},
  {label:"待校党委审批",value:"11"},
  {label:"校党委驳回",value:"12"},
  {label:"待后勤负责人审批",value:"13"},
  {label:"后勤负责人驳回",value:"14"},
  {label:"审核通过",value:"15"},
]


export const tableOption = {
  border: true,
  index: true,
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  menuBtn: true,
  editBtn: false,
  delBtn: false,
  addBtn: false,
  filterBtn:false,
  column: [
    {
      label: 'ID',
      prop: 'taskId',
      hide:true,
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '任务名称',
      prop: 'taskName',
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '备注',
      prop: 'remark',
      type:'select',
      dicData:procInsStatusList,
      props:{
        label:'label',
        value:'value'
      },
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '提交时间',
      prop: 'time',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm'
    }
  ]
}

export const tableOptionOther = {
  border: true,
  index: true,
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  menuBtn: true,
  editBtn: false,
  delBtn: false,
  addBtn: false,
  filterBtn:false,
  column: [
    {
      label: 'ID',
      prop: 'taskId',
      hide:true,
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '部门',
      prop: 'purchasingDept',
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '采购内容',
      prop: 'purchasingContent',
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '采购需求及依据',
      prop: 'purchasingDemand',
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '采购金额',
      prop: 'budget',
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '任务状态',
      prop: 'taskName',
      editDisabled: true,
      hide:true,
      addDisplay: false
    },
    {
      label: '流程状态',
      prop: 'remark',
      type:'select',
      dicData:procInsStatusList,
      props:{
        label:'label',
        value:'value'
      },
      editDisabled: true,
      addDisplay: false
    }
  ]
}

export const formOption = {
  submitBtn: false,
  emptytBtn: false,
  row: true,
  span: 12,
  column: [
    {
      label: "任务编号",
      prop: "taskId",
      disabled: true
    },
    {
      label: "任务名称",
      prop: "taskName",
      disabled: true
    },
    {
      label: "申请人",
      prop: "createBy",
      disabled: true
    },
    {
      label: "申请时间",
      prop: "time",
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm',
      disabled: true
    },
    {
      label: '批注',
      prop: 'comment',
      type: 'textarea',
      minRows: 2,
      row: true,
      span: 24,
      rules: [{
        required: true,
        message: "请输入备注",
        trigger: "blur"
      }]
    }
  ]
}

export const taskOption = {
  menu: false,
  page: false,
  addBtn: false,
  align: 'center',
  menuAlign: 'center',
  column: [
    {
      label: 'id',
      prop: 'id',
      hide: true
    },
    {
      label: '用户',
      prop: 'userId'
    },
    {
      label: '批注',
      prop: 'fullMessage'
    }, {
      label: "操作时间",
      prop: "time",
      type: "datetime",
      format: "yyyy-MM-dd hh:mm:ss",
      valueFormat: "yyyy-MM-dd hh:mm:ss",
    }
  ]
}

export const tableWanderOption = {
  border: true,
  index: true,
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  menuBtn: true,
  editBtn: false,
  delBtn: false,
  addBtn: false,
  filterBtn:false,
  column: [
    {
      label: 'ID',
      prop: 'taskId',
      hide:true,
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '任务名称',
      prop: 'taskName',
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '备注',
      prop: 'remark',
      type:'select',
      dicData:procInsWanderStatusList,
      props:{
        label:'label',
        value:'value'
      },
      editDisabled: true,
      addDisplay: false
    },
    {
      label: '提交时间',
      prop: 'time',
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm'
    }
  ]
}
