|
|
@@ -1,98 +1,100 @@
|
|
|
<template>
|
|
|
- <!-- 仓单贸易&仓单预售 融资-->
|
|
|
+ <!-- 仓单贸易&仓单预售 融资-->
|
|
|
|
|
|
- <Drawer
|
|
|
- :title="'选择融资方案'"
|
|
|
- :placement="'top'"
|
|
|
- :visible="visible"
|
|
|
- width="486px"
|
|
|
- height="479px"
|
|
|
- @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>
|
|
|
+ <Drawer :title="'选择融资方案'"
|
|
|
+ :placement="'top'"
|
|
|
+ :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">
|
|
|
- <a-row class="firstRow">
|
|
|
- <a-col :span="7">铜供应链金融</a-col>
|
|
|
- <a-col :span="17">放款快</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="secondRow">
|
|
|
- <a-col :span="7">铜杆帮你采</a-col>
|
|
|
- <a-col :span="10">
|
|
|
- <a-row class="middle">
|
|
|
- <a-col :span="7">30天</a-col>
|
|
|
- <a-col :span="10">30%</a-col>
|
|
|
- <a-col :span="7">11%</a-col>
|
|
|
- </a-row>
|
|
|
- </a-col>
|
|
|
- <a-col :span="7">
|
|
|
- <div class="settle">
|
|
|
- <div>日结</div>
|
|
|
- <div>1天起息</div>
|
|
|
- </div>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="7">
|
|
|
+ <div class="settle">
|
|
|
+ <div>{{item.interestsettlemode === 1 ? '日' : '月'}}结</div>
|
|
|
+ <div>{{item.interestminlen}}天起息</div>
|
|
|
</div>
|
|
|
- <div class="contBar">
|
|
|
- <a-row class="firstRow">
|
|
|
- <a-col :span="7">铜供应链金融</a-col>
|
|
|
- <a-col :span="17">放款快</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="secondRow">
|
|
|
- <a-col :span="7">铜杆帮你采</a-col>
|
|
|
- <a-col :span="10">
|
|
|
- <a-row class="middle">
|
|
|
- <a-col :span="7">30天</a-col>
|
|
|
- <a-col :span="10">30%</a-col>
|
|
|
- <a-col :span="7">11%</a-col>
|
|
|
- </a-row>
|
|
|
- </a-col>
|
|
|
- <a-col :span="7">
|
|
|
- <div class="settle">
|
|
|
- <div>日结</div>
|
|
|
- <div>1天起息</div>
|
|
|
- </div>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </div>
|
|
|
+ <!-- <div class="contBar">
|
|
|
+ <a-row class="firstRow">
|
|
|
+ <a-col :span="7">铜供应链金融</a-col>
|
|
|
+ <a-col :span="17">放款快</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="secondRow">
|
|
|
+ <a-col :span="7">铜杆帮你采</a-col>
|
|
|
+ <a-col :span="10">
|
|
|
+ <a-row class="middle">
|
|
|
+ <a-col :span="7">30天</a-col>
|
|
|
+ <a-col :span="10">30%</a-col>
|
|
|
+ <a-col :span="7">11%</a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="7">
|
|
|
+ <div class="settle">
|
|
|
+ <div>日结</div>
|
|
|
+ <div>1天起息</div>
|
|
|
</div>
|
|
|
- <div class="contBar">
|
|
|
- <a-row class="firstRow">
|
|
|
- <a-col :span="7">铜供应链金融</a-col>
|
|
|
- <a-col :span="17">放款快</a-col>
|
|
|
- </a-row>
|
|
|
- <a-row class="secondRow">
|
|
|
- <a-col :span="7">铜杆帮你采</a-col>
|
|
|
- <a-col :span="10">
|
|
|
- <a-row class="middle">
|
|
|
- <a-col :span="7">30天</a-col>
|
|
|
- <a-col :span="10">30%</a-col>
|
|
|
- <a-col :span="7">11%</a-col>
|
|
|
- </a-row>
|
|
|
- </a-col>
|
|
|
- <a-col :span="7">
|
|
|
- <div class="settle">
|
|
|
- <div>日结</div>
|
|
|
- <div>1天起息</div>
|
|
|
- </div>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </div>
|
|
|
+ <div class="contBar">
|
|
|
+ <a-row class="firstRow">
|
|
|
+ <a-col :span="7">铜供应链金融</a-col>
|
|
|
+ <a-col :span="17">放款快</a-col>
|
|
|
+ </a-row>
|
|
|
+ <a-row class="secondRow">
|
|
|
+ <a-col :span="7">铜杆帮你采</a-col>
|
|
|
+ <a-col :span="10">
|
|
|
+ <a-row class="middle">
|
|
|
+ <a-col :span="7">30天</a-col>
|
|
|
+ <a-col :span="10">30%</a-col>
|
|
|
+ <a-col :span="7">11%</a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-col>
|
|
|
+ <a-col :span="7">
|
|
|
+ <div class="settle">
|
|
|
+ <div>日结</div>
|
|
|
+ <div>1天起息</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- </Drawer>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </div> -->
|
|
|
+ </div>
|
|
|
+ </Drawer>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
import { PlusOutlined, MinusOutlined } from '@ant-design/icons-vue';
|
|
|
import { defineComponent, PropType, ref } from 'vue';
|
|
|
import Drawer from '@/common/components/drawer/index.vue';
|
|
|
-import { WrOrderQuote, WrOrderQuoteDetail } from '@/services/go/wrtrade/interface';
|
|
|
+import { WrFAProductDetail, WrOrderQuote, WrOrderQuoteDetail } from '@/services/go/wrtrade/interface';
|
|
|
import { getAccountTypeList, getSelectedAccountId, getUserId } from '@/services/bus/account';
|
|
|
-import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
+import { queryResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
|
|
|
import { HdWRDealOrder } from '@/services/proto/warehousetrade';
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
import moment from 'moment';
|
|
|
@@ -101,34 +103,40 @@ 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';
|
|
|
export default defineComponent({
|
|
|
name: ModalEnum.spot_trade_warehouse_delisting,
|
|
|
components: { Drawer, PlusOutlined, MinusOutlined },
|
|
|
- emits: ['cancel'],
|
|
|
+ emits: ['cancel', 'update'],
|
|
|
props: {
|
|
|
- enumName: {
|
|
|
- default: '',
|
|
|
- type: String as PropType<EnumRouterName>,
|
|
|
- },
|
|
|
selectedRow: {
|
|
|
type: Object as PropType<WrOrderQuoteDetail>,
|
|
|
default: {},
|
|
|
},
|
|
|
- parantSelectedRow: {
|
|
|
- type: Object as PropType<WrOrderQuote>,
|
|
|
- default: {},
|
|
|
- },
|
|
|
},
|
|
|
|
|
|
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;
|
|
|
function update() {
|
|
|
cancel();
|
|
|
context.emit('cancel');
|
|
|
}
|
|
|
+ function choose(item: WrFAProductDetail) {
|
|
|
+ cancel();
|
|
|
+ context.emit('update', item);
|
|
|
+ }
|
|
|
return {
|
|
|
visible,
|
|
|
update,
|
|
|
+ choose,
|
|
|
+ loading,
|
|
|
+ list,
|
|
|
};
|
|
|
},
|
|
|
});
|