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 || '-'
+ }}
+
+
+