|
@@ -165,6 +165,14 @@
|
|
|
</a-select>
|
|
|
</a-form-item>
|
|
|
</a-col>
|
|
|
+ <a-col :lg="12" :md="24" :sm="24">
|
|
|
+ <a-form-item label="是否需要检定" :labelCol="BaseTool.Constant.labelCol" :wrapperCol="BaseTool.Constant.wrapperCol">
|
|
|
+ <a-select @change="isMeasureChange" v-decorator="['isMeasure', { rules: [{required: true, message: '是否需要检定不能为空'}]}]" placeholder="请选择">
|
|
|
+ <a-select-option v-for="(label,value) in yesNoMap" :key="value" :label="label" :value="parseInt(value)">{{ label }}
|
|
|
+ </a-select-option>
|
|
|
+ </a-select>
|
|
|
+ </a-form-item>
|
|
|
+ </a-col>
|
|
|
</a-row>
|
|
|
<title-divider title="检定周期信息" width="120px"></title-divider>
|
|
|
<div>
|
|
@@ -262,14 +270,6 @@
|
|
|
</a-row>-->
|
|
|
|
|
|
<a-row class="form-row" :gutter="BaseTool.Constant.row.gutter">
|
|
|
- <a-col :lg="12" :md="24" :sm="24">
|
|
|
- <a-form-item label="是否需要检定" :labelCol="BaseTool.Constant.labelCol" :wrapperCol="BaseTool.Constant.wrapperCol">
|
|
|
- <a-select @change="isMeasureChange" v-decorator="['isMeasure', { rules: [{required: true, message: '是否需要检定不能为空'}]}]" placeholder="请选择">
|
|
|
- <a-select-option v-for="(label,value) in yesNoMap" :key="value" :label="label" :value="parseInt(value)">{{ label }}
|
|
|
- </a-select-option>
|
|
|
- </a-select>
|
|
|
- </a-form-item>
|
|
|
- </a-col>
|
|
|
<template v-if="isSelfRequired">
|
|
|
<a-col :lg="12" :md="24" :sm="24">
|
|
|
<a-form-item label="上次检定日期" :labelCol="BaseTool.Constant.labelCol" :wrapperCol="BaseTool.Constant.wrapperCol">
|
|
@@ -824,6 +824,7 @@ export default {
|
|
|
this.clearFileList()
|
|
|
return
|
|
|
}
|
|
|
+ this.isSelfRequired = record.isMeasure
|
|
|
this.useType = record.useType
|
|
|
this.modalTitle = '编辑'
|
|
|
this.id = record.id
|