From 7e9f89fddae1aaa4c2249f4f089ad9af74227cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Fri, 26 Jul 2024 10:47:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=88=90=E6=9C=AC=E6=A0=B8?= =?UTF-8?q?=E7=AE=97=E5=8F=8A=E5=8D=B3=E6=97=B6=E5=BA=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 2 +- src/api/cost/index.js | 22 +- src/api/wareHouse/index.js | 15 +- src/main.js | 9 +- src/views/copilot/components/BarChartBase.vue | 2 +- .../copilot/components/ftoBarChartBase.vue | 4 +- .../components/sub/bar/BarChartChipOEE.vue | 4 +- .../components/sub/bar/BarChartChipTrans.vue | 4 +- .../components/BarChartChipOEE.vue | 8 +- .../factoryData/components/ProdMonitor.vue | 4 +- src/views/cost/accounting.vue | 576 ++++++++++++++++++ src/views/cost/index.vue | 421 ------------- src/views/cost/lineChart.vue | 233 ------- src/views/dashboard/charts/LeftChartBase.vue | 2 +- src/views/dashboard/charts/RightChartBase.vue | 2 +- src/views/warehouse/index.vue | 476 +++------------ 16 files changed, 688 insertions(+), 1096 deletions(-) create mode 100644 src/views/cost/accounting.vue delete mode 100644 src/views/cost/index.vue delete mode 100644 src/views/cost/lineChart.vue diff --git a/.env.dev b/.env.dev index 7a55aeb..70bd184 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: zhp # @Date: 2024-04-28 13:42:51 - # @LastEditTime: 2024-07-25 14:11:43 + # @LastEditTime: 2024-07-25 15:43:42 # @LastEditors: zhp # @Description: ### diff --git a/src/api/cost/index.js b/src/api/cost/index.js index 2fa3a7e..b898142 100644 --- a/src/api/cost/index.js +++ b/src/api/cost/index.js @@ -1,32 +1,24 @@ /* * @Author: zhp * @Date: 2024-04-26 14:53:45 - * @LastEditTime: 2024-05-06 14:55:33 + * @LastEditTime: 2024-07-26 09:32:26 * @LastEditors: zhp * @Description: */ import request from '@/utils/request' - -// 查询部门列表 -export function getOrderList(data) { +export function getCostMainPage(data) { return request({ - url: 'ip/prod-order/prodOrderList', - method: 'post', - data: data - }) -} -export function getCostPage(data) { - return request({ - url: 'ip/cost/costPage', + url: 'ip/cost-main/page', method: 'post', data: data }) } -export function getCostList(data) { +export function exportExcel(data) { return request({ - url: 'ip/cost/costList', + url: 'ip/cost-main/export-excel', method: 'post', - data: data + data: data, + responseType: 'blob' }) } diff --git a/src/api/wareHouse/index.js b/src/api/wareHouse/index.js index b34ea5b..d79bf1e 100644 --- a/src/api/wareHouse/index.js +++ b/src/api/wareHouse/index.js @@ -1,15 +1,24 @@ /* * @Author: zhp * @Date: 2024-04-28 09:28:12 - * @LastEditTime: 2024-04-28 15:52:36 + * @LastEditTime: 2024-07-25 15:05:43 * @LastEditors: zhp * @Description: */ import request from '@/utils/request' -export function getStockPage(data) { +export function getStockRealTimePage(data) { return request({ - url: 'ip/stock/page', + url: 'ip/stock-realtime/page', method: 'post', data: data }) } + +export function exportExcel(data) { + return request({ + url: '/ip/stock-realtime/export-excel', + method: 'get', + data: data, + responseType: 'blob' + }) +} diff --git a/src/main.js b/src/main.js index f481d95..39704c4 100644 --- a/src/main.js +++ b/src/main.js @@ -1,12 +1,12 @@ /* * @Author: zhp * @Date: 2024-04-12 11:13:06 - * @LastEditTime: 2024-04-12 16:20:31 + * @LastEditTime: 2024-07-26 09:31:09 * @LastEditors: zhp * @Description: */ import Vue from 'vue' -import Element from 'element-ui' +import Element, { DatePicker } from 'element-ui' // 修改如下样式文件,覆盖样式,或者新增样式文件 import "./assets/styles/element-variables.scss"; @@ -44,7 +44,7 @@ import { } from "@/utils/dict"; import CodeBrickZj from 'code-brick-zj'; import "./theme/index.css"; // 自定义主题包 - code-brick-zj - +// Vue.component(Select.name, Select) // 全局方法挂载 Vue.prototype.getDicts = getDicts; Vue.prototype.parseTime = parseTime; @@ -68,7 +68,8 @@ Vue.component("RightToolbar", RightToolbar); import DictTag from "@/components/DictTag"; // 头部标签插件 import VueMeta from "vue-meta"; - +// import locale from './views/cost/zh'; // 请根据实际路径修改 +// Vue.use(ElementUI, { locale }); Vue.use(directive) Vue.use(plugins) Vue.use(VueMeta) diff --git a/src/views/copilot/components/BarChartBase.vue b/src/views/copilot/components/BarChartBase.vue index 90a9191..449175f 100644 --- a/src/views/copilot/components/BarChartBase.vue +++ b/src/views/copilot/components/BarChartBase.vue @@ -129,7 +129,7 @@ export default { }, splitLine: { lineStyle: { - color: "#4561AE", + color: "rgba(69,97,174,.4)", }, }, }, diff --git a/src/views/copilot/components/ftoBarChartBase.vue b/src/views/copilot/components/ftoBarChartBase.vue index fe1fd1e..5bd654b 100644 --- a/src/views/copilot/components/ftoBarChartBase.vue +++ b/src/views/copilot/components/ftoBarChartBase.vue @@ -1,7 +1,7 @@ @@ -130,7 +130,7 @@ export default { }, splitLine: { lineStyle: { - color: "#4561AE", + color: "rgba(69,97,174,.4)", }, }, }, diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue index 7fbf64d..632f634 100644 --- a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue +++ b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue @@ -1,7 +1,7 @@ @@ -135,7 +135,7 @@ export default { }, splitLine: { lineStyle: { - color: "#4561AE", + color: "rgba(69,97,174,.4)", }, }, }, diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue index 3f3696b..4850ace 100644 --- a/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue +++ b/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue @@ -1,7 +1,7 @@ @@ -135,7 +135,7 @@ export default { }, splitLine: { lineStyle: { - color: "#4561AE", + color: "rgba(69,97,174,.4)", }, }, }, diff --git a/src/views/copilot/factoryData/components/BarChartChipOEE.vue b/src/views/copilot/factoryData/components/BarChartChipOEE.vue index e0ed715..b928bd8 100644 --- a/src/views/copilot/factoryData/components/BarChartChipOEE.vue +++ b/src/views/copilot/factoryData/components/BarChartChipOEE.vue @@ -1,7 +1,7 @@ @@ -59,7 +59,7 @@ export default { left: "10%", right: "3%", bottom: "10%", - top: "15%", + top: "20%", // containLabel: true, }, // tooltip: { @@ -158,7 +158,7 @@ export default { }, splitLine: { lineStyle: { - color: "#4561AE", + color: "rgba(69,97,174,.4)", }, }, }, @@ -349,7 +349,7 @@ export default { .legend { position: absolute; - top: 3vh; + top: 6vh; right: 13vw; } diff --git a/src/views/copilot/factoryData/components/ProdMonitor.vue b/src/views/copilot/factoryData/components/ProdMonitor.vue index 14eb9e2..5efcea5 100644 --- a/src/views/copilot/factoryData/components/ProdMonitor.vue +++ b/src/views/copilot/factoryData/components/ProdMonitor.vue @@ -118,7 +118,7 @@