|
|
@@ -35,6 +35,7 @@ import { useComposeTable } from '@pc/components/base/table'
|
|
|
import { queryWrTradeOrderDetail } from '@/services/api/transfer'
|
|
|
import { useLoginStore, useFuturesStore } from '@/stores'
|
|
|
import AppTable from '@pc/components/base/table/index.vue'
|
|
|
+import service from '@/services'
|
|
|
|
|
|
const props = defineProps({
|
|
|
goodsId: {
|
|
|
@@ -50,6 +51,7 @@ const componentMap = new Map<string, unknown>([
|
|
|
const loginStore = useLoginStore()
|
|
|
const futuresStore = useFuturesStore()
|
|
|
const quote = futuresStore.getGoodsQuote(props.goodsId)
|
|
|
+const oem = service.getConfig('oem')
|
|
|
|
|
|
const { rowKey, expandKeys, selectedRow, rowClick } = useComposeTable<Model.WrTradeOrderDetailRsp>({ rowKey: 'orderid' })
|
|
|
const { componentRef, componentId, openComponent, closeComponent } = useComponent()
|
|
|
@@ -70,17 +72,21 @@ const { dataList: sellList, run: getSellList } = useRequest(queryWrTradeOrderDet
|
|
|
},
|
|
|
})
|
|
|
|
|
|
-const buyColumns = shallowRef<Model.TableColumn[]>([
|
|
|
- { prop: 'orderprice', label: '买价' },
|
|
|
- { prop: 'orderqty', label: '买量' },
|
|
|
- { prop: 'username', label: '购买方' },
|
|
|
-])
|
|
|
+const buyColumns = shallowRef<Model.TableColumn[]>(
|
|
|
+ oem != 'zrwyt' ? [{ prop: 'fixedprice', label: '买价' },
|
|
|
+ { prop: 'orderqty', label: '买量' },
|
|
|
+ { prop: 'username', label: '购买方' }] :
|
|
|
+ [{ prop: 'fixedprice', label: '买价' },
|
|
|
+ { prop: 'orderqty', label: '买量' }]
|
|
|
+)
|
|
|
|
|
|
-const sellColumns = shallowRef<Model.TableColumn[]>([
|
|
|
- { prop: 'orderprice', label: '卖价' },
|
|
|
- { prop: 'orderqty', label: '卖量' },
|
|
|
- { prop: 'username', label: '销售方' },
|
|
|
-])
|
|
|
+const sellColumns = shallowRef<Model.TableColumn[]>(
|
|
|
+ oem != 'zrwyt' ? [{ prop: 'fixedprice', label: '卖价' },
|
|
|
+ { prop: 'orderqty', label: '卖量' },
|
|
|
+ { prop: 'username', label: '销售方' }] :
|
|
|
+ [{ prop: 'fixedprice', label: '卖价' },
|
|
|
+ { prop: 'orderqty', label: '卖量' }]
|
|
|
+)
|
|
|
|
|
|
const showComponent = (componentName: string, row: Model.WrTradeOrderDetailRsp) => {
|
|
|
selectedRow.value = row
|