Newer
Older
dxCard-admin / src / views / card / customers / CardApplicationCustomers.data.ts
pao8041 on 24 Sep 3 KB 送卡人、办卡客户
import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
   {
    title: '姓名',
    align:"center",
    dataIndex: 'name'
   },
   {
    title: '手机号',
    align:"center",
    dataIndex: 'phone'
   },
   {
    title: '办卡姓名',
    align:"center",
    dataIndex: 'cardApplicationName'
   },
   {
    title: '办卡手机号',
    align:"center",
    dataIndex: 'cardApplicationPhone'
   },
   {
    title: '预约单号',
    align:"center",
    dataIndex: 'reservationNumber'
   },
   {
    title: '省',
    align:"center",
    dataIndex: 'province'
   },
   {
    title: '市',
    align:"center",
    dataIndex: 'city'
   },
   {
    title: '区',
    align:"center",
    dataIndex: 'area'
   },
   {
    title: '详细地址',
    align:"center",
    dataIndex: 'address'
   },
   {
    title: '预约时间',
    align:"center",
    dataIndex: 'reservationTime'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '姓名',
    field: 'name',
    component: 'Input',
  },
  {
    label: '手机号',
    field: 'phone',
    component: 'Input',
  },
  {
    label: '办卡姓名',
    field: 'cardApplicationName',
    component: 'Input',
  },
  {
    label: '办卡手机号',
    field: 'cardApplicationPhone',
    component: 'Input',
  },
  {
    label: '预约单号',
    field: 'reservationNumber',
    component: 'Input',
  },
  {
    label: '省',
    field: 'province',
    component: 'Input',
  },
  {
    label: '市',
    field: 'city',
    component: 'Input',
  },
  {
    label: '区',
    field: 'area',
    component: 'Input',
  },
  {
    label: '详细地址',
    field: 'address',
    component: 'Input',
  },
  {
    label: '预约时间',
    field: 'reservationTime',
    component: 'DatePicker',
    componentProps: {
       showTime: true,
       valueFormat: 'YYYY-MM-DD HH:mm:ss'
     },
  },
	// TODO 主键隐藏字段,目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];

// 高级查询数据
export const superQuerySchema = {
  name: {title: '姓名',order: 0,view: 'text', type: 'string',},
  phone: {title: '手机号',order: 1,view: 'text', type: 'string',},
  cardApplicationName: {title: '办卡姓名',order: 2,view: 'text', type: 'string',},
  cardApplicationPhone: {title: '办卡手机号',order: 3,view: 'text', type: 'string',},
  reservationNumber: {title: '预约单号',order: 4,view: 'text', type: 'string',},
  province: {title: '省',order: 5,view: 'text', type: 'string',},
  city: {title: '市',order: 6,view: 'text', type: 'string',},
  area: {title: '区',order: 7,view: 'text', type: 'string',},
  address: {title: '详细地址',order: 8,view: 'text', type: 'string',},
  reservationTime: {title: '预约时间',order: 9,view: 'datetime', type: 'string',},
};

/**
* 流程表单调用这个方法获取formSchema
* @param param
*/
export function getBpmFormSchema(_formData): FormSchema[]{
  // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
  return formSchema;
}