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 @@
- 每日周转率 + 每月周转率
@@ -36,6 +36,7 @@
diff --git a/vue.config.js b/vue.config.js index b015161..4435c4c 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,33 +1,33 @@ -// const { defineConfig } = require('@vue/cli-service') -// module.exports = defineConfig({ -// transpileDependencies: true -// }) -module.exports = { - // 打包文件配置 - publicPath: "/", - assetsDir: "static", - lintOnSave: false, - devServer: { - // overlay: { // 让浏览器 overlay 同时显示警告和错误 - // warnings: true, - // errors: true, - // }, - // hotOnly: true, - // open: false, // npm run serve后自动打开页面 - // https: false, // https:{type:Boolean} - // host: "0.0.0.0", // 匹配本机IP地址(默认是0.0.0.0) - // port: 8989, // 开发服务器运行端口号 - proxy: { - '/api': { //代理的名字 - // target:'http://111.229.30.246:3111/', - target: 'http://ip:30005/gwcp/', - // target:'http://www.weather.com.cn/', - ws: true, - changeOrigin: true, - pathRewrite: { - '^/api': '', - } - }, - } - } -} +// const { defineConfig } = require('@vue/cli-service') +// module.exports = defineConfig({ +// transpileDependencies: true +// }) +module.exports = { + // 打包文件配置 + publicPath: "/", + assetsDir: "static", + lintOnSave: false, + devServer: { + // overlay: { // 让浏览器 overlay 同时显示警告和错误 + // warnings: true, + // errors: true, + // }, + // hotOnly: true, + // open: false, // npm run serve后自动打开页面 + // https: false, // https:{type:Boolean} + // host: "0.0.0.0", // 匹配本机IP地址(默认是0.0.0.0) + // port: 8989, // 开发服务器运行端口号 + proxy: { + '/api': { //代理的名字 + // target:'http://111.229.30.246:3111/', + target: 'http://192.168.80.111:30005/gwcpedge/', + // target:'http://www.weather.com.cn/', + ws: true, + changeOrigin: true, + pathRewrite: { + '^/api': '', + } + }, + } + } +}