diff --git a/src/api/base/spaceInfo.js b/src/api/base/spaceInfo.js index 400df21..986daf6 100644 --- a/src/api/base/spaceInfo.js +++ b/src/api/base/spaceInfo.js @@ -9,6 +9,24 @@ export function listSpaceInfo(query) { }) } +// 不分页查询货道信息列表 +export function getSpaceList(query) { + return request({ + url: '/base/spaceInfo/spaceList', + method: 'get', + params: query + }) +} + +// 查询库存统计 +export function getInventoryStatistics(query) { + return request({ + url: '/base/spaceInfo/getInventoryStatistics', + method: 'get', + params: query + }) +} + // 查询货道信息详细 export function getSpaceInfo(objId) { return request({ diff --git a/src/components/TopNav/index.vue b/src/components/TopNav/index.vue index a496931..ed23498 100644 --- a/src/components/TopNav/index.vue +++ b/src/components/TopNav/index.vue @@ -158,8 +158,6 @@ export default { } }); } - console.log(this.childrenMenus) - console.log(routes) if(routes.length > 0) { this.$store.commit("SET_SIDEBAR_ROUTERS", routes); } else { @@ -167,7 +165,6 @@ export default { } }, ishttp(url) { - console.trace() return url.indexOf('http://') !== -1 || url.indexOf('https://') !== -1 } }, diff --git a/src/router/index.js b/src/router/index.js index 6165abf..c0260e1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -232,6 +232,20 @@ export const dynamicRoutes = [ }, ], }, + { + path: "/wcs/inventory-statistics", + component: Layout, + hidden: true, + permissions: ["base:storeInfo:list"], + children: [ + { + path:"index/:storeCode", + component:() => import("@/views/report/inventoryStatistics/index"), + name:"inventoryStatistics", + meta: {title: "库存统计",activeMenu: "/report/inventoryStatistics"}, + }, + ], + }, ] // 防止连续点击多次路由报错 diff --git a/src/views/base/storeInfo/index.vue b/src/views/base/storeInfo/index.vue index 9cd1a02..43df8fb 100644 --- a/src/views/base/storeInfo/index.vue +++ b/src/views/base/storeInfo/index.vue @@ -138,21 +138,27 @@ type="text" icon="el-icon-d-arrow-right" @click="findSpaceInfo(scope.row)" - >查看所属货道 + >所属货道 修改 - 删除 + icon="el-icon-house" + @click="findInventoryStatistics(scope.row)" + >库存统计 + + + + + + + + + + + + + + @@ -336,6 +342,13 @@ export default { const storeCode = row.storeCode; this.$router.push("/wcs/space-info/index/" + storeCode); }, + + /** 查看库存统计 */ + findInventoryStatistics: function(row) { + const storeCode = row.storeCode; + this.$router.push("/wcs/inventory-statistics/index/" + storeCode); + }, + /** 重置按钮操作 */ resetQuery() { this.resetForm("queryForm"); diff --git a/src/views/production/planInfo/index.vue b/src/views/production/planInfo/index.vue index a38ca53..9d6dded 100644 --- a/src/views/production/planInfo/index.vue +++ b/src/views/production/planInfo/index.vue @@ -103,9 +103,10 @@ - + + diff --git a/src/views/report/inventoryStatistics/index.vue b/src/views/report/inventoryStatistics/index.vue new file mode 100644 index 0000000..f5875e6 --- /dev/null +++ b/src/views/report/inventoryStatistics/index.vue @@ -0,0 +1,305 @@ + + + + + + + + + + 搜索 + 重置 + 关闭 + + + + + + + + + + + + + + + + + + + + 物料分类统计 + + + + + + 货道占用统计 + + + + + + + + + + + + + + + + + +