From 94bb5de951afc0d4268e51083b3fce81a7795c03 Mon Sep 17 00:00:00 2001
From: lideqin <694785430@qq.com>
Date: Wed, 13 Dec 2023 18:53:05 +0800
Subject: [PATCH] =?UTF-8?q?[update]=20=E4=BF=AE=E6=94=B9=E5=B9=B4=E5=BA=A6?=
=?UTF-8?q?=E5=88=B6=E4=BF=AE=E8=AE=A2=E8=AE=A1=E5=88=92=E4=B8=BB=E5=8A=A8?=
=?UTF-8?q?=E4=B8=8A=E6=8A=A5=E6=B5=81=E7=A8=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../RevisionPlanActivelyReportFlow.vue | 10 +++++++---
.../modules/ContactEnterSendTaskModal.vue | 9 ++-------
.../modules/ContactEnterStandardForm.vue | 5 ++++-
.../modules/OnlyTableForm.vue | 12 +++++++++---
4 files changed, 22 insertions(+), 14 deletions(-)
diff --git a/src/views/workCenter/annualRevisionPlanActivelyReport/RevisionPlanActivelyReportFlow.vue b/src/views/workCenter/annualRevisionPlanActivelyReport/RevisionPlanActivelyReportFlow.vue
index 9926f32b..8d29a945 100644
--- a/src/views/workCenter/annualRevisionPlanActivelyReport/RevisionPlanActivelyReportFlow.vue
+++ b/src/views/workCenter/annualRevisionPlanActivelyReport/RevisionPlanActivelyReportFlow.vue
@@ -322,15 +322,19 @@ export default {
this.approvalInfoForm.setFieldsValue(pick(this.model.common, 'commitText', 'commitFile'))
}
})
+ console.log('-----------currentNode----------', this.currentNode)
// 初始化业务基本信息
if (this.currentNode === 1) {
// 节点1需要回显数据
this.$refs.baseInfoFormRef.initData(this.model)
} else if (this.currentNode === 2) {
- // 节点2草稿情况下需要回显数据 todo
+ // 节点2草稿情况下需要回显数据
+ if (type === 'draft') {
+ this.$refs.baseInfoFormRef.initData(this.model)
+ }
} else if (this.currentNode === 3) {
- // 节点3草稿回显所有 todo ,待办进来回显表格数据
- this.$refs.baseInfoFormRef.initTableData(this.model)
+ // 节点3回显数据
+ this.$refs.baseInfoFormRef.initData(this.model)
} else if ([4, 5, 6, 7].includes(this.currentNode)) {
// 节点4,5,6,7回显数据
this.$refs.baseInfoFormRef.initData(this.model)
diff --git a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue
index fa4c3492..64b4a1d6 100644
--- a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue
+++ b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterSendTaskModal.vue
@@ -916,13 +916,8 @@ export default {
// 翻译项目类别
formInline.projectType_dictText = formInline.projectType === ProjectType.ENACT.value ? ProjectType.ENACT.text : ProjectType.MODIFY.text
// 设置变更状态
- if (formInline.projectType === 1) {
- // 是制定,变更状态是新增
- formInline.changeStatus_dictText = '新增'
- } else {
- // 是修订,变更状态是变更
- formInline.changeStatus_dictText = '变更'
- }
+ formInline.changeStatus = 1
+ formInline.changeStatus_dictText = '新增'
}
// 翻译隶属工作组
if (formInline.workGroup) {
diff --git a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterStandardForm.vue b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterStandardForm.vue
index 94bb3be3..264b365d 100644
--- a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterStandardForm.vue
+++ b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/ContactEnterStandardForm.vue
@@ -71,8 +71,11 @@ export default {
},
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
initData (data) {
+ console.log('&&&&&&&&&&&&7', data)
// 给表单赋值
- this.formInline = { collectUserLeader: data.dataList[0].collectUserLeader }
+ this.formInline.collectUserLeader = data.dataList[0].collectUserLeader
+ this.formInline.collectUserLeader_dictText = data.dataList[0].collectUserLeader_dictText
+ this.formInline = Object.assign({}, this.formInline)
// 给表格赋值
this.$nextTick(() => {
this.$refs.tableRef.initData(data)
diff --git a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue
index 9cc2f7eb..048a2dbf 100644
--- a/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue
+++ b/src/views/workCenter/annualRevisionPlanActivelyReport/modules/OnlyTableForm.vue
@@ -50,6 +50,14 @@
+
+
+