feat(web): update travel reimbursement view
- travel-reimbursement-create-view.css: update form styles - TravelReimbursementCreateView.vue: update view component - scripts/TravelReimbursementCreateView.js: update view logic
This commit is contained in:
@@ -55,6 +55,11 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.assistant-badge.warning {
|
||||
background: rgba(249, 115, 22, 0.12);
|
||||
color: #c2410c;
|
||||
}
|
||||
|
||||
.assistant-header h2 {
|
||||
color: #0f172a;
|
||||
font-size: 24px;
|
||||
@@ -176,8 +181,7 @@
|
||||
|
||||
.message-row.user .message-avatar {
|
||||
order: 2;
|
||||
background: #dbeafe;
|
||||
color: #2563eb;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.message-row.user .message-bubble {
|
||||
@@ -193,9 +197,16 @@
|
||||
display: grid;
|
||||
place-items: center;
|
||||
border-radius: 999px;
|
||||
background: #dff7ee;
|
||||
color: #059669;
|
||||
font-size: 20px;
|
||||
overflow: hidden;
|
||||
background: transparent;
|
||||
box-shadow: 0 6px 16px rgba(15, 23, 42, 0.14);
|
||||
}
|
||||
|
||||
.message-avatar img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.message-bubble {
|
||||
@@ -766,6 +777,69 @@
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.review-inline-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.review-inline-btn,
|
||||
.primary-dialog-btn,
|
||||
.secondary-dialog-btn,
|
||||
.danger-dialog-btn {
|
||||
min-height: 38px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0 16px;
|
||||
border-radius: 999px;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.review-inline-btn {
|
||||
border: 1px solid #dbe6f0;
|
||||
background: #fff;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.review-inline-btn.primary,
|
||||
.primary-dialog-btn {
|
||||
border: 1px solid rgba(16, 185, 129, 0.22);
|
||||
background: linear-gradient(135deg, #10b981, #059669);
|
||||
color: #fff;
|
||||
box-shadow: 0 10px 22px rgba(16, 185, 129, 0.18);
|
||||
}
|
||||
|
||||
.review-inline-btn.secondary,
|
||||
.secondary-dialog-btn {
|
||||
border: 1px solid #dbe6f0;
|
||||
background: #fff;
|
||||
color: #334155;
|
||||
}
|
||||
|
||||
.danger-dialog-btn {
|
||||
border: 1px solid rgba(239, 68, 68, 0.22);
|
||||
background: linear-gradient(135deg, #ef4444, #dc2626);
|
||||
color: #fff;
|
||||
box-shadow: 0 10px 22px rgba(239, 68, 68, 0.18);
|
||||
}
|
||||
|
||||
.review-inline-btn:disabled,
|
||||
.primary-dialog-btn:disabled,
|
||||
.secondary-dialog-btn:disabled,
|
||||
.danger-dialog-btn:disabled {
|
||||
cursor: not-allowed;
|
||||
opacity: 0.62;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.review-inline-note {
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.review-mini-grid,
|
||||
.review-slot-grid,
|
||||
.review-doc-field-grid {
|
||||
@@ -847,6 +921,30 @@
|
||||
background: #f8fbff;
|
||||
}
|
||||
|
||||
.review-slot-meta-list {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.review-slot-meta-item {
|
||||
padding: 9px 10px;
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.82);
|
||||
border: 1px solid rgba(226, 232, 240, 0.9);
|
||||
}
|
||||
|
||||
.review-slot-meta-item span {
|
||||
color: #94a3b8;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.review-slot-meta-item strong {
|
||||
display: block;
|
||||
margin-top: 4px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.review-brief-list,
|
||||
.review-claim-list,
|
||||
.review-document-list {
|
||||
@@ -952,6 +1050,141 @@
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.review-conclusion strong {
|
||||
font-size: 15px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.review-overlay {
|
||||
z-index: 10001;
|
||||
}
|
||||
|
||||
.review-confirm-modal,
|
||||
.review-edit-modal {
|
||||
width: min(720px, calc(100vw - 40px));
|
||||
border-radius: 24px;
|
||||
background:
|
||||
radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), transparent 28%),
|
||||
linear-gradient(180deg, #fbfdff 0%, #f6f9fc 100%);
|
||||
box-shadow:
|
||||
0 24px 80px rgba(15, 23, 42, 0.22),
|
||||
0 2px 12px rgba(15, 23, 42, 0.08);
|
||||
border: 1px solid #e7eef6;
|
||||
}
|
||||
|
||||
.review-confirm-modal {
|
||||
padding: 24px;
|
||||
display: grid;
|
||||
gap: 18px;
|
||||
}
|
||||
|
||||
.review-confirm-modal h3,
|
||||
.review-edit-head h3 {
|
||||
margin-top: 12px;
|
||||
color: #0f172a;
|
||||
font-size: 22px;
|
||||
font-weight: 900;
|
||||
line-height: 1.35;
|
||||
}
|
||||
|
||||
.review-confirm-modal p,
|
||||
.review-edit-head p {
|
||||
margin-top: 8px;
|
||||
color: #64748b;
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.review-confirm-actions,
|
||||
.review-edit-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.review-edit-modal {
|
||||
max-height: min(860px, calc(100vh - 48px));
|
||||
display: grid;
|
||||
grid-template-rows: auto minmax(0, 1fr) auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.review-edit-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 22px 24px 18px;
|
||||
border-bottom: 1px solid #eef2f7;
|
||||
}
|
||||
|
||||
.review-edit-form {
|
||||
min-height: 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
padding: 20px 24px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.review-edit-field {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.review-edit-field.attachments,
|
||||
.review-edit-field.business,
|
||||
.review-edit-field.basic {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.review-edit-field span {
|
||||
color: #334155;
|
||||
font-size: 13px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.review-edit-field span em {
|
||||
margin-left: 4px;
|
||||
color: #dc2626;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
.review-edit-field input,
|
||||
.review-edit-field textarea {
|
||||
width: 100%;
|
||||
border: 1px solid #dbe6f0;
|
||||
border-radius: 16px;
|
||||
background: #fff;
|
||||
color: #0f172a;
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
padding: 12px 14px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.review-edit-field input:focus,
|
||||
.review-edit-field textarea:focus {
|
||||
outline: none;
|
||||
border-color: #60a5fa;
|
||||
box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
|
||||
}
|
||||
|
||||
.review-edit-field textarea {
|
||||
min-height: 96px;
|
||||
}
|
||||
|
||||
.review-edit-field.attachments,
|
||||
.review-edit-field textarea,
|
||||
.review-edit-field .textarea {
|
||||
grid-column: span 2;
|
||||
}
|
||||
|
||||
.review-edit-actions {
|
||||
padding: 0 24px 24px;
|
||||
}
|
||||
|
||||
.welcome-grid {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
@@ -1092,4 +1325,31 @@
|
||||
.review-mini-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.review-edit-modal {
|
||||
width: calc(100vw - 24px);
|
||||
}
|
||||
|
||||
.review-edit-form {
|
||||
grid-template-columns: 1fr;
|
||||
padding: 18px;
|
||||
}
|
||||
|
||||
.review-edit-field.attachments,
|
||||
.review-edit-field textarea,
|
||||
.review-edit-field .textarea {
|
||||
grid-column: auto;
|
||||
}
|
||||
|
||||
.review-edit-actions,
|
||||
.review-confirm-actions {
|
||||
padding: 0 18px 18px;
|
||||
justify-content: stretch;
|
||||
}
|
||||
|
||||
.primary-dialog-btn,
|
||||
.secondary-dialog-btn,
|
||||
.danger-dialog-btn {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user