祖安之光
2025-11-24 b231c463d1e14020fae1f5303dd93c2f49c85cdc
src/views/work/sealManagement/apply/components/editDialog.vue
@@ -102,7 +102,7 @@
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="24">
        <el-row :gutter="24" v-if="title == '查看'">
          <el-col :span="24" style="margin-left: 50px">
            <span style="font-size: 19px;font-weight: 600;">签字意见</span>
            <el-table :data="state.form.flows" :border="true" style="width: 90%;margin-top: 10px">
@@ -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){