123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- import WidthEllipsis from "@/components/widthEllipsis"
- import { Statistic } from "antd"
- import React from "react"
- function columns12(): { label: string, fieldSHow?: { label: string, saveField: string, defaultValue: any[], data: any[] }, data: any[] }[] {
- return [
- {
- label: '订单明细',
- data: [
- {
- title: '日期(订单创建日期)', dataIndex: 'day1', label: '订单明细', align: 'center', width: 85, default: 1,
- render: (a: string, b: any) => (<WidthEllipsis value={b?.day} />)
- },
- {
- title: '商户订单号', dataIndex: 'orderId', label: '订单明细', align: 'center', width: 120, default: 2,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: 'CP订单号', dataIndex: 'cpOrderId', label: '订单明细', align: 'center', width: 130, default: 3,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '第三方支付订单号', dataIndex: 'merchantOrderNo', label: '订单明细', align: 'center', width: 85, default: 4,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- { title: '玩家ID', dataIndex: 'gameUserId', label: '订单明细', align: 'center', width: 65, default: 5 },
- {
- title: '玩家账号', dataIndex: 'username', label: '订单明细', align: 'center', width: 95, default: 6,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '玩家注册时间', dataIndex: 'regTime', label: '订单明细', align: 'center', width: 135, default: 7,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- { title: '玩家注册渠道', dataIndex: 'agentId', label: '订单明细', align: 'center', width: 95, default: 8 },
- { title: '玩家注册游戏', dataIndex: 'gameId', label: '订单明细', align: 'center', width: 95, default: 9 },
- { title: 'CP名称', dataIndex: 'cpName', label: '订单明细', align: 'center', width: 95, default: 10 },
- {
- title: '玩家注册游戏应用类型', dataIndex: 'classify', label: '订单明细', align: 'center', width: 110, default: 11,
- render: (a: string) => {
- if (a) {
- let one = a.charAt(0)
- switch (one) {
- case '3':
- return 'Android'
- case '4':
- return 'IOS'
- case '5':
- return 'H5'
- case '6':
- return '小程序'
- default:
- return '--'
- }
- } else return '--'
- }
- },
- {
- title: '归因投放人员', dataIndex: 'zxPitcherName', label: '订单明细', align: 'center', width: 80, default: 12,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '归因推广账号', dataIndex: 'accountId', label: '订单明细', align: 'center', width: 80, default: 13,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '归因媒体', dataIndex: 'accountType', label: '订单明细', align: 'center', width: 85, default: 14,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '归因广告', dataIndex: 'adId', label: '订单明细', align: 'center', width: 80, default: 15,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '玩家充值游戏', dataIndex: 'orderGameId', label: '订单明细', align: 'center', width: 80, default: 16,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '玩家充值游戏应用类型', dataIndex: 'orderGameClassify', label: '订单明细', align: 'center', width: 70, default: 17,
- render: (a: string) => {
- if (a) {
- let one = a.charAt(0)
- switch (one) {
- case '3':
- return 'Android'
- case '4':
- return 'IOS'
- case '5':
- return 'H5'
- case '6':
- return '小程序'
- default:
- return '--'
- }
- } else return '--'
- }
- },
- {
- title: '充值产品名称', dataIndex: 'productName', label: '订单明细', align: 'center', width: 85, default: 18,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '订单金额', dataIndex: 'amount', label: '订单明细', align: 'center', width: 95, default: 19,
- render: (a: any) => <Statistic value={a || 0} precision={2} />
- },
- {
- title: '订单实付金额', dataIndex: 'realAmount', label: '订单明细', align: 'center', width: 95, default: 20,
- render: (a: any) => <Statistic value={a || 0} precision={2} />
- },
- {
- title: '支付方式', dataIndex: 'payWay', label: '订单明细', align: 'center', width: 65, default: 21,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '支付场景', dataIndex: 'payScene', label: '订单明细', align: 'center', width: 95, default: 22,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '收款账户', dataIndex: 'payAccountId', label: '订单明细', align: 'center', width: 95, default: 23,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- { title: '游戏区服', dataIndex: 'serverName', label: '订单明细', align: 'center', width: 95, default: 24 },
- {
- title: '游戏角色', dataIndex: 'roleName', label: '订单明细', align: 'center', width: 95, default: 25,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '角色等级', dataIndex: 'roleLevel', label: '订单明细', align: 'center', width: 75, default: 26,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '角色VIP', dataIndex: 'roleVip', label: '订单明细', align: 'center', width: 75, default: 27,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '操作系统', dataIndex: 'os', label: '订单明细', align: 'center', width: 75, default: 28,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '是否切量', dataIndex: 'orderIsSwitch', label: '订单明细', align: 'center', width: 45, default: 29,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '创建时间', dataIndex: 'day', label: '订单明细', align: 'center', width: 135, default: 30,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '支付时间', dataIndex: 'orderCreateTime', label: '订单明细', align: 'center', width: 135, default: 31,
- render: (a: string, b: any) => (<WidthEllipsis value={a} />)
- },
- {
- title: '支付状态', dataIndex: 'orderStatus', label: '订单明细', align: 'center', width: 85, default: 32,
- render: (a: string, b: any) => {
- return { '1': '待处理', '2': '成功', '3': '失败' }[a]
- }
- },
- {
- title: '是否首充', dataIndex: 'isFirstRecharge', label: '订单明细', align: 'center', width: 45, default: 33,
- render: (a: any) => {
- return a === 1 ? '是' : '否'
- }
- },
- ]
- },
- ]
- }
- export default columns12
|