Commit ccaf510f authored by 沈翠玲's avatar 沈翠玲

iqc

parent 5ff0e107
......@@ -630,12 +630,18 @@ export default {
},
/** 导出按钮操作 */
handleExport() {
const queryParams = JSON.parse(JSON.stringify(this.queryParams))
delete queryParams.pageNum
delete queryParams.pageSize
this.download('mes/qc/iqc/export', {
...queryParams
}, `iqc_${new Date().getTime()}.xlsx`)
if (this.selectedRows && this.selectedRows.length > 0) {
this.download('mes/qc/iqc/export',
{iqcCodeList: this.selectedRows.map(v => v.iqcCode)}
, `iqc_${new Date().getTime()}.xlsx`)
} else {
const queryParams = JSON.parse(JSON.stringify(this.queryParams))
delete queryParams.pageNum
delete queryParams.pageSize
this.download('mes/qc/iqc/export', {
...queryParams
}, `iqc_${new Date().getTime()}.xlsx`)
}
},
//选择生产工单
handleWorkorderSelect() {
......
......@@ -27,6 +27,14 @@
/>
</el-select>
</el-form-item>
<el-form-item label="检验名称" prop="qcTool">
<el-input
v-model="queryParams.qcTool"
placeholder="请输入检验名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment