|
@ -314,6 +314,33 @@ 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 属性 |
|
|
|
|
|
PreparetoissueMain.allSchemas.formSchema.map(item => { |
|
|
|
|
|
if(item.field == 'productionPlanNumber' || |
|
|
|
|
|
item.field == 'workshop' || |
|
|
|
|
|
item.field == 'prodLine' || |
|
|
|
|
|
item.field == 'shift' || |
|
|
|
|
|
item.field == 'team' |
|
|
|
|
|
){ |
|
|
|
|
|
item.componentProps.isSearchList = false |
|
|
|
|
|
item.componentProps.disabled = true |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} else { |
|
|
|
|
|
// 修改 tableform 属性 |
|
|
|
|
|
PreparetoissueMain.allSchemas.formSchema.map(item => { |
|
|
|
|
|
if(item.field == 'productionPlanNumber' || |
|
|
|
|
|
item.field == 'workshop' || |
|
|
|
|
|
item.field == 'prodLine' || |
|
|
|
|
|
item.field == 'shift' || |
|
|
|
|
|
item.field == 'team' |
|
|
|
|
|
){ |
|
|
|
|
|
item.componentProps.isSearchList = true |
|
|
|
|
|
item.componentProps.disabled = false |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
formRef.value.open(type, row) |
|
|
formRef.value.open(type, row) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|