|
|
@@ -1,84 +1,65 @@
|
|
|
<template>
|
|
|
- <!-- 现货合同: 未提交-->
|
|
|
- <div class="spot-contract-not-commit"
|
|
|
- :loading="loading">
|
|
|
- <filterCustomTable @search="search">
|
|
|
- <BtnList :btnList="commonBtn"/>
|
|
|
- </filterCustomTable>
|
|
|
- <contextMenu :contextMenuList="forDataBtn">
|
|
|
- <a-table :columns="columns"
|
|
|
- class="topTable hiddenFirstCol"
|
|
|
- :pagination="false"
|
|
|
- :expandedRowKeys="expandedRowKeys"
|
|
|
- :customRow="Rowclick"
|
|
|
- rowKey="key"
|
|
|
- :data-source="tableList">
|
|
|
- <!-- 额外的展开行 -->
|
|
|
- <template #expandedRowRender="{ }">
|
|
|
- <BtnList :btnList="forDataBtn"/>
|
|
|
- </template>
|
|
|
- <!-- <template #userinfotype="{ text }">
|
|
|
+ <!-- 现货合同: 未提交-->
|
|
|
+ <div class="spot-contract-not-commit"
|
|
|
+ :loading="loading">
|
|
|
+ <filterCustomTable @search="search">
|
|
|
+ <BtnList :btnList="commonBtn" />
|
|
|
+ </filterCustomTable>
|
|
|
+ <contextMenu :contextMenuList="forDataBtn">
|
|
|
+ <a-table :columns="columns"
|
|
|
+ class="topTable hiddenFirstCol"
|
|
|
+ :pagination="false"
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
+ :customRow="Rowclick"
|
|
|
+ rowKey="key"
|
|
|
+ :data-source="tableList">
|
|
|
+ <!-- 额外的展开行 -->
|
|
|
+ <template #expandedRowRender="{ }">
|
|
|
+ <BtnList :btnList="forDataBtn" />
|
|
|
+ </template>
|
|
|
+ <!-- <template #userinfotype="{ text }">
|
|
|
<a>{{ text === '2' ? '企业' : '个人'}}</a>
|
|
|
</template> -->
|
|
|
- <template #biztype="{ text }">
|
|
|
- <a>{{ getBizTypeName(text) }}</a>
|
|
|
- </template>
|
|
|
+ <template #biztype="{ text }">
|
|
|
+ <a>{{ getBizTypeName(text) }}</a>
|
|
|
+ </template>
|
|
|
|
|
|
- <template #pricetype="{ text }">
|
|
|
- <a>{{ getPriceTypeName(text) }}</a>
|
|
|
- </template>
|
|
|
+ <template #pricetype="{ text }">
|
|
|
+ <a>{{ getPriceTypeName(text) }}</a>
|
|
|
+ </template>
|
|
|
|
|
|
- <template #contracctstatus="{ text }">
|
|
|
- <a>{{ getContractStatusName(text) }}</a>
|
|
|
- </template>
|
|
|
+ <template #contracctstatus="{ text }">
|
|
|
+ <a>{{ getContractStatusName(text) }}</a>
|
|
|
+ </template>
|
|
|
|
|
|
- <template #contracttype="{ text }">
|
|
|
- <a>{{ getContractTypeName(text) }}</a>
|
|
|
- </template>
|
|
|
- </a-table>
|
|
|
- </contextMenu>
|
|
|
- <!-- 新增现货合同 -->
|
|
|
- <AddSpotContract @refresh="queryTable"/>
|
|
|
- <!-- 现货合同: 详情 -->
|
|
|
- <SpotContractDeatil :selectedRow="selectedRow"
|
|
|
- @refresh="queryTable"/>
|
|
|
- <!-- 现货合同: 修改 -->
|
|
|
- <ModifySpotContract :selectedRow="selectedRow"
|
|
|
- @refresh="queryTable"/>
|
|
|
- <!-- 现货合同: 删除 -->
|
|
|
- <DeleteSpotContract :selectedRow="selectedRow"
|
|
|
- @refresh="queryTable"/>
|
|
|
- <!-- 现货合同: 重新提交 -->
|
|
|
- <ResubmitSpotContract/>
|
|
|
- </div>
|
|
|
+ <template #contracttype="{ text }">
|
|
|
+ <a>{{ getContractTypeName(text) }}</a>
|
|
|
+ </template>
|
|
|
+ </a-table>
|
|
|
+ </contextMenu>
|
|
|
+ <!-- 新增现货合同 -->
|
|
|
+ <AddSpotContract @refresh="queryTable" />
|
|
|
+ <!-- 现货合同: 详情 -->
|
|
|
+ <SpotContractDeatil :selectedRow="selectedRow"
|
|
|
+ @refresh="queryTable" />
|
|
|
+ <!-- 现货合同: 修改 -->
|
|
|
+ <ModifySpotContract :selectedRow="selectedRow"
|
|
|
+ @refresh="queryTable" />
|
|
|
+ <!-- 现货合同: 删除 -->
|
|
|
+ <DeleteSpotContract :selectedRow="selectedRow"
|
|
|
+ @refresh="queryTable" />
|
|
|
+ <!-- 现货合同: 重新提交 -->
|
|
|
+ <ResubmitSpotContract :selectedRow="selectedRow"
|
|
|
+ @refresh="queryTable" />
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import {
|
|
|
- defineComponent,
|
|
|
- initData,
|
|
|
- getTableColumns,
|
|
|
- getTableEvent,
|
|
|
- getBtnList,
|
|
|
- contextMenu,
|
|
|
- BtnList
|
|
|
-} from '@/common/export/table';
|
|
|
-import {
|
|
|
- AddSpotContract,
|
|
|
- SpotContractDeatil,
|
|
|
- filterCustomTable,
|
|
|
- ModifySpotContract,
|
|
|
- DeleteSpotContract,
|
|
|
- ResubmitSpotContract
|
|
|
-} from '../../components';
|
|
|
+import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
|
+import { AddSpotContract, SpotContractDeatil, filterCustomTable, ModifySpotContract, DeleteSpotContract, ResubmitSpotContract } from '../../components';
|
|
|
|
|
|
-import {queryTableList, getFilterTableCB, Ermcp3ContractRsp} from '../index';
|
|
|
-import {
|
|
|
- getBizTypeName,
|
|
|
- getContractStatusName,
|
|
|
- getContractTypeName,
|
|
|
- getPriceTypeName
|
|
|
-} from "@/views/information/spot-contract/setup";
|
|
|
+import { queryTableList, getFilterTableCB, Ermcp3ContractRsp } from '../index';
|
|
|
+import { getBizTypeName, getContractStatusName, getContractTypeName, getPriceTypeName } from '@/views/information/spot-contract/setup';
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'spot-contract-not-commit',
|
|
|
@@ -94,13 +75,13 @@ export default defineComponent({
|
|
|
},
|
|
|
setup() {
|
|
|
// 表头数据
|
|
|
- const {columns, registerColumn, updateColumn, filteredInfo} = getTableColumns();
|
|
|
+ const { columns, registerColumn, updateColumn, filteredInfo } = getTableColumns();
|
|
|
// 表格事件
|
|
|
- const {expandedRowKeys, selectedRow, Rowclick} = getTableEvent<Ermcp3ContractRsp>({});
|
|
|
+ const { expandedRowKeys, selectedRow, Rowclick } = getTableEvent<Ermcp3ContractRsp>({});
|
|
|
// 表格操作按钮列表
|
|
|
- const {commonBtn, forDataBtn} = getBtnList('spot_contract_unsubmitted', true);
|
|
|
+ const { commonBtn, forDataBtn } = getBtnList('spot_contract_unsubmitted', true);
|
|
|
// 表格列表数据
|
|
|
- const {loading, tableList, queryTable} = queryTableList(1);
|
|
|
+ const { loading, tableList, queryTable } = queryTableList(1);
|
|
|
|
|
|
// 查询
|
|
|
function search(value: any) {
|