| | |
| | | icon="plus" |
| | | :hidden="disabled" |
| | | >新增</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导入</a-button> |
| | | </a-upload> |
| | | <a-button |
| | | type="primary" |
| | | icon="download" |
| | |
| | | type="card" |
| | | defaultActiveKey="1" |
| | | > |
| | | <!-- <a-tab-pane key="1"> |
| | | <a-tab-pane key="1"> |
| | | <span slot="tab"> |
| | | <a-badge v-if="showTabsFlag">工艺参数 </a-badge> |
| | | <a-badge |
| | |
| | | > |
| | | <process-parameters-list ref="ProcessParametersList"></process-parameters-list> |
| | | </div> |
| | | </a-tab-pane> --> |
| | | </a-tab-pane> |
| | | |
| | | <a-tab-pane |
| | | key="2" |
| | |
| | | width: 50, |
| | | }, |
| | | { |
| | | title: '设备编码', |
| | | title: '统一编码', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | }, |
| | |
| | | dataIndex: 'name', |
| | | }, |
| | | { |
| | | title: '设备型号', |
| | | title: '型号', |
| | | align: "center", |
| | | dataIndex: 'model', |
| | | }, |
| | | { |
| | | title: '设备规格', |
| | | title: '规格', |
| | | align: "center", |
| | | dataIndex: 'specification', |
| | | }, |
| | | { |
| | | title: '资产编码', |
| | | align: "center", |
| | | dataIndex: 'assetNumber', |
| | | }, |
| | | { |
| | | title: '设备状态', |
| | | align: "center", |
| | | dataIndex: 'equipmentStatus_dictText', |
| | | }, |
| | | { |
| | | title: '技术状态', |
| | | align: "center", |
| | | dataIndex: 'technologyStatus_dictText', |
| | | }, |
| | | { |
| | | title: '特种设备', |
| | | align: "center", |
| | | dataIndex: 'specificEquipment_dictText', |
| | | }, |
| | | { |
| | | title: '设备图片', |
| | | align: "center", |
| | | dataIndex: 'equipmentPhoto', |
| | | scopedSlots: { customRender: 'equipmentPhoto' }, |
| | | }, |
| | | { |
| | | title: '制造商', |
| | | align: "center", |
| | | dataIndex: 'constructorId_dictText', |
| | | }, |
| | | { |
| | | title: '供应商', |
| | | align: "center", |
| | | dataIndex: 'supplierId_dictText', |
| | | }, |
| | | { |
| | | title: '出厂编号', |
| | | align: "center", |
| | | dataIndex: 'factoryNumber', |
| | | }, |
| | | { |
| | | title: '出厂日期', |
| | | align: "center", |
| | | dataIndex: 'leaveFactoryDate', |
| | | }, |
| | | { |
| | | title: '验收日期', |
| | | align: "center", |
| | | dataIndex: 'acceptanceCheckDate', |
| | | }, |
| | | // { |
| | | // title: '所有组织', |
| | | // title: '资产编码', |
| | | // align: "center", |
| | | // dataIndex: 'affiliationId_dictText', |
| | | // dataIndex: 'assetNumber', |
| | | // }, |
| | | { |
| | | title: '管理组织', |
| | | title: '总功率', |
| | | align: "center", |
| | | dataIndex: 'manageId_dictText', |
| | | }, |
| | | { |
| | | title: '管理人员', |
| | | align: "center", |
| | | dataIndex: 'manager_dictText', |
| | | dataIndex: 'gpo', |
| | | }, |
| | | { |
| | | title: '使用部门', |
| | |
| | | dataIndex: 'useId_dictText', |
| | | }, |
| | | { |
| | | title: '责任人', |
| | | title: '工区', |
| | | align: "center", |
| | | dataIndex: 'functionary_dictText', |
| | | dataIndex: 'equipmentUda1', |
| | | }, |
| | | { |
| | | title: '责任班组', |
| | | title: '维护部门', |
| | | align: "center", |
| | | dataIndex: 'manageId_dictText', |
| | | }, |
| | | { |
| | | title: '维修班组', |
| | | align: "center", |
| | | dataIndex: 'teamId_dictText', |
| | | }, |
| | | { |
| | | title: '位置', |
| | | align: "center", |
| | | dataIndex: 'location', |
| | | }, |
| | | { |
| | | title: '重要度', |
| | | title: 'ABC标识', |
| | | align: "center", |
| | | dataIndex: 'equipmentImportanceId_dictText', |
| | | }, |
| | | // { |
| | | // title: '工艺参数管理', |
| | | // align: "center", |
| | | // dataIndex: 'processParameters', |
| | | // scopedSlots: { customRender: 'processParameters' }, |
| | | // }, |
| | | // { |
| | | // title: '工艺参数模板', |
| | | // align: "center", |
| | | // dataIndex: 'processParametersTemplateName', |
| | | // }, |
| | | { |
| | | title: '设备精度管理', |
| | | title: '关键设备标识', |
| | | align: "center", |
| | | dataIndex: 'precisionParameters', |
| | | scopedSlots: { customRender: 'precisionParameters' }, |
| | | dataIndex: 'keyEquipmentIdentification', |
| | | }, |
| | | { |
| | | title: '精度参数模板', |
| | | title: '安全配置', |
| | | align: "center", |
| | | dataIndex: 'precisionParametersTemplateName', |
| | | dataIndex: 'securityConfiguration', |
| | | }, |
| | | { |
| | | title: '冷却系统', |
| | | align: "center", |
| | | dataIndex: 'coolingSystem', |
| | | }, |
| | | { |
| | | title: '灭火器', |
| | | align: "center", |
| | | dataIndex: 'fireExtinguisher', |
| | | }, |
| | | |
| | | { |
| | | title: '灭火器有效期', |
| | | align: "center", |
| | | dataIndex: 'fireExtinguisherValidityPeriod', |
| | | }, |
| | | { |
| | | title: '操作系统', |
| | | align: "center", |
| | | dataIndex: 'operatingSystem', |
| | | }, |
| | | { |
| | | title: '系统', |
| | | align: "center", |
| | | dataIndex: 'system', |
| | | }, |
| | | { |
| | | title: '设备端口', |
| | | align: "center", |
| | | dataIndex: 'port', |
| | | }, |
| | | { |
| | | title: '坐标数量', |
| | | align: "center", |
| | | dataIndex: 'coordinateNum', |
| | | }, |
| | | { |
| | | title: '设备状态', |
| | | align: "center", |
| | | dataIndex: 'equipmentStatus_dictText', |
| | | }, |
| | | { |
| | | title: '重量', |
| | | align: "center", |
| | | dataIndex: 'equipmentUda3', |
| | | }, |
| | | { |
| | | title: '重量计量单位', |
| | | align: "center", |
| | | dataIndex: 'equipmentUda4_dictText', |
| | | }, |
| | | { |
| | | title: '功能位置', |
| | | align: "center", |
| | | dataIndex: 'equipmentUda5', |
| | | }, |
| | | { |
| | | title: '安装位置', |
| | | align: "center", |
| | | dataIndex: 'equipmentUda2', |
| | | }, |
| | | { |
| | | title: '出厂日期', |
| | | align: "center", |
| | | dataIndex: 'leaveFactoryDate', |
| | | }, |
| | | { |
| | | title: '立项卡号', |
| | | align: "center", |
| | | dataIndex: 'projectApprovalNo', |
| | | }, |
| | | { |
| | | title: '资金来源', |
| | | align: "center", |
| | | dataIndex: 'fundSource', |
| | | }, |
| | | { |
| | | title: '验收日期', |
| | | align: "center", |
| | | dataIndex: 'acceptanceCheckDate', |
| | | }, |
| | | { |
| | | title: '出厂编号', |
| | | align: "center", |
| | | dataIndex: 'factoryNo', |
| | | }, |
| | | { |
| | | title: '资产制造商', |
| | | align: "center", |
| | | dataIndex: 'constructorId_dictText', |
| | | }, |
| | | { |
| | | title: '资产的来源国家', |
| | | align: "center", |
| | | dataIndex: 'sourceCountry', |
| | | }, |
| | | // { |
| | | // title: '技术状态', |
| | | // align: "center", |
| | | // dataIndex: 'technologyStatus_dictText', |
| | | // }, |
| | | // { |
| | | // title: '特种设备', |
| | | // align: "center", |
| | | // dataIndex: 'specificEquipment_dictText', |
| | | // }, |
| | | // { |
| | | // title: '设备图片', |
| | | // align: "center", |
| | | // dataIndex: 'equipmentPhoto', |
| | | // scopedSlots: { customRender: 'equipmentPhoto' }, |
| | | // }, |
| | | // { |
| | | // title: '供应商', |
| | | // align: "center", |
| | | // dataIndex: 'supplierId_dictText', |
| | | // }, |
| | | // { |
| | | // title: '出厂编号', |
| | | // align: "center", |
| | | // dataIndex: 'factoryNumber', |
| | | // }, |
| | | // { |
| | | // title: '出厂日期', |
| | | // align: "center", |
| | | // dataIndex: 'leaveFactoryDate', |
| | | // }, |
| | | // { |
| | | // title: '验收日期', |
| | | // align: "center", |
| | | // dataIndex: 'acceptanceCheckDate', |
| | | // }, |
| | | // // { |
| | | // // title: '所有组织', |
| | | // // align: "center", |
| | | // // dataIndex: 'affiliationId_dictText', |
| | | // // }, |
| | | |
| | | // { |
| | | // title: '管理人员', |
| | | // align: "center", |
| | | // dataIndex: 'manager_dictText', |
| | | // }, |
| | | // { |
| | | // title: '使用部门', |
| | | // align: "center", |
| | | // dataIndex: 'useId_dictText', |
| | | // }, |
| | | // { |
| | | // title: '责任人', |
| | | // align: "center", |
| | | // dataIndex: 'functionary_dictText', |
| | | // }, |
| | | // { |
| | | // title: '位置', |
| | | // align: "center", |
| | | // dataIndex: 'location', |
| | | // }, |
| | | { |
| | | title: '工艺参数管理', |
| | | align: "center", |
| | | dataIndex: 'processParameters', |
| | | scopedSlots: { customRender: 'processParameters' }, |
| | | }, |
| | | { |
| | | title: '工艺参数模板', |
| | | align: "center", |
| | | dataIndex: 'processParametersTemplateName', |
| | | }, |
| | | // { |
| | | // title: '检定管理', |
| | | // title: '设备精度管理', |
| | | // align: "center", |
| | | // dataIndex: 'verification', |
| | | // scopedSlots: { customRender: 'verification' }, |
| | | // dataIndex: 'precisionParameters', |
| | | // scopedSlots: { customRender: 'precisionParameters' }, |
| | | // }, |
| | | // { |
| | | // title: '检定周期/月', |
| | | // title: '精度参数模板', |
| | | // align: "center", |
| | | // dataIndex: 'verificationPeriod', |
| | | // dataIndex: 'precisionParametersTemplateName', |
| | | // }, |
| | | // { |
| | | // title: '上次检定日期', |
| | | // align: "center", |
| | | // dataIndex: 'lastVerificationDate', |
| | | // }, |
| | | // { |
| | | // title: '下次检定日期', |
| | | // align: "center", |
| | | // dataIndex: 'nextVerificationDate', |
| | | // }, |
| | | // { |
| | | // title: '状态', |
| | | // align: 'center', |
| | | // dataIndex: 'status', |
| | | // width: 100, |
| | | // }, |
| | | // // { |
| | | // // title: '检定管理', |
| | | // // align: "center", |
| | | // // dataIndex: 'verification', |
| | | // // scopedSlots: { customRender: 'verification' }, |
| | | // // }, |
| | | // // { |
| | | // // title: '检定周期/月', |
| | | // // align: "center", |
| | | // // dataIndex: 'verificationPeriod', |
| | | // // }, |
| | | // // { |
| | | // // title: '上次检定日期', |
| | | // // align: "center", |
| | | // // dataIndex: 'lastVerificationDate', |
| | | // // }, |
| | | // // { |
| | | // // title: '下次检定日期', |
| | | // // align: "center", |
| | | // // dataIndex: 'nextVerificationDate', |
| | | // // }, |
| | | // // { |
| | | // // title: '状态', |
| | | // // align: 'center', |
| | | // // dataIndex: 'status', |
| | | // // width: 100, |
| | | // // }, |
| | | { |
| | | title: '备注', |
| | | align: "center", |
| | |
| | | deleteBatch: "/eam/equipment/deleteBatch", |
| | | active: "/eam/equipment/active", |
| | | exportXlsUrl: '/eam/equipment/exportXls', |
| | | importExcelUrl: "/eam/equipment/importExcel", |
| | | // importExcelUrl: 'base/site/importExcel', |
| | | }, |
| | | //新增、编辑、删除、批量删除操作改变数据后刷新关联的组件的监听属性 |
| | |
| | | selectedRowKeys: this.selectedRowKeys, |
| | | }; |
| | | }, |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | methods: { |
| | | |
| | |
| | | |
| | | onSelectChange(selectedRowKeys, selectionRows) { |
| | | if (selectedRowKeys.length == 1) { |
| | | // this.$refs.ProcessParametersList.equipmentId = selectedRowKeys[0] |
| | | this.$refs.ProcessParametersList.equipmentId = selectedRowKeys[0] |
| | | this.$refs.EquipmentFileList.equipmentId = selectedRowKeys[0] |
| | | this.$refs.PrecisionParametersList.equipmentId = selectedRowKeys[0] |
| | | } else { |
| | | // this.$refs.ProcessParametersList.equipmentId = '-1' |
| | | this.$refs.ProcessParametersList.equipmentId = '-1' |
| | | this.$refs.PrecisionParametersList.equipmentId = '-1' |
| | | this.$refs.EquipmentFileList.equipmentId = '-1' |
| | | } |