|
@@ -12,64 +12,124 @@
|
|
|
:expandIconAsCell="false"
|
|
:expandIconAsCell="false"
|
|
|
rowKey="key"
|
|
rowKey="key"
|
|
|
:data-source="tableList">
|
|
:data-source="tableList">
|
|
|
- <!-- 类型 -->
|
|
|
|
|
- <template #financetype="{ record }">
|
|
|
|
|
- <a>{{ getFinanceTypeName(record.financetype) }}</a>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
<!-- 状态 -->
|
|
<!-- 状态 -->
|
|
|
- <template #applystatus="{ text }">
|
|
|
|
|
- <a>{{ getApplyStatusFinanceName(text) }}</a>
|
|
|
|
|
|
|
+ <template #handle="{ record }">
|
|
|
|
|
+ <BtnList :btnList="btnList"
|
|
|
|
|
+ :record="record"
|
|
|
|
|
+ class="btn-list-sticky"
|
|
|
|
|
+ @click="openComponent" />
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<template #createtime="{ record }">
|
|
<template #createtime="{ record }">
|
|
|
- <a>{{ formatTime(record.createtime) }}</a>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
- <!-- 结算方式 1:按日结息 3:按月结息-->
|
|
|
|
|
- <template #interestsettlemode="{ record }">
|
|
|
|
|
- <a>{{ getInterestSettleModeName(record.interestsettlemode) }}</a>
|
|
|
|
|
|
|
+ <span>{{ formatTime(record.createtime) }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
- <!-- 费用 -->
|
|
|
|
|
- <template #interestsettlevalue="{ record }">
|
|
|
|
|
- <a>{{ getInterestrateModeName(record.interestratemode, record.interestrate) }}</a>
|
|
|
|
|
- </template>
|
|
|
|
|
-
|
|
|
|
|
</a-table>
|
|
</a-table>
|
|
|
|
|
+ <!-- 明细 -->
|
|
|
|
|
+ <Description v-if="visible"
|
|
|
|
|
+ @close="closeDrawer"
|
|
|
|
|
+ :tabList="tabList">
|
|
|
|
|
+ <!-- <a-table :columns="columnsDetail"
|
|
|
|
|
+ class="topTable"
|
|
|
|
|
+ :pagination="false"
|
|
|
|
|
+ rowKey="key"
|
|
|
|
|
+ :data-source="detailTableList"
|
|
|
|
|
+ :scroll="{ x: '100%', y: 'calc(100vh - 163px)' }">
|
|
|
|
|
+ </a-table> -->
|
|
|
|
|
+ </Description>
|
|
|
</section>
|
|
</section>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import { queryTableList, defineComponent } from '@/common/export/commonTable';
|
|
|
|
|
-import { queryWrFinanceBuyApply } from '@/services/go/wrtrade';
|
|
|
|
|
-import { WrFinanceBuyApply } from '@/services/go/wrtrade/interface';
|
|
|
|
|
|
|
+import { queryTableList, defineComponent, BtnList } from '@/common/export/commonTable';
|
|
|
|
|
+import { queryQueryPermancePlanTmp, queryWrFinanceBuyApply } from '@/services/go/wrtrade';
|
|
|
|
|
+import { QueryPermancePlanTmpReq, QueryPermancePlanTmpRsp, WrFinanceBuyApply } from '@/services/go/wrtrade/interface';
|
|
|
import { getRecordItemTab } from '@/common/setup/order/orderData';
|
|
import { getRecordItemTab } from '@/common/setup/order/orderData';
|
|
|
-import { handleComposeOrderTable } from '@/common/setup/table/compose';
|
|
|
|
|
-import { ComposeOrderTableParam } from '@/common/setup/table/interface';
|
|
|
|
|
|
|
+import { handleComposeOrderTable, handleComposeTable_detail } from '@/common/setup/table/compose';
|
|
|
|
|
+import { ComposeOrderTableParam, ComposeTableDetailParam } from '@/common/setup/table/interface';
|
|
|
import { formatTime } from '@/common/methods';
|
|
import { formatTime } from '@/common/methods';
|
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
import { expandIcon } from '@/common/setup/table/clolumn';
|
|
|
import { getApplyStatusFinanceName, getFinanceTypeName, getInterestrateModeName, getInterestSettleModeName } from '@/common/constants/enumsName';
|
|
import { getApplyStatusFinanceName, getFinanceTypeName, getInterestrateModeName, getInterestSettleModeName } from '@/common/constants/enumsName';
|
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
import { EnumRouterName } from '@/common/constants/enumRouterName';
|
|
|
|
|
+import { getColumns } from './setup';
|
|
|
|
|
+import { getUsrId } from '@/services/bus/user';
|
|
|
|
|
+import { getButtonList, getOrderBtnList } from '@/common/setup/table/button';
|
|
|
|
|
+import { handleModalComponent } from '@/common/setup/asyncComponent';
|
|
|
|
|
+import Description from '@/common/components/description/index.vue';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
- name: EnumRouterName.search_financing_inquiry_apply_order,
|
|
|
|
|
|
|
+ name: EnumRouterName.search_performance_template_sub,
|
|
|
|
|
+ components: {
|
|
|
|
|
+ BtnList,
|
|
|
|
|
+ Description,
|
|
|
|
|
+ },
|
|
|
setup() {
|
|
setup() {
|
|
|
// 表格列表数据
|
|
// 表格列表数据
|
|
|
- const { loading, tableList, queryTable } = queryTableList<WrFinanceBuyApply>();
|
|
|
|
|
- // 获取列表数据
|
|
|
|
|
- const queryTableAction = () => {
|
|
|
|
|
- queryTable(queryWrFinanceBuyApply);
|
|
|
|
|
|
|
+ const { loading, tableList, queryTable } = queryTableList<QueryPermancePlanTmpRsp>();
|
|
|
|
|
+ const loadData = () => {
|
|
|
|
|
+ const param: QueryPermancePlanTmpReq = {
|
|
|
|
|
+ userid: getUsrId(),
|
|
|
|
|
+ tmptype: '2,3',
|
|
|
|
|
+ };
|
|
|
|
|
+ queryTable(queryQueryPermancePlanTmp, param);
|
|
|
};
|
|
};
|
|
|
- // 表格通用逻辑
|
|
|
|
|
- const param: ComposeOrderTableParam = {
|
|
|
|
|
- queryFn: queryTableAction,
|
|
|
|
|
- tableName: 'table_pcweb_financing_manage_bottom_apply_order',
|
|
|
|
|
- recordList: getRecordItemTab(),
|
|
|
|
|
|
|
+
|
|
|
|
|
+ loadData();
|
|
|
|
|
+ // 表头
|
|
|
|
|
+ const { columns } = getColumns();
|
|
|
|
|
+ const param: ComposeTableDetailParam = {
|
|
|
|
|
+ queryFn: loadData, // 查询表格数据
|
|
|
|
|
+ tableFilterKey: [], // 表格过滤字段
|
|
|
|
|
+ menuType: EnumRouterName.search_performance_template_sub, // 当前tab页对应的code
|
|
|
};
|
|
};
|
|
|
|
|
+ const {
|
|
|
|
|
+ visible,
|
|
|
|
|
+ closeDrawer, // 控制 drawer 组件是否显示
|
|
|
|
|
+ updateColumn, // 表头数据
|
|
|
|
|
+ columnsDetail,
|
|
|
|
|
+ registerColumnDetail,
|
|
|
|
|
+ detailTableList, // 明细表头数据
|
|
|
|
|
+ expandedRowKeys,
|
|
|
|
|
+ selectedRow,
|
|
|
|
|
+ Rowclick, // 表格事件
|
|
|
|
|
+ tabList,
|
|
|
|
|
+ } = handleComposeTable_detail<QueryPermancePlanTmpRsp>(param);
|
|
|
|
|
+
|
|
|
|
|
+ // 表格操作按钮列表
|
|
|
|
|
+ const btnList = getButtonList(EnumRouterName.search_performance_template_sub, false);
|
|
|
|
|
+ // 选中的数据
|
|
|
|
|
+ // 控制异步组件
|
|
|
|
|
+ const { componentId, closeComponent, openComponent } = handleModalComponent(loadData, selectedRow);
|
|
|
|
|
+ // 获取列表数据
|
|
|
|
|
+ // const queryTableAction = () => {
|
|
|
|
|
+ // queryTable(queryWrFinanceBuyApply);
|
|
|
|
|
+ // };
|
|
|
|
|
+ // // 表格通用逻辑
|
|
|
|
|
+ // const param: ComposeOrderTableParam = {
|
|
|
|
|
+ // queryFn: queryTableAction,
|
|
|
|
|
+ // tableName: 'table_pcweb_financing_manage_bottom_apply_order',
|
|
|
|
|
+ // recordList: getRecordItemTab(),
|
|
|
|
|
+ // };
|
|
|
return {
|
|
return {
|
|
|
- ...handleComposeOrderTable<WrFinanceBuyApply>(param),
|
|
|
|
|
|
|
+ // ...handleComposeOrderTable<WrFinanceBuyApply>(param),
|
|
|
loading,
|
|
loading,
|
|
|
tableList,
|
|
tableList,
|
|
|
|
|
+ columns,
|
|
|
|
|
+ btnList,
|
|
|
|
|
+ componentId,
|
|
|
|
|
+ closeComponent,
|
|
|
|
|
+ openComponent,
|
|
|
|
|
+
|
|
|
|
|
+ visible,
|
|
|
|
|
+ closeDrawer, // 控制 drawer 组件是否显示
|
|
|
|
|
+ updateColumn, // 表头数据
|
|
|
|
|
+ columnsDetail,
|
|
|
|
|
+ registerColumnDetail,
|
|
|
|
|
+ detailTableList, // 明细表头数据
|
|
|
|
|
+ expandedRowKeys,
|
|
|
|
|
+ selectedRow,
|
|
|
|
|
+ Rowclick, // 表格事件
|
|
|
|
|
+ tabList,
|
|
|
|
|
+
|
|
|
formatTime,
|
|
formatTime,
|
|
|
expandIcon,
|
|
expandIcon,
|
|
|
getFinanceTypeName,
|
|
getFinanceTypeName,
|