From 019ca95f9f4191a2b3b34f9035c784a8b439ad7e Mon Sep 17 00:00:00 2001
From: zhouwx <1175765986@qq.com>
Date: 星期四, 13 十一月 2025 14:13:15 +0800
Subject: [PATCH] 修改
---
src/views/work/sealManagement/apply/components/editDialog.vue | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/views/work/sealManagement/apply/components/editDialog.vue b/src/views/work/sealManagement/apply/components/editDialog.vue
index 4d92244..eb678f2 100644
--- a/src/views/work/sealManagement/apply/components/editDialog.vue
+++ b/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){
--
Gitblit v1.9.2