| | |
| | | placeholder="请输入所有组织" |
| | | v-decorator="['affiliationId', validatorRules.affiliationId]" |
| | | /> --> |
| | | <a-select |
| | | <!-- <a-select |
| | | :placeholder="disableSubmit?'':'请选择所有组织'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | :disabled="disableSubmit" |
| | | v-decorator="['affiliationId', validatorRules.affiliationId]" |
| | | /> |
| | | /> --> |
| | | <!-- @change="(e)=>handle1Change(e)" --> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择管理组织" |
| | | tree-default-expand-all |
| | | v-decorator="['affiliationId', validatorRules.affiliationId]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24 / 3"> |
| | |
| | | placeholder="请输入管理组织" |
| | | v-decorator="['manageId', validatorRules.manageId]" |
| | | /> --> |
| | | <a-select |
| | | <!-- <a-select |
| | | :placeholder="disableSubmit?'':'请选择管理组织'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | :disabled="disableSubmit" |
| | | v-decorator="['manageId', validatorRules.manageId]" |
| | | /> |
| | | /> --> |
| | | <!-- @change="(e)=>handle3Change(e)" --> |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择管理组织" |
| | | tree-default-expand-all |
| | | v-decorator="['manageId', validatorRules.manageId]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :span="24 / 3"> |
| | |
| | | :wrapperCol="wrapperCol" |
| | | label="使用部门" |
| | | > |
| | | <!-- <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="disableSubmit" |
| | | :placeholder="disableSubmit?'':'请选择使用组织'" |
| | | :triggerChange="true" |
| | | dictCode="sys_depart,depart_name,id,version = '7' and del_flag!='1'" |
| | | <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择部门" |
| | | tree-default-expand-all |
| | | v-decorator="['useId', validatorRules.useId]" |
| | | /> --> |
| | | <a-select |
| | | /> |
| | | <!-- <a-select |
| | | :placeholder="disableSubmit?'':'请选择使用部门'" |
| | | :options="this.departs" |
| | | style="width: 100%" |
| | | :disabled="disableSubmit" |
| | | v-decorator="['useId', validatorRules.useId]" |
| | | /> |
| | | <!-- @change="(e)=>handle2Change(e)" --> |
| | | /> --> |
| | | </a-form-item> |
| | | |
| | | </a-col> |
| | | |
| | | <a-col :span="24 / 3"> |
| | |
| | | :placeholder="disableSubmit?'':'请选择责任班组'" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_team,name,id,status='1' and del_flag='0'" |
| | | v-decorator="['teamId', validatorRules.teamId]" |
| | | v-decorator="['teamId', {}]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | /> |
| | | </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"> |
| | |
| | | precisionParametersTemplateId: '', |
| | | equipmentPhoto: '', |
| | | departs: [], |
| | | treeData: [], |
| | | model: {}, |
| | | headers: {}, |
| | | labelCol: { |
| | |
| | | add: "/eam/equipment/add", |
| | | edit: "/eam/equipment/edit", |
| | | getSysDeparts: "/eam/equipment/getSysDeparts", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | | alterFlag: "", |
| | |
| | | }, |
| | | created() { |
| | | this.getSysDeparts() |
| | | |
| | | }, |
| | | methods: { |
| | | moment, |
| | |
| | | this.visible = true; |
| | | this.disableSubmit = false; |
| | | this.fileList = []; |
| | | this.initOptions(); |
| | | this.precisionParametersTemplateId = record.precisionParametersTemplateId |
| | | this.processParametersTemplateId = record.processParametersTemplateId |
| | | this.$nextTick(() => { |
| | |
| | | '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) => { |
| | |
| | | } |
| | | }, |
| | | |
| | | initOptions() { |
| | | getAction(this.url.loadOptions).then(res => { |
| | | if (res.success) { |
| | | this.treeData = res.result |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | |
| | | onSearchProcessParametersTemplate() { |
| | | this.$refs.ProcessParametersTemplateList.list(); |