From 7caa0bd6bb6969345767f3a63f0e383cce4dbb64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Tue, 30 Jan 2024 10:20:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E6=96=99=20=E4=B8=BB=E8=A1=A8?= =?UTF-8?q?=E7=BC=96=E8=BE=91=20=E7=A6=81=E6=AD=A2=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E8=BD=A6=E9=97=B4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../issue/issueRequestMain/index.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/views/wms/issueManage/issue/issueRequestMain/index.vue b/src/views/wms/issueManage/issue/issueRequestMain/index.vue index c6f905108..6297e41f9 100644 --- a/src/views/wms/issueManage/issue/issueRequestMain/index.vue +++ b/src/views/wms/issueManage/issue/issueRequestMain/index.vue @@ -286,6 +286,24 @@ const buttonTableClick = async (val, row) => { const formRef = ref() const openForm =async (type: string, row?: number) => { tableData.value = [] // 重置明细数据 + // 编辑时 车间代码不可修改 + if (type == 'update') { + // 修改 tableform 属性 + IssueRequestMain.allSchemas.formSchema.map(itemColumns => { + if(itemColumns.field == 'workshopCode') { + itemColumns.componentProps.isSearchList = false + itemColumns.componentProps.disabled = true + } + }) + } else { + // 修改 tableform 属性 + IssueRequestMain.allSchemas.formSchema.map(itemColumns => { + if(itemColumns.field == 'workshopCode') { + itemColumns.componentProps.isSearchList = true + itemColumns.componentProps.disabled = false + } + }) + } formRef.value.open(type, row) }