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: '分销客户id',
align:"center",
dataIndex: 'distributionCustomersId'
},
{
title: '分销客户姓名',
align:"center",
dataIndex: 'distributionCustomersName'
},
{
title: '分销客户手机号',
align:"center",
dataIndex: 'distributionCustomersPhone'
},
{
title: '办卡客户id',
align:"center",
dataIndex: 'cardApplicationId'
},
{
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'
},
{
title: '办理手机号',
align:"center",
dataIndex: 'transactionPhone'
},
{
title: '应返还佣金',
align:"center",
dataIndex: 'refundableCommission'
},
{
title: '实际返还佣金',
align:"center",
dataIndex: 'actualCommission'
},
{
title: '返还时间',
align:"center",
dataIndex: 'refundableTime'
},
{
title: '首充金额',
align:"center",
dataIndex: 'amount'
},
{
title: '状态',
align:"center",
dataIndex: 'status'
},
{
title: '指定送卡人',
align:"center",
dataIndex: 'cardDeliveryPerson'
},
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '分销客户id',
field: 'distributionCustomersId',
component: 'Input',
},
{
label: '分销客户姓名',
field: 'distributionCustomersName',
component: 'Input',
},
{
label: '分销客户手机号',
field: 'distributionCustomersPhone',
component: 'Input',
},
{
label: '办卡客户id',
field: 'cardApplicationId',
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'
},
},
{
label: '办理手机号',
field: 'transactionPhone',
component: 'Input',
},
{
label: '应返还佣金',
field: 'refundableCommission',
component: 'InputNumber',
},
{
label: '实际返还佣金',
field: 'actualCommission',
component: 'Input',
},
{
label: '返还时间',
field: 'refundableTime',
component: 'DatePicker',
componentProps: {
showTime: true,
valueFormat: 'YYYY-MM-DD HH:mm:ss'
},
},
{
label: '首充金额',
field: 'amount',
component: 'InputNumber',
},
{
label: '状态',
field: 'status',
component: 'Input',
},
{
label: '指定送卡人',
field: 'cardDeliveryPerson',
component: 'Input',
},
// TODO 主键隐藏字段,目前写死为ID
{
label: '',
field: 'id',
component: 'Input',
show: false
},
];
// 高级查询数据
export const superQuerySchema = {
distributionCustomersId: {title: '分销客户id',order: 0,view: 'text', type: 'string',},
distributionCustomersName: {title: '分销客户姓名',order: 1,view: 'text', type: 'string',},
distributionCustomersPhone: {title: '分销客户手机号',order: 2,view: 'text', type: 'string',},
cardApplicationId: {title: '办卡客户id',order: 3,view: 'text', type: 'string',},
cardApplicationName: {title: '办卡姓名',order: 4,view: 'text', type: 'string',},
cardApplicationPhone: {title: '办卡手机号',order: 5,view: 'text', type: 'string',},
reservationNumber: {title: '预约单号',order: 6,view: 'text', type: 'string',},
province: {title: '省',order: 7,view: 'text', type: 'string',},
city: {title: '市',order: 8,view: 'text', type: 'string',},
area: {title: '区',order: 9,view: 'text', type: 'string',},
address: {title: '详细地址',order: 10,view: 'text', type: 'string',},
reservationTime: {title: '预约时间',order: 11,view: 'datetime', type: 'string',},
transactionPhone: {title: '办理手机号',order: 12,view: 'text', type: 'string',},
refundableCommission: {title: '应返还佣金',order: 13,view: 'number', type: 'number',},
actualCommission: {title: '实际返还佣金',order: 14,view: 'text', type: 'string',},
refundableTime: {title: '返还时间',order: 15,view: 'datetime', type: 'string',},
amount: {title: '首充金额',order: 16,view: 'number', type: 'number',},
status: {title: '状态',order: 17,view: 'text', type: 'string',},
cardDeliveryPerson: {title: '指定送卡人',order: 18,view: 'text', type: 'string',},
};
/**
* 流程表单调用这个方法获取formSchema
* @param param
*/
export function getBpmFormSchema(_formData): FormSchema[]{
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
return formSchema;
}