From bd1769d6a3274692f8131334190b32a593d4413b Mon Sep 17 00:00:00 2001 From: chenfang Date: Fri, 15 Mar 2024 11:00:27 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E5=BA=93=E5=8C=BA=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE=E9=99=90=E5=88=B6?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basicDataManage/itemManage/itemarea/index.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/views/wms/basicDataManage/itemManage/itemarea/index.vue b/src/views/wms/basicDataManage/itemManage/itemarea/index.vue index f932f89c5..1369f6e85 100644 --- a/src/views/wms/basicDataManage/itemManage/itemarea/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itemarea/index.vue @@ -216,6 +216,19 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const formRef = ref() const openForm =async (type: string, row?: number) => { + if(type == "update"){ + Itemarea.allSchemas.formSchema.forEach((item) => { + if (item.field == 'areaCode') { + item.componentProps.isSearchList = false, + item.componentProps.disabled = true + }}) + }else { + Itemarea.allSchemas.formSchema.forEach((item) => { + if (item.field == 'areaCode') { + item.componentProps.isSearchList = true + } + }) + } tableData.value = [] // 重置明细数据 formRef.value.open(type, row) }