feat: 合同付款预警迁移到agent页面
This commit is contained in:
1 parent
ef6bc42c20
commit
4ce2defef0
49 files changed
+1052
-423
No files matched your search
@@ -1,21 +1,25 @@
|
||||
<!--
|
||||
features/contract-payment/views/ContractPaymentReviewPage.vue
|
||||
用途:集中展示关键解析事实缺失或冲突的合同,供管理员下载原文并人工确认。
|
||||
依赖:contract-payment.api、PaginationBar、工作台路由与统一消息提示。
|
||||
逻辑:后端以 review_only 过滤 needs_review 合同;页面不推导付款节点,也不触发预警任务。
|
||||
依赖:contract-payment.api、PaginationBar、统一消息提示。
|
||||
逻辑:后端以 review_only 过滤 needs_review 合同;Chat 父级通过 open-detail 下钻详情。
|
||||
-->
|
||||
<script setup lang="ts">
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { Search } from 'lucide-vue-next';
|
||||
import { BusinessError } from '@/shared/api/client';
|
||||
import PaginationBar from '@/shared/components/PaginationBar.vue';
|
||||
import { useMessage } from '@/shared/composables/useMessage';
|
||||
import { WORKSPACE_PATHS } from '@/features/workspace/constants/routes';
|
||||
import { listContractPaymentContracts, type ContractPaymentContract } from '../api/contract-payment.api';
|
||||
|
||||
const router = useRouter();
|
||||
const props = withDefaults(defineProps<{
|
||||
embedded?: boolean;
|
||||
}>(), { embedded: false });
|
||||
|
||||
const emit = defineEmits<{
|
||||
'open-detail': [contractId: number];
|
||||
}>();
|
||||
const { t } = useI18n();
|
||||
const msg = useMessage();
|
||||
const keyword = ref('');
|
||||
@@ -56,8 +60,8 @@ async function load(resetPage = false): Promise<void> {
|
||||
* @param contractId - 合同付款台账主键。
|
||||
* @returns 路由跳转完成。
|
||||
*/
|
||||
async function openContractDetail(contractId: number): Promise<void> {
|
||||
await router.push(WORKSPACE_PATHS.contractPaymentDetail(contractId));
|
||||
function openContractDetail(contractId: number): void {
|
||||
emit('open-detail', contractId);
|
||||
}
|
||||
|
||||
onMounted(() => void load());
|
||||
@@ -65,7 +69,10 @@ onMounted(() => void load());
|
||||
|
||||
<template>
|
||||
<section class="section-gap animate-fade-in-up">
|
||||
<div><h2 class="text-2xl font-bold text-primary">{{ t('admin.contractPaymentReview.title') }}</h2><p class="mt-1 text-sm text-muted">{{ t('admin.contractPaymentReview.subtitle') }}</p></div>
|
||||
<div v-if="!props.embedded">
|
||||
<h2 class="text-2xl font-bold text-primary">{{ t('admin.contractPaymentReview.title') }}</h2>
|
||||
<p class="mt-1 text-sm text-muted">{{ t('admin.contractPaymentReview.subtitle') }}</p>
|
||||
</div>
|
||||
<div class="contract-filter-bar">
|
||||
<div class="contract-filter-search">
|
||||
<Search class="contract-filter-icon" />
|
||||
|
||||
Reference in new issue
Block a user