|
|
|
@ -41,15 +41,15 @@ |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('page.business.form.bdmb')" prop="templateId"> |
|
|
|
<SelectTemplate v-model="form.templateId" :disabled="form.id&&form.id!==''" :needPre="10" :name="form.templateMc" |
|
|
|
@change="selectTemplateChange" /> |
|
|
|
<SelectTemplate v-model="form.templateId" :disabled="form.id && form.id !== ''" :needPre="10" |
|
|
|
:name="form.templateMc" @change="selectTemplateChange" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="24"> |
|
|
|
<el-form-item :label="$t('page.business.form.bdmc')" prop="bdmc"> |
|
|
|
<el-input type="text" v-model="form.bdmc" maxlength="50" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
<el-input type="text" v-model="form.bdmc" maxlength="50" :placeholder="$t('form.placeholderInput')" /> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
@ -187,8 +187,8 @@ export default { |
|
|
|
created() { |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
pre(){ |
|
|
|
this.showIndex = 1 |
|
|
|
pre() { |
|
|
|
this.showIndex = 1 |
|
|
|
}, |
|
|
|
next() { |
|
|
|
this.$refs["form"].validate(valid => { |
|
|
|
@ -261,18 +261,22 @@ export default { |
|
|
|
}, |
|
|
|
async saveNext() { |
|
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
|
this.form.bdnr = JSON.stringify(content) |
|
|
|
this.$modal.loading() |
|
|
|
studyFormPre_bc(this.form).then(response => { |
|
|
|
this.$emit('close') |
|
|
|
this.$modal.closeLoading() |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
if (content) { |
|
|
|
this.form.bdnr = JSON.stringify(content) |
|
|
|
this.$modal.loading() |
|
|
|
studyFormPre_bc(this.form).then(response => { |
|
|
|
this.$emit('close') |
|
|
|
this.$modal.closeLoading() |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
}, |
|
|
|
async showtj() { |
|
|
|
await this.$refs.templateTable.getFormData() |
|
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
|
if (content) { |
|
|
|
this.openSubmit = true |
|
|
|
} |
|
|
|
}, |
|
|
|
tj() { |
|
|
|
this.$refs["formSubmit"].validate(valid => { |
|
|
|
@ -283,15 +287,17 @@ export default { |
|
|
|
}, |
|
|
|
async dotj() { |
|
|
|
let content = await this.$refs.templateTable.getFormData() |
|
|
|
this.form.bdnr = JSON.stringify(content) |
|
|
|
this.$modal.loading() |
|
|
|
studyFormPre_tj(this.form).then(response => { |
|
|
|
this.$emit('close') |
|
|
|
this.openSubmit = false |
|
|
|
this.$modal.closeLoading() |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
if (content) { |
|
|
|
this.form.bdnr = JSON.stringify(content) |
|
|
|
this.$modal.loading() |
|
|
|
studyFormPre_tj(this.form).then(response => { |
|
|
|
this.$emit('close') |
|
|
|
this.openSubmit = false |
|
|
|
this.$modal.closeLoading() |
|
|
|
}).finally(() => { |
|
|
|
this.$modal.closeLoading() |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|