|
@ -174,6 +174,13 @@ const buttonTableClick = async (val, row) => { |
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
|
const basicFormRef = ref() |
|
|
const basicFormRef = ref() |
|
|
const openForm = (type: string, row?: any) => { |
|
|
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) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|