diff --git a/src/views/invest/onlineLendHistory/index.vue b/src/views/invest/onlineLendHistory/index.vue index 6d13cfc..6d4f426 100644 --- a/src/views/invest/onlineLendHistory/index.vue +++ b/src/views/invest/onlineLendHistory/index.vue @@ -520,6 +520,13 @@ function handleAdd() { function handleAddDetail() { resetDetail() formDetail.value.repaymentDate = dayjs(new Date().getTime()).format('YYYY-MM-DD') + // 从当前查看的主表记录中获取必填字段 + formDetail.value.installmentHistoryId = currentInstallmentHistoryId.value + // 需要从主表记录中获取bankCardLendId,这里需要补充逻辑 + getInstallmentHistory(currentInstallmentHistoryId.value).then((response) => { + formDetail.value.bankCardLendId = response.data.bankCardLendId + formDetail.value.type = response.data.type + }) titleDetail.value = '添加贷款明细' openDetail.value = true }