| | |
| | | <template> |
| | | <a-card |
| | | title="自主维护点检标准" |
| | | title="" |
| | | :bordered='false' |
| | | > |
| | | <div class='table-page-search-wrapper'> |
| | |
| | | </a-upload> |
| | | <a-button |
| | | type="primary" |
| | | @click="handleDownload" |
| | | icon="download" |
| | | >模版下载</a-button> |
| | | <a-button |
| | | v-show="selectedRowKeys.length == 1 " |
| | | type="primary" |
| | | @click="handlePrint(selectionRows[0])" |
| | | icon="highlight" |
| | | >模版打印</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | >查询</a-button> |
| | |
| | | :customRow='clickThenSelect' |
| | | @change='handleTableChange' |
| | | > |
| | | <span |
| | | slot="disUda1" |
| | | slot-scope="text" |
| | | > |
| | | <j-ellipsis |
| | | :value="text" |
| | | :length="10" |
| | | /> |
| | | </span> |
| | | <span |
| | | slot="teamName" |
| | | slot-scope="text" |
| | | > |
| | | <j-ellipsis |
| | | :value="text" |
| | | :length="10" |
| | | /> |
| | | </span> |
| | | |
| | | <!-- <span |
| | | slot='action' |
| | |
| | | |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | |
| | | import { getAction, requestPut } from '@/api/manage' |
| | | import { getAction, requestPut, downFile } from '@/api/manage' |
| | | import DailyInspectionStandardDetail from './modules/dailyInspectionStandard/DailyInspectionStandardDetail' |
| | | import DailylnspectionStandardModal from './modules/dailyInspectionStandard/DailylnspectionStandardModal' |
| | | import AuditApprovalModal from './modules/dailyInspectionStandard/AuditApprovalModal' |
| | | import '@/assets/less/TableExpand.less' |
| | | import JEllipsis from "@/components/jeecg/JEllipsis"; |
| | | |
| | | export default { |
| | | name: 'DailyInspectionStandardList', |
| | | mixins: [JeecgListMixin], |
| | | components: { |
| | | JEllipsis, |
| | | DailyInspectionStandardDetail, |
| | | DailylnspectionStandardModal, |
| | | AuditApprovalModal |
| | |
| | | title: '管理制度', |
| | | align: 'center', |
| | | dataIndex: 'disUda1', |
| | | scopedSlots: { customRender: 'disUda1' }, |
| | | }, |
| | | { |
| | | title: '签审状态', |
| | |
| | | title: '责任班组', |
| | | align: 'center', |
| | | dataIndex: 'teamName', |
| | | scopedSlots: { customRender: 'teamName' }, |
| | | }, |
| | | // { |
| | | // title: '派工方式', |
| | |
| | | // dataIndex: 'assignModeName', |
| | | // }, |
| | | { |
| | | title: '审核结果', |
| | | align: 'center', |
| | | dataIndex: 'disUda2', |
| | | }, |
| | | { |
| | | title: '审核意见', |
| | | align: 'center', |
| | | dataIndex: 'auditFeedback', |
| | | }, |
| | | { |
| | | title: '审批结果', |
| | | align: 'center', |
| | | dataIndex: 'disUda3', |
| | | }, |
| | | { |
| | | title: '审批意见', |
| | |
| | | versionTakeEffect: "/eam/inspectionStandard/versionTakeEffect", |
| | | importExcelUrl: "/eam/inspectionStandard/importExcel", |
| | | passBatch: '/eam/inspectionStandard/auditApprovalBatch', |
| | | download: '/sys/upload/downloadFile', |
| | | uploadList: '/sys/upload/list', |
| | | }, |
| | | version: '1.0', |
| | | dictOptions: {}, |
| | |
| | | } |
| | | }, |
| | | |
| | | handleDownload() { |
| | | var params = {}//查询条件 |
| | | params.type = "inspection" |
| | | 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对象 |
| | | } |
| | | } |
| | | }) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handlePrint(record) { |
| | | let href = `${window._CONFIG['domianURL']}/jmreport/view/934677113625829376?id=` + record.id; //网站链接 |
| | | window.open(href, "_blank"); |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |