Browse Source

fix:[模板管理]优化

ouqian
15881625488@163.com 1 month ago
parent
commit
bb95b8009c
1 changed files with 12 additions and 6 deletions
  1. +12
    -6
      src/views/business/study/comp/tbbd/Bj.vue

+ 12
- 6
src/views/business/study/comp/tbbd/Bj.vue View File

@ -509,6 +509,7 @@ export default {
id: null, id: null,
qmyy: this.$t('page.business.study.studyFormFill.txbtjjl'), qmyy: this.$t('page.business.study.studyFormFill.txbtjjl'),
remark: '', remark: '',
bdnr: '',
qmrmm: '', qmrmm: '',
}, },
resourceYj: [], resourceYj: [],
@ -782,17 +783,22 @@ export default {
that.$modal.msgError("没有可存储的药剂") that.$modal.msgError("没有可存储的药剂")
} }
}, },
showTjsh() {
async showTjsh(qmyy) {
let that = this 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 let that = this
this.$refs["formTjsh"].validate(valid => { this.$refs["formTjsh"].validate(valid => {
if (valid) { if (valid) {
this.formTjsh.bdnr = JSON.stringify(this.$refs.templateTable.getFilledFormData())
that.$modal.loading() that.$modal.loading()
studyFormFill_tjblxjsh(that.formTjsh).then(response => { studyFormFill_tjblxjsh(that.formTjsh).then(response => {
that.openTjsh = false that.openTjsh = false

Loading…
Cancel
Save