/*
 *    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 {YES_OR_NO} from "../aj/scjajclassinfo";

export const PAY_STATE=[
  {
    label:'待支付',
    value:-1
  },
  {
    label:'已支付',
    value:1
  },
  {
    label:'支付失败',
    value:2
  },
  {
    label:'已取消',
    value:3
  },
  {
    label:'已超时',
    value:4
  },
]
export const INVOICE_STATUS=[
  {
    label:'待开票',
    value:'0'
  },
  {
    label:'开票中',
    value:'1'
  },
  {
    label:'开票成功',
    value:'2'
  },
  {
    label:'开票异常',
    value:'3'
  },
  ]
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: 'createBy'
    // },
	  // {
    //   label: '创建时间',
    //   prop: 'createTime'
    // },
	  // {
    //   label: '更新人',
    //   prop: 'updateBy'
    // },
	  // {
    //   label: '更新时间',
    //   prop: 'updateTime'
    // },
	  // {
    //   label: '删除标记',
    //   prop: 'delFlag'
    // },
	  // {
    //   label: '租户ID',
    //   prop: 'tenantId'
    // },
	  // {
    //   label: '备注',
    //   prop: 'remarks'
    // },
	  // {
    //   label: '外键id',
    //   prop: 'trainId'
    // },
	  // {
    //   label: '状态 0待确认 1已确认 2回调异常',
    //   prop: 'status'
    // },
	  // {
    //   label: '开票状态 0待开票 1开票中 2开票成功 3开票异常 ',
    //   prop: 'invoiceStatus'
    // },
	  // {
    //   label: '开票备注',
    //   prop: 'invoiceRemarks'
    // },
	  // {
    //   label: '开票成功下载地址',
    //   prop: 'pdfUrl'
    // },
	  // {
    //   label: '信息发送状态 0待发送 1发送中 2发送成功',
    //   prop: 'sendMessageStatus'
    // },
	  // {
    //   label: '开票失败次数',
    //   prop: 'invoiceFailNum'
    // },
	  // {
    //   label: '信息发送失败次数',
    //   prop: 'sendMessageFailNum'
    // },
    {
      label:'开始时间',
      prop:'startTime',
      search:true,
      hide:true,
      addDisplay:false,
      editDisplay:false,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    },
    {
      label:'结束时间',
      prop:'endTime',
      search:true,
      hide:true,
      addDisplay:false,
      editDisplay:false,
      type:'date',
      format:'yyyy-MM-dd',
      valueFormat: 'yyyy-MM-dd',
    },
    {
      label: '姓名',
      prop: 'name',
      addDisplay:false,
      editDisabled:true,
    },
    {
      label: '电话',
      prop: 'phone',
      search:true,
      addDisplay:false,
      editDisabled:true,
    },
    {
      label: '单号',
      prop: 'trainId',
      search:true,
      addDisplay:false,
      editDisabled:true,
      // hide:true
    },
    {
      label: '开票状态',
      prop: 'invoiceStatus',
      type:'select',
      dicData:INVOICE_STATUS,
      props:{
        label:'label',
        value:'value'
      },
      hide:true
    },
    {
      label: '总金额',
      prop: 'amount',
      addDisplay:false,
      editDisplay:false,
    },
    {
      label: '回调时间',
      prop: 'createTime',
      addDisplay:false,
      editDisplay:false,
    },
    {
      label: '支付状态',
      prop: 'payState',
      addDisplay:false,
      editDisplay:false,
      type:'select',
      dicData:PAY_STATE,
      props:{
        label:'label',
        value:'value'
      },
    },
  ]
}
