From 74b3ae5d72f64f761070313ddd83dfdd952aa7cc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?=
<7507756+jiang_yuqi@user.noreply.gitee.com>
Date: Mon, 25 Mar 2024 23:39:03 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../task/myProcess/detail/detailDrawer.vue | 1 +
.../task/myProcess/editTaskDrawer.vue | 2 +-
.../task/myProcess/initTaskDrawer.vue | 2 +-
.../approveCheckDetectionDrawer.vue | 432 ++++++++---------
.../approveCheckingDrawer.vue | 419 ++++++++--------
.../approveMaterialSealDrawer.vue | 429 +++++++++--------
.../projectAuditinfo/approveMeasureDrawer.vue | 451 ++++++++++--------
.../views/project/projectMeasure/index.vue | 39 +-
.../projectMeasure/projectMeasureDrawer.vue | 44 +-
ruoyi-ui/src/views/work/workFile/index.vue | 2 +-
.../controller/ProjectFilesController.java | 17 +-
11 files changed, 952 insertions(+), 886 deletions(-)
diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/detail/detailDrawer.vue b/ruoyi-ui/src/views/flowable/task/myProcess/detail/detailDrawer.vue
index d1cac4f9..1bb1aa55 100644
--- a/ruoyi-ui/src/views/flowable/task/myProcess/detail/detailDrawer.vue
+++ b/ruoyi-ui/src/views/flowable/task/myProcess/detail/detailDrawer.vue
@@ -163,6 +163,7 @@ export default {
//label样式
labelStyle: { width: "180px" },
initData: {},
+ fileTypes:['pdf','png','jpg','jpeg'],
};
},
computed: {},
diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue b/ruoyi-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue
index 753981a9..9ac15124 100644
--- a/ruoyi-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue
+++ b/ruoyi-ui/src/views/flowable/task/myProcess/editTaskDrawer.vue
@@ -53,7 +53,7 @@
diff --git a/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue b/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue
index e06ce846..78bd1cbf 100644
--- a/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue
+++ b/ruoyi-ui/src/views/flowable/task/myProcess/initTaskDrawer.vue
@@ -53,7 +53,7 @@
diff --git a/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckDetectionDrawer.vue b/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckDetectionDrawer.vue
index 5140db1c..8045710b 100644
--- a/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckDetectionDrawer.vue
+++ b/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckDetectionDrawer.vue
@@ -1,227 +1,231 @@
-
-
+
+
+ {{ title + " 【处理审批】" }}
+
+
-
- {{ title + " 【处理审批】" }}
-
-
-
- {{dataInfo.projectName}}
+
+ {{ dataInfo.projectName }}
+
+
+
+
+
-
-
-
-
-
-
-
-
- 已提供
- 未提供
-
-
-
-
-
-
- {{ dataInfo.materialName }}
-
-
-
-
- {{ dataInfo.sampleNum }}
-
-
-
-
-
-
- {{ dataInfo.usePosition }}
-
-
- {{ dataInfo.witnessUserName }}
- {{ dataInfo.witnessUser }}
-
-
-
-
-
-
- {{ dataInfo.createBy }}
-
-
-
-
- {{ dataInfo.deptName }}
-
-
-
-
- {{ dataInfo.laboratoryName }}
+
+
+
+ 已提供
+ 未提供
-
- {{ parseTime(dataInfo.checkTime, "{y}-{m}-{d} {h}:{i}") }}
+
+
+
+
+
+ {{ dataInfo.materialName }}
-
- 下载检测报告
+
+
+
+ {{ dataInfo.sampleNum }}
-
- {{ dict.label }}
+
+
+
+
+
+ {{ dataInfo.usePosition }}
-
-
+
+ {{ dataInfo.witnessUserName }}
+ {{ dataInfo.witnessUser }}
-
- 确 定
- 取 消
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ /** 下载附件 */
+ handleDownload() {
+ let files = this.dataInfo.measureFiles.split(",");
+ files.forEach((item) => {
+ this.$download.resource(item);
+ });
+ },
+ },
+};
+
diff --git a/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckingDrawer.vue b/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckingDrawer.vue
index f7fa0e29..e3476bbb 100644
--- a/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckingDrawer.vue
+++ b/ruoyi-ui/src/views/project/projectAuditinfo/approveCheckingDrawer.vue
@@ -1,218 +1,227 @@
-
-
+
+
+ {{ title + " 【处理审批】" }}
+
+
-
- {{ title + " 【处理审批】" }}
-
-
-
- {{dataInfo.projectName}}
+
+ {{ dataInfo.projectName }}
+
+
+
+
+
+
+
+
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dataInfo.qualityUserName }}
- {{ dataInfo.qualityUser }}
-
-
-
-
- {{ dataInfo.superviseUserName }}
- {{ dataInfo.superviseUser }}
-
-
-
-
- {{ dataInfo.checkWorkingPosition }}
+
+
+
+
+
+ {{ dataInfo.qualityUserName }}
+ {{ dataInfo.qualityUser }}
-
- {{ dataInfo.intro }}
+
+
+
+ {{ dataInfo.superviseUserName }}
+ {{ dataInfo.superviseUser }}
-
-
-
- {{ dataInfo.createBy }}
-
-
-
-
- {{ dataInfo.deptName }}
-
-
-
-
- {{ parseTime(dataInfo.checkingDate, "{y}-{m}-{d} {h}:{i}") }}
+
+
+
+ {{ dataInfo.checkWorkingPosition }}
+
+
+ {{ dataInfo.intro }}
+
+
+
+
+ {{ dataInfo.createBy }}
-
- {{ dict.label }}
+
+
+
+ {{ dataInfo.deptName }}
-
-
-
-
- 确 定
- 取 消
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ },
+};
+
diff --git a/ruoyi-ui/src/views/project/projectAuditinfo/approveMaterialSealDrawer.vue b/ruoyi-ui/src/views/project/projectAuditinfo/approveMaterialSealDrawer.vue
index bcf4ffce..658a0a12 100644
--- a/ruoyi-ui/src/views/project/projectAuditinfo/approveMaterialSealDrawer.vue
+++ b/ruoyi-ui/src/views/project/projectAuditinfo/approveMaterialSealDrawer.vue
@@ -1,223 +1,228 @@
-
-
+
+
+ {{ title + " 【处理审批】" }}
+
+
-
- {{ title + " 【处理审批】" }}
-
-
-
- {{dataInfo.projectName}}
+
+ {{ dataInfo.projectName }}
+
+
+
+
+
+ {{ dataInfo.materialName }}
+
+
+ {{ dataInfo.usePosition }}
+
+
+
+
+ {{ dataInfo.contractBrand }}
-
-
+
+
+
+ {{ dataInfo.useBrand }}
-
- {{ dataInfo.materialName }}
+
+
+
+
+
+ {{ dataInfo.createBy }}
-
- {{ dataInfo.usePosition }}
+
+
+
+ {{ dataInfo.deptName }}
-
-
-
- {{ dataInfo.contractBrand }}
-
-
-
-
- {{ dataInfo.useBrand }}
-
-
-
-
-
-
- {{ dataInfo.createBy }}
-
-
-
-
- {{ dataInfo.deptName }}
-
-
-
-
- {{ parseTime(dataInfo.sealDate, "{y}-{m}-{d} {h}:{i}") }}
-
-
- 下载会签单
-
-
- 下载变更单
-
-
- {{ dict.label }}
-
-
-
-
-
- 确 定
- 取 消
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ },
+};
+
diff --git a/ruoyi-ui/src/views/project/projectAuditinfo/approveMeasureDrawer.vue b/ruoyi-ui/src/views/project/projectAuditinfo/approveMeasureDrawer.vue
index 69b53c75..e7e7c4eb 100644
--- a/ruoyi-ui/src/views/project/projectAuditinfo/approveMeasureDrawer.vue
+++ b/ruoyi-ui/src/views/project/projectAuditinfo/approveMeasureDrawer.vue
@@ -1,224 +1,251 @@
-
-
+
+
+ {{ title + " 【处理审批】" }}
+
+
-
- {{ title + " 【处理审批】" }}
-
-
-
- {{dataInfo.projectName}}
+
+ {{ dataInfo.projectName }}
+
+
+
+
+
+
+
+
-
-
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ dataInfo.measurePosition }}
-
-
-
-
- {{ dataInfo.measurePointPosition }}
-
-
-
-
-
-
- {{ dataInfo.qualityUserName }}
- {{ dataInfo.qualityUser }}
-
-
-
-
- {{ dataInfo.superviseUserName }}
- {{ dataInfo.superviseUser }}
-
-
-
-
-
-
- {{ dataInfo.createBy }}
-
-
-
-
- {{ dataInfo.deptName }}
-
-
-
-
- {{ parseTime(dataInfo.measureTime, "{y}-{m}-{d} {h}:{i}") }}
+
+
+
+
+
+ {{ dataInfo.measurePosition }}
-
- {{ dict.label }}
+
+
+
+ {{ dataInfo.measurePointPosition }}
-
-
+
+
+
+
+
+ {{ dataInfo.qualityUserName }}
+ {{ dataInfo.qualityUser }}
-
- 确 定
- 取 消
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ handledownload(url) {
+ let fileType = url.split(".");
+ if (
+ this.fileTypes.indexOf(fileType[fileType.length - 1].toLocaleLowerCase()) > -1
+ ) {
+ window.open(process.env.VUE_APP_BASE_API + url);
+ } else {
+ this.$download.resource(url);
+ }
+ },
+ },
+};
+
diff --git a/ruoyi-ui/src/views/project/projectMeasure/index.vue b/ruoyi-ui/src/views/project/projectMeasure/index.vue
index 1cc214d4..c244e8ff 100644
--- a/ruoyi-ui/src/views/project/projectMeasure/index.vue
+++ b/ruoyi-ui/src/views/project/projectMeasure/index.vue
@@ -233,7 +233,7 @@
/>
- {{ parseTime(scope.row.measureTime, "{y}-{m}-{d} {h}:{i}") }}
+ {{ parseTime(scope.row.measureTime, "{y}-{m}-{d}") }}
@@ -285,7 +285,6 @@
-
-
- {{ dict.label }}
-
-
-
+
+