|
@ -312,11 +312,44 @@ const getItemWithOutBind = async () => { |
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
|
const basicFormRef = ref() |
|
|
const basicFormRef = ref() |
|
|
const openForm = (type: string, row?: any) => { |
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
|
|
console.log(type,"11111"); |
|
|
|
|
|
if(type == 'update'){ |
|
|
|
|
|
ItemAccounts.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'itemNumber') { |
|
|
|
|
|
item.componentProps.isSearchList = false |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
if (item.field == 'areaNumber') { |
|
|
|
|
|
item.componentProps.isSearchList = false |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
if (item.field == 'locationNumber') { |
|
|
|
|
|
item.componentProps.isSearchList = false |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}else if(type == 'create'){ |
|
|
|
|
|
ItemAccounts.allSchemas.formSchema.forEach((item) => { |
|
|
|
|
|
if (item.field == 'itemNumber') { |
|
|
|
|
|
item.componentProps.isSearchList = true |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
if (item.field == 'areaNumber') { |
|
|
|
|
|
item.componentProps.isSearchList = true |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
if (item.field == 'locationNumber') { |
|
|
|
|
|
item.componentProps.isSearchList = true |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
if (type == 'view') { |
|
|
if (type == 'view') { |
|
|
showView.value = true |
|
|
showView.value = true |
|
|
urls.value = row.filePathList |
|
|
urls.value = row.filePathList |
|
|
viewKey.value += 1 |
|
|
viewKey.value += 1 |
|
|
} else { |
|
|
} |
|
|
|
|
|
else{ |
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|