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