From 6b452dce36bf20733ed77a009334b79b64d1d4ea Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Mon, 15 Apr 2024 09:35:00 +0800 Subject: [PATCH 01/10] =?UTF-8?q?=E8=83=BD=E6=BA=90bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qoqAnalysis/components/lineChart.vue | 265 +++++++++--------- .../energy/analysis/trendAnalysis/index.vue | 27 +- 2 files changed, 138 insertions(+), 154 deletions(-) diff --git a/src/views/energy/analysis/qoqAnalysis/components/lineChart.vue b/src/views/energy/analysis/qoqAnalysis/components/lineChart.vue index ec8e3d7c..c0c4ae93 100644 --- a/src/views/energy/analysis/qoqAnalysis/components/lineChart.vue +++ b/src/views/energy/analysis/qoqAnalysis/components/lineChart.vue @@ -1,138 +1,139 @@ - + \ No newline at end of file + `; + }) + .join(``) + ); + }, + }, + legend: { + right: '1%', + icon: 'rect', + itemHeight: 8, + itemWidth: 8, + }, + grid: { + left: '1%', + right: '1%', + bottom: '3%', + containLabel: true, + }, + yAxis: { + type: 'value', + boundaryGap: [0, 0.01], + }, + xAxis: { + type: 'category', + data: arr, + }, + series: yData, + }; + option && this.chart.setOption(option); + }, + }, +}; + diff --git a/src/views/energy/analysis/trendAnalysis/index.vue b/src/views/energy/analysis/trendAnalysis/index.vue index a40aaea7..4af97e6e 100644 --- a/src/views/energy/analysis/trendAnalysis/index.vue +++ b/src/views/energy/analysis/trendAnalysis/index.vue @@ -74,29 +74,12 @@ export default { }, // 导出excel exportExl(params) { - exportTrend({ ...params }).then((res) => { - // let fileName = ''; - // const contentDisposition = res.headers['content-disposition']; - // if (contentDisposition) { - // fileName = decodeURIComponent( - // contentDisposition.slice( - // contentDisposition.indexOf('filename=') + 9 - // ) - // ); - // } - const blob = new Blob([res.data]); - const reader = new FileReader(); - reader.readAsDataURL(blob); - reader.onload = (e) => { - const a = document.createElement('a'); - a.download = '走势分析'; - a.href = e.target.result; - document.body.appendChild(a); - a.click(); - document.body.removeChild(a); + exportTrend({ ...params }) + .then((response) => { + this.$download.excel(response, '走势分析.xls'); this.$message.success('导出成功'); - }; - }); + }) + .catch(() => {}); }, }, }; From b0078cb099be275f97a4c7a48a9cb9235af15a14 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Mon, 15 Apr 2024 14:49:28 +0800 Subject: [PATCH 02/10] 1 --- .../energy/analysis/qoqAnalysis/components/lineChart.vue | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/views/energy/analysis/qoqAnalysis/components/lineChart.vue b/src/views/energy/analysis/qoqAnalysis/components/lineChart.vue index c0c4ae93..d7efe8a6 100644 --- a/src/views/energy/analysis/qoqAnalysis/components/lineChart.vue +++ b/src/views/energy/analysis/qoqAnalysis/components/lineChart.vue @@ -58,20 +58,12 @@ export default { type: 'bar', data: [], barWidth: 20, - label: { - show: true, - position: 'top', - }, }, { name: '上期', type: 'bar', data: [], barWidth: 20, - // label: { - // show: true, - // position: 'top' - // } }, ]; for (let j = 0; j < arr.length; j++) { From f3043ee11f4688fc04c76bcad743f689c3ac0e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Tue, 16 Apr 2024 13:45:38 +0800 Subject: [PATCH 03/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/OperationalOverview/coldBoard.vue | 56 ++-- .../components/ISRAChart.vue | 36 +-- .../components/coldDoubleYChart.vue | 14 +- .../components/doubleYChart .vue | 13 +- .../components/linearBarChart.vue | 11 + .../components/pileBarChart.vue | 295 +++++++++--------- .../OperationalOverview/processingBoard.vue | 24 +- 7 files changed, 252 insertions(+), 197 deletions(-) diff --git a/src/views/OperationalOverview/coldBoard.vue b/src/views/OperationalOverview/coldBoard.vue index 5025e36f..b9fbc41f 100644 --- a/src/views/OperationalOverview/coldBoard.vue +++ b/src/views/OperationalOverview/coldBoard.vue @@ -1,7 +1,7 @@ @@ -635,32 +635,34 @@ export default { // this.cutConfig.data = cutArr // this.$refs['cutScrollBoard'].updateRows(cutArr) } else if (this.cutWsData.type === 'cutting' && this.cutWsData.name === 'chart' && this.cutWsData.dateType === 'day') { - let nameList = [] - let nameWasteList = [] - let topNameList = [] - let productList = [] - let wasteList = [] - let sumAreaList = [] - let yieldList = [] - this.coldDetData = this.cutWsData.coldDetData - // this.cutTableDataList = - this.cutWsData.coldDetData.forEach((ele, index) => { - nameList.push(ele.lineName) - topNameList.push('产线: ' + ele.lineName + ' ' + '总面积:' + ele.sumArea + '㎡') - productList.push(ele.productArea) - wasteList.push(ele.wastArea) - nameWasteList.push('缺陷面积:' + this.NumFormat(ele.wastArea) + '㎡') - sumAreaList.push(ele.sumArea) - yieldList.push(parseFloat((ele.yield * 100).toFixed(0))) - }) - this.$nextTick(() => { - this.$refs.firstPileChart.initChart(nameList, [topNameList[0]], [nameWasteList[0]], [productList[0]], [wasteList[0]]) - this.$refs.secondPileChart.initChart(nameList, [topNameList[1]], [nameWasteList[1]], [productList[1]], [wasteList[1]]) - this.$refs.thirdPileChart.initChart(nameList, [topNameList[2]], [nameWasteList[2]], [productList[2]], [wasteList[2]]) - this.$refs.fourthPileChart.initChart(nameList, [topNameList[3]], [nameWasteList[3]], [productList[3]], [wasteList[3]]) - this.$refs.fifthPileChart.initChart(nameList, [topNameList[4]], [nameWasteList[4]], [productList[4]], [wasteList[4]]) - this.$refs.productChart.initChart(nameList, yieldList, sumAreaList) - }) + if (this.cutWsData.coldDetData.length !== 0) { + let nameList = [] + let nameWasteList = [] + let topNameList = [] + let productList = [] + let wasteList = [] + let sumAreaList = [] + let yieldList = [] + this.coldDetData = this.cutWsData.coldDetData + // this.cutTableDataList = + this.cutWsData.coldDetData.forEach((ele, index) => { + nameList.push(ele.lineName) + topNameList.push('产线: ' + ele.lineName + ' ' + '总面积:' + ele.sumArea + '㎡') + productList.push(ele.productArea) + wasteList.push(ele.wastArea) + nameWasteList.push('缺陷面积:' + this.NumFormat(ele.wastArea) + '㎡') + sumAreaList.push(ele.sumArea) + yieldList.push(parseFloat((ele.yield * 100).toFixed(0))) + }) + this.$nextTick(() => { + this.$refs.firstPileChart.initChart(nameList, [topNameList[0]], [nameWasteList[0]], [productList[0]], [wasteList[0]]) + this.$refs.secondPileChart.initChart(nameList, [topNameList[1]], [nameWasteList[1]], [productList[1]], [wasteList[1]]) + this.$refs.thirdPileChart.initChart(nameList, [topNameList[2]], [nameWasteList[2]], [productList[2]], [wasteList[2]]) + this.$refs.fourthPileChart.initChart(nameList, [topNameList[3]], [nameWasteList[3]], [productList[3]], [wasteList[3]]) + this.$refs.fifthPileChart.initChart(nameList, [topNameList[4]], [nameWasteList[4]], [productList[4]], [wasteList[4]]) + this.$refs.productChart.initChart(nameList, yieldList, sumAreaList) + }) + } } }; // if (typeof (WebSocket) === 'undefined') { diff --git a/src/views/OperationalOverview/components/ISRAChart.vue b/src/views/OperationalOverview/components/ISRAChart.vue index 13c780bb..b38edf38 100644 --- a/src/views/OperationalOverview/components/ISRAChart.vue +++ b/src/views/OperationalOverview/components/ISRAChart.vue @@ -1,7 +1,7 @@ @@ -126,22 +126,22 @@ export default { color: '#fff00', }, }, - legend: { - bottom: '10%', - left: 'center', - itemWidth: 12, - itemHeight:12, - icon: 'roundRect', - textStyle: { - color: '#fff' - }, - data:this.chartData && this.chartData.length > 0 && this.chartData.map((item,index)=>({ - name:item.name, - itemStyle:{ - color: this.colors[index%4] - } - })) - }, + // legend: { + // bottom: '10%', + // left: 'center', + // itemWidth: 12, + // itemHeight:12, + // icon: 'roundRect', + // textStyle: { + // color: '#fff' + // }, + // data:this.chartData && this.chartData.length > 0 && this.chartData.map((item,index)=>({ + // name:item.name, + // itemStyle:{ + // color: this.colors[index%4] + // } + // })) + // }, series:[{ name: 'ISRA缺陷检测', type: 'pie', @@ -168,7 +168,7 @@ export default { }, textStyle: { // 提示文字的样式 // color: '#595959', - fontSize: 16 + fontSize: 18 } } }, diff --git a/src/views/OperationalOverview/components/coldDoubleYChart.vue b/src/views/OperationalOverview/components/coldDoubleYChart.vue index 57c58dec..ba946fd7 100644 --- a/src/views/OperationalOverview/components/coldDoubleYChart.vue +++ b/src/views/OperationalOverview/components/coldDoubleYChart.vue @@ -2,7 +2,7 @@ @@ -156,6 +156,8 @@ export default { this.chart.setOption({ // color: colors, tooltip: { + trigger: 'item', + className: "isra-chart-tooltip", trigger: 'axis', axisPointer: { type: 'cross' @@ -318,8 +320,16 @@ export default { } diff --git a/src/views/OperationalOverview/components/doubleYChart .vue b/src/views/OperationalOverview/components/doubleYChart .vue index 07c646a1..b8febfad 100644 --- a/src/views/OperationalOverview/components/doubleYChart .vue +++ b/src/views/OperationalOverview/components/doubleYChart .vue @@ -1,7 +1,7 @@ @@ -162,6 +162,8 @@ export default { this.chart.setOption({ // color: colors, tooltip: { + trigger: 'item', + className: "isra-chart-tooltip", trigger: 'axis', axisPointer: { type: 'cross' @@ -327,4 +329,13 @@ export default { width: 100%; top: -30px; } + .isra-chart-tooltip { + background: #0a2b4f77 !important; + border: none !important; + backdrop-filter: blur(12px); + } + + .isra-chart-tooltip * { + color: #fff !important; + } diff --git a/src/views/OperationalOverview/components/linearBarChart.vue b/src/views/OperationalOverview/components/linearBarChart.vue index 91e03307..bd3cdeb7 100644 --- a/src/views/OperationalOverview/components/linearBarChart.vue +++ b/src/views/OperationalOverview/components/linearBarChart.vue @@ -128,6 +128,8 @@ export default { this.chart.setOption({ tooltip: { trigger: 'axis', + trigger: 'item', + className: "isra-chart-tooltip", axisPointer: { // 坐标轴指示器,坐标轴触发有效 type: 'shadow' // 默认为直线,可选为:'line' | 'shadow' @@ -226,4 +228,13 @@ export default { width: 100%; top: -30px; } +.isra-chart-tooltip { + background: #0a2b4f77 !important; + border: none !important; + backdrop-filter: blur(12px); +} + +.isra-chart-tooltip * { + color: #fff !important; +} diff --git a/src/views/OperationalOverview/components/pileBarChart.vue b/src/views/OperationalOverview/components/pileBarChart.vue index eb5a2066..80da4bb5 100644 --- a/src/views/OperationalOverview/components/pileBarChart.vue +++ b/src/views/OperationalOverview/components/pileBarChart.vue @@ -1,7 +1,7 @@ @@ -101,11 +101,14 @@ export default { });; }, initChart(nameList, topNameList, nameWasteList, passRateList, wasteList) { - let rawData = [] - let colors = ['#0fdedb', '#2359ec'] + if (topNameList.length === 0 && nameWasteList.length === 0 && passRateList === 0 && wasteList === 0) { + return + } else { + let rawData = [] + let colors = ['#0fdedb', '#2359ec'] rawData.push(passRateList, wasteList) - const totalData = []; - // if (rawData.length != 0 && raw,Data,length != 0) { + const totalData = []; + // if (rawData.length != 0 && raw,Data,length != 0) { for (let i = 0; i < rawData[0].length; ++i) { let sum = 0; for (let j = 0; j < rawData.length; ++j) { @@ -113,150 +116,152 @@ export default { } totalData.push(sum); } - // } - // rawData[1].map((d, did) => - // console.log((d / totalData[did]).toFixed(3)) - // // totalData[did] <= 0 ? 0 : d / totalData[did] - // ) - console.log('total', totalData) - const series = [ - '良品', - '废品', - // 'Affiliate Ad', - // 'Video Ad', - // 'Search Engine' - ].map((name, sid) => { - // console.log(sid) - return { - name, - type: 'bar', - stack: 'total', - barWidth: 12, - // label: { - // show: true, - // formatter: (params) => Math.round(params.value * 1000) / 10 + '%' - // }, - color:colors[sid], - data: rawData.length != 0 ? rawData[sid].map((d, did) => - totalData[did] <= 0 ? 0 : (d / totalData[did]).toFixed(4) - ) : [] - }; - }); - // this.charts.resize({ - // //width: width, - // //height: height, - // // es6解构 - // width, - // height - // }) - this.chart = echarts.init(document.getElementById(this.id)) - let isFinished = false //标记 isFinished - this.chart.on('finished', _ => { - if (!isFinished) { - console.log('我只执行一次') - isFinished = true - // this.isLoading = false //关闭loading - this.chart.resize() //重新渲染charts大小 - } - console.log(113, 'finished') - }) - this.chart.setOption({ - legend: { - formatter: function (name) { - //通过name获取到数组对象中的单个对象 - let singleData = series.filter(function (item) { - return item.name == name - }) - return name + parseFloat((singleData[0].data * 100).toFixed(0)) + '%' - }, - itemWidth: 12, - itemHeight: 12, - bottom: '20', - left: '20', - icon: 'roundRect', - textStyle: { - color: 'rgba(255,255,255,.9)', - fontSize:12, + // } + // rawData[1].map((d, did) => + // console.log((d / totalData[did]).toFixed(3)) + // // totalData[did] <= 0 ? 0 : d / totalData[did] + // ) + console.log('total', totalData) + const series = [ + '良品', + '废品', + // 'Affiliate Ad', + // 'Video Ad', + // 'Search Engine' + ].map((name, sid) => { + // console.log(sid) + return { + name, + type: 'bar', + stack: 'total', + barWidth: 12, + // label: { + // show: true, + // formatter: (params) => Math.round(params.value * 1000) / 10 + '%' + // }, + color: colors[sid], + data: rawData.length != 0 ? rawData[sid].map((d, did) => + totalData[did] <= 0 ? 0 : (d / totalData[did]).toFixed(4) + ) : [] + }; + }); + // this.charts.resize({ + // //width: width, + // //height: height, + // // es6解构 + // width, + // height + // }) + this.chart = echarts.init(document.getElementById(this.id)) + let isFinished = false //标记 isFinished + this.chart.on('finished', _ => { + if (!isFinished) { + console.log('我只执行一次') + isFinished = true + // this.isLoading = false //关闭loading + this.chart.resize() //重新渲染charts大小 } - }, - grid: { - top:'0', - left: '3%', - right: '4%', - // bottom: '3%', - width: 'auto', - height: '95', - containLabel: true - }, - yAxis: [ - { - type: 'category', - inverse: true, - splitLine: { - show: false + console.log(113, 'finished') + }) + this.chart.setOption({ + legend: { + formatter: function (name) { + //通过name获取到数组对象中的单个对象 + let singleData = series.filter(function (item) { + return item.name == name + }) + return name + parseFloat((singleData[0].data * 100).toFixed(0)) + '%' }, - axisTick: { - show: false - }, - axisLine: { - show: false - }, - axisLabel: { - show: true, - inside: true, - interval: 0, //横轴信息全部显 - splitNumber: 50, - // boundaryGap: [20, 20], - textStyle: { - color: 'rgba(255,255,255,.9)', - verticalAlign: 'bottom', - fontSize: 16, - align: 'left', - padding: [0, 0, 10, -5] - } - }, - data: topNameList + itemWidth: 12, + itemHeight: 12, + bottom: '20', + left: '20', + icon: 'roundRect', + textStyle: { + color: 'rgba(255,255,255,.9)', + fontSize: 12, + } }, - { - type: 'category', - inverse: true, - splitLine: { - show: false + grid: { + top: '0', + left: '3%', + right: '4%', + // bottom: '3%', + width: 'auto', + height: '95', + containLabel: true + }, + yAxis: [ + { + type: 'category', + inverse: true, + splitLine: { + show: false + }, + axisTick: { + show: false + }, + axisLine: { + show: false + }, + axisLabel: { + show: true, + inside: true, + interval: 0, //横轴信息全部显 + splitNumber: 50, + // boundaryGap: [20, 20], + textStyle: { + color: 'rgba(255,255,255,.9)', + verticalAlign: 'bottom', + fontSize: 16, + align: 'left', + padding: [0, 0, 10, -5] + } + }, + data: topNameList }, - axisTick: { - show: false - }, - axisLine: { - show: false - }, - axisLabel: { - show: true, - inside: true, - interval: 0, //横轴信息全部显 - splitNumber: 50, - // boundaryGap: [20, 20], - textStyle: { - color: 'rgba(255,255,255,.9)', - verticalAlign: 'bottom', - fontSize: 16, - align: 'right', - padding: [0, 0, 10, -5] - } - }, - data: nameWasteList - } - ], - xAxis: { - // max: 120, - show: false, - }, - series:series - }) - this.$nextTick(() => { - setTimeout(() => { - this.resize() - },1000); - }) + { + type: 'category', + inverse: true, + splitLine: { + show: false + }, + axisTick: { + show: false + }, + axisLine: { + show: false + }, + axisLabel: { + show: true, + inside: true, + interval: 0, //横轴信息全部显 + splitNumber: 50, + // boundaryGap: [20, 20], + textStyle: { + color: 'rgba(255,255,255,.9)', + verticalAlign: 'bottom', + fontSize: 16, + align: 'right', + padding: [0, 0, 10, -5] + } + }, + data: nameWasteList + } + ], + xAxis: { + // max: 120, + show: false, + }, + series: series + }) + this.$nextTick(() => { + setTimeout(() => { + this.resize() + }, 1000); + }) + } + // this.chart.resize({ // width: 'auto', // height: 90 diff --git a/src/views/OperationalOverview/processingBoard.vue b/src/views/OperationalOverview/processingBoard.vue index 979d0686..468a512c 100644 --- a/src/views/OperationalOverview/processingBoard.vue +++ b/src/views/OperationalOverview/processingBoard.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-07-19 15:18:30 * @LastEditors: zhp - * @LastEditTime: 2024-04-10 16:10:11 + * @LastEditTime: 2024-04-16 13:42:27 * @Description: --> @@ -747,8 +747,8 @@ export default { `${ item.code || '' }`, - ` ${item.status || ''}`, - ` ${item.error || ''}`, + ` ${item.status || ''}`, + ` ${item.error || ''}`, ]); this.eqConfig.data = eqArr; // this.$nextTick(() => { @@ -790,7 +790,23 @@ export default { outputNumList ); }) - } else if (this.SJGInitWebSocket === 'inspection') { + } else if (this.SJGWsData.type === 'inspection') { + let processArr = this.SJGWsData.detData.map((item, index) => [ + `${index + 1 || ''} + `, + `${item.productionLineName || ''} + `, + `${item.sectionName || '' + }`, + `${item.count || '' + }`, + `${item.inspectionTypeName || '' + }`, + ]); + this.processConfig.data = processArr; + // this.$nextTick(() => { + this.$refs['processScrollBoard'].updateRows(processArr); + // }) } }; }, From 64de2c50b60357b3b02afec3003c7321803760ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Tue, 16 Apr 2024 13:52:38 +0800 Subject: [PATCH 04/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OperationalOverview/processingBoard.vue | 58 +++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/src/views/OperationalOverview/processingBoard.vue b/src/views/OperationalOverview/processingBoard.vue index 468a512c..bc413a23 100644 --- a/src/views/OperationalOverview/processingBoard.vue +++ b/src/views/OperationalOverview/processingBoard.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-07-19 15:18:30 * @LastEditors: zhp - * @LastEditTime: 2024-04-16 13:42:27 + * @LastEditTime: 2024-04-16 13:51:33 * @Description: --> @@ -108,80 +108,80 @@ const qualityYearList = [ { name: '翻转机', code: 'EQ20240110112358000235', - status: '运行', - error: '否', + status: '正常', + error: 'true', }, { name: '烘干炉', code: 'EQ20240110112537000241', - status: '运行', - error: '否', + status: '计划停机', + error: 'true', }, { name: '清洗机', code: ' EQ20240110112310000232', - status: '运行', - error: '否', + status: '正常', + error: 'true', }, { name: '钢化清洗机', code: 'EQ20240110111700000208', - status: '运行', - error: '否', + status: '正常', + error: 'true', }, { name: '固化机', code: 'EQ20240110111700000201', - status: '运行', - error: '否', + status: '正常', + error: 'true', }, { name: '磨边清洗机', code: ' EQ20240110111700000208', - status: '运行', - error: '否', + status: '正常', + error: 'true', }, { name: '预热机', code: 'EQ20240110111700000205', status: '故障', - error: '是', + error: 'true', }, { name: '下片机', code: 'EQ20240115151435000279', - status: '运行', - error: '否', + status: '正常', + error: 'false', }, { name: '冷却机', code: 'EQ20240110111700000203', - status: '运行', - error: '否', + status: '正常', + error: 'false', }, { name: 'A储片机106', code: 'EQ20240110111700000202', - status: '运行', - error: '否', + status: '正常', + error: 'false', }, { name: '二次清洗机', code: 'EQ20240110111700000209', - status: '运行', - error: '否', + status: '正常', + error: 'false', }, { name: '二次磨边机', code: ' EQ20240110110927000181', - status: '故障', - error: '是', + status: '正常', + error: 'false', }, { name: '测试设备', code: 'EQ20240110111700000201', - status: '运行', - error: '否', + status: '正常', + error: 'true', }, ]; const qualityMonthList = [ @@ -480,8 +480,8 @@ export default { ${item.name || ''} `, `${item.code || ''}`, - ` ${item.status || ''}`, - ` ${item.error || ''}`, + ` ${item.status || ''}`, + ` ${item.error || ''}`, ]); this.eqConfig.data = eqArr; let data = [ @@ -748,7 +748,7 @@ export default { item.code || '' }`, ` ${item.status || ''}`, - ` ${item.error || ''}`, + ` ${item.error || ''}`, ]); this.eqConfig.data = eqArr; // this.$nextTick(() => { From 9dec81e0b2a817a4065a9895121ec6289e8974a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Tue, 16 Apr 2024 14:04:43 +0800 Subject: [PATCH 05/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OperationalOverview/processingBoard.vue | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/src/views/OperationalOverview/processingBoard.vue b/src/views/OperationalOverview/processingBoard.vue index bc413a23..f73da45b 100644 --- a/src/views/OperationalOverview/processingBoard.vue +++ b/src/views/OperationalOverview/processingBoard.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-07-19 15:18:30 * @LastEditors: zhp - * @LastEditTime: 2024-04-16 13:51:33 + * @LastEditTime: 2024-04-16 14:03:31 * @Description: --> @@ -42,14 +42,16 @@ - {{ op.name }} - - - {{ - op.specifications }} - - {{ - op.planQuantity }} + + {{ op.name }} + + + {{ + op.specifications }} + + {{ + op.planQuantity }} + {{ op.actualQuantity @@ -380,7 +382,7 @@ export default { progressRate: 0.933333, specifications: '1100*5554*22', plan: 11111, - finish:111, + actualQuantity:111, }, { id: '2', @@ -388,7 +390,7 @@ export default { progressRate: 0.932323, size: '1100*5554*22', plan: 11111, - finish: 111, + actualQuantity: 111, }, { id: '3', @@ -396,7 +398,7 @@ export default { progressRate: 0.23232, size: '1100*5554*22', plan: 11111, - finish: 111, + actualQuantity: 111, }, { id: '4', @@ -404,7 +406,7 @@ export default { progressRate: 0.32323, size: '1100*5554*22', plan: 11111, - finish: 111, + actualQuantity: 111, }, { id: '5', @@ -412,7 +414,7 @@ export default { progressRate: 0.32323, size: '1100*5554*22', plan: 11111, - finish: 111, + actualQuantity: 111, }, { id: '6', @@ -420,7 +422,7 @@ export default { size: '1100*5554*22', progressRate: 0.32323, plan: 11111, - finish: 111, + actualQuantity: 111, }, { id: '7', @@ -428,7 +430,7 @@ export default { size: '1100*5554*22', progressRate: 0.32323, plan: 11111, - finish: 111, + actualQuantity: 111, }, { id: '8', @@ -436,7 +438,7 @@ export default { progressRate: 0.32323, size: '1100*5554*22', plan: 11111, - finish: 111, + actualQuantity: 111, }, // { // id: '5', @@ -456,7 +458,7 @@ export default { progressRate: parseFloat((ele.progressRate * 100).toFixed(0)), specifications: ele.specifications ? '规格' + ele.specifications :null, planQuantity: ele.plan ? '计划' + ele.plan + '片' : null, - finish: ele.finish + '片', + actualQuantity: ele.actualQuantity + '片', }; } }); From d448280782065835b76c2fa41d8d80e4284bb16e Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Tue, 16 Apr 2024 15:29:39 +0800 Subject: [PATCH 06/10] test --- src/views/report/productionDayR/index.vue | 85 +++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/views/report/productionDayR/index.vue diff --git a/src/views/report/productionDayR/index.vue b/src/views/report/productionDayR/index.vue new file mode 100644 index 00000000..12215e5a --- /dev/null +++ b/src/views/report/productionDayR/index.vue @@ -0,0 +1,85 @@ + + + 开发中 + + + + + + From 6f8abc975816e2183165882e464e2c2319b37ca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Wed, 17 Apr 2024 16:15:59 +0800 Subject: [PATCH 07/10] =?UTF-8?q?=E4=BF=AE=E6=94=B9ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ISRAChart.vue | 30 +++++++---- .../OperationalOverview/processingBoard.vue | 51 +++++++++---------- 2 files changed, 45 insertions(+), 36 deletions(-) diff --git a/src/views/OperationalOverview/components/ISRAChart.vue b/src/views/OperationalOverview/components/ISRAChart.vue index b38edf38..2dc04a67 100644 --- a/src/views/OperationalOverview/components/ISRAChart.vue +++ b/src/views/OperationalOverview/components/ISRAChart.vue @@ -1,7 +1,7 @@ @@ -125,7 +125,13 @@ export default { fontSize: 20, color: '#fff00', }, - }, + }, + grid: { + left: '1%', + right: '1%', + bottom: '0', + containLabel: true + }, // legend: { // bottom: '10%', // left: 'center', @@ -213,15 +219,19 @@ export default { .isra-chart { width: 100%; height: 100%; + position: absolute; + top: 7%; } + .isra-chart-tooltip { + background: #0a2b4f77 !important; + border: none !important; + backdrop-filter: blur(12px); + } + + .isra-chart-tooltip * { + color: #fff !important; + } diff --git a/src/views/OperationalOverview/processingBoard.vue b/src/views/OperationalOverview/processingBoard.vue index f73da45b..aff0f1d2 100644 --- a/src/views/OperationalOverview/processingBoard.vue +++ b/src/views/OperationalOverview/processingBoard.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-07-19 15:18:30 * @LastEditors: zhp - * @LastEditTime: 2024-04-16 14:03:31 + * @LastEditTime: 2024-04-17 16:08:08 * @Description: --> @@ -58,7 +58,7 @@ }} - @@ -111,25 +111,25 @@ const qualityYearList = [ name: '翻转机', code: 'EQ20240110112358000235', status: '正常', - error: 'true', + error: true, }, { name: '烘干炉', code: 'EQ20240110112537000241', status: '计划停机', - error: 'true', + error: true, }, { name: '清洗机', code: ' EQ20240110112310000232', status: '正常', - error: 'true', + error: true, }, { name: '钢化清洗机', code: 'EQ20240110111700000208', status: '正常', - error: 'true', + error: true, }, { name: '固化机', @@ -141,49 +141,48 @@ const qualityYearList = [ name: '磨边清洗机', code: ' EQ20240110111700000208', status: '正常', - error: 'true', + error: true, }, { name: '预热机', code: 'EQ20240110111700000205', status: '故障', - error: 'true', + error: true, }, { name: '下片机', code: 'EQ20240115151435000279', - status: '正常', - error: 'false', + error: true, }, { name: '冷却机', code: 'EQ20240110111700000203', status: '正常', - error: 'false', + error: true, }, { name: 'A储片机106', code: 'EQ20240110111700000202', status: '正常', - error: 'false', + error: true, }, { name: '二次清洗机', code: 'EQ20240110111700000209', status: '正常', - error: 'false', + error: true, }, { name: '二次磨边机', code: ' EQ20240110110927000181', status: '正常', - error: 'false', + error: true, }, { name: '测试设备', code: 'EQ20240110111700000201', status: '正常', - error: 'true', + error: true, }, ]; const qualityMonthList = [ @@ -232,37 +231,37 @@ const qualityMonthList = [ ]; const orderProcessList = [ { - id: '1', + id: 1, outRate: '.8', name: '凯盛0322', }, { - id: '2', + id: 2, outRate: '.4', name: '光伏玻璃4.0', }, { - id: '3', + id: 3, outRate: '.5', name: '光伏玻璃3.0', }, { - id: '4', + id: 4, outRate: '.3', name: '光伏玻璃2.0', }, { - id: '5', + id: 5, outRate: '.5', name: '光伏玻璃1.0', }, { - id: '6', + id: 6, outRate: '.8', name: '光伏玻璃', }, { - id: '7', + id: 7, outRate: '.8', name: '统计订单', }, @@ -483,7 +482,7 @@ export default { `, `${item.code || ''}`, ` ${item.status || ''}`, - ` ${item.error || ''}`, + ` ${item.error == true ? '是' : '否' || ''}`, ]); this.eqConfig.data = eqArr; let data = [ @@ -750,7 +749,7 @@ export default { item.code || '' }`, ` ${item.status || ''}`, - ` ${item.error || ''}`, + ` ${item.error == true ?'是' :'否' || ''}`, ]); this.eqConfig.data = eqArr; // this.$nextTick(() => { @@ -868,7 +867,7 @@ export default { margin-left: 8px; opacity:calc(.6); margin-right: 8px; - background-color: #C8CDD7; + background-color: rgba(0, 255, 247, 1); // border: 1px solid #C8CDD7; } .myLegend { @@ -993,7 +992,7 @@ export default { font-size: 14px; line-height: 2em; text-align: right; - color: #fff; + color: rgba(0, 255, 247, 1); } .orderPlan { display: inline-block; From c9128ce94646b86263572dfc16c04283569bd50e Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Fri, 19 Apr 2024 11:03:50 +0800 Subject: [PATCH 08/10] =?UTF-8?q?=E5=8C=85=E8=A3=8540%?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ButtonNav/index.vue | 138 +++ src/views/base/custom/index.vue | 849 ++++++++++-------- .../components/InputArea.vue | 45 + .../components/OtherMsg.vue | 226 +++++ .../packagingPrintLog2/components/Printed.vue | 182 ++++ .../components/PrintedEdit.vue | 0 .../packagingPrintLog2/components/UnPrint.vue | 332 +++++++ .../components/UnPrintEdit.vue | 69 ++ .../packagingPrintLog2/components/preview.vue | 100 +++ src/views/base/packagingPrintLog2/index.vue | 47 + .../base/packagingPrintLog2/print-template.js | 554 ++++++++++++ .../packagingPrintModel/add-or-updata.vue | 410 ++++----- .../base/packagingPrintType/add-or-updata.vue | 339 ++----- 13 files changed, 2447 insertions(+), 844 deletions(-) create mode 100644 src/components/ButtonNav/index.vue create mode 100644 src/views/base/packagingPrintLog2/components/InputArea.vue create mode 100644 src/views/base/packagingPrintLog2/components/OtherMsg.vue create mode 100644 src/views/base/packagingPrintLog2/components/Printed.vue create mode 100644 src/views/base/packagingPrintLog2/components/PrintedEdit.vue create mode 100644 src/views/base/packagingPrintLog2/components/UnPrint.vue create mode 100644 src/views/base/packagingPrintLog2/components/UnPrintEdit.vue create mode 100644 src/views/base/packagingPrintLog2/components/preview.vue create mode 100644 src/views/base/packagingPrintLog2/index.vue create mode 100644 src/views/base/packagingPrintLog2/print-template.js diff --git a/src/components/ButtonNav/index.vue b/src/components/ButtonNav/index.vue new file mode 100644 index 00000000..b61cac0e --- /dev/null +++ b/src/components/ButtonNav/index.vue @@ -0,0 +1,138 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/base/custom/index.vue b/src/views/base/custom/index.vue index 6deb1a50..04a9ba37 100644 --- a/src/views/base/custom/index.vue +++ b/src/views/base/custom/index.vue @@ -1,19 +1,24 @@ - - - - - - 模板设计 - - - - - - - + + + + + + 模板设计 + + + + + + + - - - - - - - {{ type }} - - - - - - ~ - - - - 确定 - - 自定义宽高 - + + + + + + {{ type }} + + + + + + + ~ + + + + + 确定 + + + + 自定义宽高 + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + - - - 旋转 - - 预览 - - + + + 旋转 + + + 预览 + + - - 保存 - - - 清空 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + 保存 + + + 清空 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/components/InputArea.vue b/src/views/base/packagingPrintLog2/components/InputArea.vue new file mode 100644 index 00000000..f7945036 --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/InputArea.vue @@ -0,0 +1,45 @@ + + + + {{ list[itemProp] }} + + + diff --git a/src/views/base/packagingPrintLog2/components/OtherMsg.vue b/src/views/base/packagingPrintLog2/components/OtherMsg.vue new file mode 100644 index 00000000..c4425b29 --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/OtherMsg.vue @@ -0,0 +1,226 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/components/Printed.vue b/src/views/base/packagingPrintLog2/components/Printed.vue new file mode 100644 index 00000000..b1dc68c9 --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/Printed.vue @@ -0,0 +1,182 @@ + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/components/PrintedEdit.vue b/src/views/base/packagingPrintLog2/components/PrintedEdit.vue new file mode 100644 index 00000000..e69de29b diff --git a/src/views/base/packagingPrintLog2/components/UnPrint.vue b/src/views/base/packagingPrintLog2/components/UnPrint.vue new file mode 100644 index 00000000..1f958865 --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/UnPrint.vue @@ -0,0 +1,332 @@ + + + + + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/components/UnPrintEdit.vue b/src/views/base/packagingPrintLog2/components/UnPrintEdit.vue new file mode 100644 index 00000000..e9ec720b --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/UnPrintEdit.vue @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/components/preview.vue b/src/views/base/packagingPrintLog2/components/preview.vue new file mode 100644 index 00000000..0f68d42b --- /dev/null +++ b/src/views/base/packagingPrintLog2/components/preview.vue @@ -0,0 +1,100 @@ + + + + + + + 关闭 + + + + + + + diff --git a/src/views/base/packagingPrintLog2/index.vue b/src/views/base/packagingPrintLog2/index.vue new file mode 100644 index 00000000..ecc60ac9 --- /dev/null +++ b/src/views/base/packagingPrintLog2/index.vue @@ -0,0 +1,47 @@ + + + + + + + + + + + + + diff --git a/src/views/base/packagingPrintLog2/print-template.js b/src/views/base/packagingPrintLog2/print-template.js new file mode 100644 index 00000000..14f5bd22 --- /dev/null +++ b/src/views/base/packagingPrintLog2/print-template.js @@ -0,0 +1,554 @@ +export default { + panels: [ + { + index: 0, + name: 1, + height: 125, + width: 95, + paperHeader: 0, + paperFooter: 354.33070866141736, + printElements: [ + { + options: { + left: 5, + top: 5, + height: 30, + width: 256.5, + right: 262.2421875, + bottom: 34.9921875, + vCenter: 133.9921875, + hCenter: 19.9921875, + coordinateSync: false, + widthHeightSync: false, + borderColor: 'green', + backgroundColor: 'green', + }, + printElementType: { title: '矩形', type: 'rect' }, + }, + { + options: { + left: 35, + top: 15, + height: 20, + width: 195, + title: '厂内镀膜/钢化片周转标签', + coordinateSync: false, + widthHeightSync: false, + fontSize: 16.5, + color: '#ffffff', + qrCodeLevel: 0, + right: 232.9921875, + bottom: 35.24609375, + vCenter: 135.4921875, + hCenter: 25.24609375, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { left: 50, top: 35, height: 52.5, width: 9 }, + printElementType: { title: '竖线', type: 'vline' }, + }, + { + options: { + left: 5, + top: 35, + height: 309, + width: 256.5, + right: 261.4921875, + bottom: 343.9921875, + vCenter: 133.2421875, + hCenter: 189.4921875, + }, + printElementType: { title: '矩形', type: 'rect' }, + }, + { + options: { + left: 10, + top: 42.5, + height: 18, + width: 36, + title: '线别', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 45.99609375, + bottom: 60.4921875, + vCenter: 27.99609375, + hCenter: 51.4921875, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 55, + top: 42.5, + height: 18, + width: 200, + title: '判定:良品/保留/再检', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 93.4921875, + bottom: 59.25, + vCenter: 75.4921875, + hCenter: 50.25, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 5, + top: 62.5, + height: 9, + width: 256.5, + right: 259.9921875, + bottom: 72.4921875, + vCenter: 132.4921875, + hCenter: 67.9921875, + }, + printElementType: { title: '横线', type: 'hline' }, + }, + { + options: { + left: 55, + top: 70, + height: 18, + width: 46, + title: '备注:', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 91.2421875, + bottom: 86.25, + vCenter: 73.2421875, + hCenter: 77.25, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 190, + top: 87.5, + height: 169.5, + width: 9, + right: 199.74609375, + bottom: 255.75, + vCenter: 195.24609375, + hCenter: 171, + }, + printElementType: { title: '竖线', type: 'vline' }, + }, + { + options: { + left: 5, + top: 87.5, + height: 9, + width: 256.5, + right: 260.7421875, + bottom: 96.75, + vCenter: 132.4921875, + hCenter: 92.25, + }, + printElementType: { title: '横线', type: 'hline' }, + }, + { + options: { + left: 77.5, + top: 90, + height: 15, + width: 36, + title: '规格', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 113.49609375, + bottom: 105.4921875, + vCenter: 95.49609375, + hCenter: 97.9921875, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 207.5, + top: 100, + height: 18, + width: 36, + title: '用户', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 242.7421875, + bottom: 116.25, + vCenter: 224.7421875, + hCenter: 107.25, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 25, + top: 102.5, + height: 15, + width: 156, + title: '长*宽*厚度(单位:mm)', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 179.25, + bottom: 117.4921875, + vCenter: 101.25, + hCenter: 109.9921875, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 5, + top: 117.5, + height: 9, + width: 256.5, + right: 263.7421875, + bottom: 125.7421875, + vCenter: 135.4921875, + hCenter: 121.2421875, + }, + printElementType: { title: '横线', type: 'hline' }, + }, + { + options: { + left: 130, + top: 145, + height: 55.5, + width: 9, + right: 138.99609375, + bottom: 199.5, + vCenter: 134.49609375, + hCenter: 171.75, + }, + printElementType: { title: '竖线', type: 'vline' }, + }, + { + options: { + left: 5, + top: 145, + height: 9, + width: 256.5, + right: 260.25, + bottom: 154.2421875, + vCenter: 132, + hCenter: 149.7421875, + }, + printElementType: { title: '横线', type: 'hline' }, + }, + { + options: { + left: 45, + top: 155, + height: 18, + width: 36, + title: '编号', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 82.2421875, + bottom: 171.75, + vCenter: 64.2421875, + hCenter: 162.75, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 135, + top: 155, + height: 18, + width: 49.5, + title: '工位号', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 186, + bottom: 172.9921875, + vCenter: 161.25, + hCenter: 163.9921875, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 197.5, + top: 155, + height: 18, + width: 60, + title: '流程卡号', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 256.74609375, + bottom: 143.7421875, + vCenter: 226.74609375, + hCenter: 134.7421875, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 5, + top: 175, + height: 9, + width: 256.5, + right: 259.2421875, + bottom: 183.75, + vCenter: 130.9921875, + hCenter: 179.25, + }, + printElementType: { title: '横线', type: 'hline' }, + }, + { + options: { + left: 50, + top: 200, + height: 58.5, + width: 9, + right: 58.9921875, + bottom: 259.5, + vCenter: 54.4921875, + hCenter: 230.25, + }, + printElementType: { title: '竖线', type: 'vline' }, + }, + { + options: { + left: 110, + top: 200, + height: 58.5, + width: 9, + right: 117.75, + bottom: 256.9921875, + vCenter: 113.25, + hCenter: 227.7421875, + }, + printElementType: { title: '竖线', type: 'vline' }, + }, + { + options: { + left: 5, + top: 200, + height: 9, + width: 256.5, + right: 262.9921875, + bottom: 210.24609375, + vCenter: 134.7421875, + hCenter: 205.74609375, + }, + printElementType: { title: '横线', type: 'hline' }, + }, + { + options: { + left: 10, + top: 210, + height: 18, + width: 36, + title: '日期', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 45.99609375, + bottom: 228, + vCenter: 27.99609375, + hCenter: 219, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 67.5, + top: 210, + height: 18, + width: 36, + title: '班次', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 103.5, + bottom: 228, + vCenter: 85.5, + hCenter: 219, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 207.5, + top: 210, + height: 18, + width: 36, + title: '片数', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 243.4921875, + bottom: 228, + vCenter: 225.4921875, + hCenter: 219, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 5, + top: 230, + height: 9, + width: 256.5, + right: 261.4921875, + bottom: 239.25, + vCenter: 133.2421875, + hCenter: 234.75, + }, + printElementType: { title: '横线', type: 'hline' }, + }, + { + options: { + left: 5, + top: 257.5, + height: 9, + width: 256.5, + right: 261.4921875, + bottom: 266.49609375, + vCenter: 133.2421875, + hCenter: 261.99609375, + }, + printElementType: { title: '横线', type: 'hline' }, + }, + { + options: { + left: 10, + top: 262.5, + height: 18, + width: 87, + title: '封箱人员工号:', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 46.9921875, + bottom: 279.24609375, + vCenter: 28.9921875, + hCenter: 270.24609375, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 5, + top: 280, + height: 9, + width: 256.5, + right: 262.2421875, + bottom: 289.2421875, + vCenter: 133.9921875, + hCenter: 284.7421875, + }, + printElementType: { title: '横线', type: 'hline' }, + }, + { + options: { + left: 10, + top: 285, + height: 18, + width: 87, + title: '打包人员工号:', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 96.4921875, + bottom: 301.74609375, + vCenter: 52.9921875, + hCenter: 292.74609375, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 5, + top: 300, + height: 9, + width: 256.5, + right: 264.4921875, + bottom: 308.49609375, + vCenter: 136.2421875, + hCenter: 303.99609375, + }, + printElementType: { title: '横线', type: 'hline' }, + }, + { + options: { + left: 10, + top: 305, + height: 18, + width: 247.5, + title: '备注1:单层镀/双层镀/丝印打孔/打孔钢片', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 96.99609375, + bottom: 322.9921875, + vCenter: 53.49609375, + hCenter: 313.9921875, + }, + printElementType: { title: '文本', type: 'text' }, + }, + { + options: { + left: 5, + top: 322.5, + height: 9, + width: 256.5, + right: 262.2421875, + bottom: 332.7421875, + vCenter: 133.9921875, + hCenter: 328.2421875, + }, + printElementType: { title: '横线', type: 'hline' }, + }, + { + options: { + left: 10, + top: 327.5, + height: 18, + width: 87, + title: '备注2:', + coordinateSync: false, + widthHeightSync: false, + fontSize: 12, + qrCodeLevel: 0, + right: 97.9921875, + bottom: 343.74609375, + vCenter: 54.4921875, + hCenter: 334.74609375, + }, + printElementType: { title: '文本', type: 'text' }, + }, + ], + paperNumberLeft: 372.5, + paperNumberTop: 337.5, + paperNumberContinue: true, + watermarkOptions: {}, + }, + ] +} \ No newline at end of file diff --git a/src/views/base/packagingPrintModel/add-or-updata.vue b/src/views/base/packagingPrintModel/add-or-updata.vue index e89a6227..9a7231c2 100644 --- a/src/views/base/packagingPrintModel/add-or-updata.vue +++ b/src/views/base/packagingPrintModel/add-or-updata.vue @@ -6,138 +6,130 @@ * @Description: --> - - - {{ !dataForm.id ? '新增' : '编辑' }} - + + + {{ !dataForm.id ? '新增' : '编辑' }} + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 模板设计 - - - - - - - - - - - - - - 取消 - - 确定 - - - + + 确定 + + + + - - From ecf6745c8ab9b53de8cee155172e736d0e4d75f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Fri, 19 Apr 2024 11:07:14 +0800 Subject: [PATCH 09/10] =?UTF-8?q?=E6=8A=A5=E8=A1=A8=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/report/qcReport.js | 40 ++ .../OperationalOverview/processingBoard.vue | 9 +- .../Environmental/productionDayR/index.vue | 237 +++++++ .../productionDayR/inputTable.vue | 273 +++++++ .../productionDayR/secondTable.vue | 220 ++++++ src/views/report/ingredientReport/day.vue | 670 ++++++++++++++++++ .../report/qcReport/cutDayReport/index.vue | 261 +++++++ src/views/report/qcReport/lineReport.vue | 384 ++++++++++ src/views/report/qcReport/optimizeCutData.vue | 406 +++++++++++ 9 files changed, 2496 insertions(+), 4 deletions(-) create mode 100644 src/api/report/qcReport.js create mode 100644 src/views/report/Environmental/productionDayR/index.vue create mode 100644 src/views/report/Environmental/productionDayR/inputTable.vue create mode 100644 src/views/report/Environmental/productionDayR/secondTable.vue create mode 100644 src/views/report/ingredientReport/day.vue create mode 100644 src/views/report/qcReport/cutDayReport/index.vue create mode 100644 src/views/report/qcReport/lineReport.vue create mode 100644 src/views/report/qcReport/optimizeCutData.vue diff --git a/src/api/report/qcReport.js b/src/api/report/qcReport.js new file mode 100644 index 00000000..65207331 --- /dev/null +++ b/src/api/report/qcReport.js @@ -0,0 +1,40 @@ +/* + * @Author: zhp + * @Date: 2024-04-18 09:27:54 + * @LastEditTime: 2024-04-18 16:00:59 + * @LastEditors: zhp + * @Description: + */ +import request from '@/utils/request' + +// 更新质量检测类型基础 +export function getOriginalData(data) { + return request({ + url: 'extend/customized-reports/original', + method: 'post', + data: data + }) +} +export function getIngredientData(data) { + return request({ + url: 'extend/customized-reports/materialCost', + method: 'post', + data: data + }) +} + +export function getCuttingtData(data) { + return request({ + url: 'extend/customized-reports/cutting', + method: 'post', + data: data + }) +} + +export function getAutoDailyData(data) { + return request({ + url: 'base/report-auto-daily/listAll', + method: 'post', + data: data + }) +} diff --git a/src/views/OperationalOverview/processingBoard.vue b/src/views/OperationalOverview/processingBoard.vue index aff0f1d2..13bd0607 100644 --- a/src/views/OperationalOverview/processingBoard.vue +++ b/src/views/OperationalOverview/processingBoard.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2021-07-19 15:18:30 * @LastEditors: zhp - * @LastEditTime: 2024-04-17 16:08:08 + * @LastEditTime: 2024-04-18 08:42:00 * @Description: --> @@ -53,10 +53,11 @@ op.planQuantity }} {{ + style="font-size: 14px;margin-left: 130px;">{{ op.actualQuantity }} - + @@ -867,7 +868,7 @@ export default { margin-left: 8px; opacity:calc(.6); margin-right: 8px; - background-color: rgba(0, 255, 247, 1); + background-color: #C8CDD7; // border: 1px solid #C8CDD7; } .myLegend { diff --git a/src/views/report/Environmental/productionDayR/index.vue b/src/views/report/Environmental/productionDayR/index.vue new file mode 100644 index 00000000..6368a287 --- /dev/null +++ b/src/views/report/Environmental/productionDayR/index.vue @@ -0,0 +1,237 @@ + + + + + + + + + + + + 查询 + 导出 + + + + + + + + + + + diff --git a/src/views/report/Environmental/productionDayR/inputTable.vue b/src/views/report/Environmental/productionDayR/inputTable.vue new file mode 100644 index 00000000..2239c375 --- /dev/null +++ b/src/views/report/Environmental/productionDayR/inputTable.vue @@ -0,0 +1,273 @@ + + + + + 编辑 + 返回 + 保存 + + + + + + + {{ scope.row[y.prop] }} + + + + + + + + + + + diff --git a/src/views/report/Environmental/productionDayR/secondTable.vue b/src/views/report/Environmental/productionDayR/secondTable.vue new file mode 100644 index 00000000..bec83e20 --- /dev/null +++ b/src/views/report/Environmental/productionDayR/secondTable.vue @@ -0,0 +1,220 @@ + + + + + 编辑 + 返回 + 保存 + + + + + + + {{ scope.row[y.prop] }} + + + + + + + + + + + diff --git a/src/views/report/ingredientReport/day.vue b/src/views/report/ingredientReport/day.vue new file mode 100644 index 00000000..d0cb8d0b --- /dev/null +++ b/src/views/report/ingredientReport/day.vue @@ -0,0 +1,670 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/report/qcReport/cutDayReport/index.vue b/src/views/report/qcReport/cutDayReport/index.vue new file mode 100644 index 00000000..24715252 --- /dev/null +++ b/src/views/report/qcReport/cutDayReport/index.vue @@ -0,0 +1,261 @@ + + + + + + + + + + + + + + diff --git a/src/views/report/qcReport/lineReport.vue b/src/views/report/qcReport/lineReport.vue new file mode 100644 index 00000000..7174d967 --- /dev/null +++ b/src/views/report/qcReport/lineReport.vue @@ -0,0 +1,384 @@ + + + + + + + + + + + + + + + + + diff --git a/src/views/report/qcReport/optimizeCutData.vue b/src/views/report/qcReport/optimizeCutData.vue new file mode 100644 index 00000000..b5a28c15 --- /dev/null +++ b/src/views/report/qcReport/optimizeCutData.vue @@ -0,0 +1,406 @@ + + + + + + + + + + + + + + + + + From 46ce982cfc38db9221b1ed2ef2982483c78d740c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Fri, 19 Apr 2024 16:59:47 +0800 Subject: [PATCH 10/10] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8A=A5=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.dev | 6 +- src/api/report/qcReport.js | 10 +- src/views/OperationalOverview/coldBoard.vue | 6 +- .../components/pileBarChart.vue | 4 +- src/views/report/ingredientReport/day.vue | 504 +++++------------- .../report/qcReport/fullInspection/index.vue | 435 +++++++++++++++ 6 files changed, 586 insertions(+), 379 deletions(-) create mode 100644 src/views/report/qcReport/fullInspection/index.vue diff --git a/.env.dev b/.env.dev index 72036ff0..599cea9f 100644 --- a/.env.dev +++ b/.env.dev @@ -1,7 +1,7 @@ ### # @Author: zhp # @Date: 2024-04-12 14:30:48 - # @LastEditTime: 2024-04-12 14:31:16 + # @LastEditTime: 2024-04-19 16:11:56 # @LastEditors: zhp # @Description: ### @@ -12,8 +12,8 @@ ENV = 'development' VUE_APP_TITLE = MES系统 # 芋道管理系统/开发环境 -VUE_APP_BASE_API = 'http://192.168.0.33:48082' - +# VUE_APP_BASE_API = 'http://192.168.0.33:48082' +VUE_APP_BASE_API = 'http://192.168.1.104:48082' # 积木报表指向地址 VUE_APP_JIMU_API = 'http://192.168.0.33:48082' diff --git a/src/api/report/qcReport.js b/src/api/report/qcReport.js index 65207331..63907fcb 100644 --- a/src/api/report/qcReport.js +++ b/src/api/report/qcReport.js @@ -1,7 +1,7 @@ /* * @Author: zhp * @Date: 2024-04-18 09:27:54 - * @LastEditTime: 2024-04-18 16:00:59 + * @LastEditTime: 2024-04-19 16:12:49 * @LastEditors: zhp * @Description: */ @@ -38,3 +38,11 @@ export function getAutoDailyData(data) { data: data }) } + +export function getQualityRecordReport(data) { + return request({ + url: 'base/quality-inspection-record/qualityRecordReport', + method: 'get', + data: data + }) +} diff --git a/src/views/OperationalOverview/coldBoard.vue b/src/views/OperationalOverview/coldBoard.vue index b9fbc41f..6829ebae 100644 --- a/src/views/OperationalOverview/coldBoard.vue +++ b/src/views/OperationalOverview/coldBoard.vue @@ -1,7 +1,7 @@ @@ -625,8 +625,8 @@ export default { `${this.getSize(item.size) || ''}`, `${this.NumFormat(item.productArea) + '㎡' || ''}`, `${this.NumFormat(item.wasteArea) + '㎡' || ''}`, - `${(item.product * 100).toFixed(0) + '%' || ''} - ${(item.product * 100).toFixed(0) + '%' || ''}` + `${(item.product * 100).toFixed(0) + '%' || ''} + ${(item.product * 100).toFixed(0) + '%' || ''}` ]) this.cutConfig.data = cutArr // this.$nextTick(() => { diff --git a/src/views/OperationalOverview/components/pileBarChart.vue b/src/views/OperationalOverview/components/pileBarChart.vue index 80da4bb5..4c955012 100644 --- a/src/views/OperationalOverview/components/pileBarChart.vue +++ b/src/views/OperationalOverview/components/pileBarChart.vue @@ -1,7 +1,7 @@ @@ -170,7 +170,7 @@ export default { let singleData = series.filter(function (item) { return item.name == name }) - return name + parseFloat((singleData[0].data * 100).toFixed(0)) + '%' + return name + parseFloat((singleData[0].data * 100).toFixed(2)) + '%' }, itemWidth: 12, itemHeight: 12, diff --git a/src/views/report/ingredientReport/day.vue b/src/views/report/ingredientReport/day.vue index d0cb8d0b..7172ba60 100644 --- a/src/views/report/ingredientReport/day.vue +++ b/src/views/report/ingredientReport/day.vue @@ -1,7 +1,7 @@ @@ -24,14 +24,18 @@ --> - - + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +