| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-tree-select |
| | | <!-- <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择维护部门" |
| | | tree-default-expand-all |
| | | v-model="queryParam.manageId" |
| | | /> --> |
| | | <j-dict-select-tag |
| | | dictCode="sys_depart,depart_name,id" |
| | | placeholder="请选择维护部门" |
| | | v-model="queryParam.manageId" |
| | | /> |
| | | </a-form-item> |
| | |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <a-tree-select |
| | | <!-- <a-tree-select |
| | | style="width: 100%" |
| | | :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }" |
| | | :tree-data="treeData" |
| | | placeholder="请选择使用部门" |
| | | tree-default-expand-all |
| | | v-model="queryParam.useId" |
| | | /> --> |
| | | <j-dict-select-tag |
| | | dictCode="sys_depart,depart_name,id" |
| | | placeholder="请选择使用部门" |
| | | v-model="queryParam.useId" |
| | | /> |
| | | </a-form-item> |
| | |
| | | icon="calendar" |
| | | v-has="'equipmentAccount:add&delete&import&Edit'" |
| | | >设置关键设备标识</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="handleDownload" |
| | | icon="download" |
| | | >模版下载</a-button> |
| | | </div> |
| | | <!-- table区域-begin --> |
| | | <div> |
| | |
| | | :customRow="clickThenSelect" |
| | | @change="handleTableChange" |
| | | > |
| | | <!-- 点击技术状态列,跳转到技术状态鉴定页面 --> |
| | | <!-- 点击技术状态列,跳转到技术状态鉴定页面 --> |
| | | <template |
| | | slot="technologyStatus" |
| | | slot-scope="text,record" |
| | | > |
| | | > |
| | | <a |
| | | href="javascript:eam/EquipmentCalibrationOrder;" |
| | | @click="handleTechnologyStatus(record)">{{record.technologyStatus_dictText}}</a> |
| | | @click="handleTechnologyStatus(record)" |
| | | >{{record.technologyStatus_dictText}}</a> |
| | | </template> |
| | | <template |
| | | slot="htmlSlot" |
| | |
| | | class="error" |
| | | >否</span> |
| | | </span> |
| | | |
| | | <span |
| | | slot="name" |
| | | slot-scope="text" |
| | | > |
| | | <j-ellipsis |
| | | :value="text" |
| | | :length="8" |
| | | /> |
| | | </span> |
| | | |
| | | <template |
| | | slot="num" |
| | | slot-scope="text,record" |
| | | > |
| | | <a |
| | | href="javascript:;" |
| | | @click="handleDetail(record)" |
| | | >{{record.num}}</a> |
| | | </template> |
| | | |
| | | <span |
| | | slot="action" |
| | |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import JEllipsis from '@/components/jeecg/JEllipsis' |
| | | import EquipmentModal from './modules/equipmentNew/EquipmentModal' |
| | | import { getAction } from '@/api/manage' |
| | | import { getAction, downFile } from '@/api/manage' |
| | | import EquipmentProcessParametersList from './modules/equipmentNew/EquipmentProcessParametersList' |
| | | import EquipmentDocumentList from './modules/equipmentNew/EquipmentDocumentList' |
| | | import EquipmentPrecisionParametersList from './modules/equipmentNew/EquipmentPrecisionParametersList' |
| | |
| | | SecondMaintenanceList, |
| | | ThirdMaintenanceList, |
| | | KeyEquipmentUpdateModel, |
| | | JEllipsis, |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | dataIndex: 'isLineEquip_dictText', |
| | | }, |
| | | { |
| | | title: '关键设备标识', |
| | | align: "center", |
| | | dataIndex: 'specificEquipment_dictText', |
| | | }, |
| | | { |
| | | title: '统一编码', |
| | | align: "center", |
| | | dataIndex: 'num', |
| | | scopedSlots: { customRender: 'num' }, |
| | | }, |
| | | { |
| | | title: '设备名称', |
| | | align: "center", |
| | | dataIndex: 'name', |
| | | scopedSlots: { customRender: 'name' }, |
| | | }, |
| | | { |
| | | title: '型号', |
| | |
| | | align: "center", |
| | | dataIndex: 'useId_dictText', |
| | | }, |
| | | { |
| | | title: '维护部门', |
| | | align: "center", |
| | | dataIndex: 'manageId_dictText', |
| | | }, |
| | | { |
| | | title: '维修班组', |
| | | align: "center", |
| | | dataIndex: 'teamId_dictText', |
| | | }, |
| | | // { |
| | | // title: '维护部门', |
| | | // align: "center", |
| | | // dataIndex: 'manageId_dictText', |
| | | // }, |
| | | // { |
| | | // title: '维修班组', |
| | | // align: "center", |
| | | // dataIndex: 'teamId_dictText', |
| | | // }, |
| | | { |
| | | title: 'ABC标识', |
| | | align: "center", |
| | | dataIndex: 'equipmentImportanceId', |
| | | }, |
| | | { |
| | | title: '关键设备标识', |
| | | align: "center", |
| | | dataIndex: 'specificEquipment_dictText', |
| | | }, |
| | | |
| | | { |
| | | title: '技术状态', |
| | | align: "center", |
| | |
| | | align: "center", |
| | | dataIndex: 'technologyStatusVerificationType_dictText', |
| | | }, |
| | | |
| | | { |
| | | title: '下次技术状态鉴定时间', |
| | | align: "center", |
| | | dataIndex: 'nextTechnologyStatusQualificationTime', |
| | | }, |
| | | { |
| | | title: '生产线编号', |
| | | align: "center", |
| | |
| | | // dataIndex: 'fireExtinguisher', |
| | | // }, |
| | | |
| | | // { |
| | | // title: '灭火器有效期', |
| | | // align: "center", |
| | | // dataIndex: 'fireExtinguisherValidityPeriod', |
| | | // }, |
| | | |
| | | // { |
| | | // title: '操作系统', |
| | | // align: "center", |
| | |
| | | exportXlsUrl: '/eam/equipment/exportXls', |
| | | importExcelUrl: "/eam/equipment/importExcel", |
| | | loadOptions: '/sys/sysDepart/loadDepartTreeOptions', |
| | | uploadList: '/sys/upload/list', |
| | | download: '/sys/upload/downloadFile', |
| | | }, |
| | | dictOptions: { |
| | | }, |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleDownload() { |
| | | var params = {}//查询条件 |
| | | params.type = "equipment" |
| | | params.pageNo = 1 |
| | | params.pageSize = 10 |
| | | getAction(this.url.uploadList, params).then((res2) => { |
| | | if (res2.success) { |
| | | if (res2.result.records.length > 0) { |
| | | downFile(this.url.download, { id: res2.result.records[0].id }).then((res) => { |
| | | if (!res) { |
| | | this.$message.warning('文件下载失败') |
| | | return |
| | | } else { |
| | | let fileName = res2.result.records[0].name |
| | | if (typeof window.navigator.msSaveBlob !== 'undefined') { |
| | | window.navigator.msSaveBlob(new Blob([res]), fileName) |
| | | } else { |
| | | let url = window.URL.createObjectURL(new Blob([res])) |
| | | let link = document.createElement('a') |
| | | link.style.display = 'none' |
| | | link.href = url |
| | | link.setAttribute('download', fileName) |
| | | document.body.appendChild(link) |
| | | link.click() |
| | | document.body.removeChild(link) //下载完成移除元素 |
| | | window.URL.revokeObjectURL(url) //释放掉blob对象 |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |