fix: 一次合格率导出复用状态字段

This commit is contained in:
XingCheng3
2026-05-31 17:03:52 +08:00
parent 57220a4b29
commit 16aa2bd60d

View File

@@ -93,7 +93,7 @@
<template slot-scope="scope">{{ scope.$index + 1 }}</template> <template slot-scope="scope">{{ scope.$index + 1 }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="发动机号" label="产品编号" min-width="200" show-overflow-tooltip /> <el-table-column prop="发动机号" label="产品编号" min-width="200" show-overflow-tooltip />
<el-table-column prop="产品型号" label="型号" width="70" align="center" /> <el-table-column prop="产品型号" label="型号" width="80" align="center" />
<el-table-column prop="当前工位" label="当前工位" width="90" align="center" /> <el-table-column prop="当前工位" label="当前工位" width="90" align="center" />
<el-table-column label="创建时间" width="150" align="center"> <el-table-column label="创建时间" width="150" align="center">
<template slot-scope="scope">{{ formatTime(scope.row.创建时间) }}</template> <template slot-scope="scope">{{ formatTime(scope.row.创建时间) }}</template>
@@ -376,7 +376,7 @@ export default {
const param = [['查询日期', this.queryDate], ['SearchType', line.searchType]] const param = [['查询日期', this.queryDate], ['SearchType', line.searchType]]
const exportData = JSON.parse(this.CreateData('2005', '一次合格率_产品列表', param)) const exportData = JSON.parse(this.CreateData('2005', '一次合格率_产品列表', param))
exportData.exportFileName = `${line.title}一次合格率产品列表_` exportData.exportFileName = `${line.title}一次合格率产品列表_`
exportData.exportColumns = '发动机号=产品编号,产品型号=型号,上线时间,下线时间,是否合格=状态' exportData.exportColumns = '发动机号=产品编号,产品型号=型号,上线时间,下线时间,是否一次合格=状态'
const Data = JSON.stringify(exportData) const Data = JSON.stringify(exportData)
this.runExcelExport(Data, 'exportLoading') this.runExcelExport(Data, 'exportLoading')
}, },
@@ -437,7 +437,7 @@ export default {
const param = [['查询日期', this.queryDate], ['工位号列表', stationList]] const param = [['查询日期', this.queryDate], ['工位号列表', stationList]]
const exportData = JSON.parse(this.CreateData('2005', '一次合格率_工位合格率', param)) const exportData = JSON.parse(this.CreateData('2005', '一次合格率_工位合格率', param))
exportData.exportFileName = '工位一次合格率产品明细_' exportData.exportFileName = '工位一次合格率产品明细_'
exportData.exportColumns = '发动机号=产品编号,产品型号=型号,上线时间,下线时间,是否合格=状态' exportData.exportColumns = '发动机号=产品编号,产品型号=型号,上线时间,下线时间,是否一次合格=状态'
const Data = JSON.stringify(exportData) const Data = JSON.stringify(exportData)
this.runExcelExport(Data, 'exportLoading') this.runExcelExport(Data, 'exportLoading')
}, },