|
|
|
@ -159,7 +159,7 @@ |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('page.business.study.studyFormPre.fzbd')" prop="formPreId"> |
|
|
|
<el-select v-model="formXz.formPreId" :placeholder="$t('form.placeholderSelect')"> |
|
|
|
<el-option :label="item.bdbh" :value="item.id" v-for="(item, index) in formPreList" :key="index" /> |
|
|
|
<el-option :label="item.bdmc" :value="item.id" v-for="(item, index) in formPreList" :key="index" /> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
@ -178,7 +178,7 @@ |
|
|
|
|
|
|
|
<el-dialog :title="$t('page.business.study.studyFormPre.yulan')" :visible.sync="openPreview" width="80%" |
|
|
|
append-to-body :close-on-click-modal="false"> |
|
|
|
<TemplateTable ref="templateTable" :sn="formPreview.templateSn" fillType="preFill" /> |
|
|
|
<TemplateTable ref="templateTable" :sn="formDatePreview.templateSn" v-if="openPreview" :templateData="formDatePreview" fillType="detail" /> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<Sign ref="fsySignRef" @callback="doSign" /> |
|
|
|
@ -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 |
|
|
|
|