|
@ -182,8 +182,26 @@ const openForm = (type: string, row?: any) => { |
|
|
row['upload']= row.filePathList?.map((item: any) => { |
|
|
row['upload']= row.filePathList?.map((item: any) => { |
|
|
return {url:item} |
|
|
return {url:item} |
|
|
}) |
|
|
}) |
|
|
|
|
|
if (row.sourceType == 'QAD') { |
|
|
|
|
|
FixedAssets.allSchemas.formSchema.forEach(item => { |
|
|
|
|
|
if (item.field == 'supplierNumber') { |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
FixedAssets.allSchemas.formSchema.forEach(item => { |
|
|
|
|
|
if (item.field == 'supplierNumber') { |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
} else { |
|
|
} else { |
|
|
|
|
|
FixedAssets.allSchemas.formSchema.forEach(item => { |
|
|
|
|
|
if (item.field == 'supplierNumber') { |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|