|
@@ -1,34 +1,36 @@
|
|
|
<template>
|
|
<template>
|
|
|
<!-- 仓单贸易 贸易圈挂牌 卖-->
|
|
<!-- 仓单贸易 贸易圈挂牌 卖-->
|
|
|
- <div>
|
|
|
|
|
- <a-table :columns="columns" :class="['srcollYTable', isBottom ? 'condSecondTabTableHalfTop' : 'condSecondTabTableHalfTopNoBottom', 'halfBottom', tableList.length ? 'noPlaceHolder' : 'hasPlaceHolder']" :scroll="{ x: '100%', y: isBottom ? 'calc((100vh- 443px)/2 - 14px)' : 'calc((100vh - 196px)/2 - 16px)' }" :pagination="false" :loading="loading" :expandedRowKeys="expandedRowKeys" :customRow="Rowclick" rowKey="key" :data-source="tableList">
|
|
|
|
|
- <template #index="{ index }">
|
|
|
|
|
- <span>{{ index + 1 }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #marginvalue="{ text }">
|
|
|
|
|
- <span>{{ (text * 100).toFixed(2) + '%'}}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- <!-- 议价 -->
|
|
|
|
|
- <template #canbargain="{ text }">
|
|
|
|
|
- <span>{{ text ? '是' : '否' }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- <!-- 整单 -->
|
|
|
|
|
- <template #canpart="{ text }">
|
|
|
|
|
- <span>{{ text === 1 ? '否' : '是' }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- <!-- 挂牌有效期 -->
|
|
|
|
|
- <template #validtime="{ text }">
|
|
|
|
|
- <span>{{ formatTime(text, 'd') }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </a-table>
|
|
|
|
|
- <!-- 右键 -->
|
|
|
|
|
- <contextMenu :contextMenu="contextMenu" @cancel="closeContext" :list="filterBtn(firstBtn, selectedRow)"></contextMenu>
|
|
|
|
|
- <component :is="componentId" v-if="componentId" :componentId="componentId" :selectedRow="selectedRow" :buyOrSell="BuyOrSell.Buy" @cancel="closeComponent"></component>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <mtp-table-scroll>
|
|
|
|
|
+ <template #default="{ scroll }">
|
|
|
|
|
+ <a-table :columns="columns" class="srcollYTable halfBottom" :scroll="scroll" :pagination="false" :loading="loading" :customRow="Rowclick" :rowKey="(record, index) => index" :data-source="tableList">
|
|
|
|
|
+ <template #index="{ index }">
|
|
|
|
|
+ <span>{{ index + 1 }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #marginvalue="{ text }">
|
|
|
|
|
+ <span>{{ (text * 100).toFixed(2) + '%'}}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 议价 -->
|
|
|
|
|
+ <template #canbargain="{ text }">
|
|
|
|
|
+ <span>{{ text ? '是' : '否' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 整单 -->
|
|
|
|
|
+ <template #canpart="{ text }">
|
|
|
|
|
+ <span>{{ text === 1 ? '否' : '是' }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <!-- 挂牌有效期 -->
|
|
|
|
|
+ <template #validtime="{ text }">
|
|
|
|
|
+ <span>{{ formatTime(text, 'd') }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </mtp-table-scroll>
|
|
|
|
|
+ <!-- 右键 -->
|
|
|
|
|
+ <!-- <contextMenu :contextMenu="contextMenu" @cancel="closeContext" :list="filterBtn(firstBtn, selectedRow)"></contextMenu> -->
|
|
|
|
|
+ <component :is="componentId" v-if="componentId" :componentId="componentId" :selectedRow="selectedRow" :buyOrSell="BuyOrSell.Buy" @cancel="closeComponent"></component>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
|
|
|
|
+import MtpTableScroll from '@/common/components/tableScroll/index.vue';
|
|
|
import { queryTableList, contextMenu, defineAsyncComponent, defineComponent, ModalEnum, ComposeTableParam } from '@/common/export/commonTable';
|
|
import { queryTableList, contextMenu, defineAsyncComponent, defineComponent, ModalEnum, ComposeTableParam } from '@/common/export/commonTable';
|
|
|
import { QueryOrderQuoteMyqQsp, QueryOrderQuoteMyqReq, QueryOrderQuoteReq, WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
import { QueryOrderQuoteMyqQsp, QueryOrderQuoteMyqReq, QueryOrderQuoteReq, WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
|
import { queryOrderQuote, queryQueryOrderQuoteMyq } from '@/services/go/wrtrade';
|
|
import { queryOrderQuote, queryQueryOrderQuoteMyq } from '@/services/go/wrtrade';
|
|
@@ -44,6 +46,7 @@ import Bus from '@/utils/eventBus/index';
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'warehouse_receipt_trade_blocs_buy',
|
|
name: 'warehouse_receipt_trade_blocs_buy',
|
|
|
components: {
|
|
components: {
|
|
|
|
|
+ MtpTableScroll,
|
|
|
contextMenu,
|
|
contextMenu,
|
|
|
warehouse_receipt_trade_blocs_delisting: defineAsyncComponent(() => import('../delisting/index.vue')),
|
|
warehouse_receipt_trade_blocs_delisting: defineAsyncComponent(() => import('../delisting/index.vue')),
|
|
|
warehouse_receipt_trade_blocs_bargain_delisting: defineAsyncComponent(() => import('../delisting/index.vue')),
|
|
warehouse_receipt_trade_blocs_bargain_delisting: defineAsyncComponent(() => import('../delisting/index.vue')),
|