|
@@ -1,45 +1,61 @@
|
|
|
<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 />
|
|
|
|
|
- <!-- 仓库信息详情 -->
|
|
|
|
|
- <Detail :selectedRow="selectedRow" />
|
|
|
|
|
- <!-- 修改仓息库信 -->
|
|
|
|
|
- <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"
|
|
|
|
|
+ :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',
|
|
@@ -54,25 +70,27 @@ 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();
|
|
|
// 注册表头信息 过滤
|
|
// 注册表头信息 过滤
|
|
|
registerColumn('table_pcweb_warehouse', getFilterTableCB);
|
|
registerColumn('table_pcweb_warehouse', getFilterTableCB);
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
// 查询
|
|
// 查询
|
|
|
function search(value: any) {
|
|
function search(value: any) {
|
|
|
filteredInfo.value = value;
|
|
filteredInfo.value = value;
|
|
|
// 更新表信息
|
|
// 更新表信息
|
|
|
updateColumn();
|
|
updateColumn();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
return {
|
|
return {
|
|
|
columns,
|
|
columns,
|
|
|
filteredInfo,
|
|
filteredInfo,
|
|
@@ -86,6 +104,7 @@ export default defineComponent({
|
|
|
search,
|
|
search,
|
|
|
getWareHouseTypeName,
|
|
getWareHouseTypeName,
|
|
|
gerWareHouseStatusName,
|
|
gerWareHouseStatusName,
|
|
|
|
|
+ queryTable,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|