From 775307f5c04e23dee7a5d2de3c6de4536ae02d25 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=88=98=E6=B3=89=E4=BD=B3?= <1107186916@qq.com>
Date: Wed, 28 Oct 2026 17:00:34 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BB=98=E6=AC=BE=E4=B8=8E=E5=BC=80?=
=?UTF-8?q?=E7=A5=A8=E7=94=B3=E8=AF=B7=E9=87=91=E8=9D=B6=E5=8D=95=E6=8D=AE?=
=?UTF-8?q?=E7=8A=B6=E6=80=81=E7=9D=80=E8=89=B2=E5=B9=B6=E6=82=AC=E6=B5=AE?=
=?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=A4=B1=E8=B4=A5=E5=8E=9F=E5=9B=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/option/payment/paymentApplication.js | 2 +-
src/utils/kingdee.js | 15 +++++++++++++++
src/views/payment/invoice-application.vue | 13 +++++++++++++
src/views/payment/payment-application.vue | 14 ++++++++++++++
4 files changed, 43 insertions(+), 1 deletion(-)
create mode 100644 src/utils/kingdee.js
diff --git a/src/option/payment/paymentApplication.js b/src/option/payment/paymentApplication.js
index 65494a3..9a74a22 100644
--- a/src/option/payment/paymentApplication.js
+++ b/src/option/payment/paymentApplication.js
@@ -169,7 +169,7 @@ export const paymentApplicationOption = ({
{ label: '当前节点', prop: 'currentNode', minWidth: 120, formatter: textFormatter },
{ label: '当前处理人', prop: 'currentProcessor', minWidth: 120, formatter: textFormatter },
{ label: '金蝶单据号', prop: 'kingdeeBillNo', minWidth: 130, formatter: textFormatter },
- { label: '金蝶单据状态', prop: 'kingdeeStatusName', minWidth: 130, formatter: textFormatter },
+ { label: '金蝶单据状态', prop: 'kingdeeStatusName', slot: true, minWidth: 130 },
{ label: '金蝶锁状态', prop: 'kingdeeLockStatus', slot: true, minWidth: 150 },
{ label: '附件同步', prop: 'attachmentSyncStatusName', minWidth: 100, formatter: textFormatter },
],
diff --git a/src/utils/kingdee.js b/src/utils/kingdee.js
new file mode 100644
index 0000000..b3f812c
--- /dev/null
+++ b/src/utils/kingdee.js
@@ -0,0 +1,15 @@
+/**
+ * 金蝶单据状态公共映射
+ */
+
+/** 金蝶单据状态 → el-tag 颜色类型(failed 状态列表页悬浮展示失败原因) */
+export const KINGDEE_STATUS_TAG_TYPES = {
+ synced: 'success',
+ paid: 'success',
+ invoiced: 'success',
+ paying: 'warning',
+ failed: 'danger',
+};
+
+/** 金蝶单据状态 → el-tag 颜色类型,未映射状态返回 info */
+export const kingdeeStatusType = status => KINGDEE_STATUS_TAG_TYPES[status] || 'info';
diff --git a/src/views/payment/invoice-application.vue b/src/views/payment/invoice-application.vue
index a447f77..e806a80 100644
--- a/src/views/payment/invoice-application.vue
+++ b/src/views/payment/invoice-application.vue
@@ -125,6 +125,17 @@
{{ displayValue(row[column.prop]) }}
{{ formatMoney(row[column.prop]) }}
+
+
+ {{
+ row.kingdeeStatusName || '-'
+ }}
+
+
{{ lockTag(row).label }}
@@ -238,6 +249,7 @@ import TableHeaderTools from '@/components/table-header-tools/main.vue';
import organizationSearch from '@/mixins/organization-search';
import { getMKApprovalUrl } from '@/api/system/business-process';
import { loadMkEnabled, submitMkApprovalFlow } from '@/utils/mk-approval';
+import { kingdeeStatusType } from '@/utils/kingdee';
const emptyQuery = () => ({
applicationNo: '',
@@ -500,6 +512,7 @@ export default {
''
);
},
+ kingdeeStatusType,
lockTag(row) {
if (row.kingdeeLockStatus === 'locked') {
return { show: true, type: 'danger', label: '金蝶锁定中', tip: '该单据已被金蝶锁定,不可编辑/作废' };
diff --git a/src/views/payment/payment-application.vue b/src/views/payment/payment-application.vue
index ad7d57b..321b917 100644
--- a/src/views/payment/payment-application.vue
+++ b/src/views/payment/payment-application.vue
@@ -68,6 +68,18 @@
-
+
+
+ {{
+ row.kingdeeStatusName || '-'
+ }}
+
+
+