From 1b8f2522c12a2ce67a72f82cf6455d9af8e9dd8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Sun, 28 Apr 2024 11:04:33 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 2 +- src/api/cost/index.js | 32 ++ src/api/energy/index.js | 15 + src/api/greenest/index.js | 32 ++ src/views/cost/index.vue | 24 +- src/views/energy/index.vue | 12 +- src/views/greenest/index.vue | 18 +- src/views/produce/data/index.vue | 3 +- src/views/produce/target/add-or-updata.vue | 347 ++++++++++------- src/views/produce/target/detail-or-updata.vue | 365 ++++++++++++++++++ src/views/produce/target/index.vue | 86 ++++- 11 files changed, 752 insertions(+), 184 deletions(-) create mode 100644 src/api/cost/index.js create mode 100644 src/api/energy/index.js create mode 100644 src/api/greenest/index.js create mode 100644 src/views/produce/target/detail-or-updata.vue diff --git a/.env.dev b/.env.dev index a0f83b9..6ee8268 100644 --- a/.env.dev +++ b/.env.dev @@ -5,7 +5,7 @@ ENV = 'development' VUE_APP_TITLE = 芋道管理系统 # 芋道管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.0.30:48080' +VUE_APP_BASE_API = 'http://glass.kszny.picaiba.com' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/cost/index.js b/src/api/cost/index.js new file mode 100644 index 0000000..b0e2ff6 --- /dev/null +++ b/src/api/cost/index.js @@ -0,0 +1,32 @@ +/* + * @Author: zhp + * @Date: 2024-04-26 14:53:45 + * @LastEditTime: 2024-04-26 15:01:12 + * @LastEditors: zhp + * @Description: + */ +import request from '@/utils/request' + +// 查询部门列表 +export function getOrderList(data) { + return request({ + url: 'ip/prod-order/prodOrderList', + method: 'post', + data: data + }) +} +export function getCostPage(data) { + return request({ + url: 'ip/cost/costPage', + method: 'post', + data: data + }) +} + +export function getCostList(data) { + return request({ + url: 'ip/cost/costList', + method: 'post', + data: data + }) +} diff --git a/src/api/energy/index.js b/src/api/energy/index.js new file mode 100644 index 0000000..b96d2fa --- /dev/null +++ b/src/api/energy/index.js @@ -0,0 +1,15 @@ +/* + * @Author: zhp + * @Date: 2024-04-28 09:28:12 + * @LastEditTime: 2024-04-28 09:43:40 + * @LastEditors: zhp + * @Description: + */ +import request from '@/utils/request' +export function getEnergyPage(data) { + return request({ + url: 'ip/energy/page', + method: 'post', + data: data + }) +} diff --git a/src/api/greenest/index.js b/src/api/greenest/index.js new file mode 100644 index 0000000..2a527df --- /dev/null +++ b/src/api/greenest/index.js @@ -0,0 +1,32 @@ +/* + * @Author: zhp + * @Date: 2024-04-26 14:53:45 + * @LastEditTime: 2024-04-26 15:09:10 + * @LastEditors: zhp + * @Description: + */ +import request from '@/utils/request' + +// 查询部门列表 +export function getOrderList(data) { + return request({ + url: 'ip/prod-order/prodOrderList', + method: 'post', + data: data + }) +} +export function getEpPage(data) { + return request({ + url: 'ip/environment-protection/environmentPage', + method: 'post', + data: data + }) +} + +export function getCostList(data) { + return request({ + url: 'ip/cost/costList', + method: 'post', + data: data + }) +} diff --git a/src/views/cost/index.vue b/src/views/cost/index.vue index e7a1f9d..765c7cb 100644 --- a/src/views/cost/index.vue +++ b/src/views/cost/index.vue @@ -1,7 +1,7 @@ @@ -36,7 +36,7 @@ diff --git a/src/views/produce/target/index.vue b/src/views/produce/target/index.vue index c6b7d2c..cb6c5ba 100644 --- a/src/views/produce/target/index.vue +++ b/src/views/produce/target/index.vue @@ -1,7 +1,7 @@ @@ -77,7 +77,8 @@ - + + @@ -86,7 +87,7 @@ - + + + + + + + diff --git a/src/views/copilot/efficiency/components/ChipRate.vue b/src/views/copilot/efficiency/components/ChipRate.vue new file mode 100644 index 0000000..d1fed9e --- /dev/null +++ b/src/views/copilot/efficiency/components/ChipRate.vue @@ -0,0 +1,27 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/StdRate.vue b/src/views/copilot/efficiency/components/StdRate.vue new file mode 100644 index 0000000..7563fdc --- /dev/null +++ b/src/views/copilot/efficiency/components/StdRate.vue @@ -0,0 +1,65 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/TransformRate.vue b/src/views/copilot/efficiency/components/TransformRate.vue new file mode 100644 index 0000000..e68597b --- /dev/null +++ b/src/views/copilot/efficiency/components/TransformRate.vue @@ -0,0 +1,25 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/CityName.vue b/src/views/copilot/efficiency/components/sub/CityName.vue new file mode 100644 index 0000000..6483fce --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/CityName.vue @@ -0,0 +1,68 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/ProgressBar.vue b/src/views/copilot/efficiency/components/sub/ProgressBar.vue new file mode 100644 index 0000000..b0c16be --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/ProgressBar.vue @@ -0,0 +1,82 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/sub/StdRateItem.vue b/src/views/copilot/efficiency/components/sub/StdRateItem.vue new file mode 100644 index 0000000..6b3ed7c --- /dev/null +++ b/src/views/copilot/efficiency/components/sub/StdRateItem.vue @@ -0,0 +1,65 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/index.vue b/src/views/copilot/efficiency/index.vue index 7ea9aab..5303c81 100644 --- a/src/views/copilot/efficiency/index.vue +++ b/src/views/copilot/efficiency/index.vue @@ -7,18 +7,37 @@ @@ -58,7 +52,8 @@ export default { flex: 1; margin: 6px; display: flex; - gap: 2px; + gap: 12px; + height: 60px; flex-direction: column; justify-content: center; } -- 2.45.2 From e066a7c4c7f29ecce63afa058b3f7b762f51532e Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Mon, 29 Apr 2024 16:00:07 +0800 Subject: [PATCH 04/10] =?UTF-8?q?update=20=E8=8A=AF=E7=89=87=E8=89=AF?= =?UTF-8?q?=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../efficiency/components/ChipRate.vue | 40 +++-- .../copilot/efficiency/components/StdRate.vue | 2 +- .../components/sub/chip/ChipRateItem.vue | 139 ++++++++++++++++ .../components/sub/{ => std}/CityName.vue | 0 .../components/sub/{ => std}/ProgressBar.vue | 0 .../components/sub/{ => std}/StdRateItem.vue | 0 .../copilot/efficiency/options/chipOptions.js | 156 ++++++++++++++++++ 7 files changed, 326 insertions(+), 11 deletions(-) create mode 100644 src/views/copilot/efficiency/components/sub/chip/ChipRateItem.vue rename src/views/copilot/efficiency/components/sub/{ => std}/CityName.vue (100%) rename src/views/copilot/efficiency/components/sub/{ => std}/ProgressBar.vue (100%) rename src/views/copilot/efficiency/components/sub/{ => std}/StdRateItem.vue (100%) create mode 100644 src/views/copilot/efficiency/options/chipOptions.js diff --git a/src/views/copilot/efficiency/components/ChipRate.vue b/src/views/copilot/efficiency/components/ChipRate.vue index d1fed9e..8d71f73 100644 --- a/src/views/copilot/efficiency/components/ChipRate.vue +++ b/src/views/copilot/efficiency/components/ChipRate.vue @@ -6,22 +6,42 @@ --> diff --git a/src/views/copilot/efficiency/components/StdRate.vue b/src/views/copilot/efficiency/components/StdRate.vue index 42aaa3f..42d7d26 100644 --- a/src/views/copilot/efficiency/components/StdRate.vue +++ b/src/views/copilot/efficiency/components/StdRate.vue @@ -20,7 +20,7 @@ + + +l diff --git a/src/views/copilot/efficiency/components/sub/CityName.vue b/src/views/copilot/efficiency/components/sub/std/CityName.vue similarity index 100% rename from src/views/copilot/efficiency/components/sub/CityName.vue rename to src/views/copilot/efficiency/components/sub/std/CityName.vue diff --git a/src/views/copilot/efficiency/components/sub/ProgressBar.vue b/src/views/copilot/efficiency/components/sub/std/ProgressBar.vue similarity index 100% rename from src/views/copilot/efficiency/components/sub/ProgressBar.vue rename to src/views/copilot/efficiency/components/sub/std/ProgressBar.vue diff --git a/src/views/copilot/efficiency/components/sub/StdRateItem.vue b/src/views/copilot/efficiency/components/sub/std/StdRateItem.vue similarity index 100% rename from src/views/copilot/efficiency/components/sub/StdRateItem.vue rename to src/views/copilot/efficiency/components/sub/std/StdRateItem.vue diff --git a/src/views/copilot/efficiency/options/chipOptions.js b/src/views/copilot/efficiency/options/chipOptions.js new file mode 100644 index 0000000..bb27d43 --- /dev/null +++ b/src/views/copilot/efficiency/options/chipOptions.js @@ -0,0 +1,156 @@ +export default function ({ + single = false, + color, + titleValue, + subtitle, + previousSum, + currentSum, + targetSum, +}) { + return { + grid: { + left: 0, + right: 0, + bottom: 0, + top: 0, + containLabel: true, + }, + tooltip: {}, + title: { + text: titleValue, + left: "49%", + top: "39%", + textAlign: "center", + textStyle: { + fontWeight: 600, + fontSize: 32, + color: "#fffd", + }, + subtext: `\u2002${subtitle}\u2002`, + subtextStyle: { + fontSize: 14, + fontWeight: 100, + color: "#fffd", + align: "right", + }, + }, + series: [ + // 背景 series + { + type: "pie", + name: "当前目标", + radius: ["70%", "85%"], + center: ["50%", "52%"], + emptyCircleStyle: { + color: "#040c5f45", + }, + }, + // 数据 series + { + type: "pie", + radius: ["70%", "85%"], + center: ["50%", "52%"], + avoidLabelOvervlap: false, + label: { + show: false, + }, + labelLine: { + show: false, + }, + data: [ + { + value: currentSum, + name: "当前累计产出", + selected: false, + itemStyle: { + borderJoin: "round", + borderCap: "round", + borderWidth: 12, + borderRadius: "50%", + color: { + type: "linear", + x: 1, + y: 0, + x2: 0, + y2: 1, + colorStops: single + ? [ + { offset: 0, color: `${color}11` }, + { offset: 1, color: `${color}` }, + ] + : [ + { offset: 0, color: "#4CF0E811" }, + { offset: 1, color: "#4CF0E8" }, + ], + }, + }, + }, + { + value: + targetSum > currentSum + ? targetSum - currentSum + : targetSum == 0 + ? currentSum == 0 + ? 1 + : 0 + : 0, + + name: "未达成累计", + itemStyle: { color: "transparent" }, + label: { show: false }, + }, + ], + }, + // 数据 series2 - 2023累计 + single + ? null + : { + type: "pie", + radius: ["55%", "70%"], + center: ["50%", "52%"], + avoidLabelOvervlap: false, + label: { + show: false, + }, + labelLine: { + show: false, + }, + data: [ + { + value: previousSum, + name: "上期累计产出", + selected: false, + itemStyle: { + borderJoin: "round", + borderCap: "round", + borderWidth: 12, + borderRadius: "50%", + color: { + type: "linear", + x: 1, + y: 0, + x2: 0, + y2: 1, + colorStops: [ + { offset: 0, color: "#1065ff66" }, + { offset: 1, color: "#1065ff" }, + ], + }, + }, + }, + { + value: + targetSum > previousSum + ? targetSum - previousSum + : previousSum == 0 + ? 1 + : 0, + name: "-", + itemStyle: { color: "transparent" }, + label: { show: false }, + }, + ], + }, + ], + }; +} -- 2.45.2 From bc3a68a9a730817e66c557492a16d18e503777cd Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Mon, 29 Apr 2024 16:06:59 +0800 Subject: [PATCH 05/10] =?UTF-8?q?update=20=E8=8A=AF=E7=89=87OEE=E5=92=8C?= =?UTF-8?q?=E8=BD=AC=E5=8C=96=E6=95=88=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/copilot/components/BarChartBase.vue | 257 ++++++++++++++++++ .../copilot/efficiency/components/ChipOee.vue | 107 +++++++- .../efficiency/components/TransformRate.vue | 107 +++++++- src/views/copilot/efficiency/index.vue | 4 +- .../copilot/yield/components/FtoInvest.vue | 2 +- 5 files changed, 452 insertions(+), 25 deletions(-) create mode 100644 src/views/copilot/components/BarChartBase.vue diff --git a/src/views/copilot/components/BarChartBase.vue b/src/views/copilot/components/BarChartBase.vue new file mode 100644 index 0000000..ea5cfdf --- /dev/null +++ b/src/views/copilot/components/BarChartBase.vue @@ -0,0 +1,257 @@ + + + + + + + diff --git a/src/views/copilot/efficiency/components/ChipOee.vue b/src/views/copilot/efficiency/components/ChipOee.vue index 5eb554e..5bc43db 100644 --- a/src/views/copilot/efficiency/components/ChipOee.vue +++ b/src/views/copilot/efficiency/components/ChipOee.vue @@ -5,21 +5,106 @@ description: 芯片OEE --> - + - + diff --git a/src/views/copilot/efficiency/components/TransformRate.vue b/src/views/copilot/efficiency/components/TransformRate.vue index e68597b..73ccb90 100644 --- a/src/views/copilot/efficiency/components/TransformRate.vue +++ b/src/views/copilot/efficiency/components/TransformRate.vue @@ -5,21 +5,106 @@ description: 转化效率 --> - + - + diff --git a/src/views/copilot/efficiency/index.vue b/src/views/copilot/efficiency/index.vue index 5303c81..c07ffbd 100644 --- a/src/views/copilot/efficiency/index.vue +++ b/src/views/copilot/efficiency/index.vue @@ -14,10 +14,10 @@ - + - + diff --git a/src/views/copilot/yield/components/FtoInvest.vue b/src/views/copilot/yield/components/FtoInvest.vue index b41bd1b..c56adce 100644 --- a/src/views/copilot/yield/components/FtoInvest.vue +++ b/src/views/copilot/yield/components/FtoInvest.vue @@ -16,7 +16,7 @@ + + diff --git a/src/views/copilot/energy/components/NatGas.vue b/src/views/copilot/energy/components/NatGas.vue new file mode 100644 index 0000000..2c0ff1d --- /dev/null +++ b/src/views/copilot/energy/components/NatGas.vue @@ -0,0 +1,30 @@ + + + + + + + diff --git a/src/views/copilot/energy/components/StockMonitor.vue b/src/views/copilot/energy/components/StockMonitor.vue new file mode 100644 index 0000000..ea4ce6c --- /dev/null +++ b/src/views/copilot/energy/components/StockMonitor.vue @@ -0,0 +1,30 @@ + + + + + + + diff --git a/src/views/copilot/energy/components/WaterCost.vue b/src/views/copilot/energy/components/WaterCost.vue new file mode 100644 index 0000000..dab648f --- /dev/null +++ b/src/views/copilot/energy/components/WaterCost.vue @@ -0,0 +1,30 @@ + + + + + + + diff --git a/src/views/copilot/energy/index.vue b/src/views/copilot/energy/index.vue index 5e4ae78..21bc61f 100644 --- a/src/views/copilot/energy/index.vue +++ b/src/views/copilot/energy/index.vue @@ -2,24 +2,81 @@ filename: index.vue author: liubin date: 2024-04-16 14:40:15 - description: 能源驾驶舱 + description: 综合驾驶舱 --> - + diff --git a/src/views/copilot/yield/components/ChipInvest.vue b/src/views/copilot/yield/components/ChipInvest.vue index 9fea832..52e8938 100644 --- a/src/views/copilot/yield/components/ChipInvest.vue +++ b/src/views/copilot/yield/components/ChipInvest.vue @@ -16,7 +16,7 @@ - - -- 2.45.2 From ea63cb5730f3188974f7556b3b3835a780ac3146 Mon Sep 17 00:00:00 2001 From: "DESKTOP-FUDKNA8\\znjsz" Date: Tue, 30 Apr 2024 09:35:44 +0800 Subject: [PATCH 07/10] =?UTF-8?q?update=20=E7=BB=BC=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/copilot/components/Container.vue | 8 +- .../copilot/components/LineChartBase.vue | 296 ++++++++++++++++++ .../copilot/energy/components/ElecCost.vue | 112 ++++++- .../copilot/energy/components/NatGas.vue | 101 +++++- .../energy/components/StockMonitor.vue | 41 ++- .../copilot/energy/components/WaterCost.vue | 112 ++++++- .../components/sub/monitor/MonitorItem.vue | 139 ++++++++ src/views/copilot/energy/index.vue | 4 +- .../copilot/energy/options/monitorOptions.js | 156 +++++++++ 9 files changed, 940 insertions(+), 29 deletions(-) create mode 100644 src/views/copilot/components/LineChartBase.vue create mode 100644 src/views/copilot/energy/components/sub/monitor/MonitorItem.vue create mode 100644 src/views/copilot/energy/options/monitorOptions.js diff --git a/src/views/copilot/components/Container.vue b/src/views/copilot/components/Container.vue index 1e59c2c..58af7bc 100644 --- a/src/views/copilot/components/Container.vue +++ b/src/views/copilot/components/Container.vue @@ -9,6 +9,7 @@