|
|
|
@ -189,8 +189,7 @@ |
|
|
|
<script> |
|
|
|
import { checkPermi, checkRole } from "@/utils/permission"; |
|
|
|
import { drug_checkSd, drug_sd } from "@/api/business/form/drug" |
|
|
|
import { studyFormPre_list, studyFormPre_info } from '@/api/business/study/studyFormPre' |
|
|
|
import { public_studyList, public_studyFormPreList } from '@/api/business/public/public' |
|
|
|
import { studyFormPre_list, studyFormPre_info,studyFormPre_studyList, studyFormPre_studyFormPreList } from '@/api/business/study/studyFormPre' |
|
|
|
import TemplateTable from '@/views/business/comps/template/TemplateTable'; |
|
|
|
import Bj from "@/views/business/study/comp/ytbd/Bj"; |
|
|
|
import Xq from "@/views/business/study/comp/ytbd/Xq"; |
|
|
|
@ -292,7 +291,7 @@ export default { |
|
|
|
checkRole, |
|
|
|
copy() { |
|
|
|
this.$modal.loading() |
|
|
|
public_studyList().then(response => { |
|
|
|
studyFormPre_studyList().then(response => { |
|
|
|
this.studyList = response.data |
|
|
|
this.formXz.studyId = null |
|
|
|
this.formXz.formPreId = null |
|
|
|
@ -324,14 +323,16 @@ export default { |
|
|
|
this.showEdit = true |
|
|
|
this.$emit('showDetail', this.showEdit) |
|
|
|
this.$refs.Bj.edit({ |
|
|
|
studySn: this.searchForm.studySn, |
|
|
|
studyMc: this.searchForm.studyMc, |
|
|
|
studyId: this.searchForm.studyId, |
|
|
|
templateId: tmp.templateId, |
|
|
|
templateMc: tmp.templateMc, |
|
|
|
templateMcEn: tmp.templateMcEn, |
|
|
|
templateShowSn: tmp.templateShowSn, |
|
|
|
templateSn: tmp.templateSn, |
|
|
|
bdmc: tmp.bdmc, |
|
|
|
bdnr: tmp.bdnr, |
|
|
|
studySn: this.searchForm.studySn, |
|
|
|
studyMc: this.searchForm.studyMc, |
|
|
|
studyId: this.searchForm.studyId, |
|
|
|
permitForSecectUser: 'business:drugFormPre:sh' |
|
|
|
}) |
|
|
|
}).finally(() => { |
|
|
|
@ -343,7 +344,7 @@ export default { |
|
|
|
}, |
|
|
|
studyChange() { |
|
|
|
this.$modal.loading() |
|
|
|
public_studyFormPreList({ studyId: this.formXz.studyId }).then(response => { |
|
|
|
studyFormPre_studyFormPreList({ studyId: this.formXz.studyId }).then(response => { |
|
|
|
this.formXz.formPre = null |
|
|
|
this.formPreList = response.data |
|
|
|
this.$modal.closeLoading() |
|
|
|
|