diff --git a/src/pages/toDoCenter/components/auditDialog.vue b/src/pages/toDoCenter/components/auditDialog.vue
index cbcd836..82d97f7 100644
--- a/src/pages/toDoCenter/components/auditDialog.vue
+++ b/src/pages/toDoCenter/components/auditDialog.vue
@@ -9,9 +9,10 @@ import {
changFilesParam,
handleFilePreview
} from '@/utils/uploadAction.js'
-import { getConstructionSuggestions, handler } from '@/http/apis/toDoCenter/todoList'
+import { getConstructionSuggestions, handler, saveOpinions } from '@/http/apis/toDoCenter/todoList'
import store from '@/store'
import { useRoute, useRouter } from 'vue-router'
+
const route = useRoute(),
router = useRouter(),
{ proxy } = getCurrentInstance(),
@@ -80,10 +81,6 @@ const route = useRoute(),
attachments: form.value.attachments.map((i) => ({
fileId: i.response.data.id,
fileName: i.response.data.originalFileName
- })),
- opinions: form.value.opinions.map((i) => ({
- fileId: i.response.data.id,
- fileName: i.response.data.originalFileName
}))
}
}
@@ -96,6 +93,20 @@ const route = useRoute(),
proposeAttachFiles: form.value.proposeAttachFiles && JSON.stringify(changFilesParam(form.value.proposeAttachFiles))
})
}
+ if (form.value.opinions && form.value.opinions.length > 0) {
+ try {
+ await saveOpinions({
+ projectId: route.query.projectId,
+ opinions: form.value.opinions.map((i) => ({
+ fileId: i.response.data.id,
+ fileName: i.response.data.originalFileName
+ }))
+ })
+ } catch (e) {
+ console.log(e)
+ }
+ }
+
const res = await handler(postData)
if (res.data === 'TASKID_ERROR') {
proxy.$message.warning('当前审批任务有变动,请返回待我处理列表!')
@@ -234,30 +245,30 @@ watch(
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 上传附件
+
+ 支持{{ fileDesc }}文件
+
+
+
+
{
@@ -103,7 +104,7 @@ const
{{ list.finishTime }}