response.data?.recordList && response.data?.recordList.map((item: any, index: number) => { formList.setFieldsValue({ [`batchCode-${item.key + 1}`]: item.batchCode, }); formList.setFieldsValue({ [`receiveQty-${item.key + 1}`]: item.receiveQty, }); });