2024-06-07 质量模块-抽样方案改版

yangwl
A0010407 6 months ago
parent 1fb3865752
commit 60351eaade

@ -2,20 +2,24 @@
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="检测水平" prop="checkLevel">
<el-input
v-model="queryParams.checkLevel"
placeholder="请输入检测水平"
clearable
@keyup.enter.native="handleQuery"
/>
<el-select v-model="queryParams.checkLevel" placeholder="请选择检测水平类型" clearable>
<el-option
v-for="dict in dict.type.sample_level"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="样品量字码" prop="sampleCode" label-width="100">
<el-input
v-model="queryParams.sampleCode"
placeholder="请输入样品量字码"
clearable
@keyup.enter.native="handleQuery"
/>
<el-select v-model="queryParams.sampleCode" placeholder="请选择样本量字码" clearable>
<el-option
v-for="dict in dict.type.sample_code"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<!--
<el-form-item label="大节点" prop="typeCode">
@ -49,10 +53,24 @@
<el-table v-loading="loading" :data="codeList" @selection-change="handleSelectionChange">
<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="检测水平" 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="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="checkType"/>
<el-table-column label="大节点" align="center" prop="typeCode"/>-->
@ -75,7 +93,7 @@
<el-input v-model="form.typeCode" placeholder="请输入大节点"/>
</el-form-item>-->
<el-form-item label="检测水平" prop="checkLevel">
<el-select v-model="form.checkLevel" placeholder="请选择维护类型" clearable>
<el-select v-model="form.checkLevel" placeholder="请选择检测水平类型" clearable>
<el-option
v-for="dict in dict.type.sample_level"
:key="dict.value"
@ -254,11 +272,24 @@ export default {
},
/** 删除按钮操作 */
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() {
this.download(
"quality/code/export",
{
...this.queryParams,
},
`code_${new Date().getTime()}.xlsx`
);
}
}
}

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save