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) }