|
@@ -1,61 +1,47 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <!-- 仓库信息: 正常 -->
|
|
|
|
|
- <div class="warehouse-info-normal"
|
|
|
|
|
- :loading="loading">
|
|
|
|
|
- <filterCustomTable @search="search">
|
|
|
|
|
- <BtnList :btnList="commonBtn"/>
|
|
|
|
|
- </filterCustomTable>
|
|
|
|
|
- <contextMenu :contextMenuList="forDataBtn">
|
|
|
|
|
- <a-table :columns="columns"
|
|
|
|
|
- class="topTable"
|
|
|
|
|
- :pagination="false"
|
|
|
|
|
- :expandedRowKeys="expandedRowKeys"
|
|
|
|
|
- :customRow="Rowclick"
|
|
|
|
|
- rowKey="key"
|
|
|
|
|
- :data-source="tableList">
|
|
|
|
|
- <!-- 额外的展开行 -->
|
|
|
|
|
- <template #expandedRowRender="{ }">
|
|
|
|
|
- <BtnList :btnList="forDataBtn"/>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #warehousetype="{ text }">
|
|
|
|
|
- <span>{{ getWareHouseTypeName(text) }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- <template #warehousestatus="{ text }">
|
|
|
|
|
- <span>{{ gerWareHouseStatusName(text) }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- </a-table>
|
|
|
|
|
- </contextMenu>
|
|
|
|
|
- <!-- 新增仓库信息 -->
|
|
|
|
|
- <Add/>
|
|
|
|
|
- <!-- 停用仓库信息 -->
|
|
|
|
|
- <Disable :selectedRow="selectedRow"
|
|
|
|
|
- @refresh="queryTable"/>
|
|
|
|
|
- <!-- 仓库信息详情 -->
|
|
|
|
|
- <Detail :selectedRow="selectedRow"
|
|
|
|
|
- @refresh="queryTable"/>
|
|
|
|
|
- <!-- 修改仓息库信 -->
|
|
|
|
|
- <Modify/>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <!-- 仓库信息: 正常 -->
|
|
|
|
|
+ <div class="warehouse-info-normal"
|
|
|
|
|
+ :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 #warehousetype="{ text }">
|
|
|
|
|
+ <span>{{ getWareHouseTypeName(text) }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ <template #warehousestatus="{ text }">
|
|
|
|
|
+ <span>{{ gerWareHouseStatusName(text) }}</span>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </a-table>
|
|
|
|
|
+ </contextMenu>
|
|
|
|
|
+ <!-- 新增仓库信息 -->
|
|
|
|
|
+ <Add />
|
|
|
|
|
+ <!-- 停用仓库信息 -->
|
|
|
|
|
+ <Disable :selectedRow="selectedRow"
|
|
|
|
|
+ @refresh="queryTable" />
|
|
|
|
|
+ <!-- 仓库信息详情 -->
|
|
|
|
|
+ <Detail :selectedRow="selectedRow"
|
|
|
|
|
+ @refresh="queryTable" />
|
|
|
|
|
+ <!-- 修改仓息库信 -->
|
|
|
|
|
+ <Modify />
|
|
|
|
|
+ </div>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
<script lang="ts">
|
|
|
-import {
|
|
|
|
|
- defineComponent,
|
|
|
|
|
- initData,
|
|
|
|
|
- getTableColumns,
|
|
|
|
|
- getTableEvent,
|
|
|
|
|
- getBtnList,
|
|
|
|
|
- contextMenu,
|
|
|
|
|
- BtnList
|
|
|
|
|
-} from '@/common/export/table';
|
|
|
|
|
-import {filterCustomTable, Add, Disable, Detail, Modify} from '../../compoments';
|
|
|
|
|
-import {
|
|
|
|
|
- gerWareHouseStatusName,
|
|
|
|
|
- getWareHouseTypeName,
|
|
|
|
|
- queryTableList,
|
|
|
|
|
- getFilterTableCB,
|
|
|
|
|
- ErmcpWareHouseInfo
|
|
|
|
|
-} from '../index';
|
|
|
|
|
|
|
+import { defineComponent, initData, getTableColumns, getTableEvent, getBtnList, contextMenu, BtnList } from '@/common/export/table';
|
|
|
|
|
+import { filterCustomTable, Add, Disable, Detail, Modify } from '../../compoments';
|
|
|
|
|
+import { gerWareHouseStatusName, getWareHouseTypeName, queryTableList, getFilterTableCB, ErmcpWareHouseInfo } from '../index';
|
|
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
|
name: 'warehouse-info-normal',
|
|
name: 'warehouse-info-normal',
|
|
@@ -70,13 +56,13 @@ export default defineComponent({
|
|
|
},
|
|
},
|
|
|
setup() {
|
|
setup() {
|
|
|
// 表头数据
|
|
// 表头数据
|
|
|
- const {columns, registerColumn, updateColumn, filteredInfo} = getTableColumns();
|
|
|
|
|
|
|
+ const { columns, registerColumn, updateColumn, filteredInfo } = getTableColumns();
|
|
|
// 表格事件
|
|
// 表格事件
|
|
|
- const {expandedRowKeys, selectedRow, Rowclick} = getTableEvent<ErmcpWareHouseInfo>({});
|
|
|
|
|
|
|
+ const { expandedRowKeys, selectedRow, Rowclick } = getTableEvent<ErmcpWareHouseInfo>({});
|
|
|
// 表格操作按钮列表
|
|
// 表格操作按钮列表
|
|
|
- const {commonBtn, forDataBtn} = getBtnList('warehouse_info_normal', true);
|
|
|
|
|
|
|
+ const { commonBtn, forDataBtn } = getBtnList('warehouse_info_normal', true);
|
|
|
// 表格列表数据
|
|
// 表格列表数据
|
|
|
- const {loading, tableList, queryTable} = queryTableList('1');
|
|
|
|
|
|
|
+ const { loading, tableList, queryTable } = queryTableList('1');
|
|
|
initData(() => {
|
|
initData(() => {
|
|
|
// 获取列表数据
|
|
// 获取列表数据
|
|
|
queryTable();
|
|
queryTable();
|