From 27443c77cec9bf10bb36c64bbd82531cd80259e2 Mon Sep 17 00:00:00 2001 From: chenfang Date: Tue, 2 Jul 2024 09:55:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E4=BB=93=E5=BA=93=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=BF=AE=E6=94=B9=E9=99=90=E5=88=B6=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itemManage/itemwarehouse/index.vue | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/views/wms/basicDataManage/itemManage/itemwarehouse/index.vue b/src/views/wms/basicDataManage/itemManage/itemwarehouse/index.vue index 72a299855..6ec0e6347 100644 --- a/src/views/wms/basicDataManage/itemManage/itemwarehouse/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itemwarehouse/index.vue @@ -149,6 +149,29 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + if(type == "update"){ + Itemwarehouse.allSchemas.formSchema.forEach((item) => { + if (item.field == 'itemCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + if (item.field == 'warehouseCode') { + item.componentProps.disabled = true + item.componentProps.isSearchList = false + } + }) + }else { + Itemwarehouse.allSchemas.formSchema.forEach((item) => { + if (item.field == 'itemCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + if (item.field == 'warehouseCode') { + item.componentProps.disabled = false + item.componentProps.isSearchList = true + } + }) + } basicFormRef.value.open(type, row) }