|
|
@@ -1,55 +1,85 @@
|
|
|
<template>
|
|
|
- <!-- 单据记录 商品合约-->
|
|
|
- <div class="topTableHeight">
|
|
|
+ <!-- 融资查询 申请单 -->
|
|
|
+ <section>
|
|
|
<a-table :columns="columns"
|
|
|
- class="srcollYTable"
|
|
|
- :scroll="{ x: '100%', y: 'calc(100vh - 479px)' }"
|
|
|
+ class="srcollYTable expandLeftTable"
|
|
|
+ :scroll="{ x: '100%', y: '227px' }"
|
|
|
:pagination="false"
|
|
|
:loading="loading"
|
|
|
:expandedRowKeys="expandedRowKeys"
|
|
|
:customRow="Rowclick"
|
|
|
+ :expandIcon="expandIcon"
|
|
|
+ :expandIconAsCell="false"
|
|
|
rowKey="key"
|
|
|
:data-source="tableList">
|
|
|
+ <!-- 类型 -->
|
|
|
+ <template #financetype="{ record }">
|
|
|
+ <a>{{ getFinanceTypeName(record.financetype) }}</a>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 状态 -->
|
|
|
+ <template #applystatus="{ text }">
|
|
|
+ <a>{{ getApplyStatusFinanceName(text) }}</a>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <template #createtime="{ record }">
|
|
|
+ <a>{{ formatTime(record.createtime) }}</a>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 结算方式 1:按日结息 3:按月结息-->
|
|
|
+ <template #interestsettlemode="{ record }">
|
|
|
+ <a>{{ getInterestSettleModeName(record.interestsettlemode) }}</a>
|
|
|
+ </template>
|
|
|
+ <!-- 费用 -->
|
|
|
+ <template #interestsettlevalue="{ record }">
|
|
|
+ <a>{{ getInterestrateModeName(record.interestratemode, record.interestrate) }}</a>
|
|
|
+ </template>
|
|
|
+
|
|
|
</a-table>
|
|
|
- </div>
|
|
|
+ </section>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
+import { queryTableList, defineComponent } from '@/common/export/commonTable';
|
|
|
+import { queryWrFinanceBuyApply } from '@/services/go/wrtrade';
|
|
|
+import { WrFinanceBuyApply } from '@/services/go/wrtrade/interface';
|
|
|
+import { getRecordItemTab } from '@/common/setup/order/orderData';
|
|
|
+import { handleComposeOrderTable } from '@/common/setup/table/compose';
|
|
|
+import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
|
+import { formatTime } from '@/common/methods';
|
|
|
+import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
+import { getApplyStatusFinanceName, getFinanceTypeName, getInterestrateModeName, getInterestSettleModeName } from '@/common/constants/enumsName';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
-import { queryTableList, defineComponent, ComposeTableParam } from '@/common/export/commonTable';
|
|
|
-import { QueryOrderQuoteReq, WrOrderQuote } from '@/services/go/wrtrade/interface';
|
|
|
-import { queryOrderQuote } from '@/services/go/wrtrade';
|
|
|
-import { handleComposeTable } from '@/views/market/spot_trade/setup';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: EnumRouterName.search_financing_inquiry_apply_order,
|
|
|
setup() {
|
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList<WrOrderQuote>();
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<WrFinanceBuyApply>();
|
|
|
// 获取列表数据
|
|
|
const queryTableAction = () => {
|
|
|
- const param: QueryOrderQuoteReq = {
|
|
|
- wrpricetype: 1,
|
|
|
- haswr: 0,
|
|
|
- };
|
|
|
- queryTable(queryOrderQuote, param);
|
|
|
+ queryTable(queryWrFinanceBuyApply);
|
|
|
};
|
|
|
// 表格通用逻辑
|
|
|
- const param: ComposeTableParam = {
|
|
|
+ const param: ComposeOrderTableParam = {
|
|
|
queryFn: queryTableAction,
|
|
|
- menuType: EnumRouterName.warehouse_pre_sale_price,
|
|
|
- tableName: 'table_pcweb_spot_trade_warehouse_sale_price',
|
|
|
- tableFilterKey: [],
|
|
|
- isDetail: false,
|
|
|
+ tableName: 'table_pcweb_financing_manage_bottom_apply_order',
|
|
|
+ recordList: getRecordItemTab(),
|
|
|
};
|
|
|
-
|
|
|
return {
|
|
|
- ...handleComposeTable<WrOrderQuote>(param),
|
|
|
+ ...handleComposeOrderTable<WrFinanceBuyApply>(param),
|
|
|
loading,
|
|
|
tableList,
|
|
|
+ formatTime,
|
|
|
+ expandIcon,
|
|
|
+ getFinanceTypeName,
|
|
|
+ getApplyStatusFinanceName,
|
|
|
+ getInterestrateModeName,
|
|
|
+ getInterestSettleModeName,
|
|
|
};
|
|
|
},
|
|
|
});
|
|
|
</script>
|
|
|
+
|
|
|
<style lang="less">
|
|
|
-</style>
|
|
|
+</style>;
|