From f630e7e4d50ba22da8f42336196a02dbae850ced Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 10 八月 2026 17:54:32 +0800
Subject: [PATCH] refactor(erp): 优化采购发票和财务付款审核流程
---
src/views/crm/backlog/modules/receivable-audit-list.vue | 31 ++++++++++++++++++++++---------
1 files changed, 22 insertions(+), 9 deletions(-)
diff --git a/src/views/crm/backlog/modules/receivable-audit-list.vue b/src/views/crm/backlog/modules/receivable-audit-list.vue
index 83aeff5..a2a80be 100644
--- a/src/views/crm/backlog/modules/receivable-audit-list.vue
+++ b/src/views/crm/backlog/modules/receivable-audit-list.vue
@@ -5,22 +5,29 @@
import { useRouter } from 'vue-router';
-import { Button } from 'ant-design-vue';
+import { Button, message } from 'ant-design-vue';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
-import { getReceivablePage } from '#/api/crm/receivable';
+import { getReceivablePage, updateReceivableStatus } from '#/api/crm/receivable';
import { useGridColumns } from '#/views/crm/receivable/data';
import { AUDIT_STATUS } from '../data';
const { push } = useRouter();
-/** 鏌ョ湅瀹℃壒 */
-function handleProcessDetail(row: CrmReceivableApi.Receivable) {
- push({
- name: 'BpmProcessInstanceDetail',
- query: { id: row.processInstanceId },
+/** 瀹℃牳 */
+async function handleAudit(row: CrmReceivableApi.Receivable) {
+ const hideLoading = message.loading({
+ content: '瀹℃牳涓�...',
+ duration: 0,
});
+ try {
+ await updateReceivableStatus(row.id!, 20);
+ message.success('瀹℃牳鎴愬姛');
+ gridApi.query();
+ } finally {
+ hideLoading();
+ }
}
/** 鎵撳紑鍥炴璇︽儏 */
@@ -38,7 +45,7 @@
push({ name: 'CrmContractDetail', params: { id: row.contractId } });
}
-const [Grid] = useVbenVxeGrid({
+const [Grid, gridApi] = useVbenVxeGrid({
formOptions: {
schema: [
{
@@ -98,7 +105,13 @@
</Button>
</template>
<template #actions="{ row }">
- <Button type="link" @click="handleProcessDetail(row)">鏌ョ湅瀹℃壒</Button>
+ <Button
+ v-if="row.auditStatus === 10"
+ type="link"
+ @click="handleAudit(row)"
+ >
+ 瀹℃牳
+ </Button>
</template>
</Grid>
</template>
--
Gitblit v1.9.3