/*
 *    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,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '主键',
      prop: 'id'
    },
    {
      label: '名称',
      prop: 'name'
    },
    {
      label: '手机号',
      prop: 'phone'
    },
    {
      label: '金额',
      prop: 'money'
    },
    {
      label: '数量',
      prop: 'num'
    },
    {
      label: '项目代码',
      prop: 'projectNo'
    },
    {
      label: '项目名称',
      prop: 'projectName'
    },
    {
      label: '支付二维码',
      prop: 'payQrcode',
      hide:true
    },
    {
      label: '支付状态',
      prop: "payState",
      type: "select",
      dicData: [{
        label: '待支付',
        value: -1
      }, {
        label: '已支付',
        value: 1
      }, {
        label: '支付失败',
        value: 2
      }, {
        label: '已取消',
        value: 3
      }, {
        label: '已超时',
        value: 4
      }]
    },{
      label: '支付时间',
      prop: 'createTime',
    },{
      label: '更新时间',
      prop: 'updateTime',
    }
  ]
}
export const tableOtherOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  dic: [],
  column: [
    {
      label: '开始时间',
      prop: 'beginTime',
      type: 'date',
      search: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      editDisplay: false,
      addDisplay: false,
      hide: true
    },{
      label: '结束时间',
      prop: 'endTime',
      type: 'date',
      search: true,
      format: 'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
      editDisplay: false,
      addDisplay: false,
      hide: true
    },
   {
      width:100,
      label: '培训项目',
      prop: 'tId',
      type:'select',
      searchFilterable:true,
      dicUrl:'/train/traincharge/getAllList',
      props:{
        label:'projectName',
        value:'projectNo'
      },
      search:true,
      hide:true
    },
    {
      label: '项目名称',
      prop: 'tname'
    },
    {
      label: '报名人',
      prop: 'name',
      search:true
    },
    {
      label: '手机号',
      prop: 'phone',
      search:true
    },
    {
      label: '金额',
      prop: 'money'
    },
    {
      label: '财政缴款码',
      prop: 'payNum'
    },
    {
      label: '财政业务码',
      prop: 'businessId'
    },
    {
      label: '推送状态',
      prop: 'pushState'
    },
    {
      label: '推送日志',
      prop: 'remarks',
      hide: true
    },
    {
      label: '支付二维码',
      prop: 'payCode',
      hide:true
    },
    {
      label: '支付状态',
      prop: "stateValue",
    }
    ,{
      label: '支付状态',
      prop: "state",
      type: "select",
      dicData: [{
        label: '待付款',
        value: 0
      }, {
        label: '已付款',
        value: 1
      }],
      hide: true,
      search: true
    },{
      label: '报名时间',
      prop: 'createTime',
    },{
      label: '更新时间',
      prop: 'updateTime',
    }
  ]
}
