From 0190c057e1d818b580ac7977b14b967fea231cd9 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期四, 27 十一月 2025 09:04:18 +0800
Subject: [PATCH] 修改新增
---
src/views/work/qualityManage/productAndServe/finalInspecte/components/editDialog.vue | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/views/work/qualityManage/productAndServe/finalInspecte/components/editDialog.vue b/src/views/work/qualityManage/productAndServe/finalInspecte/components/editDialog.vue
index 0c09e07..2222503 100644
--- a/src/views/work/qualityManage/productAndServe/finalInspecte/components/editDialog.vue
+++ b/src/views/work/qualityManage/productAndServe/finalInspecte/components/editDialog.vue
@@ -83,7 +83,8 @@
format: '',
companyId: null,
deptId:null,
- type:2
+ type:2,
+ itemId: null
},
formRules:{
companyId: [{ required: true, message: '请选择企业', trigger: 'blur' }],
@@ -105,13 +106,14 @@
});
-const openDialog = async (type, value,companyId, isAdmin, companyList) => {
+const openDialog = async (type, value,companyId, isAdmin, companyList,itemId) => {
state.isAdmin = isAdmin
if(isAdmin){
state.companyList = companyList
}
state.title = type === 'add' ? '新增' : type ==='edit' ? '编辑' : '查看'
state.form.companyId = companyId
+ state.form.itemId = itemId
if(state.title == '编辑'||state.title == '查看'){
Object.keys(state.form).forEach(key => {
if (key in value) {
@@ -125,6 +127,7 @@
}
state.fileList = [obj]
}
+ state.form.itemId = state.form.itemId == 0 ? null : state.form.itemId
}
await getDeptList()
dialogVisible.value = true
@@ -229,7 +232,8 @@
format: '',
companyId: null,
deptId:null,
- type:2
+ type:2,
+ itemId: null
}
state.fileList = []
superRef.value.clearValidate();
--
Gitblit v1.9.2