待办审批状态标签
This commit is contained in:
@@ -148,6 +148,34 @@ export function convType(s) {
|
||||
return 'direct'
|
||||
}
|
||||
|
||||
const FLOW_STATUS = {
|
||||
pending: '待审批',
|
||||
waiting: '待处理',
|
||||
processing: '审批中',
|
||||
reviewing: '审阅中',
|
||||
review: '待审阅',
|
||||
approved: '已通过',
|
||||
passed: '已通过',
|
||||
rejected: '已驳回',
|
||||
refused: '已拒绝',
|
||||
denied: '已拒绝',
|
||||
cancelled: '已撤销',
|
||||
canceled: '已撤销',
|
||||
withdrawn: '已撤回',
|
||||
draft: '草稿',
|
||||
done: '已完成',
|
||||
completed: '已完成',
|
||||
handled: '已处理',
|
||||
reviewed: '已审阅',
|
||||
running: '进行中'
|
||||
}
|
||||
|
||||
export function flowStatus(status) {
|
||||
const raw = String(status || '').trim()
|
||||
if (!raw) return '待处理'
|
||||
return FLOW_STATUS[raw.toLowerCase()] || raw
|
||||
}
|
||||
|
||||
export function toast(title, icon = 'none') {
|
||||
uni.showToast({ title: String(title || ''), icon, duration: 2200 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user