|
@ -440,6 +440,24 @@ const buttonTableClick = async (val, row) => { |
|
|
const formRef = ref() |
|
|
const formRef = ref() |
|
|
const openForm =async (type: string, row?: number) => { |
|
|
const openForm =async (type: string, row?: number) => { |
|
|
tableData.value = [] // 重置明细数据 |
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
|
|
// 编辑时 车间代码不可修改 |
|
|
|
|
|
if (type == 'update') { |
|
|
|
|
|
// 修改 tableform 属性 |
|
|
|
|
|
ProductreceiptRequestMain.allSchemas.formSchema.map(itemColumns => { |
|
|
|
|
|
if(itemColumns.field == 'workshopCode') { |
|
|
|
|
|
itemColumns.componentProps.isSearchList = false |
|
|
|
|
|
itemColumns.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
// 修改 tableform 属性 |
|
|
|
|
|
ProductreceiptRequestMain.allSchemas.formSchema.map(itemColumns => { |
|
|
|
|
|
if(itemColumns.field == 'workshopCode') { |
|
|
|
|
|
itemColumns.componentProps.isSearchList = true |
|
|
|
|
|
itemColumns.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
formRef.value.open(type, row) |
|
|
formRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|