feat: add skill center navigation and travel request detail view

- Refactor audit to skill center for skill management
- Add TravelRequestDetailView for requests detail page
- Update PersonalWorkbench with enhanced features
- Add UI preview screenshots

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-05 22:35:38 +08:00
parent ab9f132192
commit 2d2ed27861
10 changed files with 3870 additions and 591 deletions

View File

@@ -10,7 +10,7 @@
<article class="panel assistant-hero">
<div class="assistant-visual" aria-hidden="true">
<div class="assistant-core">
<i class="mdi mdi-robot-happy-outline"></i>
<img class="assistant-image" :src="robotAssistant" alt="" />
</div>
</div>
@@ -40,8 +40,11 @@
<div class="workbench-grid">
<article class="panel list-panel">
<div class="section-head">
<h3>今日待办</h3>
<span class="count-chip">{{ todoItems.length }} </span>
<div class="title-with-badge">
<h3>今日待办</h3>
<span class="alert-badge">{{ todoAlertCount }}</span>
</div>
<button type="button" class="link-action">查看全部 <i class="mdi mdi-chevron-right"></i></button>
</div>
<div class="list-body">
@@ -52,7 +55,10 @@
<div class="todo-copy">
<strong>{{ item.title }}</strong>
<p>{{ item.suggestion }}</p>
<p class="todo-advice">
<span class="todo-advice-label">{{ item.tipLabel }}</span>
<span class="todo-advice-text">{{ item.suggestion }}</span>
</p>
</div>
<button type="button" class="row-action" @click="emit('openAssistant')">{{ item.action }}</button>
@@ -62,7 +68,10 @@
<article class="panel list-panel">
<div class="section-head">
<h3>报销进度</h3>
<div class="title-with-badge">
<h3>报销进度</h3>
<span class="alert-badge">{{ progressAlertCount }}</span>
</div>
<button type="button" class="link-action">查看全部 <i class="mdi mdi-chevron-right"></i></button>
</div>
@@ -73,13 +82,11 @@
</div>
<div class="todo-copy progress-copy">
<div class="progress-main">
<strong>{{ item.title }}</strong>
<strong class="amount">{{ item.amount }}</strong>
</div>
<strong>{{ item.title }}</strong>
<p>提交时间{{ item.date }}</p>
</div>
<strong class="progress-amount">{{ item.amount }}</strong>
<span class="progress-status" :class="item.tone">{{ item.status }}</span>
</div>
</div>
@@ -94,23 +101,15 @@
<div class="policy-table">
<div class="policy-head policy-row">
<span>制度名称</span>
<span>摘要</span>
<span>发布日期</span>
<span>状态</span>
<span></span>
<span class="policy-title-cell">制度名称</span>
<span class="policy-summary-cell">摘要</span>
<span class="policy-date-cell">发布日期</span>
</div>
<div v-for="item in policyItems" :key="item.name" class="policy-row">
<strong>{{ item.name }}</strong>
<span>{{ item.summary }}</span>
<span>{{ item.date }}</span>
<span>
<b class="policy-status" :class="item.tone">{{ item.status }}</b>
</span>
<button type="button" class="row-link" :aria-label="`查看 ${item.name}`">
<i class="mdi mdi-chevron-right"></i>
</button>
<strong class="policy-title-cell">{{ item.name }}</strong>
<span class="policy-summary-cell">{{ item.summary }}</span>
<span class="policy-date-cell">{{ item.date }}</span>
</div>
</div>
</article>
@@ -119,6 +118,7 @@
<script setup>
import PanelHead from '../shared/PanelHead.vue'
import robotAssistant from '../../assets/robot-assistant.png'
defineProps({
showHeader: { type: Boolean, default: true }
@@ -131,27 +131,32 @@ const assistantSkills = ['识别报销类别', '检查缺少材料', '生成报
const todoItems = [
{
title: '业务招待报销建议补参与人员',
suggestion: 'AI 建议:补充客户单位、客户人数、我方陪同人员',
tipLabel: 'AI 建议',
suggestion: '补充客户单位、客户人数、我方陪同人员',
action: '去补充',
icon: 'mdi mdi-account-group-outline',
color: '#10b981'
},
{
title: '差旅报销单待提交',
suggestion: 'AI 建议:补齐出发交通,可直接生成报销单',
tipLabel: 'AI 建议',
suggestion: '补齐出发交通,可直接生成报销单',
action: '继续填写',
icon: 'mdi mdi-briefcase-outline',
color: '#16a34a'
},
{
title: '有 5 张票据未关联报销单',
suggestion: 'AI 建议:其中 3 张疑似交通费,可合并生成交通报销',
tipLabel: 'AI 建议',
suggestion: '其中 3 张疑似交通费,可合并生成交通报销',
action: '去整理',
icon: 'mdi mdi-receipt-text-outline',
color: '#3b82f6'
}
]
const todoAlertCount = todoItems.length
const progressItems = [
{
id: 'travel',
@@ -185,34 +190,28 @@ const progressItems = [
}
]
const progressAlertCount = progressItems.filter((item) => item.status !== '已到账').length
const policyItems = [
{
name: '差旅报销管理办法2026版',
summary: '更新住宿标准与交通等级规则',
date: '2026-05-04',
status: '已生效',
tone: 'success'
date: '2026-05-04'
},
{
name: '业务招待费用报销规范',
summary: '明确参与人员与事由填写要求',
date: '2026-05-02',
status: '更新',
tone: 'warning'
date: '2026-05-02'
},
{
name: '交通费用报销细则',
summary: '补充网约车与停车费报销说明',
date: '2026-04-28',
status: '已生效',
tone: 'success'
date: '2026-04-28'
},
{
name: '票据与附件提交规范通知',
summary: '统一附件命名与上传要求',
date: '2026-04-25',
status: '通知',
tone: 'info'
date: '2026-04-25'
}
]
</script>
@@ -306,6 +305,13 @@ const policyItems = [
font-size: 68px;
}
.assistant-image {
width: 104px;
height: 104px;
object-fit: contain;
filter: drop-shadow(0 12px 20px rgba(15, 23, 42, 0.12));
}
.assistant-copy {
position: relative;
z-index: 1;
@@ -454,18 +460,27 @@ const policyItems = [
font-weight: 700;
}
.count-chip {
.title-with-badge {
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.alert-badge {
min-width: 22px;
height: 22px;
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 46px;
height: 28px;
padding: 0 10px;
padding: 0 7px;
border-radius: 999px;
background: #ecfdf5;
color: #0f9f78;
background: #ef4444;
color: #fff;
font-size: 12px;
font-weight: 800;
line-height: 1;
box-shadow: 0 6px 14px rgba(239, 68, 68, 0.22);
}
.link-action {
@@ -527,6 +542,30 @@ const policyItems = [
line-height: 1.5;
}
.todo-advice {
display: flex;
align-items: flex-start;
gap: 8px;
flex-wrap: wrap;
}
.todo-advice-label {
display: inline-flex;
align-items: center;
min-height: 22px;
padding: 0 8px;
border-radius: 999px;
background: #ecfdf5;
color: #059669;
font-size: 12px;
font-weight: 800;
white-space: nowrap;
}
.todo-advice-text {
color: #64748b;
}
.row-action {
height: 38px;
padding: 0 16px;
@@ -538,27 +577,37 @@ const policyItems = [
white-space: nowrap;
}
.progress-copy .progress-main {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
.progress-row {
grid-template-columns: 48px minmax(0, 1fr) minmax(84px, auto) minmax(104px, auto);
gap: 14px 16px;
}
.progress-copy .amount {
font-size: 17px;
.progress-copy strong {
margin-bottom: 2px;
}
.progress-amount {
color: #0f172a;
font-size: 20px;
font-weight: 800;
line-height: 1;
text-align: right;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.progress-status {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 32px;
padding: 6px 12px;
min-width: 104px;
min-height: 34px;
padding: 6px 14px;
border-radius: 999px;
font-size: 13px;
font-weight: 800;
white-space: nowrap;
justify-self: end;
}
.progress-status.success,
@@ -586,7 +635,7 @@ const policyItems = [
.policy-row {
display: grid;
grid-template-columns: 2.1fr 2.2fr 1fr auto 40px;
grid-template-columns: 2.2fr 2.4fr 1fr;
gap: 16px;
align-items: center;
min-height: 56px;
@@ -622,30 +671,15 @@ const policyItems = [
font-size: 14px;
}
.policy-status {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 66px;
min-height: 28px;
padding: 0 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 800;
.policy-title-cell,
.policy-summary-cell {
justify-self: stretch;
text-align: left;
}
.policy-status.warning {
background: #fff7e8;
color: #f59e0b;
}
.row-link {
width: 32px;
height: 32px;
display: grid;
place-items: center;
border-radius: 8px;
color: #94a3b8;
.policy-date-cell {
justify-self: center;
text-align: center;
}
@media (max-width: 1320px) {
@@ -654,7 +688,7 @@ const policyItems = [
}
.policy-row {
grid-template-columns: 1.7fr 1.7fr 1fr auto 32px;
grid-template-columns: 1.8fr 1.8fr 1fr;
}
}
@@ -701,6 +735,12 @@ const policyItems = [
grid-template-columns: 48px minmax(0, 1fr);
}
.progress-amount {
grid-column: 2;
text-align: left;
font-size: 18px;
}
.row-action,
.progress-status {
grid-column: 2;
@@ -727,9 +767,5 @@ const policyItems = [
.policy-row span {
white-space: normal;
}
.policy-row > :last-child {
display: none;
}
}
</style>