From e7c425f62f45d2081d6bd289d3a4bd60ac6e1da5 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Thu, 5 Feb 2026 19:44:08 +0800 Subject: [PATCH 1/9] =?UTF-8?q?fix:[=E9=BA=BB=E7=B2=BE=E8=8D=AF=E8=A1=A8?= =?UTF-8?q?=E5=8D=95]=E6=96=B0=E5=A2=9E=E9=A2=84=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/business/comps/select/SelectTemplate.vue | 6 +- .../business/comps/select/SelectTemplateDialog.vue | 1 + .../business/comps/template/TemplateTable.vue | 6 +- .../comps/template/comps/gsp/DMYPPZJLB.vue | 201 +++++++++++++++++++++ src/views/business/form/drug/comp/tbbdList.vue | 1 + src/views/business/form/drug/comp/ytbdList.vue | 5 +- src/views/business/study/comp/tbbd/Bj.vue | 6 +- src/views/business/study/comp/ytbd/Bj.vue | 7 +- 8 files changed, 224 insertions(+), 9 deletions(-) create mode 100644 src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue 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 @@ + + + + + \ 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 } }, From a900a9f339273364ba6f2044ef71d1103d3c5894 Mon Sep 17 00:00:00 2001 From: "15881625488@163.com" <15881625488@163.com> Date: Thu, 5 Feb 2026 20:00:46 +0800 Subject: [PATCH 2/9] =?UTF-8?q?fix:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86]?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lang/en/template/gsp.js | 4 + src/lang/zh/template/gsp.js | 6 +- .../business/comps/template/TemplateTable.vue | 2 + .../comps/template/comps/gsp/DMYPPZJLB.vue | 319 +++++++++++++++------ src/views/business/form/drug/comp/tbbdList.vue | 2 +- src/views/business/form/drug/comp/ytbdList.vue | 4 +- 6 files changed, 239 insertions(+), 98 deletions(-) diff --git a/src/lang/en/template/gsp.js b/src/lang/en/template/gsp.js index 56bb167..85e0514 100644 --- a/src/lang/en/template/gsp.js +++ b/src/lang/en/template/gsp.js @@ -30,5 +30,9 @@ export default { dwpjtz:'Average Body Weight', dwsl:'Number', }, + // 毒麻药品配制记录表 + DMYPPZJLB:{ + title: '毒麻药品配制记录表', + } } diff --git a/src/lang/zh/template/gsp.js b/src/lang/zh/template/gsp.js index c6c842c..ee57399 100644 --- a/src/lang/zh/template/gsp.js +++ b/src/lang/zh/template/gsp.js @@ -30,5 +30,9 @@ export default { dwpjtz:'动物平均体重', dwsl:'动物数量', }, - + // 毒麻药品配制记录表 + DMYPPZJLB:{ + title: '毒麻药品配制记录表', + + } } diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue index 9464b14..0587d82 100644 --- a/src/views/business/comps/template/TemplateTable.vue +++ b/src/views/business/comps/template/TemplateTable.vue @@ -106,8 +106,10 @@ export default { 'SP017': 'SP017', 'SP018': 'SP018', //供试品 + //试验物质配制计划表/麻精药领取申请单/毒麻药品配制记录表 'SYWZPZJHB': 'SYWZPZJHB', 'MJYLQSQD': 'MJYLQSQD', + 'DMYPPZJLB': 'DMYPPZJLB', //PCR 'PCR001': 'PCR001', 'PCR002': 'PCR002' diff --git a/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue b/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue index f12a6f9..8db541d 100644 --- a/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue +++ b/src/views/business/comps/template/comps/gsp/DMYPPZJLB.vue @@ -2,66 +2,75 @@ @@ -198,4 +326,7 @@ export default { margin-top: 20px; } +.print-btn { + margin-bottom: 20px; +} \ 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 dbd6621..4b9431d 100644 --- a/src/views/business/form/drug/comp/tbbdList.vue +++ b/src/views/business/form/drug/comp/tbbdList.vue @@ -110,7 +110,7 @@ @click="edit(scope.row)" v-hasPermi="['business:drugFormFill:bj']">{{ $t('form.edit') }} - {{ $t('page.business.study.studyFormFill.fh') }} diff --git a/src/views/business/form/drug/comp/ytbdList.vue b/src/views/business/form/drug/comp/ytbdList.vue index 7bf6db7..35502a5 100644 --- a/src/views/business/form/drug/comp/ytbdList.vue +++ b/src/views/business/form/drug/comp/ytbdList.vue @@ -96,13 +96,13 @@