diff --git a/src/views/business/study/comp/tbbd/Bj.vue b/src/views/business/study/comp/tbbd/Bj.vue index 7f55052..d8628f4 100644 --- a/src/views/business/study/comp/tbbd/Bj.vue +++ b/src/views/business/study/comp/tbbd/Bj.vue @@ -509,6 +509,7 @@ export default { id: null, qmyy: this.$t('page.business.study.studyFormFill.txbtjjl'), remark: '', + bdnr: '', qmrmm: '', }, resourceYj: [], @@ -782,17 +783,22 @@ export default { that.$modal.msgError("没有可存储的药剂") } }, - showTjsh() { + async showTjsh(qmyy) { let that = this - that.formTjsh.id = that.form.id - that.formTjsh.remark = '' - that.formTjsh.qmrmm = '' - that.openTjsh = true + let content = await this.$refs.templateTable.getFormData() + if (content) { + that.formTjsh.id = that.form.id + that.formTjsh.remark = '' + that.formTjsh.qmrmm = '' + that.formTjsh.bdnr = '' + that.openTjsh = true + } }, - saveTjsh() { + async saveTjsh() { let that = this this.$refs["formTjsh"].validate(valid => { if (valid) { + this.formTjsh.bdnr = JSON.stringify(this.$refs.templateTable.getFilledFormData()) that.$modal.loading() studyFormFill_tjblxjsh(that.formTjsh).then(response => { that.openTjsh = false