| | |
| | | </a-form-item> |
| | | </a-col> --> |
| | | <a-col |
| | | v-if="analysisMethod == '2'" |
| | | v-if="testValueType == '2'" |
| | | :span="12" |
| | | > |
| | | <a-form-item |
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | v-if="analysisMethod == '1'" |
| | | v-if="testValueType == '1'" |
| | | :span="12" |
| | | > |
| | | <a-form-item |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row |
| | | v-if="analysisMethod == '1'" |
| | | v-if="testValueType == '1'" |
| | | :gutter="24" |
| | | > |
| | | <a-col :span="12"> |
| | |
| | | codeDisable: true, |
| | | disableSubmit: false, |
| | | inspectionProjectCategoryId: '', |
| | | analysisMethod: null, |
| | | testValueType: null, |
| | | model: {}, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | |
| | | { validator: this.validateName }, |
| | | ] |
| | | }, |
| | | analysisMethod: { |
| | | rules: [ |
| | | { required: true, message: '请选择分析方法!' }, |
| | | ] |
| | | }, |
| | | // analysisMethod: { |
| | | // rules: [ |
| | | // { required: true, message: '请选择分析方法!' }, |
| | | // ] |
| | | // }, |
| | | surfaceValue: { |
| | | rules: [ |
| | | { required: true, message: '请输入名义值!' }, |
| | |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | this.disableSubmit = false; |
| | | this.analysisMethod = record.analysisMethod |
| | | this.testValueType = record.testValueType |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'inspectionProjectCategoryNumName', |
| | | 'num', 'name', 'unitId', 'testValueType', 'analysisMethod', 'inspectionMethod', 'inspectionTool', 'remark')) |
| | | 'num', 'name', 'unitId', 'testValueType', 'inspectionMethod', 'inspectionTool', 'remark')) |
| | | }); |
| | | if (record.analysisMethod == '1') { |
| | | if (record.testValueType == '1') { |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue(pick(this.model, 'surfaceValue', 'upValue', 'downValue')) |
| | | }); |
| | |
| | | }, |
| | | |
| | | handleChange(val) { |
| | | this.analysisMethod = val |
| | | this.testValueType = val |
| | | }, |
| | | |
| | | validateDownValue(rule, value, callback) { |