|
|
@@ -1,52 +1,50 @@
|
|
|
<template>
|
|
|
- <!-- 仓单贸易&仓单预售 融资-->
|
|
|
+ <!-- 仓单贸易&仓单预售 融资-->
|
|
|
|
|
|
- <Drawer
|
|
|
- :title="'选择融资方案'"
|
|
|
- :placement="'right'"
|
|
|
- :visible="visible"
|
|
|
- width="486px"
|
|
|
- height="580px"
|
|
|
- @cancel="update"
|
|
|
- class="topHigh financing"
|
|
|
- >
|
|
|
- <div class="financingCont">
|
|
|
- <a-row class="f-t">
|
|
|
- <a-col :span="7">融出方/名称</a-col>
|
|
|
- <a-col :span="10">天数/保证金/利息</a-col>
|
|
|
- <a-col :span="7">结息/起息天数</a-col>
|
|
|
+ <Drawer :title="'选择融资方案'"
|
|
|
+ :placement="'right'"
|
|
|
+ :visible="visible"
|
|
|
+ width="486px"
|
|
|
+ height="580px"
|
|
|
+ @cancel="update"
|
|
|
+ class="top financing">
|
|
|
+ <div class="financingCont">
|
|
|
+ <a-row class="f-t">
|
|
|
+ <a-col :span="7">融出方/名称</a-col>
|
|
|
+ <a-col :span="10">天数/保证金/利息</a-col>
|
|
|
+ <a-col :span="7">结息/起息天数</a-col>
|
|
|
+ </a-row>
|
|
|
+ <div class="contBar"
|
|
|
+ v-for="(item, index) in list"
|
|
|
+ :key="index + 11"
|
|
|
+ @click="choose(item)">
|
|
|
+ <a-row class="firstRow">
|
|
|
+ <a-col :span="7">{{item.productname}}</a-col>
|
|
|
+ <a-col :span="17"
|
|
|
+ v-if="item.isautoloan">放款快</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="secondRow">
|
|
|
+ <a-col :span="7">{{item.username}}</a-col>
|
|
|
+ <a-col :span="10">
|
|
|
+ <a-row class="middle">
|
|
|
+ <a-col :span="7">{{item.financingdays}}天</a-col>
|
|
|
+ <a-col :span="10">{{item.marginratio * 100}}%</a-col>
|
|
|
+ <a-col :span="7">{{item.interestrate * 100}}%</a-col>
|
|
|
</a-row>
|
|
|
- <div
|
|
|
- class="contBar"
|
|
|
- v-for="(item, index) in list"
|
|
|
- :key="index + 11"
|
|
|
- @click="choose(item)"
|
|
|
- >
|
|
|
- <a-row class="firstRow">
|
|
|
- <a-col :span="7">{{item.productname}}</a-col>
|
|
|
- <a-col :span="17" v-if="item.isautoloan">放款快</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="secondRow">
|
|
|
- <a-col :span="7">{{item.username}}</a-col>
|
|
|
- <a-col :span="10">
|
|
|
- <a-row class="middle">
|
|
|
- <a-col :span="7">{{item.financingdays}}天</a-col>
|
|
|
- <a-col :span="10">{{item.marginratio * 100}}%</a-col>
|
|
|
- <a-col :span="7">{{item.interestrate * 100}}%</a-col>
|
|
|
- </a-row>
|
|
|
- </a-col>
|
|
|
- <a-col :span="7">
|
|
|
- <div class="settle">
|
|
|
- <div>{{item.interestsettlemode === 1 ? '日' : '月'}}结</div>
|
|
|
- <div>{{item.interestminlen}}天起息</div>
|
|
|
- </div>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </div>
|
|
|
- <div class="noDataContBar" v-if="!list.length">
|
|
|
- <div class="noData"></div>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="7">
|
|
|
+ <div class="settle">
|
|
|
+ <div>{{item.interestsettlemode === 1 ? '日' : '月'}}结</div>
|
|
|
+ <div>{{item.interestminlen}}天起息</div>
|
|
|
</div>
|
|
|
- <!-- <div class="contBar">
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </div>
|
|
|
+ <div class="noDataContBar"
|
|
|
+ v-if="!list.length">
|
|
|
+ <div class="noData"></div>
|
|
|
+ </div>
|
|
|
+ <!-- <div class="contBar">
|
|
|
<a-row class="firstRow">
|
|
|
<a-col :span="7">铜供应链金融</a-col>
|
|
|
<a-col :span="17">放款快</a-col>
|
|
|
@@ -90,26 +88,18 @@
|
|
|
</a-col>
|
|
|
</a-row>
|
|
|
</div>-->
|
|
|
- </div>
|
|
|
- </Drawer>
|
|
|
+ </div>
|
|
|
+ </Drawer>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
import { PlusOutlined, MinusOutlined } from '@ant-design/icons-vue';
|
|
|
-import { defineComponent, PropType, ref } from 'vue';
|
|
|
+import { defineComponent, PropType } from 'vue';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import { WrFAProductDetail, WrOrderQuote, WrOrderQuoteDetail } from '@/services/go/wrtrade/interface';
|
|
|
-import { getAccountTypeList, getSelectedAccountId, getUserId } from '@/services/bus/account';
|
|
|
-import { queryResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
-import { HdWRDealOrder } from '@/services/proto/warehousetrade';
|
|
|
-import { v4 as uuidv4 } from 'uuid';
|
|
|
-import moment from 'moment';
|
|
|
+import { WrFAProductDetail, WrOrderQuoteDetail } from '@/services/go/wrtrade/interface';
|
|
|
import { ModalEnum } from '@/common/constants/modalNameEnum';
|
|
|
-import { HdWRDealOrderReq } from '@/services/proto/warehousetrade/interface';
|
|
|
import { _closeModal } from '@/common/setup/modal/modal';
|
|
|
-import { validateAction } from '@/common/setup/form';
|
|
|
-import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
-import { queryFaProductDetail } from '@/services/go/wrtrade';
|
|
|
+import { getFinacingList } from '../../../../setup';
|
|
|
export default defineComponent({
|
|
|
name: ModalEnum.spot_trade_warehouse_delisting,
|
|
|
components: { Drawer, PlusOutlined, MinusOutlined },
|
|
|
@@ -123,12 +113,7 @@ export default defineComponent({
|
|
|
|
|
|
setup(props, context) {
|
|
|
const { visible, cancel } = _closeModal(context);
|
|
|
- const list = ref<WrFAProductDetail[]>([]);
|
|
|
- const loading = ref<boolean>(false);
|
|
|
- queryResultLoadingAndInfo(queryFaProductDetail, loading, { wrfactortypeid: props.selectedRow.wrtradeorderid }).then((res) => {
|
|
|
- list.value = res;
|
|
|
- });
|
|
|
- queryFaProductDetail;
|
|
|
+ const list = getFinacingList();
|
|
|
function update() {
|
|
|
cancel();
|
|
|
context.emit('cancel');
|
|
|
@@ -141,7 +126,6 @@ export default defineComponent({
|
|
|
visible,
|
|
|
update,
|
|
|
choose,
|
|
|
- loading,
|
|
|
list,
|
|
|
};
|
|
|
},
|