|
|
@ -176,13 +176,13 @@ const buttonTableClick = async (val, row) => { |
|
|
|
const basicFormRef = ref() |
|
|
|
const openForm = (type: string, row?: any) => { |
|
|
|
if(type=='create'){ |
|
|
|
Item.allSchemas.formSchema.forEach(item =>{ |
|
|
|
FixedAssets.allSchemas.formSchema.forEach(item =>{ |
|
|
|
if(item.field == "number"){ |
|
|
|
item.componentProps.disabled = false |
|
|
|
} |
|
|
|
}) |
|
|
|
} else if(type=='update'){ |
|
|
|
Item.allSchemas.formSchema.forEach(item =>{ |
|
|
|
FixedAssets.allSchemas.formSchema.forEach(item =>{ |
|
|
|
if(item.field == "number"){ |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
@ -203,7 +203,7 @@ const openForm = (type: string, row?: any) => { |
|
|
|
basicFormRef.value.open(type, row) |
|
|
|
} |
|
|
|
} |
|
|
|
const qadDisabledTrueList = ["supplierNumber","number","name","locationNumber","beginUseDate","costSubjectDesc","manufacturer","unit","qty","department"]; |
|
|
|
const qadDisabledTrueList = ["supplierNumber","name","locationNumber","beginUseDate","costSubjectDesc","manufacturer","unit","qty","department"]; |
|
|
|
|
|
|
|
const componentPropsDisabled = (disabled: boolean) => { |
|
|
|
FixedAssets.allSchemas.formSchema.forEach(item => { |
|
|
|