feat(web): 更新个人工作台组件和应用外壳组合式函数,新增请求数据组合式函数
This commit is contained in:
@@ -235,7 +235,7 @@ export function useAppShell() {
|
||||
smartEntryOpen.value = false
|
||||
await reloadRequests()
|
||||
if (status === 'submitted') {
|
||||
toast(`${claimNo || '该'}单据已提交审批${approvalStage ? `,当前节点:${approvalStage}` : ''}。`)
|
||||
toast(`${claimNo || '该'}单据已完成 AI验审${approvalStage ? `,当前节点:${approvalStage}` : ',并已提交审批'}。`)
|
||||
} else {
|
||||
toast(`${claimNo || '该'}单据已保存到草稿,请到报销页面查看。`)
|
||||
}
|
||||
|
||||
@@ -334,7 +334,7 @@ function buildExpenseItems(claim, riskSummary) {
|
||||
})
|
||||
}
|
||||
|
||||
function mapExpenseClaimToRequest(claim) {
|
||||
export function mapExpenseClaimToRequest(claim) {
|
||||
const typeCode = String(claim?.expense_type || '').trim() || 'other'
|
||||
const typeLabel = resolveTypeLabel(typeCode)
|
||||
const approvalMeta = resolveApprovalMeta(claim?.status)
|
||||
@@ -372,6 +372,8 @@ function mapExpenseClaimToRequest(claim) {
|
||||
submittedAt: applyDateTime || '',
|
||||
createdAt: claim?.created_at || '',
|
||||
amount: parseNumber(claim?.amount),
|
||||
riskFlags: Array.isArray(claim?.risk_flags_json) ? claim.risk_flags_json : [],
|
||||
invoiceCount,
|
||||
workflowNode,
|
||||
approvalKey: approvalMeta.key,
|
||||
approvalStatus: approvalMeta.label,
|
||||
|
||||
Reference in New Issue
Block a user