|
|
@@ -19,6 +19,9 @@
|
|
|
class="btn-list-sticky"
|
|
|
@click="openComponent" />
|
|
|
</template>
|
|
|
+ <template #fixedprice="{record }">
|
|
|
+ <span>{{record.useorderpricerid }}</span>
|
|
|
+ </template>
|
|
|
<template #username="{text, record }">
|
|
|
<span>{{record.userid + " "}}{{text}}</span>
|
|
|
</template>
|
|
|
@@ -32,19 +35,19 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
-import { ComposeTableParam, BtnList, defineComponent, handleComposeTable, queryTableList, ModalEnum } from '@/common/export/commonTable';
|
|
|
+import { BtnList, defineComponent, queryTableList } from '@/common/export/commonTable';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
-import { queryOrderQuoteDetail, queryWrTradeOrderDetail } from '@/services/go/wrtrade';
|
|
|
-import { QueryOrderQuoteDetailReq, WrOrderQuote, WrOrderQuoteDetail, WrTradeOrderDetailReq } from '@/services/go/wrtrade/interface';
|
|
|
+import { queryWrTradeOrderDetail } from '@/services/go/wrtrade';
|
|
|
+import { WrOrderQuote, WrOrderQuoteDetail, WrTradeOrderDetailReq } from '@/services/go/wrtrade/interface';
|
|
|
import { defineAsyncComponent, PropType } from 'vue';
|
|
|
import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
import { ColumnType } from '@/common/methods/table/interface';
|
|
|
-import { Moment } from 'moment';
|
|
|
-import moment from 'moment';
|
|
|
+
|
|
|
import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
+import { TableParam } from '@/common/setup/table/interface';
|
|
|
+import { handleTableEventAndData } from '@/common/setup/table/compose';
|
|
|
|
|
|
export default defineComponent({
|
|
|
emits: ['cancel', 'openComponent'],
|
|
|
@@ -63,7 +66,14 @@ export default defineComponent({
|
|
|
const isBottom = getShowBottomValue();
|
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList<WrOrderQuoteDetail>();
|
|
|
+ const columnsList = [
|
|
|
+ { title: '序号', key: 'index' },
|
|
|
+ { title: '买价', key: 'orderprice' },
|
|
|
+ { title: '买量', key: 'orderqty' },
|
|
|
+ { title: '购买方', key: 'username' },
|
|
|
+ ];
|
|
|
const btnListData: BtnListType[] = [{ lable: '摘牌', code: 'Delisting', className: 'operBtn' }];
|
|
|
+
|
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => {
|
|
|
const param: WrTradeOrderDetailReq = {
|
|
|
@@ -72,13 +82,9 @@ export default defineComponent({
|
|
|
};
|
|
|
queryTable(queryWrTradeOrderDetail, param);
|
|
|
};
|
|
|
- // 表格通用逻辑
|
|
|
- const param: ComposeTableParam = {
|
|
|
+ const param: TableParam = {
|
|
|
+ columnsList,
|
|
|
queryFn: queryTableAction,
|
|
|
- menuType: EnumRouterName.warehouse_receipt_trade_price,
|
|
|
- tableName: 'table_pcweb_spot_trade_warehouse_price_trading_hall_buy',
|
|
|
- tableFilterKey: [],
|
|
|
- isDetail: false,
|
|
|
};
|
|
|
function handleColumn(columns: ColumnType[]) {
|
|
|
columns.forEach((item) => {
|
|
|
@@ -90,7 +96,7 @@ export default defineComponent({
|
|
|
}
|
|
|
return {
|
|
|
isBottom,
|
|
|
- ...handleComposeTable<WrOrderQuoteDetail>(param),
|
|
|
+ ...handleTableEventAndData(param),
|
|
|
queryTableAction,
|
|
|
BuyOrSell,
|
|
|
loading,
|
|
|
@@ -98,6 +104,7 @@ export default defineComponent({
|
|
|
expandIcon,
|
|
|
handleColumn,
|
|
|
btnListData,
|
|
|
+ columnsList,
|
|
|
};
|
|
|
},
|
|
|
});
|