diff --git a/src/api/inventory/InvStatistics.js b/src/api/inventory/InvStatistics.js new file mode 100644 index 0000000..3e947d4 --- /dev/null +++ b/src/api/inventory/InvStatistics.js @@ -0,0 +1,18 @@ +import axios from "../../utils/axios"; + +export function stockStatistics(query) { + return axios({ + url: "/spms/inv/products/stockStatistics", + method: "get", + params: query + }); +} + + +export function getStorageCode(query) { + return axios({ + url: "/spms/inv/warehouse/filter", + method: "get", + params: query + }); +} diff --git a/src/router/index.js b/src/router/index.js index 68107a7..28523a6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -91,6 +91,7 @@ import supInvPreProducts from "../views/inventory/supInvPreProducts" import invUdiTrace from "@/views/inventory/invUdiTrace"; import invUdiTraceOrder from "@/views/inventory/invUdiTraceOrder"; import additionalOrder from "@/views/warehouse/AdditionalOrder"; +import invStatistics from "@/views/inventory/InvStatistics"; const err401 = r => @@ -748,6 +749,15 @@ export const asyncRouterMap = [ authRule: ["inv/invProducts"] } }, + { + path: "invStatistics", + component: invStatistics, + name: "库存统计", + icon: "", + meta: { + authRule: ["inv/invProducts"] + } + }, { path: "invPreProducts", component: invPreProducts, @@ -992,6 +1002,16 @@ export const asyncRouterMap = [ authRule: ["spInv/spInvProducts"] } }, + { + path: "spInvProducts", + component: supInvProducts, + name: "库存统计", + icon: "", + hidden: false, + meta: { + authRule: ["spInv/spInvProducts"] + } + }, { path: "spInvPreProducts", component: supInvPreProducts, diff --git a/src/views/inventory/InvStatistics.vue b/src/views/inventory/InvStatistics.vue new file mode 100644 index 0000000..7c6b93c --- /dev/null +++ b/src/views/inventory/InvStatistics.vue @@ -0,0 +1,336 @@ + + + + + + + + + + + + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + + + + + + + {{ item.name }} + + + + + + + + 统计 + + + + + + + + + + + + + + + + + + + + + {{ (scope.row.inCount - scope.row.outCount) }} + + + + + + + + + + + + + + + +