zhouwx
2025-11-13 019ca95f9f4191a2b3b34f9035c784a8b439ad7e
src/views/work/sealManagement/apply/components/editDialog.vue
@@ -197,6 +197,7 @@
})
const openDialog = async (type, value,companyList) => {
  title.value = type === 'add' ? '新增' : type ==='edit' ? '编辑' : '查看' ;
  const userInfo = JSON.parse(Cookies.get('userInfo'))
  state.isAdmin = userInfo.userType === 0;
  state.form.companyName = userInfo.companyName
@@ -221,6 +222,11 @@
      status: null
    }
    state.form.flows[0]=obj
    if(!state.form.applyDeptId){
      ElMessage.warning('该用户无所属部门!')
      return
    }
    //部门负责人信息
    await getLeaderInfo()
    await getFlowList()
@@ -229,7 +235,7 @@
    state.companyList = companyList
    state.form.companyId = null
  }
  title.value = type === 'add' ? '新增' : type ==='edit' ? '编辑' : '查看' ;
  if(type === 'edit' || type === 'review') {
    state.form = JSON.parse(JSON.stringify(value));
    state.form.compilationBy = state.form.compilationId
@@ -294,10 +300,12 @@
    pageSize: 999,
    companyId: state.form.companyId
  }
  const res = await getSealFlow(param)
  if(res.code === 200){
    res.data.forEach(item => {
      item.approveDeptName = item.deptName
      item.approveDeptId = item.deptId
    })
    if(title.value == '新增'){
      state.form.flows = state.form.flows.concat(res.data)
@@ -314,7 +322,6 @@
    if(title.value === '新增'){
      console.log('sta',state.form)
      state.form.flows[0].approveTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
      debugger
      const {id, ...data} = JSON.parse(JSON.stringify(state.form))
      const res = await addSealApply(data)
      if(res.code === 200){