|
@@ -10,7 +10,7 @@
|
|
|
:customRow="Rowclick"
|
|
:customRow="Rowclick"
|
|
|
:expandIcon="expandIcon"
|
|
:expandIcon="expandIcon"
|
|
|
:expandIconAsCell="false"
|
|
:expandIconAsCell="false"
|
|
|
- rowKey="key"
|
|
|
|
|
|
|
+ :rowKey="(record, index) => index"
|
|
|
:data-source="tableList"
|
|
:data-source="tableList"
|
|
|
>
|
|
>
|
|
|
<!-- 额外的展开行 -->
|
|
<!-- 额外的展开行 -->
|
|
@@ -38,15 +38,17 @@ import { ComposeTableParam, BtnList, defineComponent, handleComposeTable, queryT
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
import { queryOrderQuoteDetail } from '@/services/go/wrtrade';
|
|
import { queryOrderQuoteDetail } from '@/services/go/wrtrade';
|
|
|
import { QueryOrderQuoteDetailReq, WrOrderQuote, WrOrderQuoteDetail } from '@/services/go/wrtrade/interface';
|
|
import { QueryOrderQuoteDetailReq, WrOrderQuote, WrOrderQuoteDetail } from '@/services/go/wrtrade/interface';
|
|
|
-import { defineAsyncComponent, PropType } from 'vue';
|
|
|
|
|
|
|
+import { defineAsyncComponent, PropType, ref } from 'vue';
|
|
|
import { BtnListType } from '@/common/components/btnList/interface';
|
|
import { BtnListType } from '@/common/components/btnList/interface';
|
|
|
-import { getSellMarketParam } from '../../setup';
|
|
|
|
|
|
|
+import { getSellMarketParam, setFinacingList } from '../../setup';
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
import { ColumnType } from '@/common/methods/table/interface';
|
|
import { ColumnType } from '@/common/methods/table/interface';
|
|
|
import { Moment } from 'moment';
|
|
import { Moment } from 'moment';
|
|
|
import moment from 'moment';
|
|
import moment from 'moment';
|
|
|
import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
import { getShowBottomValue } from '@/common/config/constrolBottom';
|
|
|
|
|
+import { queryResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
|
|
+import { queryFaProductDetail } from '@/services/go/wrtrade';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
emits: ['cancel', 'openComponent'],
|
|
emits: ['cancel', 'openComponent'],
|
|
@@ -79,11 +81,14 @@ export default defineComponent({
|
|
|
// 表格列表数据
|
|
// 表格列表数据
|
|
|
const { loading, tableList, queryTable } = queryTableList<WrOrderQuoteDetail>();
|
|
const { loading, tableList, queryTable } = queryTableList<WrOrderQuoteDetail>();
|
|
|
|
|
|
|
|
- // 后期区分 不同市场 添加判断 是否有融资摘牌
|
|
|
|
|
- const buttonList: BtnListType[] = [
|
|
|
|
|
- { lable: '摘牌', code: 'delisting', className: 'operBtn' },
|
|
|
|
|
- { lable: '融资摘牌', code: 'financing_delisting', className: 'operBtn' },
|
|
|
|
|
- ]
|
|
|
|
|
|
|
+ const buttonList = ref<BtnListType[]>([{ lable: '摘牌', code: 'delisting', className: 'operBtn' }])
|
|
|
|
|
+ // 融资摘牌
|
|
|
|
|
+ queryResultLoadingAndInfo(queryFaProductDetail, loading, { wrfactortypeid: props.parantSelectedRow.wrfactortypeid }).then((res) => {
|
|
|
|
|
+ if (res.length) {
|
|
|
|
|
+ setFinacingList(res)
|
|
|
|
|
+ buttonList.value.push({ lable: '融资摘牌', code: 'financing_delisting', className: 'operBtn' })
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
|
|
|
const { wrpricetype, haswr, tableKey } = getSellMarketParam(props.enumName);
|
|
const { wrpricetype, haswr, tableKey } = getSellMarketParam(props.enumName);
|
|
|
// 获取列表数据
|
|
// 获取列表数据
|