zhouwx
2025-04-18 39868da3de6192d19dfd316c8be1c080b2d3ebe7
src/views/components/flowDetail.vue
@@ -36,6 +36,7 @@
import {ElMessage} from "element-plus";
import {getAllProFlow, getFlowByCode} from "@/api/hazardousChemicals/productRecord";
import { MoreFilled } from '@element-plus/icons-vue'
import Cookies from "js-cookie";
const busRef = ref();
const length = ref()
const title = ref('')
@@ -49,17 +50,16 @@
  dataList: [],
  active: null
})
const userInfo = ref()
const openDialog = async (type, value) => {
  userInfo.value = JSON.parse(Cookies.get('userInfo'))
  title.value = type;
  if(type === 'code'){
    state.form.code = value
  }else {
    state.form = JSON.parse(JSON.stringify(value))
  }
  await getAllFlow()
}
@@ -68,11 +68,13 @@
    let param = {}
    if(title.value == 'pro'){
      param = {
        productId: state.form.id
        productId: state.form.id,
        companyId: userInfo.value.companyId
      }
    }else {
      param = {
        productId: state.form.productId
        productId: state.form.productId,
        companyId: userInfo.value.companyId
      }
    }
    const res = await getAllProFlow(param)
@@ -103,11 +105,13 @@
    let param = {}
    if(title.value == 'raw'){
      param = {
        hazmatId: state.form.id
        hazmatId: state.form.id,
        companyId: userInfo.value.companyId
      }
    }else {
      param = {
        hazmatId: state.form.hazmatId
        hazmatId: state.form.hazmatId,
        companyId: userInfo.value.companyId
      }
    }
    const res = await getAllRawFlow(param)
@@ -136,7 +140,8 @@
    }
  }else if(title.value == 'code'){
    const param = {
      code: state.form.code
      code: state.form.code,
      companyId: userInfo.value.companyId
    }
    const res = await getFlowByCode(param)
    if(res.code == 200){