Browse Source

校验

master
songguoqiang 12 months ago
parent
commit
4604ab705a
  1. 3
      src/views/spc/detectiontemplate/detectionTemplate.data.ts
  2. 5
      src/views/spc/itembasic/index.vue
  3. 5
      src/views/spc/project/index.vue

3
src/views/spc/detectiontemplate/detectionTemplate.data.ts

@ -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: {

5
src/views/spc/itembasic/index.vue

@ -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)
}

5
src/views/spc/project/index.vue

@ -151,6 +151,11 @@ const buttonTableClick = async (val, row) => {
/** 添加/修改操作 */
const basicFormRef = ref()
const openForm = (type: string, row?: any) => {
if(type=='update'){
Project.allSchemas.formSchema[0].componentProps.disabled=true;
}else{
Project.allSchemas.formSchema[0].componentProps.disabled=false;
}
basicFormRef.value.open(type, row)
}

Loading…
Cancel
Save