| | |
| | | :wrapperCol="wrapperCol" |
| | | prop="useId" |
| | | > |
| | | <a-tree-select |
| | | <!-- <a-tree-select |
| | | style="width: 100%" |
| | | :disabled="formDisabled" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择使用部门" |
| | | tree-default-expand-all |
| | | v-model="model.useId" |
| | | /> --> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="请选择使用部门" |
| | | :triggerChange="true" |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-model="model.useId" |
| | | /> |
| | | </a-form-model-item> |
| | |
| | | :wrapperCol="wrapperCol" |
| | | prop="manageId" |
| | | > |
| | | <a-tree-select |
| | | <!-- <a-tree-select |
| | | :disabled="formDisabled" |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择维护部门" |
| | | tree-default-expand-all |
| | | v-model="model.manageId" |
| | | /> --> |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="请选择维护部门" |
| | | :triggerChange="true" |
| | | dictCode="sys_depart,depart_name,id,del_flag!='1'" |
| | | v-model="model.manageId" |
| | | /> |
| | | </a-form-model-item> |
| | |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6" v-if="model.operatingSystem=='yes'"> |
| | | <a-col |
| | | :span="6" |
| | | v-if="model.operatingSystem=='yes'" |
| | | > |
| | | <a-form-model-item |
| | | label="系统" |
| | | :labelCol="labelCol" |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="坐标数量" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="coordinateNum" |
| | | > |
| | | <a-form-model-item |
| | | label="坐标数量" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="coordinateNum" |
| | | > |
| | | <a-input-number |
| | | v-model="model.coordinateNum" |
| | | :disabled="formDisabled" |
| | |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | <a-row hidden> |
| | | </a-row> |
| | | <a-row hidden> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="平均使用率" |
| | |
| | | default: false, |
| | | required: false |
| | | }, |
| | | caytegoryParam:{ |
| | | type:String, |
| | | caytegoryParam: { |
| | | type: String, |
| | | default: '', |
| | | required: false |
| | | } |
| | |
| | | propertyStatus: [ |
| | | { required: true, message: '请选择资产状态!' }, |
| | | ], |
| | | system:[ |
| | | system: [ |
| | | { required: true, message: '请输入系统!' }, |
| | | ] |
| | | }, |
| | |
| | | add: "/eam/equipment/add", |
| | | edit: "/eam/equipment/edit", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | getCategoryFlag:"/eam/equipmentCategory/queryById" |
| | | getCategoryFlag: "/eam/equipmentCategory/queryById" |
| | | }, |
| | | treeData: [], |
| | | needSpecific: false, |
| | |
| | | edit(record) { |
| | | console.log(this.disabled) |
| | | this.model = Object.assign({}, record); |
| | | if(!this.model.id){ |
| | | this.model.equipmentStatus = '1' |
| | | if (!this.model.id) { |
| | | this.model.equipmentStatus = '1' |
| | | } |
| | | this.visible = true; |
| | | }, |
| | |
| | | }, |
| | | |
| | | onSearchPrecisionParametersTemplate() { |
| | | if(this.model.num ==''||this.model.num==undefined||this.model.num==null){ |
| | | this.$message.warn("请先填写统一编码") |
| | | return false; |
| | | if (this.model.num == '' || this.model.num == undefined || this.model.num == null) { |
| | | this.$message.warn("请先填写统一编码") |
| | | return false; |
| | | } |
| | | this.$refs.PrecisionParametersTemplateList.list(); |
| | | this.$refs.PrecisionParametersTemplateList.title = "选择设备精度模板"; |
| | |
| | | }) |
| | | } |
| | | //改变技术状态鉴定周期 |
| | | if(this.model.equipmentCategoryId!==null&&this.model.equipmentCategoryId!=''){ |
| | | if (this.model.equipmentCategoryId !== null && this.model.equipmentCategoryId != '') { |
| | | var value = this.model.equipmentCategoryId; |
| | | getAction(this.url.getCategoryFlag,{id:value}).then(res=>{ |
| | | if(res.result.equipmentCategoryUda1!=='weldingMachine'&&res.result.equipmentCategoryUda11!=='filesCarousel'&&res.result.equipmentCategoryUda1!=='tester'){ |
| | | if(val==='A'){ |
| | | this.model.checkPeriod=365*3+''; |
| | | } |
| | | if(val==='B'||val==='C'||val==='D'){ |
| | | this.model.checkPeriod=365*4+''; |
| | | } |
| | | } |
| | | this.model = Object.assign({},this.model); |
| | | getAction(this.url.getCategoryFlag, { id: value }).then(res => { |
| | | if (res.result.equipmentCategoryUda1 !== 'weldingMachine' && res.result.equipmentCategoryUda11 !== 'filesCarousel' && res.result.equipmentCategoryUda1 !== 'tester') { |
| | | if (val === 'A') { |
| | | this.model.checkPeriod = 365 * 3 + ''; |
| | | } |
| | | if (val === 'B' || val === 'C' || val === 'D') { |
| | | this.model.checkPeriod = 365 * 4 + ''; |
| | | } |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }) |
| | | } |
| | | }, |
| | | categoryChange(value){ |
| | | getAction(this.url.getCategoryFlag,{id:value}).then(res=>{ |
| | | if(res.result.equipmentCategoryUda1==='weldingMachine'){ |
| | | this.model.checkPeriod=365*3+''; |
| | | }else if(res.result.equipmentCategoryUda1==='filesCarousel'){ |
| | | this.model.checkPeriod=365*4+''; |
| | | }else if(res.result.equipmentCategoryUda1==='tester'){ |
| | | this.model.checkPeriod=365*1+''; |
| | | } |
| | | this.model = Object.assign({},this.model); |
| | | }) |
| | | categoryChange(value) { |
| | | getAction(this.url.getCategoryFlag, { id: value }).then(res => { |
| | | if (res.result.equipmentCategoryUda1 === 'weldingMachine') { |
| | | this.model.checkPeriod = 365 * 3 + ''; |
| | | } else if (res.result.equipmentCategoryUda1 === 'filesCarousel') { |
| | | this.model.checkPeriod = 365 * 4 + ''; |
| | | } else if (res.result.equipmentCategoryUda1 === 'tester') { |
| | | this.model.checkPeriod = 365 * 1 + ''; |
| | | } |
| | | this.model = Object.assign({}, this.model); |
| | | }) |
| | | } |
| | | }, |
| | | computed: { |