|
|
@ -133,13 +133,13 @@
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
|
<el-form-item label="开始值" prop="startValue">
|
|
|
|
<el-form-item label="开始值" prop="startValue">
|
|
|
|
<el-input v-model="form.startValue" placeholder="请输入数字" />
|
|
|
|
<el-input type="number" v-model="form.startValue" placeholder="请输入数字" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="结束值" prop="endValue">
|
|
|
|
<el-form-item label="结束值" prop="endValue">
|
|
|
|
<el-input v-model="form.endValue" placeholder="请输入数字" />
|
|
|
|
<el-input type="number" v-model="form.endValue" placeholder="请输入数字" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="抽样数量" prop="sampleQuality">
|
|
|
|
<el-form-item label="抽样数量" prop="sampleQuality">
|
|
|
|
<el-input v-model="form.sampleQuality" placeholder="请输入抽样数量" />
|
|
|
|
<el-input type="number" v-model="form.sampleQuality" placeholder="请输入抽样数量" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="检验类型" prop="typeCode">
|
|
|
|
<el-form-item label="检验类型" prop="typeCode">
|
|
|
|
<el-select v-model="form.typeCode" placeholder="请选择检验类型"
|
|
|
|
<el-select v-model="form.typeCode" placeholder="请选择检验类型"
|
|
|
@ -217,15 +217,12 @@ export default {
|
|
|
|
rules: {
|
|
|
|
rules: {
|
|
|
|
startValue: [
|
|
|
|
startValue: [
|
|
|
|
{ required: true, message: "开始值不能为空", trigger: "blur" },
|
|
|
|
{ required: true, message: "开始值不能为空", trigger: "blur" },
|
|
|
|
{ pattern: /^[1-9]\d*$/, message: "请输入正整数,且开头不能为0", trigger: "blur"}
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
endValue: [
|
|
|
|
endValue: [
|
|
|
|
{ required: true, message: "结束值不能为空", trigger: "blur" },
|
|
|
|
{ required: true, message: "结束值不能为空", trigger: "blur" },
|
|
|
|
{ pattern: /^[1-9]\d*$/, message: "请输入正整数,且开头不能为0", trigger: "blur"}
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
sampleQuality: [
|
|
|
|
sampleQuality: [
|
|
|
|
{ required: true, message: "抽样数量不能为空", trigger: "blur" },
|
|
|
|
{ required: true, message: "抽样数量不能为空", trigger: "blur" },
|
|
|
|
{ pattern: /^[1-9]\d*$/, message: "请输入正整数,且开头不能为0", trigger: "blur"}
|
|
|
|
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeCode: [
|
|
|
|
typeCode: [
|
|
|
|
{ required: true, message: "检验类型不能为空", trigger: "blur" }
|
|
|
|
{ required: true, message: "检验类型不能为空", trigger: "blur" }
|
|
|
|