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 @@