|
|
@ -569,7 +569,24 @@ const buttonTableClick = async (val, row) => { |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm =async (type: string, row?: number) => { |
|
|
|
const openForm = async (type: string, row?: number) => { |
|
|
|
if (type == 'create') { |
|
|
|
InventorymoveRequestMain.allSchemas.formSchema.forEach(item=>{ |
|
|
|
if(item.field == 'fromWarehouseCode'){ |
|
|
|
item.componentProps.enterSearch = true |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
item.componentProps.disabled = false |
|
|
|
} |
|
|
|
}) |
|
|
|
} else { |
|
|
|
InventorymoveRequestMain.allSchemas.formSchema.forEach(item=>{ |
|
|
|
if(item.field == 'fromWarehouseCode'){ |
|
|
|
item.componentProps.enterSearch = false |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
item.componentProps.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
formRef.value.open(type, row) |
|
|
|
} |
|
|
|