diff --git a/src/views/wms/basicDataManage/strategySetting/spareitemLocation/index.vue b/src/views/wms/basicDataManage/strategySetting/spareitemLocation/index.vue index e7ac96dcd..1b2074885 100644 --- a/src/views/wms/basicDataManage/strategySetting/spareitemLocation/index.vue +++ b/src/views/wms/basicDataManage/strategySetting/spareitemLocation/index.vue @@ -174,6 +174,13 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { + SpareitemLocation.allSchemas.formSchema.forEach(item=>{ + if(item.field == 'itemCode'){ + item.componentProps.enterSearch = type=='create' + item.componentProps.isSearchList = type=='create' + item.componentProps.disabled = type!='create' + } + }) basicFormRef.value.open(type, row) }