|
|
@@ -1,8 +1,10 @@
|
|
|
<!-- 查询管理-内部订单查询-委托单查询-详情 -->
|
|
|
<template>
|
|
|
<app-drawer :title="t('query.internal.order.details.title')" width="960" v-model:show="show">
|
|
|
- <app-table-details :title="t('query.internal.order.details.subtitle1')" :data="data" :label-width="200" :cell-props="detailProps1" :column="2" />
|
|
|
- <app-table-details :title="t('query.internal.order.details.subtitle2')" :data="data" :label-width="200" :cell-props="detailProps2" :column="2" />
|
|
|
+ <app-table-details :title="t('query.internal.order.details.subtitle1')" :data="data" :label-width="200"
|
|
|
+ :cell-props="detailProps1" :column="2" />
|
|
|
+ <app-table-details :title="t('query.internal.order.details.subtitle2')" :data="data" :label-width="200"
|
|
|
+ :cell-props="detailProps2" :column="2" />
|
|
|
<template v-if="data && [7, 8, 9].includes(data.orderstatus)">
|
|
|
<app-table :data="data.tradeHisResultList" :columns="tableColumns" v-if="record.isHis">
|
|
|
<template #headerLeft>
|
|
|
@@ -46,6 +48,8 @@ const { global: { t } } = i18n
|
|
|
const show = shallowRef(true)
|
|
|
const refresh = shallowRef(false)
|
|
|
|
|
|
+// 挂牌点选类型
|
|
|
+const listingselecttypeEnum = useEnum('listingselecttype')
|
|
|
// 委托类型
|
|
|
const buildtypeEnum = useEnum('buildtype')
|
|
|
// 委托状态
|
|
|
@@ -69,7 +73,7 @@ const { data } = useRequest(queryCommissionSheetDetail, {
|
|
|
})
|
|
|
|
|
|
const detailProps1 = computed<CellProp[]>(() => {
|
|
|
- const { trademode = 0, accountid, goodscode, cancelorderid, preorderid, relatedid, retcode } = data.value ?? {}
|
|
|
+ const { trademode = 0, accountid, goodscode, cancelorderid, preorderid, relatedid, retcode, tradeqty, openqty, closeqty, cancelqty } = data.value ?? {}
|
|
|
const isTradeMode16 = trademode === 16
|
|
|
const isTradeMode46 = trademode === 46
|
|
|
const isTradeMode18Or26 = [18, 26].includes(trademode)
|
|
|
@@ -81,8 +85,8 @@ const detailProps1 = computed<CellProp[]>(() => {
|
|
|
{ prop: 'memberaccountname', label: 'query.internal.order.details.memberaccountname' },
|
|
|
{ prop: 'marketname', label: 'query.internal.order.details.marketname' },
|
|
|
{ prop: 'goodsname', label: 'query.internal.order.details.goodsname', formatValue: (val) => val && `${val}/${goodscode}` },
|
|
|
- { prop: 'listingselecttype', label: 'query.internal.order.details.listingselecttype', show: isTradeMode16 },
|
|
|
- { prop: 'delistingtype', label: 'query.internal.order.details.delistingtype', show: isTradeMode16 },
|
|
|
+ { prop: 'listingselecttype', label: 'query.internal.order.details.listingselecttype', formatValue: (val) => listingselecttypeEnum.getEnumTypeName(val), show: isTradeMode16 },
|
|
|
+ //{ prop: 'delistingtype', label: 'query.internal.order.details.delistingtype', show: isTradeMode16 },
|
|
|
{ prop: 'buildtype', label: 'query.internal.order.details.buildtype', formatValue: (val) => buildtypeEnum.getEnumTypeName(val) },
|
|
|
{ prop: 'buyorsell', label: 'query.internal.order.details.buyorsell', formatValue: (val) => getBuyOrSellName(val) },
|
|
|
{ prop: 'orderprice', label: 'query.internal.order.details.orderprice', show: !isTradeMode18Or26 },
|
|
|
@@ -90,10 +94,10 @@ const detailProps1 = computed<CellProp[]>(() => {
|
|
|
{ prop: 'orderprice', label: 'query.internal.order.details.orderprice1', show: isTradeMode18Or26 },
|
|
|
{ prop: 'premium', label: 'query.internal.order.details.premium', show: isTradeMode18Or26 },
|
|
|
{ prop: 'orderqty', label: 'query.internal.order.details.orderqty' },
|
|
|
- { prop: 'tradeqty', label: 'query.internal.order.details.tradeqty' },
|
|
|
- { prop: 'openqty', label: 'query.internal.order.details.openqty' },
|
|
|
- { prop: 'closeqty', label: 'query.internal.order.details.closeqty' },
|
|
|
- { prop: 'cancelqty', label: 'query.internal.order.details.cancelqty' },
|
|
|
+ { prop: 'tradeqty', label: 'query.internal.order.details.tradeqty', show: !!tradeqty },
|
|
|
+ { prop: 'openqty', label: 'query.internal.order.details.openqty', show: !!openqty },
|
|
|
+ { prop: 'closeqty', label: 'query.internal.order.details.closeqty', show: !!closeqty },
|
|
|
+ { prop: 'cancelqty', label: 'query.internal.order.details.cancelqty', show: !!cancelqty },
|
|
|
{ prop: 'pricemode', label: 'query.internal.order.details.pricemode', formatValue: (val) => Pricemode2Enum.getEnumTypeName(val), show: !isTradeMode18Or26 },
|
|
|
{ prop: 'validtype', label: 'query.internal.order.details.validtype', formatValue: (val) => ValidTypeEnum.getEnumTypeName(val), show: !isTradeMode18Or26 },
|
|
|
{ prop: 'validtime', label: 'query.internal.order.details.validtime', show: !isTradeMode18Or26 },
|
|
|
@@ -101,9 +105,9 @@ const detailProps1 = computed<CellProp[]>(() => {
|
|
|
{ prop: 'orderstatus', label: 'query.internal.order.details.orderstatus', formatValue: (val) => orderstatusEnum.getEnumTypeName(val) },
|
|
|
{ prop: 'ordertime', label: 'query.internal.order.details.ordertime', formatValue: (val) => formatDate(val) },
|
|
|
{ prop: 'clientticket', label: 'query.internal.order.details.clientticket' },
|
|
|
- { prop: 'cancelorderid', label: 'query.internal.order.details.cancelorderid', show: !!cancelorderid },
|
|
|
- { prop: 'preorderid', label: 'query.internal.order.details.preorderid', show: !!preorderid },
|
|
|
- { prop: 'relatedid', label: 'query.internal.order.details.relatedid', show: !!relatedid },
|
|
|
+ { prop: 'cancelorderid', label: 'query.internal.order.details.cancelorderid', show: cancelorderid !== '0' },
|
|
|
+ { prop: 'preorderid', label: 'query.internal.order.details.preorderid', show: preorderid !== '0' },
|
|
|
+ { prop: 'relatedid', label: 'query.internal.order.details.relatedid', show: relatedid !== '0' },
|
|
|
{ prop: 'retcode', label: 'query.internal.order.details.retcode', show: !!retcode },
|
|
|
{ prop: 'refgoodsid', label: 'query.internal.order.details.refgoodsid', show: isTradeMode46 },
|
|
|
{ prop: 'swapdays', label: 'query.internal.order.details.swapdays', show: isTradeMode46 },
|
|
|
@@ -111,7 +115,7 @@ const detailProps1 = computed<CellProp[]>(() => {
|
|
|
})
|
|
|
|
|
|
const detailProps2 = computed<CellProp[]>(() => {
|
|
|
- const { buildtype = 0, orderstatus = 0, marginalgorithm } = data.value ?? {}
|
|
|
+ const { buildtype = 0, orderstatus = 0, marginalgorithm, openfeealgorithm, closefeealgorithm } = data.value ?? {}
|
|
|
const isBuildType1Or3 = [1, 3].includes(buildtype)
|
|
|
const isBuildType2Or3 = [2, 3].includes(buildtype)
|
|
|
|
|
|
@@ -125,25 +129,25 @@ const detailProps2 = computed<CellProp[]>(() => {
|
|
|
{
|
|
|
prop: 'openexchagechargevalue',
|
|
|
label: t('query.internal.order.details.openexchagechargevalue'),
|
|
|
- formatValue: (val) => marginalgorithm ? marginalgorithm === 1 ? parseTenThousand(val) : val : '',
|
|
|
+ formatValue: (val) => openfeealgorithm ? openfeealgorithm === 1 ? parseTenThousand(val) : val : '',
|
|
|
show: isBuildType1Or3
|
|
|
},
|
|
|
{
|
|
|
prop: 'openmemberchargevalue',
|
|
|
label: t('query.internal.order.details.openmemberchargevalue'),
|
|
|
- formatValue: (val) => marginalgorithm ? marginalgorithm === 1 ? parseTenThousand(val) : val : '',
|
|
|
+ formatValue: (val) => openfeealgorithm ? openfeealgorithm === 1 ? parseTenThousand(val) : val : '',
|
|
|
show: isBuildType1Or3
|
|
|
},
|
|
|
{
|
|
|
prop: 'closeexchagechargevalue',
|
|
|
label: t('query.internal.order.details.closeexchagechargevalue'),
|
|
|
- formatValue: (val) => marginalgorithm ? marginalgorithm === 1 ? parseTenThousand(val) : val : '',
|
|
|
+ formatValue: (val) => closefeealgorithm ? closefeealgorithm === 1 ? parseTenThousand(val) : val : '',
|
|
|
show: isBuildType2Or3
|
|
|
},
|
|
|
{
|
|
|
prop: 'closememberchargevalue',
|
|
|
label: t('query.internal.order.details.closememberchargevalue'),
|
|
|
- formatValue: (val) => marginalgorithm ? marginalgorithm === 1 ? parseTenThousand(val) : val : '',
|
|
|
+ formatValue: (val) => closefeealgorithm ? closefeealgorithm === 1 ? parseTenThousand(val) : val : '',
|
|
|
show: isBuildType2Or3
|
|
|
},
|
|
|
]
|