From 0aff7a59f983affb78507e1dbd66489d44b7c5ce Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期一, 24 二月 2025 14:43:53 +0800 Subject: [PATCH] 检验任务-进货验证联调 --- src/views/business/inspectionReview/index.vue | 82 +++++++++++++++++++++++++++-------------- 1 files changed, 54 insertions(+), 28 deletions(-) diff --git a/src/views/business/inspectionReview/index.vue b/src/views/business/inspectionReview/index.vue index 15d685a..fcebf1b 100644 --- a/src/views/business/inspectionReview/index.vue +++ b/src/views/business/inspectionReview/index.vue @@ -24,7 +24,7 @@ </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">--> @@ -50,6 +50,10 @@ <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> @@ -61,9 +65,12 @@ 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, @@ -74,6 +81,7 @@ }, data() { return { + lookDialogVisible: false, alone: false, tabList: [], active: 1, @@ -232,6 +240,14 @@ issuedVisible: false, fullscreen: false, option:null, + orderTypeList: [ + {label: '濮旀墭璇曢獙', value: 'Customer-ordered test'}, + {label: '鎶芥', value: '鎶芥'}, + {label: '杩涘巶妫�楠�', value: '杩涘巶妫�楠�'}, + {label: '瀛e害妫�楠�', value: 'Quarterly inspection'}, + ], + urgencyLevel: [], + inspectionTaskState: [], } }, created() { @@ -353,36 +369,46 @@ }, // 杩樺師鎿嶄綔 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) => { -- Gitblit v1.9.3