Newer
Older
dxCard-admin / src / views / refund / CommissionRefund.data.ts
jiangqihao 28 days ago 8 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: 'reservationNumber'
   },
   {
    title: '预约时间',
    align:"center",
    dataIndex: 'reservationTime'
   },
   {
    title: '办卡客户id',
    align:"center",
    dataIndex: 'cardApplicationId'
   },
   {
    title: '办卡客户姓名',
    align:"center",
    dataIndex: 'cardApplicationName'
   },
   {
    title: '办卡客户手机号',
    align:"center",
    dataIndex: 'cardApplicationPhone'
   },
   {
    title: '办卡时间',
    align:"center",
    dataIndex: 'cardApplicationTime'
   },
   {
    title: '首充金额',
    align:"center",
    dataIndex: 'amount'
   },
   {
    title: '电信应返利金额',
    align:"center",
    dataIndex: 'refundableAmount'
   },
   {
    title: '电信实返利金额',
    align:"center",
    dataIndex: 'actualAmount'
   },
   {
    title: '送卡人id',
    align:"center",
    dataIndex: 'cardDeliveryPersonId'
   },
   {
    title: '送卡人姓名',
    align:"center",
    dataIndex: 'cardDeliveryPersonName'
   },
   {
    title: '送卡人手机号',
    align:"center",
    dataIndex: 'cardDeliveryPersonPhone'
   },
   {
    title: '电信工号',
    align:"center",
    dataIndex: 'dxWorkNo'
   },
   {
    title: '应返送卡费',
    align:"center",
    dataIndex: 'refundableCardAmount'
   },
   {
    title: '实返送卡费',
    align:"center",
    dataIndex: 'actualCardAmount'
   },
   {
    title: '实返送卡费时间',
    align:"center",
    dataIndex: 'cardAmountTime'
   },
   {
    title: '分销人id',
    align:"center",
    dataIndex: 'distributionCustomersId'
   },
   {
    title: '分销人姓名',
    align:"center",
    dataIndex: 'distributionCustomersName'
   },
   {
    title: '分销人手机号',
    align:"center",
    dataIndex: 'distributionCustomersPhone'
   },
   {
    title: '应返佣金',
    align:"center",
    dataIndex: 'refundableCommission'
   },
   {
    title: '实返佣金',
    align:"center",
    dataIndex: 'actualCommission'
   },
   {
    title: '佣金返还时间',
    align:"center",
    dataIndex: 'refundableTime'
   },
   {
    title: '关联预约单id',
    align:"center",
    dataIndex: 'reservationId'
   },
   {
    title: '毛利',
    align:"center",
    dataIndex: 'grossMargin'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
	{
      label: "办卡客户姓名",
      field: 'cardApplicationName',
      component: 'Input',
      //colProps: {span: 6},
 	},
	{
      label: "办卡客户手机号",
      field: 'cardApplicationPhone',
      component: 'Input',
      //colProps: {span: 6},
 	},
	{
      label: "送卡人姓名",
      field: 'cardDeliveryPersonName',
      component: 'Input',
      //colProps: {span: 6},
 	},
	{
      label: "送卡人手机号",
      field: 'cardDeliveryPersonPhone',
      component: 'Input',
      //colProps: {span: 6},
 	},
	{
      label: "电信工号",
      field: 'dxWorkNo',
      component: 'Input',
      //colProps: {span: 6},
 	},
	{
      label: "分销人姓名",
      field: 'distributionCustomersName',
      component: 'Input',
      //colProps: {span: 6},
 	},
	{
      label: "分销人手机号",
      field: 'distributionCustomersPhone',
      component: 'Input',
      //colProps: {span: 6},
 	},
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '预约单号',
    field: 'reservationNumber',
    component: 'Input',
  },
  {
    label: '预约时间',
    field: 'reservationTime',
    component: 'DatePicker',
    componentProps: {
       showTime: true,
       valueFormat: 'YYYY-MM-DD HH:mm:ss'
     },
  },
  {
    label: '办卡客户id',
    field: 'cardApplicationId',
    component: 'Input',
  },
  {
    label: '办卡客户姓名',
    field: 'cardApplicationName',
    component: 'Input',
  },
  {
    label: '办卡客户手机号',
    field: 'cardApplicationPhone',
    component: 'Input',
  },
  {
    label: '办卡时间',
    field: 'cardApplicationTime',
    component: 'DatePicker',
    componentProps: {
       showTime: true,
       valueFormat: 'YYYY-MM-DD HH:mm:ss'
     },
  },
  {
    label: '首充金额',
    field: 'amount',
    component: 'InputNumber',
  },
  {
    label: '电信应返利金额',
    field: 'refundableAmount',
    component: 'InputNumber',
  },
  {
    label: '电信实返利金额',
    field: 'actualAmount',
    component: 'InputNumber',
  },
  {
    label: '送卡人id',
    field: 'cardDeliveryPersonId',
    component: 'Input',
  },
  {
    label: '送卡人姓名',
    field: 'cardDeliveryPersonName',
    component: 'Input',
  },
  {
    label: '送卡人手机号',
    field: 'cardDeliveryPersonPhone',
    component: 'Input',
  },
  {
    label: '电信工号',
    field: 'dxWorkNo',
    component: 'Input',
  },
  {
    label: '应返送卡费',
    field: 'refundableCardAmount',
    component: 'InputNumber',
  },
  {
    label: '实返送卡费',
    field: 'actualCardAmount',
    component: 'InputNumber',
  },
  {
    label: '实返送卡费时间',
    field: 'cardAmountTime',
    component: 'DatePicker',
    componentProps: {
       showTime: true,
       valueFormat: 'YYYY-MM-DD HH:mm:ss'
     },
  },
  {
    label: '分销人id',
    field: 'distributionCustomersId',
    component: 'Input',
  },
  {
    label: '分销人姓名',
    field: 'distributionCustomersName',
    component: 'Input',
  },
  {
    label: '分销人手机号',
    field: 'distributionCustomersPhone',
    component: 'Input',
  },
  {
    label: '应返佣金',
    field: 'refundableCommission',
    component: 'InputNumber',
  },
  {
    label: '实返佣金',
    field: 'actualCommission',
    component: 'InputNumber',
  },
  {
    label: '佣金返还时间',
    field: 'refundableTime',
    component: 'Input',
  },
  {
    label: '关联预约单id',
    field: 'reservationId',
    component: 'Input',
  },
  {
    label: '毛利',
    field: 'grossMargin',
    component: 'InputNumber',
  },
	// TODO 主键隐藏字段,目前写死为ID
	{
	  label: '',
	  field: 'id',
	  component: 'Input',
	  show: false
	},
];

