| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <a-row style="width: 100%"> |
| | | <!-- <a-row style="width: 100%"> |
| | | <a-col :span="24 / 3"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-row> --> |
| | | <a-row style="width: 100%"> |
| | | <a-col :span="24 / 3 "> |
| | | <!-- <a-col :span="24 / 3 "> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | |
| | | v-decorator="['processParametersTemplateName', validatorRules.processParametersTemplateName]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <a-col :span="24 / 3"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row style="width: 100%"> |
| | | |
| | | <a-col :span="24 / 3"> |
| | | <a-form-item |
| | | :labelCol="labelCol" |
| | |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row style="width: 100%"> |
| | | |
| | | </a-row> |
| | | |
| | | <a-row :gutter="24"> |
| | |
| | | 'remark')); |
| | | this.form.setFieldsValue({ leaveFactoryDate: this.model.leaveFactoryDate ? moment(this.model.leaveFactoryDate, 'YYYY-MM-DD') : null }); |
| | | this.form.setFieldsValue({ acceptanceCheckDate: this.model.acceptanceCheckDate ? moment(this.model.acceptanceCheckDate, 'YYYY-MM-DD') : null }); |
| | | this.form.setFieldsValue({ lastVerificationDate: this.model.lastVerificationDate ? moment(this.model.lastVerificationDate, 'YYYY-MM-DD') : null }) |
| | | // this.form.setFieldsValue({ lastVerificationDate: this.model.lastVerificationDate ? moment(this.model.lastVerificationDate, 'YYYY-MM-DD') : null }) |
| | | }); |
| | | if (record.id) { |
| | | this.codeDisable = true; |
| | |
| | | // formData.equipmentPhoto = this.equipmentPhoto |
| | | formData.leaveFactoryDate = formData.leaveFactoryDate ? formData.leaveFactoryDate.format('YYYY-MM-DD') : null; |
| | | formData.acceptanceCheckDate = formData.acceptanceCheckDate ? formData.acceptanceCheckDate.format('YYYY-MM-DD') : null; |
| | | formData.lastVerificationDate = formData.lastVerificationDate ? formData.lastVerificationDate.format('YYYY-MM-DD') : null; |
| | | // formData.lastVerificationDate = formData.lastVerificationDate ? formData.lastVerificationDate.format('YYYY-MM-DD') : null; |
| | | if (that.model.precisionParameters != "1") { |
| | | formData.precisionParametersTemplateId = ""; |
| | | } else { |
| | | formData.precisionParametersTemplateId = this.precisionParametersTemplateId; |
| | | } |
| | | if (that.model.processParameters != "1") { |
| | | formData.processParametersTemplateId = ""; |
| | | } else { |
| | | formData.processParametersTemplateId = this.processParametersTemplateId; |
| | | } |
| | | // if (that.model.processParameters != "1") { |
| | | // formData.processParametersTemplateId = ""; |
| | | // } else { |
| | | // formData.processParametersTemplateId = this.processParametersTemplateId; |
| | | // } |
| | | let obj; |
| | | if (!this.model.id) { |
| | | formData.equipmentCategoryId = this.equipmentCategoryId |
| | |
| | | this.model.precisionParameters = '1' |
| | | } |
| | | }, |
| | | handle3Switch(verification) { |
| | | if ('1' == verification) { |
| | | this.model.verification = '0' |
| | | } else { |
| | | this.model.verification = '1' |
| | | } |
| | | }, |
| | | // handle3Switch(verification) { |
| | | // if ('1' == verification) { |
| | | // this.model.verification = '0' |
| | | // } else { |
| | | // this.model.verification = '1' |
| | | // } |
| | | // }, |
| | | |
| | | getSysDeparts() { |
| | | getAction(this.url.getSysDeparts).then((res) => { |