| | |
| | | </div> |
| | | <div> |
| | | <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading" |
| | | :rowClassName="rowClassName" :height="'calc(100vh - 250px)'" @pagination="pagination" |
| | | :rowClassName="rowClassName" :height="'calc(100vh - 270px)'" @pagination="pagination" |
| | | key="tableData0"></lims-table> |
| | | </div> |
| | | <!-- <div style="width: 100%;height: 100%;" v-if="activeFace >0 && isCopper == null">--> |
| | |
| | | <onlyoffice ref="onlyoffice" :options="option" style="width: 100%;height: 100%;" /> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="查看附件" :visible.sync="lookDialogVisible" width="800px" top="5vh" fullscreen> |
| | | <filePreview v-if="lookDialogVisible" :fileUrl="javaApi + '/word/' + currentInfo.tempUrlPdf" :currentFile="{}" |
| | | style="max-height: 90vh;overflow-y: auto;" /> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import {selectInsOrderPlanList, selectUserCondition} from "@/api/business/inspectionTask"; |
| | | import {mapGetters} from "vuex"; |
| | | import {upReportUrl} from "@/api/business/insReport"; |
| | | import {delfile} from "@/api/business/rawMaterialOrder"; |
| | | import filePreview from "@/components/Preview/filePreview.vue"; |
| | | |
| | | export default { |
| | | components: { |
| | | filePreview, |
| | | onlyoffice, |
| | | limsTable, |
| | | // ShowInfo, |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | lookDialogVisible: false, |
| | | alone: false, |
| | | tabList: [], |
| | | active: 1, |
| | |
| | | issuedVisible: false, |
| | | fullscreen: false, |
| | | option:null, |
| | | orderTypeList: [ |
| | | {label: '委托试验', value: 'Customer-ordered test'}, |
| | | {label: '抽检', value: '抽检'}, |
| | | {label: '进厂检验', value: '进厂检验'}, |
| | | {label: '季度检验', value: 'Quarterly inspection'}, |
| | | ], |
| | | urgencyLevel: [], |
| | | inspectionTaskState: [], |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | // 还原操作 |
| | | handleRestore(row) { |
| | | upReportUrl({id: row.insReportId}).then(res => { |
| | | if (res.code === 200) { |
| | | this.$message.success('操作成功') |
| | | this.refreshTable('page') |
| | | } |
| | | }) |
| | | this.$confirm('是否还原当前报告?', "警告", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning" |
| | | }).then(() => { |
| | | upReportUrl({id: row.insReportId}).then(res => { |
| | | if (res.code === 200) { |
| | | this.$message.success('还原成功') |
| | | this.refreshTable() |
| | | } |
| | | }) |
| | | }).catch(() => { }) |
| | | |
| | | }, |
| | | // 查看报告 |
| | | handleIssued(row) { |
| | | this.currentInfo = row; |
| | | let fileName = row.url |
| | | let fileType = "docx" |
| | | if (row.tempUrlPdf != null || row.tempUrlPdf === '') { |
| | | fileName = row.tempUrlPdf |
| | | fileType = "pdf" |
| | | } |
| | | fileName = fileName.replace('/word/','') |
| | | const userName = JSON.parse(localStorage.getItem("user")).name; |
| | | this.option = { |
| | | url: this.javaApi + "/word/" + fileName, |
| | | isEdit: false, |
| | | fileType: fileType, |
| | | title: fileName, |
| | | lang: 'zh-CN', |
| | | isPrint: false, |
| | | user_id: 1, |
| | | user_name: userName, |
| | | editUrl: this.javaApi + "/insReport/onlyOffice/save?fileName=" + fileName |
| | | } |
| | | this.issuedVisible = true; |
| | | if (!row.tempUrlPdf) return this.$message.warning('文件未上传') |
| | | this.currentInfo = row |
| | | this.lookDialogVisible = true |
| | | // this.currentInfo = row; |
| | | // let fileName = row.url |
| | | // let fileType = "docx" |
| | | // if (row.tempUrlPdf != null || row.tempUrlPdf === '') { |
| | | // fileName = row.tempUrlPdf |
| | | // fileType = "pdf" |
| | | // } |
| | | // fileName = fileName.replace('/word/','') |
| | | // const userName = this.nickName |
| | | // this.option = { |
| | | // url: this.javaApi + "/word/" + fileName, |
| | | // isEdit: false, |
| | | // fileType: fileType, |
| | | // title: fileName, |
| | | // lang: 'zh-CN', |
| | | // isPrint: false, |
| | | // user_id: 1, |
| | | // user_name: userName, |
| | | // editUrl: this.javaApi + "/insReport/onlyOffice/save?fileName=" + fileName |
| | | // } |
| | | // this.issuedVisible = true; |
| | | }, |
| | | getAuthorizedPerson() { |
| | | selectUserCondition({ type: 1 }).then((res) => { |