From e6574955495c2063de3a20cf372ebb135f260753 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期三, 22 十月 2025 10:15:35 +0800
Subject: [PATCH] 修改新增

---
 src/views/build/conpanyFunctionConsult/riskManage/control/components/editDialog.vue |   23 ++++++++++-------------
 1 files changed, 10 insertions(+), 13 deletions(-)

diff --git a/src/views/build/conpanyFunctionConsult/riskManage/control/components/editDialog.vue b/src/views/build/conpanyFunctionConsult/riskManage/control/components/editDialog.vue
index c78150e..6490c3c 100644
--- a/src/views/build/conpanyFunctionConsult/riskManage/control/components/editDialog.vue
+++ b/src/views/build/conpanyFunctionConsult/riskManage/control/components/editDialog.vue
@@ -247,7 +247,7 @@
     id: '',
     companyId: null,
     deptId: null,
-    year: '',
+    year: '2025',
     fictionId: null,
     checkId: null,
     ratifyId: null,
@@ -316,6 +316,7 @@
     state.form.companyName = value.companyName
     state.companyList = companyList
   }
+  state.form.year = new Date().getFullYear().toString()
   title.value = type === 'add' ? '新增' : type ==='edit' ? '编辑' : '查看' ;
   if(type === 'edit' || type === 'review') {
     state.form = JSON.parse(JSON.stringify(value));
@@ -391,18 +392,14 @@
 const reset = () => {
   state.form = {
     id: '',
-    qualityId: '',
-
-    fictionId : '',
-    fictionName: '',
-    fictionTime:'',
-    checkId :'',
-    checkName: '',
-    checkTime:'',
-    ratifyId:'',
-    ratifyName: '',
-    ratifyTime: '',
-    riskContents:[],
+    companyId: null,
+    deptId: null,
+    year: '2025',
+    fictionId: null,
+    checkId: null,
+    ratifyId: null,
+    document: null,
+    riskContents: []
   }
   state.peopleList = []
   state.companyList = []

--
Gitblit v1.9.2