feat(miniprogram): migrate expense items and workflow admin from bx-mobile.

Enable mobile config of expense tree and advance/reimburse approval nodes.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
wuzilongandCursor committed 2026-09-11 23:42:16 +08:00
1 parent 1bd0503409
commit f13eba5623
7 files changed
+1209 -8

No files matched your search

+20
View File
@@ -38,6 +38,26 @@ export function statusTone(status) {
return map[status] ?? 'info'
}
/** StatusTag variant(对齐 bx-mobile statusTagClass) */
export function statusTagClass(status) {
const tone = statusTone(status)
const map = {
info: 'info',
warn: 'warning',
done: 'success',
error: 'danger',
processing: 'processing'
}
return map[tone] || 'info'
}
/** 小程序 status-tag class:启用/禁用或工作流状态 */
export function adminStatusTagClass(status) {
if (status === 1 || status === '1') return 's-approved'
if (status === 0 || status === '0') return 's-draft'
return workflowListStatusTagClass(status)
}
export function workflowListStatusTagClass(status) {
const raw = status == null || status === '' ? 'draft' : String(status)
return `s-${raw}`