From 817f8b5f25e08499e7e90b38c002e74131d57c17 Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期五, 18 四月 2025 14:30:12 +0800
Subject: [PATCH] 修改

---
 src/views/components/flowDetail.vue |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/src/views/components/flowDetail.vue b/src/views/components/flowDetail.vue
index 00b2bce..d282b00 100644
--- a/src/views/components/flowDetail.vue
+++ b/src/views/components/flowDetail.vue
@@ -44,14 +44,16 @@
     id: '',
     name: '',
     productSn: '',
-    code: ''
+    code: '',
+    companyId: null
   },
   dataList: [],
   active: null
 })
 
 
-const openDialog = async (type, value) => {
+const openDialog = async (type, value,companyId) => {
+
   title.value = type;
   if(type === 'code'){
     state.form.code = value
@@ -59,7 +61,7 @@
 
     state.form = JSON.parse(JSON.stringify(value))
   }
-
+  state.form.companyId = companyId
   await getAllFlow()
 }
 
@@ -68,11 +70,13 @@
     let param = {}
     if(title.value == 'pro'){
       param = {
-        productId: state.form.id
+        productId: state.form.id,
+        companyId: state.form.companyId
       }
     }else {
       param = {
-        productId: state.form.productId
+        productId: state.form.productId,
+        companyId: state.form.companyId
       }
     }
     const res = await getAllProFlow(param)
@@ -103,11 +107,13 @@
     let param = {}
     if(title.value == 'raw'){
       param = {
-        hazmatId: state.form.id
+        hazmatId: state.form.id,
+        companyId: state.form.companyId
       }
     }else {
       param = {
-        hazmatId: state.form.hazmatId
+        hazmatId: state.form.hazmatId,
+        companyId: state.form.companyId
       }
     }
     const res = await getAllRawFlow(param)
@@ -136,7 +142,8 @@
     }
   }else if(title.value == 'code'){
     const param = {
-      code: state.form.code
+      code: state.form.code,
+      companyId: state.form.companyId
     }
     const res = await getFlowByCode(param)
     if(res.code == 200){

--
Gitblit v1.9.2