From f241a35252b477093ed5c09fdf3399320ff9df85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Mon, 17 Jun 2024 15:34:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/report/index.js | 15 + src/store/modules/home.js | 5 +- .../components/sub/bar/BarChartChipOEE.vue | 50 +- .../components/sub/bar/BarChartChipTrans.vue | 50 +- .../factoryData/components/BarChartBase.vue | 15 +- .../copilot/factoryData/components/Order.vue | 6 +- src/views/report/comprehensiveData.vue | 255 ++++---- src/views/report/produceConversion.vue | 548 ++++++++++-------- src/views/report/productionSituationMW.vue | 490 ++++++++++++++++ .../report/productionSituationTablets.vue | 490 ++++++++++++++++ src/views/report/productionYield.vue | 490 ++++++++++++++++ 11 files changed, 1966 insertions(+), 448 deletions(-) create mode 100644 src/api/report/index.js create mode 100644 src/views/report/productionSituationMW.vue create mode 100644 src/views/report/productionSituationTablets.vue create mode 100644 src/views/report/productionYield.vue diff --git a/src/api/report/index.js b/src/api/report/index.js new file mode 100644 index 0000000..243341e --- /dev/null +++ b/src/api/report/index.js @@ -0,0 +1,15 @@ +/* + * @Author: zhp + * @Date: 2024-06-17 09:41:03 + * @LastEditTime: 2024-06-17 09:54:26 + * @LastEditors: zhp + * @Description: + */ +import request from '@/utils/request' +export function getComprehensiveDataPage(data) { + return request({ + url: 'ip/comprehensive/data/get/comprehensive/data', + method: 'get', + params: data + }) +} diff --git a/src/store/modules/home.js b/src/store/modules/home.js index 234fa10..8a2652a 100644 --- a/src/store/modules/home.js +++ b/src/store/modules/home.js @@ -436,7 +436,10 @@ function splitCurrentAndPrevious(factoryListResponse, targetListResponse, prodOu if (preData && preData[0] != null) { for (const factory of preData) { const fId = getPreFactoryId(factory); - chipInvest.previous[fId] = factory.previousYearInputNumber; + if (factory.previousGlassType === 0) { + chipInvest.previous[fId] = factory.inputNumber + } + // chipInvest.previous[fId] = factory.previousYearInputNumber; if (![0, 1, 2].includes(factory.previousGlassType)) continue; const _t = [chipOutput, stdOutput, bipvOutput][factory.previousGlassType]; // if (fId) { diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipOEE.vue index c227aef..6d7f58f 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 @@ @@ -180,30 +180,30 @@ export default { itemStyle: { color: "#f3c000", }, - areaStyle: { - color: { - type: "linear", - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0, - color: "#f3c000", // 0% 处的颜色 - }, - { - offset: 0.55, - color: "#f3c00033", - }, - { - offset: 1, - color: "transparent", // 100% 处的颜色 - }, - ], - global: false, // 缺省为 false - }, - }, + // areaStyle: { + // color: { + // type: "linear", + // x: 0, + // y: 0, + // x2: 0, + // y2: 1, + // colorStops: [ + // { + // offset: 0, + // color: "#f3c000", // 0% 处的颜色 + // }, + // { + // offset: 0.55, + // color: "#f3c00033", + // }, + // { + // offset: 1, + // color: "transparent", // 100% 处的颜色 + // }, + // ], + // global: false, // 缺省为 false + // }, + // }, data: [], // this.series[0].data, }, ], diff --git a/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue b/src/views/copilot/efficiency/components/sub/bar/BarChartChipTrans.vue index 79475ff..848f32d 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 @@ @@ -180,30 +180,30 @@ export default { itemStyle: { color: "#f3c000", }, - areaStyle: { - color: { - type: "linear", - x: 0, - y: 0, - x2: 0, - y2: 1, - colorStops: [ - { - offset: 0, - color: "#f3c000", // 0% 处的颜色 - }, - { - offset: 0.55, - color: "#f3c00033", - }, - { - offset: 1, - color: "transparent", // 100% 处的颜色 - }, - ], - global: false, // 缺省为 false - }, - }, + // areaStyle: { + // color: { + // type: "linear", + // x: 0, + // y: 0, + // x2: 0, + // y2: 1, + // colorStops: [ + // { + // offset: 0, + // color: "#f3c000", // 0% 处的颜色 + // }, + // { + // offset: 0.55, + // color: "#f3c00033", + // }, + // { + // offset: 1, + // color: "transparent", // 100% 处的颜色 + // }, + // ], + // global: false, // 缺省为 false + // }, + // }, data: [], // this.series[0].data, }, ], diff --git a/src/views/copilot/factoryData/components/BarChartBase.vue b/src/views/copilot/factoryData/components/BarChartBase.vue index 5bf1725..534d37e 100644 --- a/src/views/copilot/factoryData/components/BarChartBase.vue +++ b/src/views/copilot/factoryData/components/BarChartBase.vue @@ -1,19 +1,24 @@ - diff --git a/src/views/report/productionSituationMW.vue b/src/views/report/productionSituationMW.vue new file mode 100644 index 0000000..23906a7 --- /dev/null +++ b/src/views/report/productionSituationMW.vue @@ -0,0 +1,490 @@ + + + + + diff --git a/src/views/report/productionSituationTablets.vue b/src/views/report/productionSituationTablets.vue new file mode 100644 index 0000000..23906a7 --- /dev/null +++ b/src/views/report/productionSituationTablets.vue @@ -0,0 +1,490 @@ + + + + + diff --git a/src/views/report/productionYield.vue b/src/views/report/productionYield.vue new file mode 100644 index 0000000..23906a7 --- /dev/null +++ b/src/views/report/productionYield.vue @@ -0,0 +1,490 @@ + + + + +