| | |
| | | orientation="center" |
| | | style="font-size: large;font-style: italic;color: #66aeed;" |
| | | >维护及使用信息</a-divider> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="维护部门" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="manageId" |
| | | > |
| | | <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" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="使用部门" |
| | |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="车间" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="factoryModelId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="请选择车间" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_area,name,id,del_flag!='1'" |
| | | v-model="model.factoryModelId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="维修部门" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="manageId" |
| | | > |
| | | <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" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="维修班组" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="车间" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="factoryModelId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | :disabled="formDisabled" |
| | | placeholder="请选择资车间" |
| | | :triggerChange="true" |
| | | dictCode="mom_base_factory_model,name,id,del_flag!='1'" |
| | | v-model="model.factoryModelId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <!-- <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="产线" |
| | | :labelCol="labelCol" |
| | |
| | | v-model="model.workCenterId" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="资产制造商" |
| | |
| | | :wrapperCol="wrapperCol" |
| | | prop="warrantyStart" |
| | | > |
| | | <j-date :disabled="formDisabled" style="width: 100%;" placeholder="请选择开始日期" class="query-group-cust" v-model="model.warrantyStart"></j-date> |
| | | <j-date |
| | | :disabled="formDisabled" |
| | | style="width: 100%;" |
| | | placeholder="请选择开始日期" |
| | | class="query-group-cust" |
| | | v-model="model.warrantyStart" |
| | | ></j-date> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6"> |
| | |
| | | :wrapperCol="wrapperCol" |
| | | prop="warrantyEnd" |
| | | > |
| | | <j-date :disabled="formDisabled" style="width: 100%;" placeholder="请选择结束日期" class="query-group-cust" v-model="model.warrantyEnd"></j-date> |
| | | <j-date |
| | | :disabled="formDisabled" |
| | | style="width: 100%;" |
| | | placeholder="请选择结束日期" |
| | | class="query-group-cust" |
| | | v-model="model.warrantyEnd" |
| | | ></j-date> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="验收日期" |
| | |
| | | </a-col> |
| | | </a-row> |
| | | <a-row> |
| | | <a-col :span="6"> |
| | | <!-- <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="工区" |
| | | :labelCol="labelCol" |
| | |
| | | :disabled="formDisabled" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="重量" |
| | |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="重量计量单位" |
| | |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | |
| | | |
| | | <a-col :span="6"> |
| | | <a-form-model-item |
| | | label="资产来源国家" |
| | |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="6" v-if="needSpecific"> |
| | | <a-col |
| | | :span="6" |
| | | v-if="needSpecific" |
| | | > |
| | | <a-form-model-item |
| | | label="关键设备标识" |
| | | :labelCol="labelCol" |
| | |
| | | equipmentCategoryId: [ |
| | | { required: true, message: '请选则设备类别!' }, |
| | | ], |
| | | specification:[ |
| | | { required: true, message: '请选则设备规格!' }, |
| | | specification: [ |
| | | { required: true, message: '请选则设备规格!' }, |
| | | ], |
| | | model:[ |
| | | { required: true, message: '请选则设备型号!' }, |
| | | model: [ |
| | | { required: true, message: '请选则设备型号!' }, |
| | | ], |
| | | equipmentImportanceId:[ |
| | | { required: true, message: '请选则设备ABC标识!' }, |
| | | equipmentImportanceId: [ |
| | | { required: true, message: '请选则设备ABC标识!' }, |
| | | ], |
| | | manageId:[ |
| | | { required: true, message: '请选择维护部门!' }, |
| | | manageId: [ |
| | | { required: true, message: '请选择维护部门!' }, |
| | | ], |
| | | useId:[ |
| | | { required: true, message: '请选择使用部门部门!' }, |
| | | useId: [ |
| | | { required: true, message: '请选择使用部门部门!' }, |
| | | ], |
| | | specificEquipment:[ |
| | | { required: true, message: '请选择关键设备标识!' }, |
| | | specificEquipment: [ |
| | | { required: true, message: '请选择关键设备标识!' }, |
| | | ], |
| | | equipmentStatus:[ |
| | | { required: true, message: '请选择设备状态!' }, |
| | | equipmentStatus: [ |
| | | { required: true, message: '请选择设备状态!' }, |
| | | ], |
| | | technologyStatus:[ |
| | | { required: true, message: '请选择设备状态!' }, |
| | | technologyStatus: [ |
| | | { required: true, message: '请选择设备状态!' }, |
| | | ], |
| | | workCenterId:[ |
| | | { required: true, message: '请选择设备产线!' }, |
| | | workCenterId: [ |
| | | { required: true, message: '请选择设备产线!' }, |
| | | ], |
| | | factoryModelId:[ |
| | | { required: true, message: '请选择设备车间!' }, |
| | | factoryModelId: [ |
| | | { required: true, message: '请选择设备车间!' }, |
| | | ], |
| | | warrantyStart:[ |
| | | { required: true, message: '请选择开始日期!' }, |
| | | warrantyStart: [ |
| | | { required: true, message: '请选择开始日期!' }, |
| | | ], |
| | | warrantyEnd:[ |
| | | { required: true, message: '请选择结束日期!' }, |
| | | warrantyEnd: [ |
| | | { required: true, message: '请选择结束日期!' }, |
| | | ], |
| | | propertyStatus:[ |
| | | { required: true, message: '请选择资产状态!' }, |
| | | propertyStatus: [ |
| | | { required: true, message: '请选择资产状态!' }, |
| | | ], |
| | | }, |
| | | url: { |
| | |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | }, |
| | | treeData: [], |
| | | needSpecific:false, |
| | | needSpecific: false, |
| | | |
| | | } |
| | | }, |
| | |
| | | sendPrecisionParametersTemplateRecord(data) { |
| | | let record = data.record; |
| | | this.model.precisionParametersTemplateId = record.id |
| | | this.model.precisionParametersTemplateId_dictText= record.name |
| | | this.model.precisionParametersTemplateId_dictText = record.name |
| | | this.model = Object.assign({}, this.model); |
| | | }, |
| | | standardResultCompute() { |
| | |
| | | this.model = Object.assign({}, this.model); |
| | | |
| | | }, |
| | | changeNeedSpecific(val){ |
| | | if(val=='A'){ |
| | | this.needSpecific=true; |
| | | }else{ |
| | | changeNeedSpecific(val) { |
| | | if (val == 'A') { |
| | | this.needSpecific = true; |
| | | } else { |
| | | let that = this; |
| | | this.$confirm({ |
| | | title: '提示', |
| | | content: '非A类设备,是否要添加关键设备标识!', |
| | | okText: '确认', |
| | | cancelText: '取消', |
| | | onOk() { |
| | | that.needSpecific = true; |
| | | }, |
| | | onCancel(){ |
| | | that.needSpecific = false; |
| | | } |
| | | title: '提示', |
| | | content: '非A类设备,是否要添加关键设备标识!', |
| | | okText: '确认', |
| | | cancelText: '取消', |
| | | onOk() { |
| | | that.needSpecific = true; |
| | | }, |
| | | onCancel() { |
| | | that.needSpecific = false; |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | } |
| | | }, |
| | | computed: { |