|
|
|
@ -74,6 +74,16 @@
|
|
|
|
|
v-hasPermi="['quality:productReport:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-document-checked"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handleCPReportExport"
|
|
|
|
|
v-hasPermi="['quality:productReport:export']"
|
|
|
|
|
>报告Excel下载</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
@ -86,7 +96,7 @@
|
|
|
|
|
<el-table-column label="物料名称" align="center" prop="materialName" width="150"/>
|
|
|
|
|
<el-table-column label="收货数量" align="center" prop="quality" />
|
|
|
|
|
<el-table-column label="单位" align="center" prop="unit" />
|
|
|
|
|
<el-table-column label="仓库名称" align="center" prop="supplierName" width="240"/>
|
|
|
|
|
<el-table-column label="线体名称" align="center" prop="supplierName" width="100"/>
|
|
|
|
|
<el-table-column label="检测地点" align="center" prop="checkLoc"/>
|
|
|
|
|
<el-table-column label="检验时间" align="center" prop="checkTime" width="180">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
@ -535,6 +545,14 @@ export default {
|
|
|
|
|
...this.queryParams
|
|
|
|
|
}, `ProductReport_${new Date().getTime()}.xlsx`)
|
|
|
|
|
},
|
|
|
|
|
/** 导出报告按钮操作 */
|
|
|
|
|
handleCPReportExport() {
|
|
|
|
|
const recordId =this.ids[0];
|
|
|
|
|
this.queryParams.recordId = recordId;
|
|
|
|
|
this.download('quality/qcProductReport/CPReportExport', {
|
|
|
|
|
...this.queryParams
|
|
|
|
|
}, `CPReportExport_${new Date().getTime()}.xlsx`)
|
|
|
|
|
},
|
|
|
|
|
/**获取检验项目列表 */
|
|
|
|
|
getCheckedProjectList(){
|
|
|
|
|
this.loading = true;
|
|
|
|
|