Newer
Older
dxCard-admin / src / views / card / delivery / CardDeliveryPerson.data.ts
jiangqihao on 25 Sep 2 KB fixed bug
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: 'dxWorkNo'
   },
   {
    title: '待处理工单数',
    align:"center",
    dataIndex: 'waitDealWorkNum'
   },
   {
    title: '已处理工单数',
    align:"center",
    dataIndex: 'dealWorkNum'
   },
   {
    title: '总工单数',
    align:"center",
    dataIndex: 'totalWorkNum'
   },
   {
    title: '应收办卡费用',
    align:"center",
    dataIndex: 'receivableFee'
   },
   {
    title: '全部办卡费用',
    align:"center",
    dataIndex: 'allFee'
   },
];
//查询数据
export const searchFormSchema: FormSchema[] = [
];
//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '姓名',
    field: 'name',
    component: 'Input',
  },
  {
    label: '手机号',
    field: 'phone',
    component: 'Input',
  },
  {
    label: '电信工号',
    field: 'dxWorkNo',
    component: 'Input',
  },
  {
    label: '待处理工单数',
    field: 'waitDealWorkNum',
    component: 'InputNumber',
  },
  {
    label: '已处理工单数',
    field: 'dealWorkNum',
    component: 'InputNumber',
  },
  {
    label: '总工单数',
    field: 'totalWorkNum',
    component: 'InputNumber',
  },
  {
    label: '应收办卡费用',
    field: 'receivableFee',
    component: 'InputNumber',
  },
  {
    label: '全部办卡费用',
    field: 'allFee',
    component: 'InputNumber',
  },
	// 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',},
  dxWorkNo: {title: '电信工号',order: 2,view: 'text', type: 'string',},
  waitDealWorkNum: {title: '待处理工单数',order: 3,view: 'number', type: 'number',},
  dealWorkNum: {title: '已处理工单数',order: 4,view: 'number', type: 'number',},
  totalWorkNum: {title: '总工单数',order: 5,view: 'number', type: 'number',},
  receivableFee: {title: '应收办卡费用',order: 6,view: 'number', type: 'number',},
  allFee: {title: '全部办卡费用',order: 7,view: 'number', type: 'number',},
};

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