|
@@ -3,7 +3,7 @@ import { useModel } from "@umijs/max";
|
|
import { Badge } from "antd";
|
|
import { Badge } from "antd";
|
|
|
|
|
|
export const columns = (): ProColumns<any>[] => {
|
|
export const columns = (): ProColumns<any>[] => {
|
|
- let {getEnum} = useModel("global")
|
|
|
|
|
|
+ let { getEnum } = useModel("global")
|
|
let payChannelObj: any = { '1': '微信小程序支付' };
|
|
let payChannelObj: any = { '1': '微信小程序支付' };
|
|
let orderTypeObj: any = { '1': '书币充值', "2": "vip充值", "3": "购买整本" };
|
|
let orderTypeObj: any = { '1': '书币充值', "2": "vip充值", "3": "购买整本" };
|
|
let orderStatusObj: any = { '1': '待支付', "2": "已支付" };
|
|
let orderStatusObj: any = { '1': '待支付', "2": "已支付" };
|
|
@@ -23,7 +23,7 @@ export const columns = (): ProColumns<any>[] => {
|
|
dataIndex: 'bookName',
|
|
dataIndex: 'bookName',
|
|
key: "bookName",
|
|
key: "bookName",
|
|
align: "center",
|
|
align: "center",
|
|
- render:(a,b:any)=>{
|
|
|
|
|
|
+ render: (a, b: any) => {
|
|
return b?.bookInfo?.bookName
|
|
return b?.bookInfo?.bookName
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -32,9 +32,9 @@ export const columns = (): ProColumns<any>[] => {
|
|
dataIndex: 'payChannel',
|
|
dataIndex: 'payChannel',
|
|
key: "payChannel",
|
|
key: "payChannel",
|
|
align: "center",
|
|
align: "center",
|
|
- valueType:'select',
|
|
|
|
- valueEnum:payChannelObj,
|
|
|
|
- render: (a: any,b:any) => {
|
|
|
|
|
|
+ valueType: 'select',
|
|
|
|
+ valueEnum: payChannelObj,
|
|
|
|
+ render: (a: any, b: any) => {
|
|
return payChannelObj[b.payChannel]
|
|
return payChannelObj[b.payChannel]
|
|
},
|
|
},
|
|
},
|
|
},
|
|
@@ -49,10 +49,10 @@ export const columns = (): ProColumns<any>[] => {
|
|
title: "订单类型",
|
|
title: "订单类型",
|
|
dataIndex: 'orderType',
|
|
dataIndex: 'orderType',
|
|
key: "orderType",
|
|
key: "orderType",
|
|
- valueType:'select',
|
|
|
|
- valueEnum:orderTypeObj,
|
|
|
|
|
|
+ valueType: 'select',
|
|
|
|
+ valueEnum: orderTypeObj,
|
|
align: "center",
|
|
align: "center",
|
|
- render: (a: any,b:any) => {
|
|
|
|
|
|
+ render: (a: any, b: any) => {
|
|
return orderTypeObj[b.orderType]
|
|
return orderTypeObj[b.orderType]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -60,10 +60,10 @@ export const columns = (): ProColumns<any>[] => {
|
|
title: "订单状态",
|
|
title: "订单状态",
|
|
dataIndex: 'orderStatus',
|
|
dataIndex: 'orderStatus',
|
|
key: "orderStatus",
|
|
key: "orderStatus",
|
|
- valueType:'select',
|
|
|
|
- valueEnum:orderStatusObj,
|
|
|
|
|
|
+ valueType: 'select',
|
|
|
|
+ valueEnum: orderStatusObj,
|
|
align: "center",
|
|
align: "center",
|
|
- render: (a: any,b:any) => {
|
|
|
|
|
|
+ render: (a: any, b: any) => {
|
|
return <Badge text={orderStatusObj[b.orderStatus]} status={b.orderStatus != 1 ? "success" : "warning"} />
|
|
return <Badge text={orderStatusObj[b.orderStatus]} status={b.orderStatus != 1 ? "success" : "warning"} />
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -86,6 +86,13 @@ export const columns = (): ProColumns<any>[] => {
|
|
hideInSearch: true,
|
|
hideInSearch: true,
|
|
align: "center",
|
|
align: "center",
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ title: "下单场景",
|
|
|
|
+ dataIndex: 'orderCondition',
|
|
|
|
+ key: "orderCondition",
|
|
|
|
+ hideInSearch: true,
|
|
|
|
+ align: "center",
|
|
|
|
+ },
|
|
{
|
|
{
|
|
title: "支付时间",
|
|
title: "支付时间",
|
|
tooltip: "实际到账时间",
|
|
tooltip: "实际到账时间",
|
|
@@ -94,6 +101,21 @@ export const columns = (): ProColumns<any>[] => {
|
|
hideInSearch: true,
|
|
hideInSearch: true,
|
|
align: "center",
|
|
align: "center",
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ title: "上报金额",
|
|
|
|
+ dataIndex: 'backMoney',
|
|
|
|
+ key: "backMoney",
|
|
|
|
+ hideInSearch: true,
|
|
|
|
+ align: "center",
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ title: "上报状态",
|
|
|
|
+ dataIndex: 'backStatus',
|
|
|
|
+ key: "backStatus",
|
|
|
|
+ hideInSearch: true,
|
|
|
|
+ align: "center",
|
|
|
|
+ valueEnum: getEnum("BACK_STATUS", "stateObj", { "0": 'default', "-1": "error", "1": "processing", "2": "success", "3": "warning" }),
|
|
|
|
+ },
|
|
{
|
|
{
|
|
title: '归因渠道',
|
|
title: '归因渠道',
|
|
dataIndex: 'userChannel',
|
|
dataIndex: 'userChannel',
|