From 1a259f26f9825c51bedd6c531106d91eac9a685a Mon Sep 17 00:00:00 2001 From: yinq <1345442242@qq.com> Date: Fri, 17 Nov 2023 11:33:39 +0800 Subject: [PATCH] =?UTF-8?q?add=20-=20=E5=BA=93=E5=AD=98=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/spaceInfo.js | 18 ++ src/components/TopNav/index.vue | 3 - src/router/index.js | 14 + src/views/base/storeInfo/index.vue | 37 ++- src/views/production/planInfo/index.vue | 3 +- .../report/inventoryStatistics/index.vue | 305 ++++++++++++++++++ 6 files changed, 364 insertions(+), 16 deletions(-) create mode 100644 src/views/report/inventoryStatistics/index.vue 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 @@ + + + +