feat: 付款与开票申请金蝶单据状态着色并悬浮展示失败原因

This commit is contained in:
刘泉佳
2026-10-28 17:00:34 +08:00
parent 4502881063
commit 775307f5c0
4 changed files with 43 additions and 1 deletions
+15
View File
@@ -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';