更新大连模块的 搜索查询 Excel导出大改
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
filterable
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px">
|
||||
style="width: 240px">
|
||||
<el-option
|
||||
v-for="item in stationNumber"
|
||||
:key="item.value"
|
||||
@@ -71,7 +71,7 @@
|
||||
start-placeholder="开始时间"
|
||||
end-placeholder="结束时间"
|
||||
@change="getOrderNumber()"/>
|
||||
<el-button type="info" size="small" icon="el-icon-download" style="margin-left: 5px" @click="exportExcel()">Excel</el-button>
|
||||
<el-button :loading="exportLoading" :disabled="exportLoading" type="info" size="small" icon="el-icon-download" style="margin-left: 5px" @click="exportExcel()">Excel</el-button>
|
||||
</div>
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
@@ -200,7 +200,8 @@ export default {
|
||||
total: 0, // 总条数
|
||||
pageList: 30, // 每页显示条数
|
||||
pageSize: 30, // 每页显示条数
|
||||
pageCurrent: 1 // 后台获取页
|
||||
pageCurrent: 1, // 后台获取页
|
||||
exportLoading: false // Excel导出中
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -235,7 +236,7 @@ export default {
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.stationNumber.push({
|
||||
label: response.data[i].工位号,
|
||||
label: `【${response.data[i].工位号}】${response.data[i].工位名称 || ''}`,
|
||||
value: response.data[i].工位号
|
||||
})
|
||||
}
|
||||
@@ -249,7 +250,7 @@ export default {
|
||||
this.ExecDatabase(Data).then(response => {
|
||||
for (let i = 0; i < response.data.length; i++) {
|
||||
this.stationNumberN.push({
|
||||
label: response.data[i].工位号,
|
||||
label: `【${response.data[i].工位号}】${response.data[i].工位名称 || ''}`,
|
||||
value: response.data[i].工位号
|
||||
})
|
||||
}
|
||||
@@ -341,8 +342,15 @@ export default {
|
||||
param[9] = ['订单号', this.orderNumberValue]
|
||||
param[10] = ['机型_ischeck', engineTypeValue_check]
|
||||
param[11] = ['机型', this.engineTypeValue]
|
||||
var Data = this.CreateData('2001', '质量数据查询_测量数据发动机在线状态_报表_NEW新', param)
|
||||
this.exportExcel_NPOI(Data)
|
||||
param[12] = ['PageCurrent', 1]
|
||||
param[13] = ['PageSize', 99999999]
|
||||
param[14] = ['PageCount', '1111', 'int', '1']
|
||||
param[15] = ['ItemCount', '1111', 'int', '1']
|
||||
var exportData = JSON.parse(this.CreateData('2005', '质量数据查询_测量数据发动机在线状态_查询_NEW', param))
|
||||
exportData.exportFileName = '过站信息查询'
|
||||
exportData.exportColumns = '机型=产品型号,发动机号=产品编号,工位号,托盘编号,到达时间,离开时间,在线时间=生产节拍(m),是否合格'
|
||||
var Data = JSON.stringify(exportData)
|
||||
this.runExcelExport(Data, 'exportLoading')
|
||||
} else {
|
||||
this.$message.warning('暂无数据')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user