/*
 *    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,
  column: [
	  {
      label: '订单号',
      prop: 'orderNum',
      addDisplay:false,
      editDisabled:true
    },
    {
      label: '企业名',
      prop: 'companyName',
      editDisabled: true
    },
	  // {
    //   label: '班级',
    //   prop: 'className',
    //   editDisabled: true
    // },
	  // {
    //   label: '单价',
    //   prop: 'price',
    //   editDisabled: true
    // },
    {
      label: '订单类目',
      prop: 'orderCate',
      type:'select',
      dicUrl: '/admin/dict/item/type/order_cate',
      props:{
        label:'label',
        value:'value'
      },
      editDisabled: true
    },
	  {
      label: '总价',
      prop: 'price',
      editDisabled: true
    },
    {
      label: '到账金额',
      prop: 'realPrice',
      editDisabled: true
    },

	  // {
    //   label: '支付类别',
    //   prop: 'payType',
    //   type:'select',
    //   dicUrl: '/admin/dict/item/type/pay_type',
    //   props:{
    //     label:'label',
    //     value:'value'
    //   },
    //   editDisabled: true
    // },
	  {
      label: '支付时间',
      prop: 'payTime',
      editDisabled: true
    },
	  {
      label: '微信单号',
      prop: 'orderOutTradeNo',
      editDisabled: true
    },
	  {
      label: '订单状态 ',
      prop: 'status',
      type:'select',
      search:true,
      dicUrl: '/admin/dict/item/type/order_status',
      props:{
        label:'label',
        value:'value'
      },
      editDisabled: true
    },
    {
      label: '创建时间',
      prop: 'createTime',
      type:'date',
      format:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      editDisabled: true
    },
	  {
      label: '备注',
      type:'textarea',
      row:true,
      span:24,
      prop: 'remark'
    },
  ]
}

// export const tableOrderOption = {
//   border: true,
//   index: true,
//   indexLabel: '序号',
//   stripe: true,
//   menuAlign: 'center',
//   align: 'center',
//   editBtn: false,
//   delBtn: false,
//   addBtn: false,
//   column: [
//     {
//       label: '用户名',
//       prop: 'personName',
//       addDisplay:false,
//       editDisabled:true
//     },
//     {
//       label: '电话',
//       prop: 'personPhone',
//       editDisabled: true
//     },
//     {
//       label: '性别',
//       prop: 'sex',
//       type: 'select',
//       dicUrl: '/admin/dict/item/type/sexy',
//       props:{
//         label:'label',
//         value:'value'
//       },
//     },
//     {
//       label: '身份证号',
//       prop: 'personId',
//       editDisabled: true
//     },
//     {
//       label: '学历',
//       prop: 'education',
//       editDisabled: true
//     },
//     {
//       label: '职称',
//       prop: 'proName',
//       editDisabled: true
//     },
//     {
//       label: '培训班级名称',
//       prop: 'className',
//       editDisabled: true
//     },
//     {
//       label: '单位类型(小类)',
//       prop: 'companySmalltype',
//       type: 'select',
//       dicUrl: '/aj/scjajcompanytypesec/getAllSecTypeList',
//       props:{
//         label:'typeName',
//         value:'id'
//       },
//       editDisabled: true,
//     },
//     {
//       label: '费用',
//       prop: 'price',
//       editDisabled: true
//     },
//
//   ]
// }


export const tableOrderOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  editBtn: false,
  delBtn: false,
  addBtn: false,
  column: [
    {
      label: '订单号',
      prop: 'orderNum',
      addDisplay:false,
      editDisabled:true
    },
    {
      label: '企业名',
      prop: 'companyName',
      editDisabled: true
    },
    {
      label: '订单类目',
      prop: 'orderCate',
      type:'select',
      dicUrl: '/admin/dict/item/type/order_cate',
      props:{
        label:'label',
        value:'value'
      },
      editDisabled: true
    },
    {
      label: '总价',
      prop: 'price',
      editDisabled: true
    },
    {
      label: '到账金额',
      prop: 'realPrice',
      editDisabled: true
    },
    {
      label: '支付时间',
      prop: 'payTime',
      editDisabled: true
    },
    {
      label: '微信单号',
      prop: 'orderOutTradeNo',
      editDisabled: true
    },
    {
      label: '订单状态 ',
      prop: 'status',
      type:'select',
      search:true,
      dicUrl: '/admin/dict/item/type/order_status',
      props:{
        label:'label',
        value:'value'
      },
      editDisabled: true
    },
    {
      label: '创建时间',
      prop: 'createTime',
      type:'date',
      format:'yyyy-MM-dd HH:mm:ss',
      valueFormat:'yyyy-MM-dd HH:mm:ss',
      editDisabled: true
    },
    {
      label: '备注',
      type:'textarea',
      row:true,
      span:24,
      prop: 'remark'
    },
  ]
}
