|
@@ -87,11 +87,11 @@
|
|
|
<a-col :span="24"
|
|
<a-col :span="24"
|
|
|
class="mt-10">
|
|
class="mt-10">
|
|
|
<a-form-item label="融资方案"
|
|
<a-form-item label="融资方案"
|
|
|
|
|
+ @click="openComponent({code: 'ChooseFinance'})"
|
|
|
name="case">
|
|
name="case">
|
|
|
<div class="way">
|
|
<div class="way">
|
|
|
<div class="left">铜供应链金融-铜杆帮你采-30天-10%-11%-按日结息-1天起息</div>
|
|
<div class="left">铜供应链金融-铜杆帮你采-30天-10%-11%-按日结息-1天起息</div>
|
|
|
- <div class="right"
|
|
|
|
|
- @click="showAction">
|
|
|
|
|
|
|
+ <div class="right">
|
|
|
<svg class="icon svg-icon"
|
|
<svg class="icon svg-icon"
|
|
|
aria-hidden="true">
|
|
aria-hidden="true">
|
|
|
<use xlink:href="#icon-fangan" />
|
|
<use xlink:href="#icon-fangan" />
|
|
@@ -126,13 +126,18 @@
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</Drawer>
|
|
</Drawer>
|
|
|
- <ChooseFinance v-if="show"
|
|
|
|
|
- @cancel="showAction" />
|
|
|
|
|
|
|
+ <!-- <ChooseFinance v-if="show"
|
|
|
|
|
+ @cancel="showAction" /> -->
|
|
|
|
|
+ <component :is="componentId"
|
|
|
|
|
+ v-if="componentId"
|
|
|
|
|
+ :selectedRow="selectedRow"
|
|
|
|
|
+ @cancel="closeComponent">
|
|
|
|
|
+ </component>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
import { PlusOutlined, MinusOutlined } from '@ant-design/icons-vue';
|
|
import { PlusOutlined, MinusOutlined } from '@ant-design/icons-vue';
|
|
|
-import { defineComponent, PropType, ref } from 'vue';
|
|
|
|
|
|
|
+import { defineAsyncComponent, defineComponent, PropType, ref } from 'vue';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
import { WrOrderQuote, WrOrderQuoteDetail } from '@/services/go/wrtrade/interface';
|
|
import { WrOrderQuote, WrOrderQuoteDetail } from '@/services/go/wrtrade/interface';
|
|
|
import { getAccountTypeList, getSelectedAccountId, getUserId } from '@/services/bus/account';
|
|
import { getAccountTypeList, getSelectedAccountId, getUserId } from '@/services/bus/account';
|
|
@@ -148,10 +153,10 @@ import { validateAction } from '@/common/setup/form';
|
|
|
import { ListingForm } from './interface';
|
|
import { ListingForm } from './interface';
|
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
import { BuyOrSell } from '@/common/constants/enumCommon';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
-import ChooseFinance from './components/choose-finance/index.vue';
|
|
|
|
|
|
|
+import { handleModalComponent } from '@/common/setup/asyncComponent';
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: ModalEnum.spot_trade_warehouse_delisting,
|
|
name: ModalEnum.spot_trade_warehouse_delisting,
|
|
|
- components: { Drawer, PlusOutlined, MinusOutlined, ChooseFinance },
|
|
|
|
|
|
|
+ components: { Drawer, ChooseFinance: defineAsyncComponent(() => import('./components/choose-finance/index.vue')) },
|
|
|
emits: ['cancel'],
|
|
emits: ['cancel'],
|
|
|
props: {
|
|
props: {
|
|
|
enumName: {
|
|
enumName: {
|
|
@@ -182,6 +187,7 @@ export default defineComponent({
|
|
|
const loading = ref<boolean>(false);
|
|
const loading = ref<boolean>(false);
|
|
|
const { isSale, isBuy, isFloat } = handleIs(props.enumName, props.buyOrSell);
|
|
const { isSale, isBuy, isFloat } = handleIs(props.enumName, props.buyOrSell);
|
|
|
const { wrHoldList } = handleSpotWarrant(props.enumName, props.buyOrSell, props.parantSelectedRow, loading);
|
|
const { wrHoldList } = handleSpotWarrant(props.enumName, props.buyOrSell, props.parantSelectedRow, loading);
|
|
|
|
|
+ const { componentId, closeComponent, openComponent } = handleModalComponent(() => {}, ref({}));
|
|
|
|
|
|
|
|
const show = ref<boolean>(false);
|
|
const show = ref<boolean>(false);
|
|
|
function showAction() {
|
|
function showAction() {
|
|
@@ -238,6 +244,9 @@ export default defineComponent({
|
|
|
formRef,
|
|
formRef,
|
|
|
show,
|
|
show,
|
|
|
showAction,
|
|
showAction,
|
|
|
|
|
+ componentId,
|
|
|
|
|
+ closeComponent,
|
|
|
|
|
+ openComponent,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|