From 0ef61a1841330541035a4a60187e97b22f1a29c7 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Sat, 30 Nov 2024 09:48:11 +0800 Subject: [PATCH] =?UTF-8?q?YT-1395=E5=BA=93=E5=AD=98=E8=BD=AC=E7=A7=BB?= =?UTF-8?q?=EF=BC=8C=E7=BC=96=E8=BE=91=EF=BC=8C=E4=BB=8E=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E5=BA=94=E4=B8=8D=E8=83=BD=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../inventorymoveRequestMainMOVE/index.vue | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue index 66c9118a3..4691a4d5f 100644 --- a/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue +++ b/src/views/wms/moveManage/inventorymove/inventorymoveRequestMainMOVE/index.vue @@ -569,7 +569,24 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const formRef = ref() -const openForm =async (type: string, row?: number) => { +const openForm = async (type: string, row?: number) => { + if (type == 'create') { + InventorymoveRequestMain.allSchemas.formSchema.forEach(item=>{ + if(item.field == 'fromWarehouseCode'){ + item.componentProps.enterSearch = true + item.componentProps.isSearchList = true + item.componentProps.disabled = false + } + }) + } else { + InventorymoveRequestMain.allSchemas.formSchema.forEach(item=>{ + if(item.field == 'fromWarehouseCode'){ + item.componentProps.enterSearch = false + item.componentProps.isSearchList = false + item.componentProps.disabled = true + } + }) + } tableData.value = [] // 重置明细数据 formRef.value.open(type, row) }