From f6c4feb0cd840c5b8fcd01e73450fb5d37e8be9b Mon Sep 17 00:00:00 2001
From: "15881625488@163.com" <15881625488@163.com>
Date: Thu, 15 Jan 2026 16:26:51 +0800
Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A[=E8=AF=95=E9=AA=8C=E7=AE=A1?=
=?UTF-8?q?=E7=90=86]=E8=A1=A8=E5=8D=95=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/business/study/comp/jhbd/Bj.vue | 18 +++++++++++++-----
src/views/business/study/comp/sqbd/Bj.vue | 7 ++++++-
src/views/business/study/comp/tbbd/Bj.vue | 16 ++++++++++------
3 files changed, 29 insertions(+), 12 deletions(-)
diff --git a/src/views/business/study/comp/jhbd/Bj.vue b/src/views/business/study/comp/jhbd/Bj.vue
index a3143cc..5357778 100644
--- a/src/views/business/study/comp/jhbd/Bj.vue
+++ b/src/views/business/study/comp/jhbd/Bj.vue
@@ -65,7 +65,7 @@
-
+
@@ -78,7 +78,10 @@
-
+
@@ -128,12 +131,13 @@
import { studyFormPlan_bc, studyFormPlan_tj, studyFormPlan_info } from "@/api/business/study/studyFormPlan"
import { mapGetters } from 'vuex'
import SelectTemplate from "@/views/business/comps/select/SelectTemplate";
-import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
+import SelectStudyUser from '@/views/business/comps/select/SelectStudyUser';
import TemplateTable from '@/views/business/comps/template/TemplateTable';
+import { deepClone } from "@/utils/index";
export default {
name: "Bj",
- components: { SelectTemplate, SelectDeptUser, TemplateTable },
+ components: { SelectTemplate, SelectStudyUser, TemplateTable },
data() {
return {
open: false,
@@ -169,7 +173,8 @@ export default {
trigger: 'blur'
}],
- }
+ },
+ templateData: {}
}
},
computed: {
@@ -195,6 +200,7 @@ export default {
this.form.bdmc = val.name
this.form.templateMc = val.name
this.form.templateSn = val.sn
+ this.templateData = deepClone(this.form)
},
cancel() {
this.$emit('close')
@@ -227,12 +233,14 @@ export default {
this.$modal.loading()
studyFormPlan_info({ id: row.id }).then(response => {
this.form = response.data
+ this.templateData = deepClone(this.form)
this.open = true
this.$modal.closeLoading()
})
} else {
this.showIndex = 1
this.form = _.merge({}, this.form, row)
+ this.templateData = deepClone(this.form)
this.open = true
}
},
diff --git a/src/views/business/study/comp/sqbd/Bj.vue b/src/views/business/study/comp/sqbd/Bj.vue
index a672c6e..0cef5c8 100644
--- a/src/views/business/study/comp/sqbd/Bj.vue
+++ b/src/views/business/study/comp/sqbd/Bj.vue
@@ -132,6 +132,7 @@ import { mapGetters } from 'vuex'
import SelectTemplate from "@/views/business/comps/select/SelectTemplate";
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
import TemplateTable from '@/views/business/comps/template/TemplateTable';
+import { deepClone } from "@/utils/index";
export default {
name: "Bj",
@@ -176,7 +177,8 @@ export default {
trigger: 'blur'
}],
- }
+ },
+ templateData: {}
}
},
computed: {
@@ -202,6 +204,7 @@ export default {
this.form.bdnr = val.content
this.form.templateMc = val.name
this.form.templateSn = val.sn
+ this.templateData = deepClone(this.form)
},
cancel() {
this.$emit('close')
@@ -235,12 +238,14 @@ export default {
this.$modal.loading()
studyFormApply_info({ id: row.id }).then(response => {
this.form = _.merge({}, this.form, response.data)
+ this.templateData = deepClone(this.form)
this.open = true
this.$modal.closeLoading()
})
} else {
this.showIndex = 1
this.form = _.merge({}, this.form, row)
+ this.templateData = deepClone(this.form)
this.open = true
}
},
diff --git a/src/views/business/study/comp/tbbd/Bj.vue b/src/views/business/study/comp/tbbd/Bj.vue
index 4e21a40..1842ce1 100644
--- a/src/views/business/study/comp/tbbd/Bj.vue
+++ b/src/views/business/study/comp/tbbd/Bj.vue
@@ -77,7 +77,7 @@
+ :sn="form.templateSn" :templateData="templateData" fillType="actFill" />
@@ -231,6 +231,7 @@ import SelectTemplate from "@/views/business/comps/select/SelectTemplate";
import SelectDeptUser from '@/views/business/comps/select/SelectDeptUser';
import TemplateTable from '@/views/business/comps/template/TemplateTable';
import BusinessSelect from '@/views/business/comps/select/BusinessSelect';
+import { deepClone } from "@/utils/index";
export default {
name: "Bj",
@@ -286,6 +287,7 @@ export default {
trigger: 'blur'
}]
},
+ templateData: {}
}
},
computed: {
@@ -304,10 +306,10 @@ export default {
if (data.type == 'fieldChanged') {
studyFormFill_updateBdnr(
{
- id:this.form.id,
- bdnr:JSON.stringify(this.$refs.templateTable.getFilledFormData()),
- zdxgjl:JSON.stringify(data.resourceList),
- filedValue:JSON.stringify(data.newRecord)
+ id: this.form.id,
+ bdnr: JSON.stringify(this.$refs.templateTable.getFilledFormData()),
+ zdxgjl: JSON.stringify(data.resourceList),
+ filedValue: JSON.stringify(data.newRecord)
}
).then(response => {
})
@@ -348,6 +350,7 @@ export default {
studyFormFill_info({ id: formId }).then(response => {
this.form = response.data
this.form.qmyy = this.$t('page.business.study.studyFormFill.zztjyzbd')
+ this.templateData = deepClone(this.form)
this.$modal.closeLoading()
})
} else {
@@ -355,6 +358,7 @@ export default {
this.$modal.loading()
study_info({ id: studyId }).then(response => {
this.form = _.merge({}, this.form, { stydyId: studyId, resourceStudy: response.data.resource, sftb: 1 })
+ this.templateData = deepClone(this.form)
this.$modal.closeLoading()
})
}
@@ -432,7 +436,7 @@ export default {
this.showIndex = 2
this.$modal.loading()
studyFormFill_bc(this.form).then(response => {
- this.form=response.data
+ this.form = response.data
this.showIndex = 2
}).finally(() => {
this.$modal.closeLoading()