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]: ''