|
@@ -1,8 +1,73 @@
|
|
|
<template>
|
|
<template>
|
|
|
<!-- 定投价查询 -->
|
|
<!-- 定投价查询 -->
|
|
|
- <div>platinum_fixed_investment_price_query_tab</div>
|
|
|
|
|
|
|
+ <div class="platinum_fixed_investment_price_query_tab">
|
|
|
|
|
+ <Filter />
|
|
|
|
|
+ <contextMenu :contextMenuList="firstBtn">
|
|
|
|
|
+ <a-table :columns="columns"
|
|
|
|
|
+ class="topTable hiddenFirstCol"
|
|
|
|
|
+ :pagination="false"
|
|
|
|
|
+ :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
+ :customRow="Rowclick"
|
|
|
|
|
+ rowKey="key"
|
|
|
|
|
+ :data-source="tableList">
|
|
|
|
|
+ <!-- 额外的展开行 -->
|
|
|
|
|
+ <template #expandedRowRender="{ }">
|
|
|
|
|
+ <BtnList :btnList="firstBtn"
|
|
|
|
|
+ @onClick="btnClick" />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ </contextMenu>
|
|
|
|
|
+ <!-- <ControlModal :selectedRow="selectedRow" /> -->
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-export default {};
|
|
|
|
|
|
|
+import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList, _getBtnList } from '@/common/export/table';
|
|
|
|
|
+import { ErmcpWareHouseInfo } from '@/views/information/warehouse-info/list';
|
|
|
|
|
+import Filter from '../../compoments/filter/index.vue';
|
|
|
|
|
+import { queryTableList } from './setup';
|
|
|
|
|
+// import ControlModal from './compoments/controlModal/index.vue';
|
|
|
|
|
+
|
|
|
|
|
+export default defineComponent({
|
|
|
|
|
+ name: 'platinum_fixed_investment_price_query_tab',
|
|
|
|
|
+ components: { Filter, contextMenu, BtnList },
|
|
|
|
|
+ setup() {
|
|
|
|
|
+ // 表头数据
|
|
|
|
|
+ const { columns, registerColumn, updateColumn, filteredInfo } = getTableColumns();
|
|
|
|
|
+ // 表格事件
|
|
|
|
|
+ const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<ErmcpWareHouseInfo>({});
|
|
|
|
|
+ // 表格操作按钮列表
|
|
|
|
|
+ const [firstBtn] = _getBtnList('platinum_fixed_investment_price_query_tab', false).value;
|
|
|
|
|
+ // 表格列表数据
|
|
|
|
|
+ const { loading, tableList, queryTable } = queryTableList('in');
|
|
|
|
|
+ initData(() => {
|
|
|
|
|
+ // 获取列表数据
|
|
|
|
|
+ queryTable();
|
|
|
|
|
+ // 注册表头信息 过滤
|
|
|
|
|
+ registerColumn('table_pcweb_warehouse', ['warehousetype', 'warehousename', 'address']);
|
|
|
|
|
+ // registerColumn('table_pcweb_qhj_withdrawal_review', ['warehousetype', 'warehousename', 'address']);
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ // 查询
|
|
|
|
|
+ function search(value: any) {
|
|
|
|
|
+ filteredInfo.value = value;
|
|
|
|
|
+ // 更新表信息
|
|
|
|
|
+ updateColumn();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return {
|
|
|
|
|
+ columns,
|
|
|
|
|
+ filteredInfo,
|
|
|
|
|
+ expandedRowKeys,
|
|
|
|
|
+ selectedRow,
|
|
|
|
|
+ Rowclick,
|
|
|
|
|
+ firstBtn,
|
|
|
|
|
+ loading,
|
|
|
|
|
+ tableList,
|
|
|
|
|
+ search,
|
|
|
|
|
+ queryTable,
|
|
|
|
|
+ btnClick,
|
|
|
|
|
+ };
|
|
|
|
|
+ },
|
|
|
|
|
+});
|
|
|
</script>
|
|
</script>
|