| | |
| | | data: query, |
| | | }); |
| | | } |
| | | |
| | | //使用记录 导出 |
| | | export function exportDeviceMaintenance(query) { |
| | | return request({ |
| | | url: "/deviceMaintain/exportDeviceMaintenance", |
| | | method: "get", |
| | | responseType: "blob", |
| | | params: query, |
| | | }); |
| | | } |
| | | //设备使用授权 分页查询 |
| | | export function selectDeviceImpowerByPage(query) { |
| | | return request({ |
| | |
| | | <script> |
| | | import { |
| | | addDeviceMaintenance, |
| | | deleteDeviceMaintenance, |
| | | deleteDeviceMaintenance, exportDeviceMaintenance, |
| | | selectDeviceMaintenancePage |
| | | } from "@/api/cnas/resourceDemand/device"; |
| | | import limsTable from "@/components/Table/lims-table.vue"; |
| | |
| | | }); |
| | | }, |
| | | openHandleOut () { |
| | | this.outLoading = true |
| | | exportDeviceMaintenance({ |
| | | deviceId: this.clickNodeVal.value |
| | | }).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/octet-stream' }); |
| | | this.$download.saveAs(blob, '设备维护保养.doc') |
| | | }) |
| | | |
| | | }, |
| | | handleDeleteClick(row) { |
| | |
| | | <div class="search"> |
| | | <el-button size="small" type="primary" @click="refreshTableList">刷 新</el-button> |
| | | <el-button size="small" type="primary" @click="openDia('add')">新 增</el-button> |
| | | <el-button :loading="outLoading" size="small" type="primary" @click="openHandleOut">导 出</el-button> |
| | | </div> |
| | | <div> |
| | | <lims-table :tableData="tableData" :column="column" |
| | |
| | | import { |
| | | addImpower, |
| | | deleteImpower, deviceScopeSearch, getImpowerDetail, reviewImpowerStatus, |
| | | selectDeviceImpowerByPage, submitReviewImpowerStatus, updateImpower |
| | | selectDeviceImpowerByPage, submitReviewImpowerStatus, updateImpower, exportDeviceImpower |
| | | } from "@/api/cnas/resourceDemand/device"; |
| | | import {exportQualityMonitorDetail} from "@/api/cnas/process/ensureResults/qualityMonitor"; |
| | | import {selectUserCondition} from "@/api/system/user"; |
| | | import {mapGetters} from "vuex"; |
| | | |
| | |
| | | disabled: (row) => { |
| | | return row.status === 1 || this.userId !== row.auditId; |
| | | }, |
| | | }, |
| | | { |
| | | name: '导出', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.openHandleOut(row); |
| | | } |
| | | }, |
| | | { |
| | | name: '删除', |
| | |
| | | }) |
| | | }, |
| | | openHandleOut (row) { |
| | | exportQualityMonitorDetail({ impowerId: row.impowerId }).then(res => { |
| | | exportDeviceImpower({ impowerId: row.impowerId }).then(res => { |
| | | this.outLoading = false |
| | | const blob = new Blob([res], { type: 'application/msword' }); |
| | | this.$download.saveAs(blob, row.monitorName + '.docx') |
| | | this.$download.saveAs(blob, '设备使用授权表' + '.docx') |
| | | }) |
| | | }, |
| | | handleDeleteClick(row) { |