|
@@ -0,0 +1,111 @@
|
|
|
|
|
+<template>
|
|
|
|
|
+ <!-- 现货合同: 待审核-->
|
|
|
|
|
+ <div class="inventory_current"
|
|
|
|
|
+ :loading="loading">
|
|
|
|
|
+ <Filter @search="search">
|
|
|
|
|
+ <BtnList :btnList="commonBtn" />
|
|
|
|
|
+ </Filter>
|
|
|
|
|
+ <contextMenu :contextMenuList="forDataBtn">
|
|
|
|
|
+ <a-table :columns="columns"
|
|
|
|
|
+ class="topTable hiddenFirstCol"
|
|
|
|
|
+ :pagination="false"
|
|
|
|
|
+ rowKey="key"
|
|
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
+ :customRow="Rowclick"
|
|
|
|
|
+ :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 #pricetype="{ text }">
|
|
|
|
|
+ <a>{{ getPriceTypeName(text) }}</a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template #contracctstatus="{ text }">
|
|
|
|
|
+ <a>{{ getContractStatusName(text) }}</a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ <template #contracttype="{ text }">
|
|
|
|
|
+ <a>{{ getContractTypeName(text) }}</a>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ </contextMenu>
|
|
|
|
|
+ <!-- 现货合同: 审核 -->
|
|
|
|
|
+ <Add :selectedRow="selectedRow"
|
|
|
|
|
+ @refresh="queryTable" />
|
|
|
|
|
+ </div>
|
|
|
|
|
+</template>
|
|
|
|
|
+
|
|
|
|
|
+<script lang="ts">
|
|
|
|
|
+import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
|
|
|
+import Filter from '../../components/filterTable/index.vue';
|
|
|
|
|
+import Add from '../../components/add/index.vue';
|
|
|
|
|
+
|
|
|
|
|
+import { getBizTypeName, getContractStatusName, getContractTypeName, getPriceTypeName } from '@/views/information/spot-contract/setup';
|
|
|
|
|
+import { Ermcp3ContractRsp, queryTableList } from '@/views/information/spot-contract/list';
|
|
|
|
|
+
|
|
|
|
|
+export default defineComponent({
|
|
|
|
|
+ name: 'inventory_current',
|
|
|
|
|
+ components: {
|
|
|
|
|
+ Filter,
|
|
|
|
|
+ contextMenu,
|
|
|
|
|
+ Add,
|
|
|
|
|
+ BtnList,
|
|
|
|
|
+ },
|
|
|
|
|
+ setup() {
|
|
|
|
|
+ // 表头数据
|
|
|
|
|
+ const { columns, registerColumn, updateColumn, filteredInfo } = getTableColumns();
|
|
|
|
|
+ // 表格事件
|
|
|
|
|
+ const { expandedRowKeys, selectedRow, Rowclick } = getTableEvent<Ermcp3ContractRsp>({});
|
|
|
|
|
+ // 表格操作按钮列表
|
|
|
|
|
+ const { commonBtn, forDataBtn } = getBtnList('inventory_current', true);
|
|
|
|
|
+ // 表格列表数据
|
|
|
|
|
+ const { loading, tableList, queryTable } = queryTableList(2);
|
|
|
|
|
+
|
|
|
|
|
+ // 查询
|
|
|
|
|
+ function search(value: any) {
|
|
|
|
|
+ filteredInfo.value = value;
|
|
|
|
|
+ // 更新表信息
|
|
|
|
|
+ updateColumn();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ initData(() => {
|
|
|
|
|
+ // 获取列表数据
|
|
|
|
|
+ queryTable();
|
|
|
|
|
+ // 注册表头信息 过滤
|
|
|
|
|
+ // registerColumn('table_pcweb_delivery', getFilterTableCB);
|
|
|
|
|
+ });
|
|
|
|
|
+ return {
|
|
|
|
|
+ columns,
|
|
|
|
|
+ filteredInfo,
|
|
|
|
|
+ expandedRowKeys,
|
|
|
|
|
+ selectedRow,
|
|
|
|
|
+ Rowclick,
|
|
|
|
|
+ commonBtn,
|
|
|
|
|
+ forDataBtn,
|
|
|
|
|
+ loading,
|
|
|
|
|
+ tableList,
|
|
|
|
|
+ search,
|
|
|
|
|
+ queryTable,
|
|
|
|
|
+ getBizTypeName,
|
|
|
|
|
+ getPriceTypeName,
|
|
|
|
|
+ getContractStatusName,
|
|
|
|
|
+ getContractTypeName,
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+});
|
|
|
|
|
+</script>
|
|
|
|
|
+
|
|
|
|
|
+<style lang="less">
|
|
|
|
|
+.inventory_current {
|
|
|
|
|
+}
|
|
|
|
|
+</style>;
|