|
@@ -18,6 +18,8 @@
|
|
{{ infoData.payment ? (100 * infoData.payment / infoData.amounts).toFixed(1) + '%' : '0%' }}
|
|
{{ infoData.payment ? (100 * infoData.payment / infoData.amounts).toFixed(1) + '%' : '0%' }}
|
|
</template>
|
|
</template>
|
|
</van-cell>
|
|
</van-cell>
|
|
|
|
+ <van-cell title="计划开始时间" :value="infoData.startDate" />
|
|
|
|
+ <van-cell title="计划结束时间" :value="infoData.endDate" />
|
|
<van-cell title="下笔回款日期" :value="infoData.nextPaymentDate">
|
|
<van-cell title="下笔回款日期" :value="infoData.nextPaymentDate">
|
|
<template #default>
|
|
<template #default>
|
|
{{ infoData.nextPaymentDate ? infoData.nextPaymentDate : '-' }}
|
|
{{ infoData.nextPaymentDate ? infoData.nextPaymentDate : '-' }}
|
|
@@ -64,7 +66,7 @@ import requests from "@common/requests";
|
|
import { showConfirmDialog } from 'vant';
|
|
import { showConfirmDialog } from 'vant';
|
|
import { useLifecycle } from '@hooks/useCommon.js';
|
|
import { useLifecycle } from '@hooks/useCommon.js';
|
|
import { fixedFieldStatusArray } from '@/utility/defaultData.js';
|
|
import { fixedFieldStatusArray } from '@/utility/defaultData.js';
|
|
-import { CONTRACT_APPROVED } from '@hooks/useApi'
|
|
|
|
|
|
+import { CONTRACT_APPROVED, OBTAIN_CONTRACT_DETAILS } from '@hooks/useApi'
|
|
import useShowToast from '@hooks/useToast'
|
|
import useShowToast from '@hooks/useToast'
|
|
import useInfoStore from '@store/useInfoStore'
|
|
import useInfoStore from '@store/useInfoStore'
|
|
import useRouterStore from "@store/useRouterStore.js";
|
|
import useRouterStore from "@store/useRouterStore.js";
|
|
@@ -183,7 +185,9 @@ function jumpEdit() {
|
|
}
|
|
}
|
|
|
|
|
|
function getDetails(id) {
|
|
function getDetails(id) {
|
|
- // 获取合同详情
|
|
|
|
|
|
+ requests.post(OBTAIN_CONTRACT_DETAILS, { id }).then((res) => {
|
|
|
|
+ infoData.value = res.data || {}
|
|
|
|
+ })
|
|
}
|
|
}
|
|
function processingData(id) {
|
|
function processingData(id) {
|
|
clearTimeout(timeout.value);
|
|
clearTimeout(timeout.value);
|