From 617a867965dcc1f9e58a35920502aff994ea8a0e Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Fri, 7 Jun 2024 21:34:18 +0800
Subject: [PATCH 1/3] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E6=9F=A5?=
=?UTF-8?q?=E7=9C=8B=E5=88=86=E6=91=8A=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/project-management/implementation/index.vue | 2 +-
src/views/project-management/implementation/share.vue | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/views/project-management/implementation/index.vue b/src/views/project-management/implementation/index.vue
index f52133f..d8e6dc4 100644
--- a/src/views/project-management/implementation/index.vue
+++ b/src/views/project-management/implementation/index.vue
@@ -360,7 +360,7 @@ const handleShare = (row) => {
router.push({
name: 'Implementation/share',
query: {
- id: row.requirementId
+ id: row.projectId
}
})
}
diff --git a/src/views/project-management/implementation/share.vue b/src/views/project-management/implementation/share.vue
index c1e1d87..8cb8763 100644
--- a/src/views/project-management/implementation/share.vue
+++ b/src/views/project-management/implementation/share.vue
@@ -10,6 +10,7 @@
From 86ff3c2e94a459190e08243c4a48d14746d0a1ce Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Sat, 8 Jun 2024 00:04:33 +0800
Subject: [PATCH 2/3] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E9=99=84?=
=?UTF-8?q?=E4=BB=B6=E6=A0=A1=E9=AA=8C=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/AttachmentUpload.vue | 6 ++---
.../DetailComponent/ApprovalDetail.vue | 8 +++++--
src/views/project-demand/summary/add.vue | 22 +++++++++----------
.../project-management/filing/conclusion.vue | 18 +++++++--------
.../implementation/check.vue | 19 ++++++++--------
.../project-management/initiation/apply.vue | 21 +++++++++---------
6 files changed, 48 insertions(+), 46 deletions(-)
diff --git a/src/components/AttachmentUpload.vue b/src/components/AttachmentUpload.vue
index e8c8533..4a36418 100644
--- a/src/components/AttachmentUpload.vue
+++ b/src/components/AttachmentUpload.vue
@@ -193,12 +193,12 @@ const deleteAttachment = (val) => {
type: 'success'
})
isSingleFile.value = false
- singleFile.value={}
+ singleFile.value=null
}
});
}
const deleteSingleFile = (row, type) => {
- ElMessageBox.confirm(`确认删除名称为${row.originalFileName}的表格吗?`, '系统提示', {
+ ElMessageBox.confirm(`确认删除名称为${row.originalFileName}的文件吗?`, '系统提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
@@ -212,7 +212,7 @@ const deleteSingleFile = (row, type) => {
if (res.code === 1000) {
isSingleFile.value=false
if (type === 1) {
- singleFile.value = {}
+ singleFile.value = null
} else {
props.otherFileList.splice(props.otherFileList.findIndex((item) => item.id === row.fileId), 1);
}
diff --git a/src/components/DetailComponent/ApprovalDetail.vue b/src/components/DetailComponent/ApprovalDetail.vue
index d5c7bdc..8d1bb39 100644
--- a/src/components/DetailComponent/ApprovalDetail.vue
+++ b/src/components/DetailComponent/ApprovalDetail.vue
@@ -22,7 +22,7 @@
@@ -67,6 +67,10 @@ const props = defineProps({
value: {
type: String,
default: ''
+ },
+ idName: {
+ type: String,
+ default: ''
}
})
const form = ref()
@@ -224,7 +228,7 @@ const handleDownload = (row) => {
})
}
watchEffect(() => {
- Object.keys(props.formData).length && (form.value.setValues(props.formData))
+ Object.keys(props.formData).length && (form.value?.setValues(props.formData))
})
watch(() => props.loading, (newVal) => {
diff --git a/src/views/project-demand/summary/add.vue b/src/views/project-demand/summary/add.vue
index 1c2eeeb..f814d0b 100644
--- a/src/views/project-demand/summary/add.vue
+++ b/src/views/project-demand/summary/add.vue
@@ -16,8 +16,8 @@
-
-
+
+
{{ formData.specialFund }}
@@ -433,14 +433,7 @@ const handleResubmit = debounce(() => {
otherFiles.push(getFileParam(item))
})
}
- let params = {
- ...formData.value,
- deploymentId: deploymentId.value,
- fileList: otherFiles,
- requirementId: route.query.id ? route.query.id : '-1'
- }
- console.log('重新提交params', params)
- if (!attachment.value.isSingleFile || !formData.value.singleFile) {
+ if (attachment.value.singleFile==null) {
attachment.value.validate()
ElNotification({
title: '提示',
@@ -448,9 +441,16 @@ const handleResubmit = debounce(() => {
type: 'error'
})
return;
- } else {
+ } else{
attachment.value.clearValidate()
}
+ let params = {
+ ...formData.value,
+ deploymentId: deploymentId.value,
+ fileList: otherFiles,
+ requirementId: route.query.id ? route.query.id : '-1'
+ }
+ console.log('重新提交params', params)
resubmitReported(params).then(res => {
ElNotification({
title: '提示',
diff --git a/src/views/project-management/filing/conclusion.vue b/src/views/project-management/filing/conclusion.vue
index ddf32f4..d779200 100644
--- a/src/views/project-management/filing/conclusion.vue
+++ b/src/views/project-management/filing/conclusion.vue
@@ -174,14 +174,7 @@ const handleResubmit = () => {
otherFiles.push(getFileParam(item))
})
}
- let params = {
- deploymentId: deploymentId.value,
- requirementId: route.query.id,
- fileList: otherFiles,
- singleFile: formData.value.singleFile,
- projectId: route.query.projectId,
- }
- if (!attachment.value.isSingleFile || !formData.value.singleFile) {
+ if (attachment.value.singleFile==null) {
attachment.value.validate()
ElNotification({
title: '提示',
@@ -189,9 +182,16 @@ const handleResubmit = () => {
type: 'error'
})
return;
- } else {
+ } else{
attachment.value.clearValidate()
}
+ let params = {
+ deploymentId: deploymentId.value,
+ requirementId: route.query.id,
+ fileList: otherFiles,
+ singleFile: attachment.value.singleFile,
+ projectId: route.query.projectId,
+ }
console.log('重新提交params', params)
resubmitConclusion(params).then(res => {
ElNotification({
diff --git a/src/views/project-management/implementation/check.vue b/src/views/project-management/implementation/check.vue
index b5f18fd..e219b9e 100644
--- a/src/views/project-management/implementation/check.vue
+++ b/src/views/project-management/implementation/check.vue
@@ -135,15 +135,7 @@ const handleResubmit = (instance) => {
otherFiles.push(getFileParam(item))
})
}
-
- let params = {
- deploymentId: deploymentId.value,
- requirementId: route.query.id,
- fileList: otherFiles,
- singleFile: formData.value.singleFile,
- projectId: route.query.projectId,
- }
- if (!attachment.value.isSingleFile || !formData.value.singleFile) {
+ if (attachment.value.singleFile==null) {
attachment.value.validate()
ElNotification({
title: '提示',
@@ -151,9 +143,16 @@ const handleResubmit = (instance) => {
type: 'error'
})
return;
- } else {
+ } else{
attachment.value.clearValidate()
}
+ let params = {
+ deploymentId: deploymentId.value,
+ requirementId: route.query.id,
+ fileList: otherFiles,
+ singleFile: attachment.value.singleFile,
+ projectId: route.query.projectId,
+ }
console.log('重新提交params', params)
resubmitCheck(params).then(res => {
ElNotification({
diff --git a/src/views/project-management/initiation/apply.vue b/src/views/project-management/initiation/apply.vue
index 1465208..eceacdb 100644
--- a/src/views/project-management/initiation/apply.vue
+++ b/src/views/project-management/initiation/apply.vue
@@ -181,16 +181,7 @@ const handleResubmit = async () => {
files.push(getFileParam(item))
})
}
-
- let params = {
- deploymentId: deploymentId.value,
- requirementId: route.query.id,
- fileList: files,
- singleFile: formData.value.singleFile,
- projectId: route.query.projectId,
- }
- console.log('params', params, attachment.value.isSingleFile)
- if (!attachment.value.isSingleFile || !formData.value.singleFile) {
+ if (attachment.value.singleFile==null) {
attachment.value.validate()
ElNotification({
title: '提示',
@@ -198,9 +189,17 @@ const handleResubmit = async () => {
type: 'error'
})
return;
- } else {
+ } else{
attachment.value.clearValidate()
}
+ let params = {
+ deploymentId: deploymentId.value,
+ requirementId: route.query.id,
+ fileList: files,
+ singleFile: attachment.value.singleFile,
+ projectId: route.query.projectId,
+ }
+ console.log('params', params, attachment.value.isSingleFile)
let res = await resubmitApply(params)
ElNotification({
title: '提示',
From 521e40cf3d04aca614cef4ed4f2cd860c38c3599 Mon Sep 17 00:00:00 2001
From: odjbin <1042039504@qq.com>
Date: Sat, 8 Jun 2024 00:05:28 +0800
Subject: [PATCH 3/3] =?UTF-8?q?feat=20:=20=E9=A1=B9=E7=9B=AE=E8=AF=A6?=
=?UTF-8?q?=E6=83=85=E4=B8=AD=E7=AB=8B=E9=A1=B9/=E7=BC=96=E8=BE=91?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2demo?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../DetailComponent/ProjectApply.vue | 239 ++++++++++++++++++
.../implementation/detail.vue | 77 ++++--
2 files changed, 291 insertions(+), 25 deletions(-)
create mode 100644 src/components/DetailComponent/ProjectApply.vue
diff --git a/src/components/DetailComponent/ProjectApply.vue b/src/components/DetailComponent/ProjectApply.vue
new file mode 100644
index 0000000..8ae2735
--- /dev/null
+++ b/src/components/DetailComponent/ProjectApply.vue
@@ -0,0 +1,239 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+ 重新提交
+
+
+
+
+
+
+
diff --git a/src/views/project-management/implementation/detail.vue b/src/views/project-management/implementation/detail.vue
index 75f517f..0c63525 100644
--- a/src/views/project-management/implementation/detail.vue
+++ b/src/views/project-management/implementation/detail.vue
@@ -11,19 +11,32 @@
v-model:value="auditOpinion"
/>
-
+
-
+ :processViewer="commonProvessViewer" :loading="loading" :fileListShow="fileListShow"
+ v-model:value="auditOpinion"/>
+
+
+
+
+
+
+
+
+
-
+