|
@@ -160,6 +160,7 @@ import { BuyOrSell, getBuyOrSellList, BuildType, getPricemode2List, PriceMode }
|
|
|
import { useComponent } from '@/hooks/component'
|
|
import { useComponent } from '@/hooks/component'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { formatDecimal, handleNumberValue, handleRequestBigNumber } from '@/filters'
|
|
import { formatDecimal, handleNumberValue, handleRequestBigNumber } from '@/filters'
|
|
|
|
|
+import service from '@/services'
|
|
|
import Stepper from '@mobile/components/base/stepper/index.vue'
|
|
import Stepper from '@mobile/components/base/stepper/index.vue'
|
|
|
import eventBus from '@/services/bus'
|
|
import eventBus from '@/services/bus'
|
|
|
|
|
|
|
@@ -189,6 +190,7 @@ const fromTrade = true
|
|
|
const positionStore = usePositionStore()
|
|
const positionStore = usePositionStore()
|
|
|
// 持仓汇总
|
|
// 持仓汇总
|
|
|
const position = shallowRef<Model.TradePositionRsp[]>([])
|
|
const position = shallowRef<Model.TradePositionRsp[]>([])
|
|
|
|
|
+const oem = service.getConfig('oem')
|
|
|
|
|
|
|
|
// 点击返回
|
|
// 点击返回
|
|
|
const itemBack = (isPosition: number, buyorsell: BuyOrSell, tradeId: string) => {
|
|
const itemBack = (isPosition: number, buyorsell: BuyOrSell, tradeId: string) => {
|
|
@@ -200,8 +202,23 @@ const { componentRef, componentId, openComponent, closeComponent } = useComponen
|
|
|
|
|
|
|
|
const active = shallowRef('position')
|
|
const active = shallowRef('position')
|
|
|
|
|
|
|
|
-const components = [
|
|
|
|
|
|
|
+const components = oem === "TCE" ?
|
|
|
|
|
+ [{
|
|
|
|
|
+ name: 'cancel',
|
|
|
|
|
+ title: t('quote.pricing.ordercancel'),
|
|
|
|
|
+ component: defineAsyncComponent(() => import('../trade/components/cancel/Index.vue')),
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ name: 'position',
|
|
|
|
|
+ title: t('quote.pricing.position'),
|
|
|
|
|
+ component: defineAsyncComponent(() => import('@mobile/views/order/position/components/pricing/list/Index.vue')),
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
|
|
+ name: 'holdlb2',
|
|
|
|
|
+ title: t('pcroute.bottom.bottom_pricing_detail2'),
|
|
|
|
|
+ component: defineAsyncComponent(() => import('../trade/holdlb2/Index.vue')),
|
|
|
|
|
+ }] :
|
|
|
|
|
+ [{
|
|
|
name: 'cancel',
|
|
name: 'cancel',
|
|
|
title: t('quote.pricing.ordercancel'),
|
|
title: t('quote.pricing.ordercancel'),
|
|
|
component: defineAsyncComponent(() => import('../trade/components/cancel/Index.vue')),
|
|
component: defineAsyncComponent(() => import('../trade/components/cancel/Index.vue')),
|
|
@@ -220,9 +237,8 @@ const components = [
|
|
|
name: 'holdlb2',
|
|
name: 'holdlb2',
|
|
|
title: t('pcroute.bottom.bottom_pricing_detail2'),
|
|
title: t('pcroute.bottom.bottom_pricing_detail2'),
|
|
|
component: defineAsyncComponent(() => import('../trade/holdlb2/Index.vue')),
|
|
component: defineAsyncComponent(() => import('../trade/holdlb2/Index.vue')),
|
|
|
- }
|
|
|
|
|
-]
|
|
|
|
|
-
|
|
|
|
|
|
|
+ }]
|
|
|
|
|
+
|
|
|
const componentMap = new Map<string, unknown>([
|
|
const componentMap = new Map<string, unknown>([
|
|
|
['detail', defineAsyncComponent(() => import('./components/detail/Index.vue'))],
|
|
['detail', defineAsyncComponent(() => import('./components/detail/Index.vue'))],
|
|
|
])
|
|
])
|