From 6ecd0a1ba983e6afb20ca88513ab17f9810625f8 Mon Sep 17 00:00:00 2001 From: luojie <125330818@qq.com> Date: Mon, 26 Jan 2026 11:13:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:[=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86][?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=90=88=E5=B9=B6]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/business/public/public.js | 8 ++ src/components/Template/StepFormPackage.vue | 5 + .../business/comps/template/TemplateTable.vue | 13 +- .../template/dialog/SelectInstrumentDialog.vue | 132 +++++++++++++++++++++ vue.config.js | 4 +- 5 files changed, 157 insertions(+), 5 deletions(-) create mode 100644 src/views/business/comps/template/dialog/SelectInstrumentDialog.vue diff --git a/src/api/business/public/public.js b/src/api/business/public/public.js index 629fbae..044a53f 100644 --- a/src/api/business/public/public.js +++ b/src/api/business/public/public.js @@ -75,3 +75,11 @@ export function public_bzList(query) { params: query }) } +// 仪器列表 +export function public_yqList(query) { + return request({ + url: '/system/business/public/yqList', + method: 'get', + params: query + }) +} diff --git a/src/components/Template/StepFormPackage.vue b/src/components/Template/StepFormPackage.vue index 89c456b..ce8cf5b 100644 --- a/src/components/Template/StepFormPackage.vue +++ b/src/components/Template/StepFormPackage.vue @@ -113,6 +113,11 @@ export default { studyFormId:this.templateData.id, uuid:this.uuid, }) + }else if(type === 'instrument'){ + EventBus.$emit("showSelectInstrumentDialog",{ + studyFormId:this.templateData.id, + uuid:this.uuid, + }) } }, onSelectReagentSubmit(reagent){ diff --git a/src/views/business/comps/template/TemplateTable.vue b/src/views/business/comps/template/TemplateTable.vue index 4b1c233..e32f06d 100644 --- a/src/views/business/comps/template/TemplateTable.vue +++ b/src/views/business/comps/template/TemplateTable.vue @@ -4,8 +4,8 @@ - - + + @@ -15,6 +15,8 @@ import { EventBus } from "@/utils/eventBus"; import SubPackageDialog from "./dialog/SubPackageDialog.vue";//分装弹窗 import TagPrintDialog from "./dialog/PrintTagDialog.vue";//标签打印弹窗 import SelectReagentDialog from "./dialog/SelectReagentDialog.vue";//选择试剂弹窗 +import SelectInstrumentDialog from "./dialog/SelectInstrumentDialog.vue";//选择仪器弹窗 + //色谱 import SWYPFXRYPZB from "./comps/sp/SWYPFXRYPZB.vue"; import SWYPFXCBYPZB from "./comps/sp/SWYPFXCBYPZB.vue"; @@ -42,7 +44,7 @@ import MJYLQSQD from "./comps/gsp/MJYLQSQD.vue"; export default { name: "TemplateTable", components: { - SubPackageDialog,TagPrintDialog,SelectReagentDialog, + SubPackageDialog,TagPrintDialog,SelectReagentDialog,SelectInstrumentDialog, //供试品 MJYLQSQD, SYWZPZJHB, //色谱 @@ -169,6 +171,10 @@ export default { EventBus.$on("showTagPrintDialog",(data)=>{ this.$refs.tagPrintDialogRef.show(data) }) + //选择仪器弹窗 + EventBus.$on("showSelectInstrumentDialog",(data)=>{ + this.$refs.selectInstrumentDialogRef.show(data.studyFormId,data) + }) //选择试剂弹窗 EventBus.$on("showSelectReagentDialog",(data)=>{ this.$refs.selectReagentDialogRef.show(data.studyFormId,data) @@ -180,6 +186,7 @@ export default { EventBus.$off("showSubPackageDialog"); EventBus.$off("showTagPrintDialog"); EventBus.$off("showSelectReagentDialog"); + EventBus.$off("showSelectInstrumentDialog"); }, methods: { async getFormData() { diff --git a/src/views/business/comps/template/dialog/SelectInstrumentDialog.vue b/src/views/business/comps/template/dialog/SelectInstrumentDialog.vue new file mode 100644 index 0000000..55d0112 --- /dev/null +++ b/src/views/business/comps/template/dialog/SelectInstrumentDialog.vue @@ -0,0 +1,132 @@ + + + + + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index 56dd747..bf3ddf1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -34,8 +34,8 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8080`, - // target: `http://39.99.251.173:8080`, + // target: `http://localhost:8080`, + target: `http://39.99.251.173:8080`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''