|
@@ -1,16 +1,66 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 仓单预售 浮动价预售-->
|
|
|
|
|
- <div class="warehouse_pre_sale_floating_price topTableHeight">浮动价预售</div>
|
|
|
|
|
|
|
+ <!-- 仓单预售 浮动价预售-->
|
|
|
|
|
+ <div class="topTableHeight">
|
|
|
|
|
+ <a-table :columns="columns"
|
|
|
|
|
+ class="srcollYTable"
|
|
|
|
|
+ :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }"
|
|
|
|
|
+ :pagination="false"
|
|
|
|
|
+ :loading="loading"
|
|
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
+ :customRow="Rowclick"
|
|
|
|
|
+ rowKey="key"
|
|
|
|
|
+ :data-source="tableList"></a-table>
|
|
|
|
|
+ <!-- 右键 -->
|
|
|
|
|
+ <contextMenu :contextMenu="contextMenu"
|
|
|
|
|
+ @cancel="closeContext"
|
|
|
|
|
+ :list="firstBtn"></contextMenu>
|
|
|
|
|
+ <component :is="componentId"
|
|
|
|
|
+ v-if="componentId"
|
|
|
|
|
+ :enumName="name"
|
|
|
|
|
+ :selectedRow="selectedRow"
|
|
|
|
|
+ @cancel="closeComponent"></component>
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
-import { defineComponent } from '@/common/export/commonTable';
|
|
|
|
|
|
|
+import { queryTableList, BtnList, contextMenu, defineAsyncComponent, defineComponent, ModalEnum, ComposeTableParam } from '@/common/export/commonTable';
|
|
|
|
|
+import { QueryOrderQuoteReq, WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
|
|
|
+import { queryOrderQuote } from '@/services/go/wrtrade';
|
|
|
|
|
+import { handleComposeTable } from '@/views/market/spot_trade/setup';
|
|
|
|
|
+import { subscribeInfoType } from '@/services/socket/quota/interface';
|
|
|
|
|
+import { v4 as uuidv4 } from 'uuid';
|
|
|
|
|
+import { addSubscribeQuotation } from '@/services/socket/quota';
|
|
|
|
|
+import { onMounted } from 'vue';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: EnumRouterName.warehouse_pre_sale_floating_price,
|
|
name: EnumRouterName.warehouse_pre_sale_floating_price,
|
|
|
setup() {
|
|
setup() {
|
|
|
- return {};
|
|
|
|
|
|
|
+ // 表格列表数据
|
|
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<WrOrderQuote>();
|
|
|
|
|
+ let uuid = uuidv4();
|
|
|
|
|
+ // 获取列表数据
|
|
|
|
|
+ const queryTableAction = () => {
|
|
|
|
|
+ const param: QueryOrderQuoteReq = {
|
|
|
|
|
+ wrpricetype: 2,
|
|
|
|
|
+ haswr: 0,
|
|
|
|
|
+ };
|
|
|
|
|
+ };
|
|
|
|
|
+
|
|
|
|
|
+ // 表格通用逻辑
|
|
|
|
|
+ const param: ComposeTableParam = {
|
|
|
|
|
+ queryFn: queryTableAction,
|
|
|
|
|
+ menuType: EnumRouterName.warehouse_pre_sale_floating_price,
|
|
|
|
|
+ tableName: 'table_pcweb_spot_trade_warehouse_sale_float',
|
|
|
|
|
+ tableFilterKey: [],
|
|
|
|
|
+ isDetail: false,
|
|
|
|
|
+ };
|
|
|
|
|
+ return {
|
|
|
|
|
+ ...handleComposeTable<WrOrderQuote>(param),
|
|
|
|
|
+ name: EnumRouterName.warehouse_pre_sale_floating_price,
|
|
|
|
|
+ loading,
|
|
|
|
|
+ tableList,
|
|
|
|
|
+ };
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
</script>
|
|
</script>
|