diff --git a/src/views/business/comps/select/SelectTemplate.vue b/src/views/business/comps/select/SelectTemplate.vue index 526d5dc..939a303 100644 --- a/src/views/business/comps/select/SelectTemplate.vue +++ b/src/views/business/comps/select/SelectTemplate.vue @@ -29,6 +29,10 @@ export default { type: Number, default: 0 }, + studyType: { + type: Number, + default: null + }, }, watch: { value: { @@ -57,7 +61,7 @@ export default { methods: { showSelectTemplate(){ if(!this.disabled){ - this.$refs.selectTemplateDialog.show({needPre:this.needPre}) + this.$refs.selectTemplateDialog.show({needPre:this.needPre,studyType:this.studyType}) } }, handleChange(obj) { diff --git a/src/views/business/comps/select/SelectTemplateDialog.vue b/src/views/business/comps/select/SelectTemplateDialog.vue index 751aceb..18387f2 100644 --- a/src/views/business/comps/select/SelectTemplateDialog.vue +++ b/src/views/business/comps/select/SelectTemplateDialog.vue @@ -74,6 +74,7 @@ export default { this.selectedId = row.id }, show(val) { + debugger this.searchForm=_.merge({}, this.searchForm, val) this.selectedId=null this.search() diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue index f8ac4da..9464b14 100644 --- a/src/views/business/comps/template/TemplateTable.vue +++ b/src/views/business/comps/template/TemplateTable.vue @@ -41,8 +41,11 @@ import SP017 from "./comps/sp/SWYPFXFFXYPZBB/SP017.vue"; import SP018 from "./comps/sp/SWYPFXFFXYPZBB/SP018.vue"; import Demo from "./comps/sp/Demo.vue"; //供试品 + +//试验物质配制计划表/麻精药领取申请单/毒麻药品配制记录表 import SYWZPZJHB from "./comps/gsp/SYWZPZJHB.vue"; import MJYLQSQD from "./comps/gsp/MJYLQSQD.vue"; +import DMYPPZJLB from "./comps/gsp/DMYPPZJLB.vue"; // PCR import PCR001 from "./comps/pcr/PCR001.vue"; @@ -53,8 +56,9 @@ export default { components: { Demo, SubPackageDialog, TagPrintDialog, SelectReagentDialog, SelectInstrumentDialog, SelectMixReagentDialog, EditSign, + //试验物质配制计划表/麻精药领取申请单/毒麻药品配制记录表 + MJYLQSQD, SYWZPZJHB, DMYPPZJLB, //供试品 - MJYLQSQD, SYWZPZJHB, //色谱 SP001, SP002, SP003, SP00456, SP008, SP009, SP010, SP011, SP012, SP013, SP014, SP015, SP016, SP017, SP018, // PCR diff --git a/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue b/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue new file mode 100644 index 0000000..f12a6f9 --- /dev/null +++ b/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue @@ -0,0 +1,201 @@ + + + + + {{formData.bdmc || $t('template.gsp.DMYPPZJLB.title')}} + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/business/form/drug/comp/tbbdList.vue b/src/views/business/form/drug/comp/tbbdList.vue index 739eea0..dbd6621 100644 --- a/src/views/business/form/drug/comp/tbbdList.vue +++ b/src/views/business/form/drug/comp/tbbdList.vue @@ -330,6 +330,7 @@ export default { let params = caesarCipher(JSON.stringify({ url: this.$route.fullPath, studyId: this.searchForm.studyId, + studyType: 10, formId: null })) this.$tab.openPage(this.$t('page.business.study.studyFormFill.xzbd'), '/drug/formFillBj/' + params) diff --git a/src/views/business/form/drug/comp/ytbdList.vue b/src/views/business/form/drug/comp/ytbdList.vue index aa37866..7bf6db7 100644 --- a/src/views/business/form/drug/comp/ytbdList.vue +++ b/src/views/business/form/drug/comp/ytbdList.vue @@ -291,7 +291,7 @@ export default { checkRole, copy() { this.$modal.loading() - studyFormPre_studyList().then(response => { + studyFormPre_studyList({type:10}).then(response => { this.studyList = response.data this.formXz.studyId = null this.formXz.formPreId = null @@ -303,7 +303,7 @@ export default { }) }, previewFzbd() { - this.$modal.loading() + this.$modal.loading() studyFormPre_info({ id: this.formXz.formPreId }).then(response => { this.formDatePreview = _.merge({}, response.data, { studySn: this.searchForm.studySn, @@ -402,6 +402,7 @@ export default { studySn: this.searchForm.studySn, studyMc: this.searchForm.studyMc, studyId: this.searchForm.studyId, + studyType: 10, permitForSecectUser: 'business:drugFormPre:sh' }) }, diff --git a/src/views/business/study/comp/tbbd/Bj.vue b/src/views/business/study/comp/tbbd/Bj.vue index 4c671a7..4f7e7cc 100644 --- a/src/views/business/study/comp/tbbd/Bj.vue +++ b/src/views/business/study/comp/tbbd/Bj.vue @@ -42,7 +42,7 @@ + :name="form.templateMc" :studyType="studyType" @change="selectTemplateChange" :needPre="1" /> @@ -348,7 +348,8 @@ export default { trigger: 'blur' }] }, - templateData: {} + templateData: {}, + studyType:null } }, computed: { @@ -409,6 +410,7 @@ export default { let params = null try { params = JSON.parse(caesarDecipher(this.$route.params.key)) + this.studyType = params.studyType||null } catch (e) { console.log('参数错误') } diff --git a/src/views/business/study/comp/ytbd/Bj.vue b/src/views/business/study/comp/ytbd/Bj.vue index 3752c49..d4cec22 100644 --- a/src/views/business/study/comp/ytbd/Bj.vue +++ b/src/views/business/study/comp/ytbd/Bj.vue @@ -42,7 +42,7 @@ + :name="form.templateMc" :studyType="studyType" @change="selectTemplateChange" /> @@ -185,7 +185,8 @@ export default { }] }, - templateData: {} + templateData: {}, + studyType:null } }, computed: { @@ -263,6 +264,7 @@ export default { edit(row) { this.reset() this.permitForSecectUser = row.permitForSecectUser + this.studyType = row.studyType||null if (row && row.id) { this.showIndex = 2 this.$modal.loading() @@ -311,7 +313,6 @@ export default { let content = await this.$refs.templateTable.getFormData() if (content) { this.form.bdnr = JSON.stringify(content) - debugger this.openSubmit = true } },