|
|
@ -2,20 +2,24 @@
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
|
|
<el-form-item label="检测水平" prop="checkLevel">
|
|
|
|
<el-form-item label="检测水平" prop="checkLevel">
|
|
|
|
<el-input
|
|
|
|
<el-select v-model="queryParams.checkLevel" placeholder="请选择检测水平类型" clearable>
|
|
|
|
v-model="queryParams.checkLevel"
|
|
|
|
<el-option
|
|
|
|
placeholder="请输入检测水平"
|
|
|
|
v-for="dict in dict.type.sample_level"
|
|
|
|
clearable
|
|
|
|
:key="dict.value"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
:label="dict.label"
|
|
|
|
/>
|
|
|
|
:value="dict.value"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="样品量字码" prop="sampleCode" label-width="100">
|
|
|
|
<el-form-item label="样品量字码" prop="sampleCode" label-width="100">
|
|
|
|
<el-input
|
|
|
|
<el-select v-model="queryParams.sampleCode" placeholder="请选择样本量字码" clearable>
|
|
|
|
v-model="queryParams.sampleCode"
|
|
|
|
<el-option
|
|
|
|
placeholder="请输入样品量字码"
|
|
|
|
v-for="dict in dict.type.sample_code"
|
|
|
|
clearable
|
|
|
|
:key="dict.value"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
:label="dict.label"
|
|
|
|
/>
|
|
|
|
:value="dict.value"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<!--
|
|
|
|
<!--
|
|
|
|
<el-form-item label="大节点" prop="typeCode">
|
|
|
|
<el-form-item label="大节点" prop="typeCode">
|
|
|
@ -49,10 +53,24 @@
|
|
|
|
<el-table v-loading="loading" :data="codeList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table v-loading="loading" :data="codeList" @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="id" align="center" prop="id" v-if="false"/>
|
|
|
|
<el-table-column label="id" align="center" prop="id" v-if="false"/>
|
|
|
|
<el-table-column label="检测水平" align="center" prop="checkLevel"/>
|
|
|
|
<el-table-column label="检测水平" align="center" prop="checkLevel">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag
|
|
|
|
|
|
|
|
:options="dict.type.sample_level"
|
|
|
|
|
|
|
|
:value="scope.row.checkLevel"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="开始值" align="center" prop="startValue"/>
|
|
|
|
<el-table-column label="开始值" align="center" prop="startValue"/>
|
|
|
|
<el-table-column label="结束值" align="center" prop="endValue"/>
|
|
|
|
<el-table-column label="结束值" align="center" prop="endValue"/>
|
|
|
|
<el-table-column label="样品量字码" align="center" prop="sampleCode"/>
|
|
|
|
<el-table-column label="样品量字码" align="center" prop="sampleCode">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag
|
|
|
|
|
|
|
|
:options="dict.type.sample_code"
|
|
|
|
|
|
|
|
:value="scope.row.sampleCode"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime"/>
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime"/>
|
|
|
|
<!--<el-table-column label="小节点" align="center" prop="checkType"/>
|
|
|
|
<!--<el-table-column label="小节点" align="center" prop="checkType"/>
|
|
|
|
<el-table-column label="大节点" align="center" prop="typeCode"/>-->
|
|
|
|
<el-table-column label="大节点" align="center" prop="typeCode"/>-->
|
|
|
@ -75,7 +93,7 @@
|
|
|
|
<el-input v-model="form.typeCode" placeholder="请输入大节点"/>
|
|
|
|
<el-input v-model="form.typeCode" placeholder="请输入大节点"/>
|
|
|
|
</el-form-item>-->
|
|
|
|
</el-form-item>-->
|
|
|
|
<el-form-item label="检测水平" prop="checkLevel">
|
|
|
|
<el-form-item label="检测水平" prop="checkLevel">
|
|
|
|
<el-select v-model="form.checkLevel" placeholder="请选择维护类型" clearable>
|
|
|
|
<el-select v-model="form.checkLevel" placeholder="请选择检测水平类型" clearable>
|
|
|
|
<el-option
|
|
|
|
<el-option
|
|
|
|
v-for="dict in dict.type.sample_level"
|
|
|
|
v-for="dict in dict.type.sample_level"
|
|
|
|
:key="dict.value"
|
|
|
|
:key="dict.value"
|
|
|
@ -254,11 +272,24 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
/** 删除按钮操作 */
|
|
|
|
handleDelete(row) {
|
|
|
|
handleDelete(row) {
|
|
|
|
|
|
|
|
const ids = row.id || this.ids;
|
|
|
|
|
|
|
|
this.$modal.confirm('是否确认删除样品量字码编号为"' + ids + '"的数据项?').then(function() {
|
|
|
|
|
|
|
|
return delCode(ids);
|
|
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
|
|
|
}).catch(() => {});
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
/** 导出按钮操作 */
|
|
|
|
handleExport() {
|
|
|
|
handleExport() {
|
|
|
|
|
|
|
|
this.download(
|
|
|
|
|
|
|
|
"quality/code/export",
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
...this.queryParams,
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
`code_${new Date().getTime()}.xlsx`
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|