|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<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="100px">
|
|
|
|
|
<el-form-item label="检验规则名称" prop="ruleName">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.ruleName"
|
|
|
|
@ -93,8 +93,8 @@
|
|
|
|
|
<el-table v-loading="loading" :data="projectList" @selection-change="handleSelectionChange">
|
|
|
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
|
|
|
<el-table-column label="检验规则编号" align="center" prop="orderNum" width="100"/>
|
|
|
|
|
<el-table-column label="检验规则名称" align="center" prop="ruleName" />
|
|
|
|
|
<el-table-column label="检验规则属性" align="center" prop="propertyCode" >
|
|
|
|
|
<el-table-column label="检验规则名称" align="center" prop="ruleName" width="100"/>
|
|
|
|
|
<el-table-column label="检验规则属性" align="center" prop="propertyCode" width="100">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.qc_rule_prop"
|
|
|
|
@ -102,18 +102,16 @@
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="检验方式" align="center" prop="checkMode" />
|
|
|
|
|
<el-table-column label="检验方式" align="center" prop="checkMode" :show-overflow-tooltip="true" width="200"/>
|
|
|
|
|
<el-table-column label="检验工具" align="center" prop="checkTool" />
|
|
|
|
|
<el-table-column label="检验标准" align="center" prop="checkStandard" :show-overflow-tooltip="true" width="200"/>
|
|
|
|
|
<el-table-column label="单位" align="center" prop="unitCode" >
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag
|
|
|
|
|
:options="dict.type.unit"
|
|
|
|
|
:value="scope.row.unitCode"
|
|
|
|
|
/>
|
|
|
|
|
</template>
|
|
|
|
|
<template slot-scope="scope"><dict-tag :options="dict.type.unit" :value="scope.row.unitCode"/></template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="检验标准" align="center" prop="checkStandard" />
|
|
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
|
|
<el-table-column label="检验标准" align="center" prop="checkStandard" :show-overflow-tooltip="true" width="200"/>
|
|
|
|
|
<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" class-name="small-padding fixed-width" width="100">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="mini"
|
|
|
|
@ -145,16 +143,16 @@
|
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px" >
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="15">
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="检验规则名称" prop="ruleName">
|
|
|
|
|
<el-input v-model="form.ruleName" placeholder="请输入检验规则名称" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="15">
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="检验规则属性" prop="propertyCode">
|
|
|
|
|
<el-select v-model="form.propertyCode" placeholder="请选择检验规则属性" >
|
|
|
|
|
<el-select v-model="form.propertyCode" placeholder="请选择检验规则属性" style="width:100%">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in dict.type.qc_rule_prop"
|
|
|
|
|
:key="dict.value"
|
|
|
|
@ -165,32 +163,30 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<template v-if="form.propertyCode === '0'">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="15">
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="检验标准" prop="checkStandard">
|
|
|
|
|
<el-input v-model="form.checkStandard" placeholder="请输入检验标准" />
|
|
|
|
|
<el-input type='textarea' v-model="form.checkStandard" placeholder="请输入检验标准" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</template>
|
|
|
|
|
<template v-if="form.propertyCode === '1'">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="15">
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="检验方式" prop="checkMode">
|
|
|
|
|
<el-input v-model="form.checkMode" placeholder="请输入检验方式" />
|
|
|
|
|
<el-input type='textarea' v-model="form.checkMode" placeholder="请输入检验方式" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="15">
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="检验工具" prop="checkTool">
|
|
|
|
|
<el-input v-model="form.checkTool" placeholder="请输入检验工具" />
|
|
|
|
|
<el-input type='textarea' v-model="form.checkTool" placeholder="请输入检验工具" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="15">
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="单位" prop="unitCode">
|
|
|
|
|
<el-select v-model="form.unitCode" placeholder="请选择单位" >
|
|
|
|
|
<el-option
|
|
|
|
@ -204,7 +200,20 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="抽样方案" prop="samplePlan">
|
|
|
|
|
<el-input type='textarea' v-model="form.samplePlan" placeholder="抽样方案" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-form-item label="合格判定" prop="judge">
|
|
|
|
|
<el-input type='textarea' v-model="form.judge" placeholder="合格判定" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
|
<div slot="footer" class="dialog-footer">
|
|
|
|
|