|
@@ -1,12 +1,38 @@
|
|
|
import { PayScene, PayStatus, PayType, gameClassifyEnum } from "@/components/QueryForm/const"
|
|
|
import WidthEllipsis from "@/components/widthEllipsis"
|
|
|
-import { Statistic } from "antd"
|
|
|
+import { Badge, Space, Statistic } from "antd"
|
|
|
import React from "react"
|
|
|
|
|
|
-
|
|
|
-function columns12(onDetail: (data: any) => void): { label: string, fieldSHow?: { label: string, saveField: string, defaultValue: any[], data: any[] }, data: any[] }[] {
|
|
|
+function columns12(onDetail: (data: any) => void, back: (b: any) => void): { label: string, fieldSHow?: { label: string, saveField: string, defaultValue: any[], data: any[] }, data: any[] }[] {
|
|
|
|
|
|
return [
|
|
|
+ {
|
|
|
+ label: '回传信息',
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ title: '角色累计充值金额', dataIndex: 'roleTotalAmount', label: '回传信息', align: 'center', width: 100, default: 34,
|
|
|
+ render: (a: any, b: any) => <Statistic value={a || 0} valueStyle={b?.day === '总计' ? { color: 'red' } : {}} precision={2} />
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '角色累计充值次数', dataIndex: 'roleTotalAmountCount', label: '回传信息', align: 'center', width: 90, default: 35,
|
|
|
+ render: (a: any, b: any) => <Statistic value={a || 0} valueStyle={b?.day === '总计' ? { color: 'red' } : {}} />
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '回传状态', dataIndex: 'backStatus', label: '回传信息', width: 100, default: 38,
|
|
|
+ render: (a: any) => {
|
|
|
+ return a === -1 ? <Badge status="error" text="回传失败" /> : a === 0 ? <Badge status="warning" text="未回传" /> : a === 1 ? <Badge status="success" text="回传成功" /> : a === 2 ? <Badge status="default" text="无回传数据" /> : '--'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '回传金额', dataIndex: 'backMoney', label: '回传信息', align: 'center', width: 90, default: 36,
|
|
|
+ render: (a: any, b: any) => <Statistic value={a || 0} valueStyle={b?.day === '总计' ? { color: 'red' } : {}} precision={2} />
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '回传信息', dataIndex: 'backMsg', label: '回传信息', align: 'center', width: 150, default: 37,
|
|
|
+ render: (a: string, b: any) => (<WidthEllipsis value={a} />)
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
{
|
|
|
label: '订单明细',
|
|
|
data: [
|
|
@@ -66,18 +92,6 @@ function columns12(onDetail: (data: any) => void): { label: string, fieldSHow?:
|
|
|
title: '归因投放人员', dataIndex: 'zxPitcherName', label: '订单明细', align: 'center', width: 65, 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: 70, default: 14,
|
|
|
- // render: (a: string, b: any) => (<WidthEllipsis value={a} />)
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: '归因广告', dataIndex: 'adId', label: '订单明细', align: 'center', width: 70, default: 15,
|
|
|
- // render: (a: string, b: any) => (<WidthEllipsis value={a} />)
|
|
|
- // },
|
|
|
{
|
|
|
title: '玩家充值游戏', dataIndex: 'orderGameName', label: '订单明细', align: 'center', width: 70, default: 13,
|
|
|
render: (a: string, b: any) => (<WidthEllipsis value={a} />)
|
|
@@ -197,7 +211,7 @@ function columns12(onDetail: (data: any) => void): { label: string, fieldSHow?:
|
|
|
render: (a: string, b: any) => (<WidthEllipsis value={PayStatus[a]} />)
|
|
|
},
|
|
|
{
|
|
|
- title: '是否首充', dataIndex: 'isFirstRecharge', label: '订单明细', align: 'center', width: 45, default: 34,
|
|
|
+ title: '是否首充', dataIndex: 'isFirstRecharge', label: '订单明细', align: 'center', width: 45, default: 39,
|
|
|
render: (a: any, b: any) => {
|
|
|
if (b?.day !== '总计') {
|
|
|
return a == 1 ? '是' : '否'
|
|
@@ -206,15 +220,18 @@ function columns12(onDetail: (data: any) => void): { label: string, fieldSHow?:
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- title: '操作',
|
|
|
- dataIndex: 'cz',
|
|
|
- label: '订单明细',
|
|
|
- align: 'center',
|
|
|
- width: 70,
|
|
|
- default: 35,
|
|
|
+ title: '操作',
|
|
|
+ dataIndex: 'cz',
|
|
|
+ label: '订单明细',
|
|
|
+ align: 'center',
|
|
|
+ width: 100,
|
|
|
+ default: 40,
|
|
|
render: (a: any, b: any) => {
|
|
|
if (b?.day !== '总计') {
|
|
|
- return <a onClick={() => onDetail(b)}>订单详情</a>
|
|
|
+ return <Space>
|
|
|
+ {(b?.backStatus !== 2 && b?.backStatus !== 1) && <a onClick={() => back(b)}>回传</a>}
|
|
|
+ <a onClick={() => onDetail(b)}>订单详情</a>
|
|
|
+ </Space>
|
|
|
}
|
|
|
return '--'
|
|
|
|