feat: 增强差旅报销审核流程与票据智能推理
优化本体解析和编排器的差旅场景处理能力,完善报销单草稿 保存和费用明细同步逻辑,前端报销创建页面增加行程推理和 票据审核交互,新增助手会话快照工具函数,补充单元测试。
This commit is contained in:
@@ -793,6 +793,133 @@
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.message-suggested-actions {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 10px;
|
||||
margin-top: 14px;
|
||||
padding: 10px;
|
||||
border: 1px solid rgba(203, 213, 225, 0.72);
|
||||
border-radius: 14px;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(248, 250, 252, 0.92), rgba(255, 255, 255, 0.98));
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
|
||||
}
|
||||
|
||||
.message-suggested-action-btn {
|
||||
position: relative;
|
||||
min-height: 70px;
|
||||
display: grid;
|
||||
grid-template-columns: 34px minmax(0, 1fr) 18px;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 12px 11px;
|
||||
border: 1px solid rgba(203, 213, 225, 0.8);
|
||||
border-radius: 10px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
color: #0f172a;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
|
||||
transition:
|
||||
border-color 0.16s ease,
|
||||
background 0.16s ease,
|
||||
box-shadow 0.16s ease,
|
||||
transform 0.16s ease;
|
||||
}
|
||||
|
||||
.message-suggested-action-icon {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 10px;
|
||||
background: #f1f5f9;
|
||||
color: #0f766e;
|
||||
font-size: 18px;
|
||||
box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.08);
|
||||
}
|
||||
|
||||
.message-suggested-action-copy {
|
||||
min-width: 0;
|
||||
display: grid;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.message-suggested-action-title {
|
||||
color: #0f172a;
|
||||
font-size: var(--wb-fs-body);
|
||||
font-weight: 850;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.message-suggested-action-btn small {
|
||||
color: #64748b;
|
||||
font-size: var(--wb-fs-caption);
|
||||
font-weight: 650;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.message-suggested-action-arrow {
|
||||
color: #94a3b8;
|
||||
font-size: 15px;
|
||||
justify-self: end;
|
||||
transition: color 0.16s ease, transform 0.16s ease;
|
||||
}
|
||||
|
||||
.message-suggested-action-btn:hover:not(:disabled) {
|
||||
border-color: rgba(20, 184, 166, 0.72);
|
||||
background: #ffffff;
|
||||
box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09);
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
.message-suggested-action-btn:hover:not(:disabled) .message-suggested-action-icon,
|
||||
.message-suggested-action-btn:focus-visible .message-suggested-action-icon {
|
||||
background: #ccfbf1;
|
||||
color: #0f766e;
|
||||
}
|
||||
|
||||
.message-suggested-action-btn:hover:not(:disabled) .message-suggested-action-arrow,
|
||||
.message-suggested-action-btn:focus-visible .message-suggested-action-arrow {
|
||||
color: #0f766e;
|
||||
transform: translateX(2px);
|
||||
}
|
||||
|
||||
.message-suggested-action-btn:focus-visible {
|
||||
outline: 3px solid rgba(20, 184, 166, 0.18);
|
||||
outline-offset: 2px;
|
||||
border-color: #14b8a6;
|
||||
}
|
||||
|
||||
.message-suggested-action-btn.selected {
|
||||
border-color: rgba(13, 148, 136, 0.78);
|
||||
background: #f0fdfa;
|
||||
box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.18);
|
||||
}
|
||||
|
||||
.message-suggested-action-btn.selected .message-suggested-action-icon {
|
||||
background: #99f6e4;
|
||||
color: #115e59;
|
||||
}
|
||||
|
||||
.message-suggested-action-btn.selected .message-suggested-action-arrow {
|
||||
color: #0f766e;
|
||||
}
|
||||
|
||||
.message-suggested-action-btn.locked:not(.selected) {
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
.message-suggested-action-btn:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.62;
|
||||
}
|
||||
|
||||
.message-suggested-action-btn.selected:disabled {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.message-meta-chip,
|
||||
.capability-chip,
|
||||
.risk-chip,
|
||||
@@ -982,6 +1109,27 @@
|
||||
box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
|
||||
}
|
||||
|
||||
.expense-query-record-list.compact .expense-query-record-card.selectable {
|
||||
border-color: rgba(20, 184, 166, 0.35);
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.expense-query-record-list.compact .expense-query-record-card.selected {
|
||||
border-color: rgba(13, 148, 136, 0.82);
|
||||
background: #f0fdfa;
|
||||
box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.18);
|
||||
}
|
||||
|
||||
.expense-query-record-list.compact .expense-query-record-card.locked:not(.selected) {
|
||||
background: #f8fafc;
|
||||
opacity: 0.58;
|
||||
}
|
||||
|
||||
.expense-query-record-list.compact .expense-query-record-card:disabled {
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.expense-query-record-card > i {
|
||||
color: #94a3b8;
|
||||
font-size: 16px;
|
||||
@@ -4775,6 +4923,10 @@
|
||||
justify-self: stretch;
|
||||
}
|
||||
|
||||
.message-suggested-actions {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.composer {
|
||||
padding: 0 16px 16px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user