From dc0308d8f66c34cdf90f926af1455f865285b0e5 Mon Sep 17 00:00:00 2001
From: 祖安之光 <11848914+light-of-zuan@user.noreply.gitee.com>
Date: 星期四, 27 十一月 2025 09:00:29 +0800
Subject: [PATCH] 修改新增
---
src/views/work/qualityManage/productAndServe/finalInspecte/components/editDialog.vue | 9 ++++++---
1 files changed, 6 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..d7eb270 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) {
@@ -229,7 +231,8 @@
format: '',
companyId: null,
deptId:null,
- type:2
+ type:2,
+ itemId: null
}
state.fileList = []
superRef.value.clearValidate();
--
Gitblit v1.9.2