// 高级查询数据
export const superQuerySchema = {
  reservationNumber: {title: '预约单号',order: 0,view: 'text', type: 'string',},
  reservationTime: {title: '预约时间',order: 1,view: 'datetime', type: 'string',},
  cardApplicationId: {title: '办卡客户id',order: 2,view: 'text', type: 'string',},
  cardApplicationName: {title: '办卡客户姓名',order: 3,view: 'text', type: 'string',},
  cardApplicationPhone: {title: '办卡客户手机号',order: 4,view: 'text', type: 'string',},
  cardApplicationTime: {title: '办卡时间',order: 5,view: 'datetime', type: 'string',},
  amount: {title: '首充金额',order: 6,view: 'number', type: 'number',},
  refundableAmount: {title: '电信应返利金额',order: 7,view: 'number', type: 'number',},
  actualAmount: {title: '电信实返利金额',order: 8,view: 'number', type: 'number',},
  cardDeliveryPersonId: {title: '送卡人id',order: 9,view: 'text', type: 'string',},
  cardDeliveryPersonName: {title: '送卡人姓名',order: 10,view: 'text', type: 'string',},
  cardDeliveryPersonPhone: {title: '送卡人手机号',order: 11,view: 'text', type: 'string',},
  dxWorkNo: {title: '电信工号',order: 12,view: 'text', type: 'string',},
  refundableCardAmount: {title: '应返送卡费',order: 13,view: 'number', type: 'number',},
  actualCardAmount: {title: '实返送卡费',order: 14,view: 'number', type: 'number',},
  cardAmountTime: {title: '实返送卡费时间',order: 15,view: 'datetime', type: 'string',},
  distributionCustomersId: {title: '分销人id',order: 16,view: 'text', type: 'string',},
  distributionCustomersName: {title: '分销人姓名',order: 17,view: 'text', type: 'string',},
  distributionCustomersPhone: {title: '分销人手机号',order: 18,view: 'text', type: 'string',},
  refundableCommission: {title: '应返佣金',order: 19,view: 'number', type: 'number',},
  actualCommission: {title: '实返佣金',order: 20,view: 'number', type: 'number',},
  refundableTime: {title: '佣金返还时间',order: 21,view: 'text', type: 'string',},
  reservationId: {title: '关联预约单id',order: 22,view: 'text', type: 'string',},
  grossMargin: {title: '毛利',order: 23,view: 'number', type: 'number',},
};

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