|
|
@ -84,12 +84,17 @@ const tableSelectionDelete = (selection) => { |
|
|
|
} |
|
|
|
|
|
|
|
const openFormByCreate = async ( data ) => { |
|
|
|
|
|
|
|
SupplierdeliverRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
|
if(item.field == 'supplierCode'){ |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
|
|
|
|
if(item.field == 'ppNumber'){ |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.enterSearch = false |
|
|
|
|
|
|
|
} |
|
|
|
if(item.field == 'asnNumber'){ |
|
|
|
item.componentProps.disabled = false |
|
|
@ -149,6 +154,11 @@ const openForm = async (type: string, row?: number, defaultSupplierCode?: string |
|
|
|
if(item.field == 'ppNumber'){ |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
item.componentProps.disabled = true |
|
|
|
if(item.field == 'ppNumber'){ |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
item.componentProps.disabled = true |
|
|
|
item.componentProps.enterSearch = false |
|
|
|
} |
|
|
|
} |
|
|
|
if(item.field == 'asnNumber'){ |
|
|
|
item.componentProps.disabled = true |
|
|
@ -165,6 +175,8 @@ const openForm = async (type: string, row?: number, defaultSupplierCode?: string |
|
|
|
} |
|
|
|
if(item.field == 'ppNumber'){ |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
item.componentProps.disabled = false |
|
|
|
item.componentProps.enterSearch = true |
|
|
|
} |
|
|
|
if(item.field == 'asnNumber'){ |
|
|
|
item.componentProps.disabled = false |
|
|
|