|
|
@ -405,7 +405,8 @@ const openForm = async (type: string, row?: number) => { |
|
|
|
if(type == 'create'){ |
|
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'supplierCode') { |
|
|
|
item.componentProps.disabled = false |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
if(item.field == 'purchaseReceiptRecordNumber'){ |
|
|
|
item.componentProps.disabled = true |
|
|
@ -416,7 +417,8 @@ const openForm = async (type: string, row?: number) => { |
|
|
|
if(type == 'update'){ |
|
|
|
PurchasereturnRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if (item.field == 'supplierCode') { |
|
|
|
item.componentProps.disabled = false |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
if(item.field == 'purchaseReceiptRecordNumber'){ |
|
|
|
item.componentProps.disabled = true |
|
|
|