|
@@ -33,7 +33,7 @@ import { BuyOrSell } from '@/constants/order'
|
|
|
import { useComponent } from '@/hooks/component'
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { useComposeTable } from '@pc/components/base/table'
|
|
import { useComposeTable } from '@pc/components/base/table'
|
|
|
import { queryWrTradeOrderDetail } from '@/services/api/transfer'
|
|
import { queryWrTradeOrderDetail } from '@/services/api/transfer'
|
|
|
-import { useFuturesStore, i18n } from '@/stores'
|
|
|
|
|
|
|
+import { useFuturesStore } from '@/stores'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
import service from '@/services'
|
|
import service from '@/services'
|
|
|
|
|
|
|
@@ -48,11 +48,9 @@ const componentMap = new Map<string, unknown>([
|
|
|
['delisting', defineAsyncComponent(() => import('./delisting/index.vue'))], // 摘牌
|
|
['delisting', defineAsyncComponent(() => import('./delisting/index.vue'))], // 摘牌
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
-// const loginStore = useLoginStore()
|
|
|
|
|
const futuresStore = useFuturesStore()
|
|
const futuresStore = useFuturesStore()
|
|
|
const quote = futuresStore.getGoodsQuote(props.goodsId)
|
|
const quote = futuresStore.getGoodsQuote(props.goodsId)
|
|
|
const oem = service.getConfig('oem')
|
|
const oem = service.getConfig('oem')
|
|
|
-const { t } = i18n.global
|
|
|
|
|
|
|
|
|
|
const { rowKey, expandKeys, selectedRow, rowClick } = useComposeTable<Model.WrTradeOrderDetailRsp>({ rowKey: 'orderid' })
|
|
const { rowKey, expandKeys, selectedRow, rowClick } = useComposeTable<Model.WrTradeOrderDetailRsp>({ rowKey: 'orderid' })
|
|
|
const { componentRef, componentId, closeComponent } = useComponent()
|
|
const { componentRef, componentId, closeComponent } = useComponent()
|
|
@@ -74,19 +72,19 @@ const { dataList: sellList, run: getSellList } = useRequest(queryWrTradeOrderDet
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
const buyColumns = shallowRef<Model.TableColumn[]>(
|
|
const buyColumns = shallowRef<Model.TableColumn[]>(
|
|
|
- oem != 'zrwyt' ? [{ field: 'orderprice', label: t('quote.bid') },
|
|
|
|
|
- { field: 'orderqty', label: t('quote.bidvolume') },
|
|
|
|
|
- { field: 'username', label: t('quote.buyusername') }] :
|
|
|
|
|
- [{ field: 'orderprice', label: t('quote.bid') },
|
|
|
|
|
- { field: 'orderqty', label: t('quote.bidvolume') }]
|
|
|
|
|
|
|
+ oem != 'zrwyt' ? [{ field: 'orderprice', label: 'quote.bid' },
|
|
|
|
|
+ { field: 'orderqty', label: 'quote.bidvolume' },
|
|
|
|
|
+ { field: 'username', label: 'quote.buyusername' }] :
|
|
|
|
|
+ [{ field: 'orderprice', label: 'quote.bid' },
|
|
|
|
|
+ { field: 'orderqty', label: 'quote.bidvolume' }]
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
const sellColumns = shallowRef<Model.TableColumn[]>(
|
|
const sellColumns = shallowRef<Model.TableColumn[]>(
|
|
|
- oem != 'zrwyt' ? [{ field: 'orderprice', label: t('quote.ask') },
|
|
|
|
|
- { field: 'orderqty', label: t('quote.askvolume') },
|
|
|
|
|
- { field: 'username', label: t('quote.sellusername') }] :
|
|
|
|
|
- [{ field: 'orderprice', label: t('quote.ask') },
|
|
|
|
|
- { field: 'orderqty', label: t('quote.askvolume') }]
|
|
|
|
|
|
|
+ oem != 'zrwyt' ? [{ field: 'orderprice', label: 'quote.ask' },
|
|
|
|
|
+ { field: 'orderqty', label: 'quote.askvolume' },
|
|
|
|
|
+ { field: 'username', label: 'quote.sellusername' }] :
|
|
|
|
|
+ [{ field: 'orderprice', label: 'quote.ask' },
|
|
|
|
|
+ { field: 'orderqty', label: 'quote.askvolume' }]
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
// const showComponent = (componentName: string, row: Model.WrTradeOrderDetailRsp) => {
|
|
// const showComponent = (componentName: string, row: Model.WrTradeOrderDetailRsp) => {
|