fix: 功能优化完善,分期待还相关。
This commit is contained in:
@@ -227,6 +227,9 @@
|
||||
</el-tooltip>
|
||||
</template>
|
||||
<template v-else>
|
||||
<el-tooltip class="item" effect="dark" content="还款" placement="top">
|
||||
<el-button icon="Coin" v-hasPermi="['invest:installmentHistory:edit']" circle @click="handleRepayment(scope.row)"></el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip v-for="item in operateDetailList" :key="item.id" class="item" effect="dark" :content="item.title" placement="top">
|
||||
<el-button :icon="item.icon" v-hasPermi="item.hasPermi" circle @click="handleDetailOperate(item.id, scope.row)"></el-button>
|
||||
</el-tooltip>
|
||||
@@ -594,6 +597,22 @@ function handleUpdateDetail(row) {
|
||||
})
|
||||
}
|
||||
|
||||
/** 还款按钮操作 */
|
||||
function handleRepayment(row) {
|
||||
resetDetail()
|
||||
getInstallmentDetail(row.id).then((response) => {
|
||||
formDetail.value = response.data
|
||||
// 默认设置还款状态为已还款
|
||||
formDetail.value.postingState = '1'
|
||||
// 设置还款日期为当前日期
|
||||
if (!formDetail.value.repaymentDate) {
|
||||
formDetail.value.repaymentDate = dayjs(new Date().getTime()).format('YYYY-MM-DD')
|
||||
}
|
||||
openDetail.value = true
|
||||
titleDetail.value = '贷款还款'
|
||||
})
|
||||
}
|
||||
|
||||
/** 提交按钮 */
|
||||
function submitForm() {
|
||||
proxy.$refs.installmentHistoryRef.validate((valid) => {
|
||||
|
||||
Reference in New Issue
Block a user