|
|
|
@ -120,6 +120,8 @@
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="抽样方案" align="center" prop="samplePlan" :show-overflow-tooltip="true" width="200"/>
|
|
|
|
|
<el-table-column label="合格判定" align="center" prop="judge" :show-overflow-tooltip="true" width="200"/>
|
|
|
|
|
<el-table-column label="检测项分类" align="center" prop="itemType" width="100" :formatter="itemTypeFormat" />
|
|
|
|
|
<el-table-column label="合格判定比例" align="center" prop="judgeRate" width="150"/>
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="100">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
@ -244,6 +246,21 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="检测项分类" prop="itemType">
|
|
|
|
|
<el-radio v-model="form.itemType" label="1">包装</el-radio>
|
|
|
|
|
<el-radio v-model="form.itemType" label="0">内容物</el-radio>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="合格判定比例" prop="judgeRate">
|
|
|
|
|
<el-input type='number' v-model="form.judgeRate" placeholder="合格判定比例" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
@ -365,6 +382,17 @@ export default {
|
|
|
|
|
this.getProjectTypeList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//检测项类型格式化
|
|
|
|
|
itemTypeFormat(row, column, cellValue) {
|
|
|
|
|
if (cellValue != null) {
|
|
|
|
|
if(cellValue=='1'){
|
|
|
|
|
return '包装';
|
|
|
|
|
}else if(cellValue=='0'){
|
|
|
|
|
return '内容物';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** 查询检验项目维护列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|