From ede091b57c5815920f93136f9be80a088c0a00a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Sun, 24 Dec 2023 18:13:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/data.json | 339 ++++ src/views/base/customData/boardIndex.vue | 2 +- src/views/board/finalAssembly/index.vue | 346 ++-- src/views/board/foaming/index2.vue | 1051 ++++++------ src/views/board/liner/index.vue | 5 +- src/views/board/pourInto/index2.vue | 1989 ++++++++++++---------- src/views/board/scanDown/index.vue | 1247 ++++++++++---- src/views/board/week/index.vue | 1637 +++++++++--------- 8 files changed, 3870 insertions(+), 2746 deletions(-) diff --git a/public/data.json b/public/data.json index f4466ed..cfeda6d 100644 --- a/public/data.json +++ b/public/data.json @@ -1031,6 +1031,288 @@ "value6": "100%" } ], + "table9": [ + { + "value1": "1", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "2", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "3", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "4", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "5", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "6", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "7", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "8", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "9", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "10", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "11", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "12", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "13", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "14", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "15", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "16", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "1" + }, + { + "value1": "17", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "18", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "19", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "20", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "21", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "22", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "23", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "2" + }, + { + "value1": "24", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "25", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "26", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "27", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "28", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "29", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "30", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "31", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "32", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "33", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "34", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "3" + }, + { + "value1": "35", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "36", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "37", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "38", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "39", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + }, + { + "value1": "40", + "value2": "487JFY", + "value3": "15", + "value4": "15", + "value5": "0" + } + ], "chart1": { "x": [ "01:00", @@ -1454,6 +1736,51 @@ ] } }, + "chart15": { + "x": [ + "1日", + "2日", + "3日", + "4日", + "5日", + "6日", + "7日" + ], + "y": [ + { + "name": "计划", + "data": [ + 22, + 52, + 55, + 12, + 35, + 44, + 66 + ] + }, + { + "name": "实际", + "data": [ + 32, + 42, + 50, + 22, + 30, + 40, + 52 + ] + } + ] + }, + "chart16": { + "x": ["组A", "组B", "组C", "组D", "组E", "组F", "组G", "组H"], + "y": [60, 55, 45, 42, 40, 40, 39, 38] + }, + "chart17": { + "x": ["A-1", "A-2", "A-3", "A-4", "A-5", "A-6", "A-7"], + "y": [12, 20, 11, 30, 14, 80, 50] + }, "liner": { "plan": [ { @@ -1865,5 +2192,17 @@ } ] } + }, + "a": { + "fpx": { + "A1": 0, + "A2": 0, + "B1": 0, + "B2": 0 + }, + "fpj": { + "A": 0, + "B": 0 + } } } diff --git a/src/views/base/customData/boardIndex.vue b/src/views/base/customData/boardIndex.vue index 807a358..bed082d 100644 --- a/src/views/base/customData/boardIndex.vue +++ b/src/views/base/customData/boardIndex.vue @@ -135,7 +135,7 @@ - + diff --git a/src/views/board/finalAssembly/index.vue b/src/views/board/finalAssembly/index.vue index 40eec9f..8c61064 100644 --- a/src/views/board/finalAssembly/index.vue +++ b/src/views/board/finalAssembly/index.vue @@ -8,23 +8,23 @@
班组
上线数量
-
总装
-
1122
+
{{ info.bz }}
+
{{ info.sxsl }}
产品条码
-
B23120783055009802101
+
{{ info.tm }}
扫描时间
-
2023/12/7 12:01:53
+
{{ info.sj }}
产品型号
-
发泡箱体,BCD-530WPG,标准白
+
{{ info.xh }}
订单编号
-
11232394
+
{{ info.bh }}
订单数量
-
300
+
{{ info.ddsl }}
上线数量
-
63
+
{{ info.sxsl2 }}
提示信息
-
扫描成功
+
{{ info.tsxx }}
@@ -102,6 +102,7 @@ import vueSeamlessScroll from "vue-seamless-scroll"; import Chart from "../../../components/board/Chart"; import * as echarts from 'echarts' import {getData} from "@/api/board/getData"; +import {mixData} from "@/api/board/mixData"; export default { components: { @@ -130,6 +131,7 @@ export default { left: 5.5 }, ], + info: {}, scrollTableOption: { step: 0.5, // 数值越大速度滚动越快 limitMoveNum: 5, // 开始无缝滚动的数据量 this.dataList.length @@ -141,162 +143,190 @@ export default { waitTime: 0, }, scrollTableData: [], - - } - }, - mounted() { - getData().then(e => { - this.scrollTableData = e.table7 - this.$refs.chart1.setData({ - tooltip: { - trigger: "axis", - axisPointer: { - // 坐标轴指示器,坐标轴触发有效 - type: "shadow", // 默认为直线,可选为:'line' | 'shadow' - }, - }, - grid: { - left: "0", - right: "4%", - bottom: "0", - top: 20, - containLabel: true, - }, - xAxis: { - type: "category", - data: e.chart4.x, - axisLine: { - lineStyle: { - color: "white", - }, - }, - axisLabel: { - // interval: 0, - // rotate: 40, - textStyle: { - fontFamily: "Microsoft YaHei", - }, - }, + RequestDataSet: [ + { + e: 'zzsc-01', + i: "", + f: (e) => { + this.info = e + } }, + { + e: 'zzsc-02', + i: "", + f: (e) => { + this.$refs.chart1.setData({ + tooltip: { + trigger: "axis", + axisPointer: { + // 坐标轴指示器,坐标轴触发有效 + type: "shadow", // 默认为直线,可选为:'line' | 'shadow' + }, + }, + grid: { + left: "0", + right: "4%", + bottom: "0", + top: 20, + containLabel: true, + }, + xAxis: { + type: "category", + data: e.x, + axisLine: { + lineStyle: { + color: "white", + }, + }, + axisLabel: { + // interval: 0, + // rotate: 40, + textStyle: { + fontFamily: "Microsoft YaHei", + }, + }, + }, - yAxis: { - type: "value", - axisLine: { - show: false, - lineStyle: { - color: "white", - }, - }, - splitLine: { - show: false, - }, - axisLabel: {}, + yAxis: { + type: "value", + axisLine: { + show: false, + lineStyle: { + color: "white", + }, + }, + splitLine: { + show: false, + }, + axisLabel: {}, + }, + series: [ + { + name: "数量", + type: "bar", + barWidth: "30%", + barMaxWidth: 50, + itemStyle: { + normal: { + color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ + { + offset: 0, + color: "#0bca98", + }, + { + offset: 1, + color: "#16a144", + }, + ]), + }, + }, + data: e.y.data, + }, + ], + }) + } }, - series: [ - { - name: "数量", - type: "bar", - barWidth: "30%", - barMaxWidth: 50, - itemStyle: { - normal: { - color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ - { - offset: 0, - color: "#0bca98", + { + e: 'zzsc-03', + i: "", + f: (e) => { + this.$refs.chart2.setData({ + grid: { + left: "0", + right: "4%", + bottom: '2%', + top: "10%", + containLabel: true, + }, + xAxis: { + data: e.x, + axisLine: { + lineStyle: { + color: "#3d5269", }, - { - offset: 1, - color: "#16a144", + }, + axisLabel: { + interval: 0, + color: "#fff", + fontSize: 14, + }, + }, + yAxis: { + nameTextStyle: { + color: "#fff", + fontSize: 16, + }, + axisLine: { + lineStyle: { + color: "#3d5269", + }, + }, + axisLabel: { + color: "#fff", + fontSize: 10, + }, + splitLine: { + show: true, + lineStyle: { + color: "#2d3d53", }, - ]), + }, + interval: 500, }, - }, - data: e.chart4.y.data, - }, - ], - }) - this.$refs.chart2.setData({ - grid: { - left: "0", - right: "4%", - bottom: '2%', - top: "10%", - containLabel: true, - }, - xAxis: { - data: e.chart3.x, - axisLine: { - lineStyle: { - color: "#3d5269", - }, - }, - axisLabel: { - interval: 0, - color: "#fff", - fontSize: 14, - }, - }, - yAxis: { - nameTextStyle: { - color: "#fff", - fontSize: 16, - }, - axisLine: { - lineStyle: { - color: "#3d5269", - }, - }, - axisLabel: { - color: "#fff", - fontSize: 10, - }, - splitLine: { - show: true, - lineStyle: { - color: "#2d3d53", - }, - }, - interval: 500, - }, - series: [ - { - type: "bar", - barWidth: '40%', - itemStyle: { - normal: { - color: new echarts.graphic.LinearGradient( - 0, - 0, - 0, - 1, - [ - { - offset: 0, - color: "#5ef3ff", + series: [ + { + type: "bar", + barWidth: '40%', + itemStyle: { + normal: { + color: new echarts.graphic.LinearGradient( + 0, + 0, + 0, + 1, + [ + { + offset: 0, + color: "#5ef3ff", + }, + { + offset: 1, + color: "#06a4f4", + }, + ], + false + ), }, - { - offset: 1, - color: "#06a4f4", + }, + label: { + normal: { + show: true, + fontSize: 12, + fontWeight: "bold", + color: "#ffffff", + position: "top", }, - ], - false - ), - }, - }, - label: { - normal: { - show: true, - fontSize: 12, - fontWeight: "bold", - color: "#ffffff", - position: "top", - }, - }, - data: e.chart3.y.data, - }, - ], - }) + }, + data: e.y.data, + }, + ], + }) + } + }, + { + e: 'zzsc-04', + i: "", + f: (e) => { + this.scrollTableData = e + } + }, + ] + + } + }, + mounted() { + this.RequestDataSet.forEach(val => { + mixData(val) }) }, methods: {} @@ -447,7 +477,6 @@ export default { } - .info3Title { position: absolute; top: 13.5%; @@ -489,7 +518,6 @@ export default { } - .info5Title { position: absolute; top: 18%; diff --git a/src/views/board/foaming/index2.vue b/src/views/board/foaming/index2.vue index f1ce43a..38582a5 100644 --- a/src/views/board/foaming/index2.vue +++ b/src/views/board/foaming/index2.vue @@ -1,9 +1,16 @@