feat(miniprogram): migrate expense items and workflow admin from bx-mobile.
Enable mobile config of expense tree and advance/reimburse approval nodes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
1bd0503409
commit
f13eba5623
7 files changed
+1209
-8
No files matched your search
@@ -1513,3 +1513,257 @@
|
||||
.bx-page .bx-upload-sheet .form-input-prefix .form-input {
|
||||
padding-left: 28px;
|
||||
}
|
||||
|
||||
/* ---- Batch6: expense tree + workflow config ---- */
|
||||
.bx-page .section-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin: 14px 0 10px;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.bx-page .section-title::before {
|
||||
content: '';
|
||||
width: 3px;
|
||||
height: 14px;
|
||||
border-radius: 2px;
|
||||
background: var(--primary);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.bx-page .card-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding-bottom: 72px;
|
||||
}
|
||||
|
||||
.bx-page .tree-card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r);
|
||||
box-shadow: var(--shadow);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.bx-page .tree-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 12px 14px;
|
||||
background: linear-gradient(135deg, var(--primary-bg), #fff);
|
||||
}
|
||||
|
||||
.bx-page .tree-head__left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.bx-page .tree-head__title {
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
color: var(--text);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.bx-page .tree-head__tags {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.bx-page .tree-twisty {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
border-radius: 7px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(16, 185, 129, 0.1);
|
||||
color: var(--primary-dark);
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
line-height: 1;
|
||||
transition: transform 0.15s;
|
||||
flex-shrink: 0;
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
|
||||
.bx-page .tree-twisty.expanded {
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
|
||||
.bx-page .tree-body {
|
||||
border-top: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.bx-page .tree-meta-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
gap: 6px;
|
||||
padding: 8px 14px;
|
||||
background: var(--bg);
|
||||
}
|
||||
|
||||
.bx-page .tree-meta-cell .k {
|
||||
display: block;
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.bx-page .tree-meta-cell .v {
|
||||
display: block;
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
margin-top: 2px;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.bx-page .tree-child-card {
|
||||
margin: 0 14px 10px;
|
||||
border-left: 3px solid var(--primary);
|
||||
}
|
||||
|
||||
.bx-page .op-card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.bx-page .op-card-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.bx-page .op-card-title {
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
line-height: 1.3;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.bx-page .op-card-sub {
|
||||
margin-top: 4px;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.bx-page .op-card-body {
|
||||
padding: 10px 0 0;
|
||||
}
|
||||
|
||||
.bx-page .tree-body > .op-card-body {
|
||||
padding: 10px 14px;
|
||||
}
|
||||
|
||||
.bx-page .tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 8px;
|
||||
border-radius: 8px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
border: 1px solid transparent;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.bx-page .tag-neutral {
|
||||
background: #f1f5f9;
|
||||
color: #64748b;
|
||||
border-color: rgba(100, 116, 139, 0.15);
|
||||
}
|
||||
|
||||
.bx-page .detail-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
|
||||
.bx-page .detail-item {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--rs);
|
||||
padding: 10px 12px;
|
||||
}
|
||||
|
||||
.bx-page .detail-item .di-label {
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
|
||||
.bx-page .detail-item .di-value {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: var(--text);
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.bx-page .flow-card {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r);
|
||||
padding: 16px;
|
||||
margin-bottom: 72px;
|
||||
}
|
||||
|
||||
.bx-page .flow-info__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.bx-page .form-textarea-counter {
|
||||
margin-top: 4px;
|
||||
text-align: right;
|
||||
font-size: 11px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.bx-page .switch-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.bx-page .switch-row__label {
|
||||
font-size: 13px;
|
||||
color: var(--text-sec);
|
||||
}
|
||||
|
||||
.bx-page .field-tip {
|
||||
margin-top: 6px;
|
||||
font-size: 11px;
|
||||
color: var(--warning);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.bx-page .bx-sheet--tall {
|
||||
max-height: 85vh;
|
||||
}
|
||||
|
||||
.bx-page .bx-sheet__body--form {
|
||||
padding: 8px 16px 4px;
|
||||
max-height: 60vh;
|
||||
}
|
||||
Reference in new issue
Block a user