@ -31,7 +31,8 @@ export const DetectionTemplate = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', // 查询弹窗赋值字段
searchTitle: '物料信息', // 查询弹窗标题
searchAllSchemas: Itembasic.allSchemas, // 查询弹窗所需类
searchPage: ItembasicApi.getItembasicPage // 查询弹窗所需分页方法
searchPage: ItembasicApi.getItembasicPage, // 查询弹窗所需分页方法
disabled:true
}
},
search: {
@ -153,6 +153,11 @@ const openForm = (type: string, row?: any) => {
// if(type=='update'){
// row.color = row.color.split(',');
// }
if(type=='update'){
Itembasic.allSchemas.formSchema[1].componentProps.disabled=true;
}else{
Itembasic.allSchemas.formSchema[1].componentProps.disabled=false;
basicFormRef.value.open(type, row)
@ -151,6 +151,11 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
Project.allSchemas.formSchema[0].componentProps.disabled=true;
Project.allSchemas.formSchema[0].componentProps.disabled=false;