/*
 *    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 PROC_INS_STATUS = [{label: '待审核', value: '0'}, {label: '待审批', value: '10'}, {
  label: '通过',
  value: '20'
}, {label: '驳回修改', value: '-10'}, {label: '撤销', value: '-20'}]
export const PAY_STATUS = [{label: '待付讫', value: '0'}, {label: '已付讫', value: '1'}]
// export const TYPE_DICT = [{label: '耗材费', value: '耗材费'}, {label: '餐费', value: '餐费'}, {label: '租赁费', value: '租赁费'},
//   {label: '广告费', value: '广告费'}, {label: '差旅费', value: '差旅费'}, {label: '办公费', value: '办公费'},
//   {label: '技术咨询费', value: '技术咨询费'}, {label: '其他交通费', value: '其他交通费'}, {label: '培训费', value: '培训费'}, {label: '兼课金', value: '兼课金'},
//   {label: '会议费', value: '会议费'}, {label: '设备购置费', value: '设备购置费'}, {label: '校内兼课金（劳务费)', value: '校内兼课金（劳务费)'}, {label: '校外劳务费', value: '校外劳务费'}, {label: '其他', value: '其他'}]
export const NO_PAY_STATUS = [{label: '待付讫', value: '0'}]
export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  selection: true,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '报销部门',
      prop: 'deptCode',
      search: true,
      hide: true,
      addDisplay: false,
      editDisplay: false,
      type: 'select',
      dicUrl: '/basic/basicdept/getDeptListByLevelTwo',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
    },
    {
      label: '报销单号',
      prop: 'applyNo',
      search: true,
      slot:true,
      width:400
    },
    {
      label: '报销部门',
      prop: 'deptName',
      hide: true,
    },
    {
      label: '经办人',
      prop: 'createrName',
      hide: true,
    },
    {
      label: '用途',
      prop: 'reason',
      hide: true,
      search: true
    },
    {
      label: '类型',
      prop: 'type',
      search: true,
      type: 'select',
      dicUrl: '/finance/recruitreimbursementtype/list',
      props: {
        label: 'label',
        value: 'value'
      },
      hide: true,
    },
    {
      label: '单据状态',
      prop: 'procInsStatus',
      slot: true,
      search: true,
      type: 'select',
      dicData: PROC_INS_STATUS,
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '开始日期',
      prop: 'startTime',
      type: 'date',
      search: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      hide: true,
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: '结束日期',
      prop: 'endTime',
      type: 'date',
      search: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      hide: true,
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: '报销日期',
      prop: 'createTime',
      hide: true,
    },
    {
      label: '报销科目',
      prop: 'projectNo',
      slot:true,
      hide: true,
      search: true

    },
    {
      label: '金额',
      prop: 'money',
      search: true,
      hide: true,
    },
    {
      label: '付款状态',
      prop: 'payStatus',
      search: true,
      type: 'select',
      dicData: PAY_STATUS,
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '支付单号',
      prop: 'consolidatedPayNo',
      addDisplay: false,
      editDisplay: false,
      search: true
    },
    {
      label: '同步用友',
      prop: 'isSynchronYy',
      addDisplay: false,
      editDisplay: false,
      type: 'select',
      search: true,
      dicUrl: '/admin/dict/item/type/yes_no',
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '财政支付类型',
      prop: 'czType',
      addDisplay: false,
      editDisplay: false,
      type: 'select',
      search: true,
      dicUrl: '/admin/dict/item/type/cz_type',
      props: {
        label: 'label',
        value: 'label'
      },
    },
    {
      label: '付讫人',
      prop: 'payPeople',
      type: 'select',
      search: false,
      props: {
        label: 'label',
        value: 'label'
      },
    },
    {
      label: '付讫时间',
      prop: 'payTime',
      type: 'date',
      search: false,

    },
    {
      label: '付讫时间(开始)',
      prop: 'payTimeStr1',
      type: 'date',
      search: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      hide: true,
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: '付讫时间(结束)',
      prop: 'payTimeStr2',
      type: 'date',
      search: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      hide: true,
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: '凭证号',
      prop: 'pzh',
    },



  ]
}
export const tableWFQOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  selection: true,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [

    {
      label: '合并单号',
      prop: 'consolidatedPayNo',
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: '报销单号',
      prop: 'applyNo',
    },
    {
      label: '报销科目',
      prop: 'projectNo',
    },
    {
      label: '金额',
      prop: 'money'
    },
    {
      label: '笔数',
      prop: 'projectTotal'
    }
  ]
}
export const paymentAffirm = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '报销部门',
      prop: 'deptCode',
      hide: true,
      addDisplay: false,
      editDisplay: false,
      type: 'select',
      dicUrl: '/basic/basicdept/getDeptListByLevelTwo',
      props: {
        label: 'deptName',
        value: 'deptCode'
      },
    },
    {
      label: '报销单号',
      prop: 'applyNo',
      width:180
    },
    {
      label: '报销部门',
      prop: 'deptName'
    },
    {
      label: '经办人',
      prop: 'createrName'
    },
    {
      label: '用途',
      prop: 'reason',
      width: 300
    },
    {
      label: '类型',
      prop: 'type',
    },
    {
      label: '单据状态',
      prop: 'procInsStatus',
      slot: true,
      type: 'select',
      dicData: PROC_INS_STATUS,
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '报销日期',
      prop: 'createTime',
    },
    {
      label: '报销科目',
      prop: 'projectNo',
    },
    {
      label: '金额',
      prop: 'money'
    },
    {
      label: '付讫状态',
      prop: 'payStatus',
      type: 'select',
      dicData: PAY_STATUS,
      props: {
        label: 'label',
        value: 'value'
      },
    },
  ]
}
export const tableHBOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  selection: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '报销单号',
      prop: 'applyNo',
    },
    {
      label: '报销部门',
      prop: 'deptName',
    },
    {
      label: '经办人',
      prop: 'createrName'
    },
    {
      label: '用途',
      prop: 'reason',
    },
    {
      label: '类型',
      prop: 'type',
    },
    {
      label: '单据状态',
      prop: 'procInsStatus',
      slot: true,
      type: 'select',
      dicData: PROC_INS_STATUS,
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '开始日期',
      prop: 'startTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      hide: true,
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: '结束日期',
      prop: 'endTime',
      type: 'date',
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      hide: true,
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: '报销日期',
      prop: 'createTime',
    },
    {
      label: '报销科目',
      prop: 'projectNo',
    },
    {
      label: '金额',
      prop: 'money'
    },
    {
      label: '付款状态',
      prop: 'payStatus',
      type: 'select',
      dicData: PAY_STATUS,
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '支付单号',
      prop: 'consolidatedPayNo',
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: '同步用友',
      prop: 'isSynchronYy',
      addDisplay: false,
      editDisplay: false,
      type: 'select',
      dicUrl: '/admin/dict/item/type/yes_no',
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '财政支付类型',
      prop: 'czType',
      addDisplay: false,
      editDisplay: false,
      type: 'select',
      dicUrl: '/admin/dict/item/type/cz_type',
      props: {
        label: 'label',
        value: 'label'
      },
    },
  ]
}
export const tableHBListOption = {
  border: true,
  index: true,
  columnBtn: false,
  refreshBtn: false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  selection: false,
  showSummary: true,
  sumColumnList: [
    {
      name: 'money',
      type: 'sum'
    },
  ],
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '报销单号',
      prop: 'applyNo',
    },
    {
      label: '报销部门',
      prop: 'deptName'
    },
    {
      label: '经办人',
      prop: 'createrName'
    },
    {
      label: '用途',
      prop: 'reason',
    },
    {
      label: '类型',
      prop: 'type',
    },
    {
      label: '单据状态',
      prop: 'procInsStatus',
      slot: true,
      type: 'select',
      dicData: PROC_INS_STATUS,
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '报销日期',
      prop: 'createTime',
    },
    {
      label: '报销科目',
      prop: 'projectNo',
    },
    {
      label: '金额',
      prop: 'money'
    },
    {
      label: '付款状态',
      prop: 'payStatus',
      type: 'select',
      dicData: PAY_STATUS,
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '支付单号',
      prop: 'consolidatedPayNo',
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: '同步用友',
      prop: 'isSynchronYy',
      addDisplay: false,
      editDisplay: false,
      type: 'select',
      dicUrl: '/admin/dict/item/type/yes_no',
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '财政支付类型',
      prop: 'czType',
      addDisplay: false,
      editDisplay: false,
      type: 'select',
      dicUrl: '/admin/dict/item/type/cz_type',
      props: {
        label: 'label',
        value: 'label'
      },
    },
  ]
}


export const tableHBListOption1 = {
  border: true,
  index: true,
  columnBtn: false,
  refreshBtn: false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  selection: false,
  showSummary: true,
  sumColumnList: [
    {
      name: 'money',
      type: 'sum'
    },
  ],
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '报销单号',
      prop: 'applyNo',
    },
    {
      label: '报销部门',
      prop: 'deptName'
    },
    {
      label: '经办人',
      prop: 'createrName'
    },
    {
      label: '用途',
      prop: 'reason',
    },
    {
      label: '类型',
      prop: 'type',
    },
    {
      label: '单据状态',
      prop: 'procInsStatus',
      slot: true,
      type: 'select',
      dicData: PROC_INS_STATUS,
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '报销日期',
      prop: 'createTime',
    },
    {
      label: '报销科目',
      prop: 'projectNo',
    },
    {
      label: '金额',
      prop: 'money'
    },
    {
      label: '付款状态',
      prop: 'payStatus',
      type: 'select',
      dicData: PAY_STATUS,
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '支付单号',
      prop: 'consolidatedPayNo',
      addDisplay: false,
      editDisplay: false,
    },
    {
      label: '同步用友',
      prop: 'isSynchronYy',
      addDisplay: false,
      editDisplay: false,
      type: 'select',
      dicUrl: '/admin/dict/item/type/yes_no',
      props: {
        label: 'label',
        value: 'value'
      },
    },
    {
      label: '财政支付类型',
      prop: 'czType',
      addDisplay: false,
      editDisplay: false,
      type: 'select',
      dicUrl: '/admin/dict/item/type/cz_type',
      props: {
        label: 'label',
        value: 'label'
      },
    },
  ]
}

