|
@ -151,22 +151,25 @@ const openForm = (type: string, row?: any) => { |
|
|
if(type == "update"){ |
|
|
if(type == "update"){ |
|
|
Customerdock.allSchemas.formSchema.forEach((item) => { |
|
|
Customerdock.allSchemas.formSchema.forEach((item) => { |
|
|
if (item.field == 'code') { |
|
|
if (item.field == 'code') { |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.isSearchList = false |
|
|
item.componentProps.isSearchList = false |
|
|
} |
|
|
} |
|
|
if (item.field == 'customerCode') { |
|
|
if (item.field == 'customerCode') { |
|
|
item.componentProps.disabled = true |
|
|
item.componentProps.disabled = true |
|
|
} |
|
|
item.componentProps.enterSearch = false |
|
|
}) |
|
|
item.componentProps.isSearchList = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}else { |
|
|
}else { |
|
|
Customerdock.allSchemas.formSchema.forEach((item) => { |
|
|
Customerdock.allSchemas.formSchema.forEach((item) => { |
|
|
if (item.field == 'code') { |
|
|
if (item.field == 'code') { |
|
|
item.componentProps.disabled = false |
|
|
item.componentProps.disabled = false |
|
|
} |
|
|
} |
|
|
if (item.field == 'customerCode') { |
|
|
if (item.field == 'customerCode') { |
|
|
item.componentProps.disabled = false |
|
|
item.componentProps.disabled = false |
|
|
item.componentProps.isSearchList = true |
|
|
item.componentProps.enterSearch = true |
|
|
} |
|
|
item.componentProps.isSearchList = true |
|
|
|
|
|
} |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
basicFormRef.value.open(type, row) |
|
|
basicFormRef.value.open(type, row) |
|
|