|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <!-- 仓单贸易 一口价挂牌-->
|
|
|
+ <!--订单交易 基差点价-->
|
|
|
<div class="topTableHeight">
|
|
|
<a-table :columns="columns"
|
|
|
class="srcollYTable"
|
|
|
@@ -9,7 +9,7 @@
|
|
|
:expandedRowKeys="expandedRowKeys"
|
|
|
:customRow="Rowclick"
|
|
|
rowKey="key"
|
|
|
- :data-source="tableList"></a-table>
|
|
|
+ :data-source="deliverGoods"></a-table>
|
|
|
<!-- 右键 -->
|
|
|
<contextMenu :contextMenu="contextMenu"
|
|
|
@cancel="closeContext"
|
|
|
@@ -30,6 +30,7 @@ import { queryOrderQuote } from '@/services/go/wrtrade';
|
|
|
import { handleComposeTable } from '@/views/market/spot_trade/setup';
|
|
|
import Bus from '@/utils/eventBus/index';
|
|
|
import Filter from '../../components/filter/index.vue';
|
|
|
+import { handleDeliveryRelation } from '../setup';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: EnumRouterName.spot_trade_order_transaction_basis_difference,
|
|
|
@@ -37,12 +38,13 @@ export default defineComponent({
|
|
|
contextMenu,
|
|
|
// [ModalEnum.spot_trade_warehouse_detail]: defineAsyncComponent(() => import('../../components/detail/index.vue')),
|
|
|
// [ModalEnum.spot_trade_warehouse_post_buying]: defineAsyncComponent(() => import('../../components/post_buying/index.vue')),
|
|
|
- // buyAndSell: defineAsyncComponent(() => import('../../components/buy-sell-market/index.vue')),
|
|
|
+ buyAndSell: defineAsyncComponent(() => import('../components/buy-sell-market/index.vue')),
|
|
|
// postBuying: defineAsyncComponent(() => import('../../components/post_buying/index.vue')),
|
|
|
},
|
|
|
setup() {
|
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList<WrOrderQuote>();
|
|
|
+ const { deliverGoods } = handleDeliveryRelation([2, 4]);
|
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => {
|
|
|
const param: QueryOrderQuoteReq = {
|
|
|
@@ -55,55 +57,15 @@ export default defineComponent({
|
|
|
const param: ComposeTableParam = {
|
|
|
queryFn: queryTableAction,
|
|
|
menuType: EnumRouterName.warehouse_receipt_trade_price,
|
|
|
- tableName: 'table_pcweb_financing_manage_order_transaction',
|
|
|
+ tableName: 'table_pcweb_spot_trade_warehouse_price',
|
|
|
tableFilterKey: [],
|
|
|
isDetail: false,
|
|
|
};
|
|
|
- const {
|
|
|
- contextMenu,
|
|
|
- openContext,
|
|
|
- closeContext, // 右键
|
|
|
- columns,
|
|
|
- registerColumn,
|
|
|
- updateColumn, // 表头
|
|
|
- expandedRowKeys,
|
|
|
- selectedRow,
|
|
|
- Rowclick, // 表格折腾面板数据与单击、双击事件
|
|
|
- componentId,
|
|
|
- closeComponent, // 控制异步组件
|
|
|
- firstBtn, // 表格按钮
|
|
|
- } = handleComposeTable<WrOrderQuote>(param);
|
|
|
- function search(value: Object) {
|
|
|
- const param: QueryOrderQuoteReq = {
|
|
|
- wrpricetype: 1,
|
|
|
- haswr: 1,
|
|
|
- };
|
|
|
- Object.assign(param, value);
|
|
|
- queryTable(queryOrderQuote, param);
|
|
|
- }
|
|
|
- function buyOpen(value: any, goods: any) {
|
|
|
- componentId.value = 'postBuying';
|
|
|
- selectedRow.value = value;
|
|
|
- }
|
|
|
-
|
|
|
return {
|
|
|
- contextMenu,
|
|
|
- openContext,
|
|
|
- closeContext, // 右键
|
|
|
- columns,
|
|
|
- registerColumn,
|
|
|
- updateColumn, // 表头
|
|
|
- expandedRowKeys,
|
|
|
- selectedRow,
|
|
|
- Rowclick, // 表格折腾面板数据与单击、双击事件
|
|
|
- componentId,
|
|
|
- closeComponent, // 控制异步组件
|
|
|
- firstBtn, // 表格按钮
|
|
|
- name: EnumRouterName.warehouse_receipt_trade_price,
|
|
|
+ ...handleComposeTable<WrOrderQuote>(param),
|
|
|
loading,
|
|
|
- tableList,
|
|
|
- search,
|
|
|
- buyOpen,
|
|
|
+ // tableList,
|
|
|
+ deliverGoods,
|
|
|
};
|
|
|
},
|
|
|
});
|