// OA 审批列表(业务申请 + 审批列表)统一样式
|
|
.oa-approval-page {
|
min-height: 100vh;
|
background: #f2f4f7;
|
display: flex;
|
flex-direction: column;
|
box-sizing: border-box;
|
}
|
|
.oa-list-scroll {
|
width: 100%;
|
box-sizing: border-box;
|
}
|
|
.oa-toolbar {
|
display: flex;
|
align-items: center;
|
gap: 10px;
|
padding: 10px 16px;
|
background: #fff;
|
border-bottom: 1px solid #eef0f3;
|
}
|
|
.oa-filter-chip {
|
flex: 1;
|
min-height: 40px;
|
padding: 0 14px;
|
background: #f5f7fa;
|
border-radius: 20px;
|
display: flex;
|
align-items: center;
|
gap: 6px;
|
border: 1px solid transparent;
|
|
&.active {
|
background: #ecf3ff;
|
border-color: #b3d4ff;
|
}
|
|
.chip-label {
|
font-size: 14px;
|
color: #333;
|
font-weight: 500;
|
flex-shrink: 0;
|
}
|
|
.chip-value {
|
flex: 1;
|
font-size: 13px;
|
color: #666;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
|
.chip-placeholder {
|
flex: 1;
|
font-size: 13px;
|
color: #aaa;
|
}
|
}
|
|
.oa-icon-btn {
|
width: 40px;
|
height: 40px;
|
border-radius: 20px;
|
background: #f5f7fa;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
flex-shrink: 0;
|
|
&:active {
|
background: #e8ebf0;
|
}
|
}
|
|
.oa-card-list {
|
padding: 12px 16px 4px;
|
}
|
|
.oa-card {
|
background: #fff;
|
border-radius: 12px;
|
margin-bottom: 12px;
|
overflow: hidden;
|
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
|
|
&:active {
|
opacity: 0.92;
|
}
|
}
|
|
.oa-card-head {
|
padding: 14px 14px 10px;
|
display: flex;
|
align-items: flex-start;
|
justify-content: space-between;
|
gap: 10px;
|
}
|
|
.oa-card-title-wrap {
|
flex: 1;
|
min-width: 0;
|
}
|
|
.oa-card-title {
|
display: block;
|
font-size: 15px;
|
font-weight: 600;
|
color: #1a1a1a;
|
line-height: 1.4;
|
overflow: hidden;
|
text-overflow: ellipsis;
|
white-space: nowrap;
|
}
|
|
.oa-card-sub {
|
display: block;
|
margin-top: 4px;
|
font-size: 12px;
|
color: #8c8c8c;
|
}
|
|
.oa-status {
|
flex-shrink: 0;
|
font-size: 11px;
|
line-height: 1;
|
padding: 5px 8px;
|
border-radius: 4px;
|
font-weight: 500;
|
|
&.status-pending {
|
color: #d46b08;
|
background: #fff7e6;
|
}
|
|
&.status-approved {
|
color: #389e0d;
|
background: #f6ffed;
|
}
|
|
&.status-rejected {
|
color: #cf1322;
|
background: #fff1f0;
|
}
|
|
&.status-draft {
|
color: #595959;
|
background: #f5f5f5;
|
}
|
|
&.status-cancelled {
|
color: #8c8c8c;
|
background: #fafafa;
|
}
|
}
|
|
.oa-card-body {
|
padding: 0 14px 12px;
|
}
|
|
.oa-info-grid {
|
display: flex;
|
flex-direction: column;
|
gap: 8px;
|
}
|
|
.oa-info-row {
|
display: flex;
|
align-items: baseline;
|
font-size: 13px;
|
line-height: 1.45;
|
}
|
|
.oa-info-label {
|
width: 72px;
|
flex-shrink: 0;
|
color: #8c8c8c;
|
}
|
|
.oa-info-value {
|
flex: 1;
|
color: #333;
|
word-break: break-all;
|
}
|
|
.oa-card-foot {
|
display: flex;
|
align-items: center;
|
justify-content: flex-end;
|
gap: 10px;
|
padding: 10px 14px;
|
background: #fafbfc;
|
border-top: 1px solid #f0f2f5;
|
}
|
|
.oa-foot-btn {
|
min-width: 64px;
|
height: 32px;
|
line-height: 32px;
|
padding: 0 14px;
|
font-size: 13px;
|
border-radius: 16px;
|
text-align: center;
|
|
&.btn-detail {
|
color: #fff;
|
background: #2979ff;
|
}
|
|
&.btn-edit {
|
color: #2979ff;
|
background: #ecf3ff;
|
}
|
|
&.btn-delete {
|
color: #ff4d4f;
|
background: #fff1f0;
|
}
|
|
&.btn-approve {
|
color: #fff;
|
background: #2979ff;
|
}
|
}
|
|
.oa-empty,
|
.oa-loading {
|
padding: 48px 20px;
|
}
|
|
.oa-loading {
|
display: flex;
|
justify-content: center;
|
}
|
|
// 筛选弹窗
|
.oa-filter-popup {
|
padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
|
max-height: 72vh;
|
display: flex;
|
flex-direction: column;
|
background: #fff;
|
}
|
|
.oa-filter-head {
|
text-align: center;
|
font-size: 16px;
|
font-weight: 600;
|
color: #1a1a1a;
|
padding-bottom: 12px;
|
border-bottom: 1px solid #f0f2f5;
|
margin-bottom: 12px;
|
}
|
|
.oa-filter-scroll {
|
max-height: 50vh;
|
}
|
|
.oa-filter-field {
|
margin-bottom: 16px;
|
}
|
|
.oa-field-label {
|
display: block;
|
font-size: 13px;
|
color: #666;
|
margin-bottom: 8px;
|
}
|
|
.oa-picker-row {
|
display: flex;
|
align-items: center;
|
justify-content: space-between;
|
min-height: 44px;
|
padding: 0 14px;
|
background: #f5f7fa;
|
border-radius: 8px;
|
font-size: 14px;
|
color: #333;
|
|
.placeholder {
|
color: #bbb;
|
}
|
}
|
|
.oa-filter-actions {
|
display: flex;
|
gap: 12px;
|
margin-top: 16px;
|
padding-top: 12px;
|
}
|
|
.oa-filter-actions :deep(.u-button) {
|
flex: 1;
|
border-radius: 22px !important;
|
}
|
|
.oa-user-popup {
|
padding: 16px;
|
max-height: 60vh;
|
background: #fff;
|
}
|
|
.oa-user-popup-title {
|
text-align: center;
|
font-weight: 600;
|
font-size: 16px;
|
margin-bottom: 12px;
|
}
|
|
.oa-user-list {
|
max-height: 40vh;
|
margin-top: 10px;
|
}
|
|
.oa-user-item {
|
padding: 14px 4px;
|
font-size: 14px;
|
color: #333;
|
border-bottom: 1px solid #f0f2f5;
|
}
|
|
.oa-user-empty {
|
text-align: center;
|
color: #999;
|
padding: 24px;
|
font-size: 13px;
|
}
|
|
// 详情 / 审批处理等页底部操作栏
|
.oa-page-footer {
|
position: fixed;
|
left: 0;
|
right: 0;
|
bottom: 0;
|
z-index: 100;
|
display: flex;
|
flex-direction: row;
|
flex-wrap: nowrap;
|
align-items: center;
|
gap: 10px;
|
padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
|
background: #fff;
|
border-top: 1px solid #eef0f3;
|
box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
|
}
|
|
.oa-footer-btn {
|
flex: 1;
|
min-width: 0;
|
height: 44px;
|
line-height: 44px;
|
text-align: center;
|
font-size: 15px;
|
font-weight: 500;
|
border-radius: 22px;
|
border: none;
|
|
&:active {
|
opacity: 0.85;
|
}
|
|
&.btn-default {
|
color: #666;
|
background: #f2f4f7;
|
}
|
|
&.btn-primary {
|
color: #fff;
|
background: linear-gradient(140deg, #00baff 0%, #006cfb 100%);
|
box-shadow: 0 4px 10px rgba(0, 108, 251, 0.25);
|
}
|
|
&.btn-warn {
|
color: #fff;
|
background: linear-gradient(140deg, #ffb347 0%, #ff9800 100%);
|
box-shadow: 0 4px 10px rgba(255, 152, 0, 0.25);
|
}
|
|
&.btn-success {
|
color: #fff;
|
background: linear-gradient(140deg, #52c41a 0%, #389e0d 100%);
|
box-shadow: 0 4px 10px rgba(56, 158, 13, 0.25);
|
}
|
|
&.btn-danger {
|
color: #fff;
|
background: linear-gradient(140deg, #ff7875 0%, #f5222d 100%);
|
box-shadow: 0 4px 10px rgba(245, 34, 45, 0.2);
|
}
|
|
&.is-disabled {
|
opacity: 0.5;
|
pointer-events: none;
|
}
|
}
|
|
.oa-detail-page {
|
min-height: 100vh;
|
background: #f2f4f7;
|
display: flex;
|
flex-direction: column;
|
}
|
|
.oa-detail-scroll {
|
flex: 1;
|
height: 0;
|
padding: 10px 12px;
|
padding-bottom: calc(76px + env(safe-area-inset-bottom));
|
box-sizing: border-box;
|
}
|