不良率统计报表

yangwl
zhaoxiaolin 11 months ago
parent fd7edcd579
commit 48f819d9cb

@ -61,7 +61,13 @@ export function getQmsRateTable(query) {
export function getCheckTypeList(typeCode) { export function getCheckTypeList(typeCode) {
return request({ return request({
url: '/quality/staticTable/getCheckTypeList/' + typeCode, url: '/quality/staticTable/getCheckTypeList/' + typeCode,
method: 'get', method: 'get'
params: query });
}
export function getSupplierList(typeCode) {
return request({
url: '/quality/staticTable/getSupplierList/' + typeCode,
method: 'get'
}); });
} }

@ -25,16 +25,6 @@
@keyup.enter.native="handleQuery" @keyup.enter.native="handleQuery"
/> />
</el-form-item> </el-form-item>
<el-form-item label="生产车间" prop="supplierCode">
<el-select v-model="queryParams.supplierCode" clearable placeholder="请选择生产车间" filterable clearable>
<el-option
v-for="dict in workCenterList"
:key="dict.factoryCode"
:label="dict.factoryName"
:value="dict.factoryCode"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="检验类型" prop="typeCode"> <el-form-item label="检验类型" prop="typeCode">
<el-select v-model="queryParams.typeCode" clearable placeholder="请选择检验类型" @change="getCheckTypeList"> <el-select v-model="queryParams.typeCode" clearable placeholder="请选择检验类型" @change="getCheckTypeList">
<el-option <el-option
@ -45,6 +35,16 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="统计单位" prop="supplierCode">
<el-select v-model="queryParams.supplierCode" clearable placeholder="请选择统计单位" filterable clearable>
<el-option
v-for="dict in workCenterList"
:key="dict.supplierCode"
:label="dict.supplierName"
:value="dict.supplierCode"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="检验节点" prop="checkType"> <el-form-item label="检验节点" prop="checkType">
<el-select v-model="queryParams.checkType" clearable placeholder="请选择检验节点"> <el-select v-model="queryParams.checkType" clearable placeholder="请选择检验节点">
<el-option <el-option
@ -87,15 +87,8 @@
<el-table v-loading="loading" :data="tableList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" :data="tableList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="车间编码" align="center" prop="supplierCode" width="80"> <el-table-column label="单位编码" align="center" prop="supplierCode" width="80"/>
<template slot-scope="scope"> <el-table-column prop="supplierName" label="单位名称" width="100" align="center"/>
<el-button
type="text"
@click="handleDetail(scope.row)"
>{{scope.row.supplierCode}}</el-button>
</template>
</el-table-column>
<el-table-column prop="supplierName" label="车间名称" width="100" align="center"/>
<el-table-column prop="orderNo" label="订单编码" width="160" align="center"/> <el-table-column prop="orderNo" label="订单编码" width="160" align="center"/>
<el-table-column prop="incomeBatchNo" label="批次" width="220" align="center"/> <el-table-column prop="incomeBatchNo" label="批次" width="220" align="center"/>
<el-table-column prop="materialName" label="产品名称"align="center" width="180" :show-overflow-tooltip="true"/> <el-table-column prop="materialName" label="产品名称"align="center" width="180" :show-overflow-tooltip="true"/>
@ -119,7 +112,7 @@
</template> </template>
<script> <script>
import { getQmsRateTable,getWorkcenterList,getCheckTypeList} from "@/api/quality/qcTable"; import { getQmsRateTable,getWorkcenterList,getCheckTypeList,getSupplierList} from "@/api/quality/qcTable";
import moment from "moment/moment"; import moment from "moment/moment";
export default { export default {
name: "qcAnalysis", name: "qcAnalysis",
@ -209,9 +202,14 @@ export default {
}) })
}, },
getCheckTypeList(val){ getCheckTypeList(val){
//
getCheckTypeList(val).then(response => { getCheckTypeList(val).then(response => {
this.checkTypeList = response this.checkTypeList = response
}) });
//
getSupplierList(val).then(response => {
this.workCenterList = response
});
}, },
indexMethod(index){ indexMethod(index){
return index+1 ; return index+1 ;
@ -335,9 +333,9 @@ export default {
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
this.download('mes/prepare/export', { this.download('quality/staticTable/exportProduceAnalysis', {
...this.queryParams ...this.queryParams
}, `prepare_${new Date().getTime()}.xlsx`) }, `noOkRate_${new Date().getTime()}.xlsx`)
} }
} }
}; };

Loading…
Cancel
Save