|
|
|
@ -1,25 +1,29 @@ |
|
|
|
<template> |
|
|
|
<div class="mod-config"> |
|
|
|
|
|
|
|
<div class="mod-config export-loading" v-loading="exportLoading" |
|
|
|
element-loading-text="正在导出,请稍候..." |
|
|
|
element-loading-spinner="el-icon-loading" |
|
|
|
element-loading-background="rgba(0, 0, 0, 0.6)"> |
|
|
|
<el-form :inline="true" label-position="top" label-width="100px" style="margin-top: 0px;"> |
|
|
|
<el-form-item label="工艺"> |
|
|
|
<bu-select v-model="searchData.buNo" style="width: 80px"></bu-select> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="参数卡编码"> |
|
|
|
<el-input v-model="searchData.oriCodeNo" style="width: 130px"></el-input> |
|
|
|
<el-input v-model="searchData.oriCodeNo" style="width: 130px" clearable @keyup.enter.native="search()"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<span slot="label" @click="getBaseList(105,1)"><a herf="#">料号</a></span> |
|
|
|
<el-input v-model="searchData.testPartNo" style="width: 120px" clearable></el-input> |
|
|
|
<el-input v-model="searchData.testPartNo" style="width: 120px" clearable @keyup.enter.native="search()"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="客户"> |
|
|
|
<span slot="label" @click="getBaseList(102,1)"><a herf="#">客户</a></span> |
|
|
|
<el-input v-model="searchData.customerDesc" style="width: 120px" clearable></el-input> |
|
|
|
<el-input v-model="searchData.customerDesc" style="width: 120px" clearable @keyup.enter.native="search()"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="刀版号"> |
|
|
|
<el-input v-model="searchData.cutterNumber" style="width: 120px" clearable></el-input> |
|
|
|
<el-input v-model="searchData.cutterNumber" style="width: 120px" clearable @keyup.enter.native="search()"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="节点审批人"> |
|
|
|
<el-input v-model="searchData.sp" clearable style="width: 130px"></el-input> |
|
|
|
<el-input v-model="searchData.sp" clearable style="width: 130px" clearable @keyup.enter.native="search()"></el-input> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="当前节点"> |
|
|
|
<el-select v-model="searchData.nodeId" placeholder="请选择节点" clearable style="width: 130px"> |
|
|
|
@ -1067,6 +1071,7 @@ |
|
|
|
exportName: '技术参数卡清单'+this.dayjs().format('YYYYMMDDHHmmss'), |
|
|
|
exportHeader: ["技术参数卡清单"], |
|
|
|
exportFooter: [], |
|
|
|
exportLoading: false, |
|
|
|
// 导出 end |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -1288,6 +1293,7 @@ |
|
|
|
this.searchData.customerDesc = val.Customer_desc |
|
|
|
} |
|
|
|
} |
|
|
|
this.search(); |
|
|
|
}, |
|
|
|
|
|
|
|
// 新增 / 修改 |
|
|
|
@ -1377,19 +1383,21 @@ |
|
|
|
}, |
|
|
|
//导出excel |
|
|
|
async createExportData() { |
|
|
|
this.searchData.limit = this.pageSize |
|
|
|
this.searchData.page = this.pageIndex |
|
|
|
await technicalSpecificationListSearch(this.searchData).then(({data}) => { |
|
|
|
this.exportList= data.page.list; |
|
|
|
const exportParams = Object.assign({}, this.searchData, { |
|
|
|
limit: this.totalPage || 99999, |
|
|
|
page: 1 |
|
|
|
}) |
|
|
|
await technicalSpecificationListSearch(exportParams).then(({data}) => { |
|
|
|
this.exportList = data.page.list; |
|
|
|
}) |
|
|
|
|
|
|
|
return this.exportList; |
|
|
|
}, |
|
|
|
startDownload() { |
|
|
|
// this.exportData = this.dataList |
|
|
|
|
|
|
|
this.exportLoading = true |
|
|
|
}, |
|
|
|
finishDownload() { |
|
|
|
this.exportLoading = false |
|
|
|
}, |
|
|
|
fields() { |
|
|
|
let json = "{" |
|
|
|
@ -1612,4 +1620,8 @@ |
|
|
|
input[readonly] { |
|
|
|
cursor: text; |
|
|
|
} |
|
|
|
|
|
|
|
.export-loading /deep/ .el-loading-spinner { |
|
|
|
top: 35%; |
|
|
|
} |
|
|
|
</style> |