From bc4fb103c5f2de231617f38db9a8f0b849c1e097 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期四, 13 三月 2025 09:56:50 +0800
Subject: [PATCH] 原材料下单查询修改
---
src/views/business/inspectionReview/index.vue | 59 ++++++++++++++++++++++++++++++-----------------------------
1 files changed, 30 insertions(+), 29 deletions(-)
diff --git a/src/views/business/inspectionReview/index.vue b/src/views/business/inspectionReview/index.vue
index c724ca4..66e90e9 100644
--- a/src/views/business/inspectionReview/index.vue
+++ b/src/views/business/inspectionReview/index.vue
@@ -343,14 +343,14 @@
},
})
},
- // 涓婁紶鎶ュ憡
- handleUpload(row) {
-
- },
// 涓嬭浇鎶ュ憡
download(row) {
- let url = this.javaApi + '/word/' + (row.urlS === null || row.urlS === '') ? row.url : row.urlS
- this.$download.saveAs(url, row.fileName);
+ let url = (row.urlS===null||row.urlS==='')?row.url:row.urlS
+ const link = document.createElement('a');
+ link.href = this.javaApi + url;
+ link.target = '_blank';
+ document.body.appendChild(link);
+ link.click();
},
// 杩樺師鎿嶄綔
handleRestore(row) {
@@ -370,30 +370,31 @@
},
// 鏌ョ湅鎶ュ憡
handleIssued(row) {
- if (!row.tempUrlPdf) return this.$message.warning('鏂囦欢鏈笂浼�')
+ // todo: 鏌ョ湅鎶ュ憡缁勪欢
+/* 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;
+ 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