|
|
@@ -1,3 +1,6 @@
|
|
|
+import { ColumnType } from '@/common/methods/table';
|
|
|
+import { Ermcp3PaTradeLinkDetailReqRsp } from '@/services/go/ermcp/patrade-link/interface';
|
|
|
+import { getChannelBuildName, getBuyOrSellTypeName, geHedgeFlagName, geLinkStatusName, geRelatedModeName } from '@/common/constants/enumsName'
|
|
|
|
|
|
export const columnsPointPrice = [
|
|
|
{ title: '序号', dataIndex: 'index', key: 'index', align: 'center', },
|
|
|
@@ -55,4 +58,80 @@ export const columnsInWarehouse = [
|
|
|
{ title: '数量', dataIndex: 'applystatus', key: 'applystatus', align: 'center' },
|
|
|
];
|
|
|
|
|
|
-
|
|
|
+// 关联记录表头
|
|
|
+export const columnsPaTradeLink: ColumnType[] = [
|
|
|
+ {
|
|
|
+ title: '关联时间',
|
|
|
+ dataIndex: 'createtime',
|
|
|
+ key: 'createtime',
|
|
|
+ align: 'center',
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '成交时间',
|
|
|
+ dataIndex: 'tradetime',
|
|
|
+ key: 'tradetime',
|
|
|
+ align: 'center',
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '业务类型',
|
|
|
+ dataIndex: 'hedgeflag',
|
|
|
+ key: 'hedgeflag',
|
|
|
+ align: 'center',
|
|
|
+ customRender: ({ text }: { text: number }) => {
|
|
|
+ return geHedgeFlagName(text);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '订单类型',
|
|
|
+ dataIndex: 'buyorsell || channelbuildtype',
|
|
|
+ key: 'buyorsell',
|
|
|
+ align: 'center',
|
|
|
+ width: 120,
|
|
|
+ customRender: ({ record }: { record: Ermcp3PaTradeLinkDetailReqRsp }) => {
|
|
|
+ return getBuyOrSellTypeName(record.buyorsell) + getChannelBuildName(record.channelbuildtype);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '套保品种',
|
|
|
+ dataIndex: 'middlegoodsname',
|
|
|
+ key: 'middlegoodsname',
|
|
|
+ align: 'center',
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '现货关联数量',
|
|
|
+ dataIndex: 'relatedqty',
|
|
|
+ key: 'relatedqty',
|
|
|
+ align: 'center',
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '关联方式',
|
|
|
+ dataIndex: 'relatedmode',
|
|
|
+ key: 'relatedmode',
|
|
|
+ align: 'center',
|
|
|
+ width: 120,
|
|
|
+ customRender: ({ text }: { text: number }) => {
|
|
|
+ return geRelatedModeName(text);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '关联状态',
|
|
|
+ dataIndex: 'linkstatus',
|
|
|
+ key: 'linkstatus',
|
|
|
+ align: 'center',
|
|
|
+ width: 120,
|
|
|
+ customRender: ({ text }: { text: number }) => {
|
|
|
+ return geLinkStatusName(text);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '期货单号',
|
|
|
+ dataIndex: 'tradeid',
|
|
|
+ key: 'tradeid',
|
|
|
+ align: 'center',
|
|
|
+ width: 120,
|
|
|
+ },
|
|
|
+];
|