| | |
| | | placeholder="请选择设备所属分类" |
| | | :disabled="formDisabled" |
| | | :triggerChange="true" |
| | | dictCode="mom_eam_equipment_category,name,id" |
| | | :dictCode="'mom_eam_equipment_category,name,id,equipment_category_uda1 = '+'\''+caytegoryParam+'\''" |
| | | v-model="model.equipmentCategoryId" |
| | | /> |
| | | </a-form-model-item> |
| | |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="车间" |
| | | label="工区" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="factoryModelId" |
| | |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="请选择车间" |
| | | placeholder="请选择工区" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_area,name,id,del_flag!='1'" |
| | | v-model="model.factoryModelId" |
| | |
| | | >维护及使用信息</a-divider> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="维修部门" |
| | | label="维护部门" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="manageId" |
| | |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择维修部门" |
| | | placeholder="请选择维护部门" |
| | | tree-default-expand-all |
| | | v-model="model.manageId" |
| | | /> |
| | |
| | | :wrapperCol="wrapperCol" |
| | | prop="operatingSystem" |
| | | > |
| | | <a-input |
| | | v-model="model.operatingSystem" |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="是否有操作系统" |
| | | :disabled="formDisabled" |
| | | placeholder="请输入操作系统" |
| | | ></a-input> |
| | | :triggerChange="true" |
| | | dictCode="operation_flag" |
| | | v-model="model.operatingSystem" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-col :span="6" v-if="model.operatingSystem=='yes'"> |
| | | <a-form-model-item |
| | | label="系统" |
| | | :labelCol="labelCol" |
| | |
| | | default: false, |
| | | required: false |
| | | }, |
| | | caytegoryParam:{ |
| | | type:String, |
| | | default: '', |
| | | required: false |
| | | } |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | propertyStatus: [ |
| | | { required: true, message: '请选择资产状态!' }, |
| | | ], |
| | | system:[ |
| | | { required: true, message: '请输入系统!' }, |
| | | ] |
| | | }, |
| | | url: { |
| | | add: "/eam/equipment/add", |
| | |
| | | edit(record) { |
| | | console.log(this.disabled) |
| | | this.model = Object.assign({}, record); |
| | | if(!this.model.id){ |
| | | this.model.equipmentStatus = '1' |
| | | } |
| | | this.visible = true; |
| | | }, |
| | | close() { |