feat(web): 优化差旅详情、风险建议卡片与文档中心交互
- 拆分阶段风险建议卡片样式到独立文件 - 完善差旅申请审批对话框与详情视图交互 - 调整文档中心列表共享样式与状态筛选 - 同步应用外壳、视图初始化与系统状态 composables
This commit is contained in:
@@ -547,9 +547,14 @@ export function useAppShell() {
|
||||
router.push({ name: 'app-documents', query: buildDocumentReturnQuery() })
|
||||
}
|
||||
|
||||
async function handleRequestUpdated() {
|
||||
async function handleRequestUpdated(payload = {}) {
|
||||
if (payload?.claim && typeof payload.claim === 'object') {
|
||||
const mappedRequest = mapExpenseClaimToRequest(payload.claim)
|
||||
upsertRequestSnapshot(mappedRequest)
|
||||
}
|
||||
const claimId = String(payload?.claimId || payload?.claim_id || route.params.requestId || '').trim()
|
||||
await reloadWorkbenchRequests()
|
||||
await refreshSelectedRequestDetail(String(route.params.requestId || ''))
|
||||
await refreshSelectedRequestDetail(claimId)
|
||||
}
|
||||
|
||||
async function handleRequestDeleted(payload = {}) {
|
||||
|
||||
@@ -4,11 +4,11 @@ function readCurrentWebEndpoint(initialState) {
|
||||
if (typeof window === 'undefined') {
|
||||
return {
|
||||
host: initialState?.web?.host || '0.0.0.0',
|
||||
port: Number(initialState?.web?.port || 5173)
|
||||
port: Number(initialState?.web?.port || 5273)
|
||||
}
|
||||
}
|
||||
|
||||
const fallbackPort = Number(initialState?.web?.port || 5173)
|
||||
const fallbackPort = Number(initialState?.web?.port || 5273)
|
||||
const port = Number(window.location.port || fallbackPort)
|
||||
|
||||
return {
|
||||
|
||||
@@ -57,7 +57,7 @@ function readClientBootstrapState() {
|
||||
},
|
||||
web: {
|
||||
host: env.VITE_WEB_HOST || '0.0.0.0',
|
||||
port: Number(env.VITE_WEB_PORT || 5173)
|
||||
port: Number(env.VITE_WEB_PORT || 5273)
|
||||
},
|
||||
server: {
|
||||
host: env.VITE_SERVER_HOST || '0.0.0.0',
|
||||
|
||||
Reference in New Issue
Block a user