diff --git a/src/views/business/form/drug/comp/ytbdList.vue b/src/views/business/form/drug/comp/ytbdList.vue
index a197cd7..b50978a 100644
--- a/src/views/business/form/drug/comp/ytbdList.vue
+++ b/src/views/business/form/drug/comp/ytbdList.vue
@@ -159,7 +159,7 @@
-
+
@@ -178,7 +178,7 @@
-
+
@@ -236,7 +236,7 @@ export default {
return {
formCount: 0,
formFinishCount: 0,
- formPreview: {
+ formDatePreview: {
templateSn: null
},
openPreview: false,
@@ -303,12 +303,17 @@ export default {
})
},
previewFzbd() {
- let that = this
- let _index = _.findIndex(this.formPreList, function (item) {
- return item.id = that.formXz.formPreId
+ this.$modal.loading()
+ studyFormPre_info({ id: this.formXz.formPreId }).then(response => {
+ this.formDatePreview = _.merge({}, response.data, {
+ studySn: this.searchForm.studySn,
+ studyMc: this.searchForm.studyMc,
+ studyId: this.searchForm.studyId,
+ })
+ this.openPreview = true
+ }).finally(() => {
+ this.$modal.closeLoading()
})
- this.formPreview.templateSn = that.formPreList[_index].templateSn
- this.openPreview = true
},
saveCopy() {
let that = this
diff --git a/src/views/business/form/nonTrial/comp/ytbdList.vue b/src/views/business/form/nonTrial/comp/ytbdList.vue
index 37cdc0f..7d83c55 100644
--- a/src/views/business/form/nonTrial/comp/ytbdList.vue
+++ b/src/views/business/form/nonTrial/comp/ytbdList.vue
@@ -160,7 +160,7 @@
-
+
@@ -179,7 +179,7 @@
-
+
@@ -237,7 +237,7 @@ export default {
return {
formCount: 0,
formFinishCount: 0,
- formPreview: {
+ formDatePreview: {
templateSn: null
},
openPreview: false,
@@ -304,12 +304,17 @@ export default {
})
},
previewFzbd() {
- let that = this
- let _index = _.findIndex(this.formPreList, function (item) {
- return item.id = that.formXz.formPreId
+ this.$modal.loading()
+ studyFormPre_info({ id: this.formXz.formPreId }).then(response => {
+ this.formDatePreview = _.merge({}, response.data, {
+ studySn: this.searchForm.studySn,
+ studyMc: this.searchForm.studyMc,
+ studyId: this.searchForm.studyId,
+ })
+ this.openPreview = true
+ }).finally(() => {
+ this.$modal.closeLoading()
})
- this.formPreview.templateSn = that.formPreList[_index].templateSn
- this.openPreview = true
},
saveCopy() {
let that = this
diff --git a/src/views/business/study/comp/ytbdList.vue b/src/views/business/study/comp/ytbdList.vue
index d3470bb..7380427 100644
--- a/src/views/business/study/comp/ytbdList.vue
+++ b/src/views/business/study/comp/ytbdList.vue
@@ -160,7 +160,7 @@
-
+