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] =?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 { }, }; -