|
|
@ -80,7 +80,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
<div class="content" v-if="showIndex == 2"> |
|
|
<div class="content" v-if="showIndex == 2"> |
|
|
<TemplateTable emitName="onFillCallback" @onFillCallback="onFillCallback" ref="templateTable" |
|
|
<TemplateTable emitName="onFillCallback" @onFillCallback="onFillCallback" ref="templateTable" |
|
|
:sn="form.templateSn" :templateData="templateData" fillType="actFill" /> |
|
|
|
|
|
|
|
|
:sn="templateData.templateSn" :templateData="templateData" fillType="actFill" /> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -588,12 +588,7 @@ export default { |
|
|
if (params) { |
|
|
if (params) { |
|
|
this.reset() |
|
|
this.reset() |
|
|
if (params.formId && params.formId != '') { |
|
|
if (params.formId && params.formId != '') { |
|
|
if (params.fromYt) { |
|
|
|
|
|
this.showIndex = 1 |
|
|
|
|
|
this.bdmbTitle = this.$t('page.business.study.studyFormFill.ytbd') |
|
|
|
|
|
} else { |
|
|
|
|
|
this.showIndex = 2 |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.$modal.loading() |
|
|
this.$modal.loading() |
|
|
studyFormFill_info({ id: params.formId }).then(response => { |
|
|
studyFormFill_info({ id: params.formId }).then(response => { |
|
|
this.form = response.data |
|
|
this.form = response.data |
|
|
@ -601,6 +596,12 @@ export default { |
|
|
this.templateData = deepClone(this.form) |
|
|
this.templateData = deepClone(this.form) |
|
|
const obj = Object.assign({}, this.$route, { title: this.form.bdmc }) |
|
|
const obj = Object.assign({}, this.$route, { title: this.form.bdmc }) |
|
|
this.$tab.updatePage(obj); |
|
|
this.$tab.updatePage(obj); |
|
|
|
|
|
if (params.fromYt) { |
|
|
|
|
|
this.showIndex = 1 |
|
|
|
|
|
this.bdmbTitle = this.$t('page.business.study.studyFormFill.ytbd') |
|
|
|
|
|
} else { |
|
|
|
|
|
this.showIndex = 2 |
|
|
|
|
|
} |
|
|
this.saveSimpleLog({ jcmc: '填报表单编辑', jcmcEn: 'Record Edit', name: this.form.bdmc + '(' + this.form.bdbh + ')', nameEn: this.form.bdmc + '(' + this.form.bdbh + ')' }) |
|
|
this.saveSimpleLog({ jcmc: '填报表单编辑', jcmcEn: 'Record Edit', name: this.form.bdmc + '(' + this.form.bdbh + ')', nameEn: this.form.bdmc + '(' + this.form.bdbh + ')' }) |
|
|
this.$modal.closeLoading() |
|
|
this.$modal.closeLoading() |
|
|
}) |
|
|
}) |
|
|
|