From 1f54c9179d1eb66f927294b8fa2205265abfe457 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Tue, 23 Apr 2024 16:47:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/ingredientReport/day.vue | 10 +++++----- src/views/report/qcReport/fullInspection/index.vue | 4 ++-- src/views/report/qcReport/lineReport.vue | 4 ++-- src/views/report/qcReport/optimizeCutData.vue | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/report/ingredientReport/day.vue b/src/views/report/ingredientReport/day.vue index 399495e6..29c4ef0e 100644 --- a/src/views/report/ingredientReport/day.vue +++ b/src/views/report/ingredientReport/day.vue @@ -1,7 +1,7 @@ @@ -145,7 +145,7 @@ export default { endPlaceholder: '结束时间', param: 'checkTime', defaultSelect: [Date.now() - 24 * 60 * 60 - 1000, Date.now()], - width: 250 + width: 350 }, { type:'button', @@ -157,7 +157,7 @@ export default { type:'button', btnName: '导出', name: 'export', - color: 'success', + color: 'primary', plain: true }, ], @@ -212,7 +212,7 @@ export default { } } if (columnIndex === 1) { - if (rowIndex === 1 || rowIndex === 3 || rowIndex === 5 || rowIndex === 7 || rowIndex === 9 || rowIndex === 11) { + if (rowIndex %2 == 1) { return { rowspan: 1, colspan: 2 @@ -220,7 +220,7 @@ export default { } } if (columnIndex === 4 || columnIndex === 5 || columnIndex === 6 || columnIndex === 7 || columnIndex === 8 || columnIndex === 9 || columnIndex === 10 || columnIndex === 11 || columnIndex === 12 || columnIndex === 13) { - if (rowIndex === 0 || rowIndex === 2 || rowIndex === 4 || rowIndex === 6 || rowIndex === 8 || rowIndex === 10) { + if (rowIndex % 2 == 0) { return { rowspan: 2, colspan: 1 diff --git a/src/views/report/qcReport/fullInspection/index.vue b/src/views/report/qcReport/fullInspection/index.vue index b4e7d8c9..360c4163 100644 --- a/src/views/report/qcReport/fullInspection/index.vue +++ b/src/views/report/qcReport/fullInspection/index.vue @@ -1,7 +1,7 @@ @@ -234,7 +234,7 @@ export default { type: 'button', btnName: '导出', name: 'export', - color: 'success', + color: 'primary', plain: true }, ], diff --git a/src/views/report/qcReport/lineReport.vue b/src/views/report/qcReport/lineReport.vue index ab2b32c5..01e9aa65 100644 --- a/src/views/report/qcReport/lineReport.vue +++ b/src/views/report/qcReport/lineReport.vue @@ -1,7 +1,7 @@ @@ -154,7 +154,7 @@ export default { type:'button', btnName: '导出', name: 'export', - color: 'success', + color: 'primary', plain: true }, ], diff --git a/src/views/report/qcReport/optimizeCutData.vue b/src/views/report/qcReport/optimizeCutData.vue index 77d5411d..9563e682 100644 --- a/src/views/report/qcReport/optimizeCutData.vue +++ b/src/views/report/qcReport/optimizeCutData.vue @@ -1,7 +1,7 @@ @@ -153,7 +153,7 @@ export default { type:'button', btnName: '导出', name: 'export', - color: 'success', + color: 'primary', plain: true }, ], -- 2.45.2 From f4a6229170f6b2146cfd40dbc230d95abae36dc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=98937886381=E2=80=99?= <‘937886381@qq.com’> Date: Wed, 24 Apr 2024 13:49:23 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/report/ingredientReport/day.vue | 34 ++++++----- .../report/qcReport/cutDayReport/index.vue | 43 ++++++++++---- .../report/qcReport/fullInspection/index.vue | 10 ++-- src/views/report/qcReport/lineReport.vue | 16 +++-- src/views/report/qcReport/optimizeCutData.vue | 59 ++++++------------- 5 files changed, 82 insertions(+), 80 deletions(-) diff --git a/src/views/report/ingredientReport/day.vue b/src/views/report/ingredientReport/day.vue index 29c4ef0e..8bb92432 100644 --- a/src/views/report/ingredientReport/day.vue +++ b/src/views/report/ingredientReport/day.vue @@ -1,7 +1,7 @@ @@ -24,19 +24,20 @@ --> - - - + + + + + - - - - - - + @@ -41,6 +41,7 @@ import { } from '@/api/report/qcReport'; import tableHeightMixin from '@/mixins/lb/tableHeightMixin'; import FileSaver from 'file-saver' +import { parseTime } from '../../../core/mixins/code-filter'; // import { getList, } from "@/api/base/qualityScrapType"; const tableProps = [ // { @@ -70,7 +71,7 @@ const tableProps = [ }, { prop: 'thickness', - label: '厚度' + label: '厚度mm' }, { prop: 'glassCode', @@ -79,7 +80,9 @@ const tableProps = [ { prop: 'stackingType', label: '堆垛方式', - filter: (val) => val == 1 ? '集装架' : '堵头箱', + // filter: (val) => + // val != null ? ['集装架', '堵头箱'][val] : '', + // filter: ((val) => { val == 1 ? '集装架' : '堵头箱' }), }, { prop: 'pieces', @@ -95,16 +98,16 @@ const tableProps = [ }, { prop: 'dusting', - label: '堆垛情况', + label: '喷粉情况', }, { prop: 'palletNumber', - label: '堆垛时间', - }, - { - prop: 'endTime', label: '集装架号', }, + { + prop: 'remark', + label: '备注', + } ] } ]; @@ -318,7 +321,23 @@ export default { // // console.log(); // // } // }) - this.tableData = response.data + this.tableData = response.data.map((ele) => { + return { + lineName: ele.lineName, + className: ele.className, + groupName: ele.groupName, + size: ele.size, + thickness: ele.thickness, + glassCode: ele.glassCode, + stackingType: ele.stackingType == 1 ? '集装架' : '堵头箱', + pieces: ele.pieces, + originCode: ele.originCode, + endTime: parseTime(ele.endTime), + dusting: ele.dusting, + palletNumber: ele.palletNumber, + remark:ele.remark + } + }) // let obj = {} // response.data.reduce((prev, curr) => { // console.log(prev, curr) @@ -405,12 +424,12 @@ export default { }, }; - -- 2.45.2