From f10c84a217b20eda7e9f37c77e4f3fdd28a6405b Mon Sep 17 00:00:00 2001 From: luoshiwen <1140456899@qq.com> Date: Mon, 10 Apr 2023 18:05:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 16 +- src/component/OverView.vue | 66 ++++- src/component/Stock.vue | 36 ++- src/views/index.vue | 513 ++++++++++++++++++++----------------- vue.config.js | 66 ++--- 5 files changed, 405 insertions(+), 292 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index e7df952..70475b4 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -19,41 +19,41 @@ export const byPosition = (params) => { } // 获取物料和批次 export const byBatchAndMateri = (params) => { - axios.get('api/visualStorage/getVisualStorageListByBatchAndMateri', { + return axios.get('api/visualStorage/getVisualStorageListByBatchAndMateriel', { params }) } // 仓库使用率 export const getWarehouseUsages = (params) => { - axios.get('api/visualStorage/getWarehouseUsages', { + return axios.get('api/visualStorage/getWarehouseUsages', { params }) } // 每月的周转率 export const getTurnoverRate = (params) => { - axios.get('api/visualStorage/getTurnoverRateList', { + return axios.get('api/visualStorage/getTurnoverRateList', { params }) } // 当月出入库金额 export const getChangeAmount = (params) => { - axios.get('api/visualStorage/getChangeAmount', { + return axios.get('api/visualStorage/getChangeAmount', { params }) } // 积压物质 export const getBacklogMaterialInfo = (params) => { - axios.get('api/visualStorage/getBacklogMaterialInfo', { + return axios.get('api/visualStorage/getBacklogMaterialInfo', { params }) } // 库龄结构 export const getInventoryAgeInfo = (params) => { - axios.get('api/visualStorage/getInventoryAgeInfo', { + return axios.get('api/visualStorage/getInventoryAgeInfo', { params }) } @@ -61,14 +61,14 @@ export const getInventoryAgeInfo = (params) => { // 库存构成 export const getStore = (params) => { - axios.get('api/visualStorage/getInventoryConstitute', { + return axios.get('api/visualStorage/getInventoryConstitute', { params }) } // 库容预测 export const getMaterialDataList = (params) => { - axios.get('api/visualStorage/getMaterialDataList', { + return axios.get('api/visualStorage/getMaterialDataList', { params }) } \ No newline at end of file diff --git a/src/component/OverView.vue b/src/component/OverView.vue index 3cec8c8..d2eb79a 100644 --- a/src/component/OverView.vue +++ b/src/component/OverView.vue @@ -8,7 +8,7 @@