首页 Tab 内嵌仓库管理面板:批次/可用/成本价/报告/入库时间 默认仅看可用,顶部统计库存批次、可用总量、可用货值 批量上传按 Web 流程:上传→识别→候选→人工确认,编辑可直传 新增权限码 warehouse_manage,默认赋予仓管,不映射 Web 菜单 6 条移动端薄路由,全部复用 Web 同一批 service 修复首页未转发 onReachBottom 导致内嵌列表只有第 1 页 修复录单员获授权后点仓库管理回弹(漏传 permissions)
598 lines
10 KiB
Plaintext
598 lines
10 KiB
Plaintext
.home-page {
|
|
position: relative;
|
|
min-height: 100vh;
|
|
background: #f3faf6;
|
|
overflow: visible;
|
|
}
|
|
|
|
.home-atmosphere {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
height: 340rpx;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
background:
|
|
radial-gradient(ellipse 80% 70% at 10% 0%, rgba(16, 185, 129, 0.18) 0%, transparent 60%),
|
|
linear-gradient(180deg, #d1fae5 0%, rgba(243, 250, 246, 0) 100%);
|
|
}
|
|
|
|
.section,
|
|
.login-cta {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.home-purchase-embed {
|
|
margin-top: 8rpx;
|
|
padding-bottom: calc(120rpx + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.home-progress-sticky {
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
z-index: 45;
|
|
background: #f3faf6;
|
|
}
|
|
|
|
.home-progress-dock {
|
|
--home-progress-card-height: 120rpx;
|
|
padding: 8rpx 24rpx;
|
|
background: #f3faf6;
|
|
}
|
|
|
|
.home-progress-dock > view {
|
|
box-sizing: border-box;
|
|
height: var(--home-progress-card-height);
|
|
min-height: var(--home-progress-card-height);
|
|
max-height: var(--home-progress-card-height);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.kpi-card {
|
|
margin: 0;
|
|
padding: 8rpx 16rpx;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
border-radius: 20rpx;
|
|
background: linear-gradient(135deg, #047857 0%, #059669 55%, #10b981 100%);
|
|
color: #fff;
|
|
box-shadow: 0 8rpx 20rpx rgba(5, 150, 105, 0.22);
|
|
}
|
|
|
|
.purchase-progress-card {
|
|
margin: 0;
|
|
padding: 8rpx 16rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
border-radius: 20rpx;
|
|
background: linear-gradient(135deg, #047857 0%, #059669 55%, #10b981 100%);
|
|
color: #fff;
|
|
box-shadow: 0 8rpx 20rpx rgba(5, 150, 105, 0.22);
|
|
}
|
|
|
|
.purchase-progress-card .kpi-left,
|
|
.purchase-progress-card .kpi-right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2rpx;
|
|
}
|
|
|
|
.purchase-progress-card .kpi-right {
|
|
align-items: flex-end;
|
|
text-align: right;
|
|
}
|
|
|
|
.purchase-progress-card .kpi-date,
|
|
.purchase-progress-card .kpi-progress {
|
|
font-size: var(--xd-nav-title-size);
|
|
font-weight: var(--xd-nav-title-weight);
|
|
line-height: 1.05;
|
|
}
|
|
|
|
.purchase-progress-card .kpi-progress {
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.prep-progress-card {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
justify-content: center;
|
|
gap: 0;
|
|
}
|
|
|
|
.prep-progress-main {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.prep-category-row {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 6rpx;
|
|
margin-top: 4rpx;
|
|
padding-top: 4rpx;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.22);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.prep-category-pill {
|
|
font-size: 18rpx;
|
|
line-height: 1.1;
|
|
font-weight: 400;
|
|
color: #fff;
|
|
padding: 2rpx 10rpx;
|
|
border-radius: 999rpx;
|
|
background: rgba(255, 255, 255, 0.16);
|
|
border: 1px solid rgba(255, 255, 255, 0.32);
|
|
max-width: 40%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.prep-category-pill.is-primary {
|
|
background: #fff;
|
|
color: #047857;
|
|
border-color: #fff;
|
|
}
|
|
|
|
.delivery-progress-card {
|
|
margin: 0;
|
|
padding: 8rpx 12rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
border-radius: 20rpx;
|
|
background: linear-gradient(135deg, #047857 0%, #059669 55%, #10b981 100%);
|
|
color: #fff;
|
|
box-shadow: 0 8rpx 20rpx rgba(5, 150, 105, 0.22);
|
|
}
|
|
|
|
.delivery-progress-card .kpi-cell {
|
|
flex: 1;
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
gap: 0;
|
|
min-height: 0;
|
|
}
|
|
|
|
.order-progress-card .kpi-cell {
|
|
margin: 0 2rpx;
|
|
padding: 2rpx 2rpx;
|
|
border-radius: 10rpx;
|
|
border: 2rpx solid transparent;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.order-progress-card .kpi-cell.is-selected {
|
|
background: rgba(255, 255, 255, 0.22);
|
|
border-color: rgba(255, 255, 255, 0.85);
|
|
}
|
|
|
|
.order-progress-card .kpi-cell--text {
|
|
justify-content: center;
|
|
min-height: 0;
|
|
}
|
|
|
|
.order-progress-card .kpi-cell--text .kpi-label {
|
|
font-size: var(--xd-nav-title-size);
|
|
font-weight: var(--xd-nav-title-weight);
|
|
opacity: 1;
|
|
line-height: 1.05;
|
|
}
|
|
|
|
.delivery-progress-card .kpi-num {
|
|
font-size: var(--xd-nav-title-size);
|
|
font-weight: var(--xd-nav-title-weight);
|
|
font-variant-numeric: tabular-nums;
|
|
line-height: 1.05;
|
|
}
|
|
|
|
.delivery-progress-card .kpi-label {
|
|
font-size: var(--xd-nav-title-size);
|
|
font-weight: var(--xd-nav-title-weight);
|
|
line-height: 1.05;
|
|
opacity: 0.95;
|
|
}
|
|
|
|
.delivery-progress-card .kpi-divider {
|
|
width: 1px;
|
|
height: 28rpx;
|
|
background: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
.module-title-card {
|
|
justify-content: center;
|
|
min-height: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.module-title-text {
|
|
font-size: var(--xd-nav-title-size);
|
|
font-weight: var(--xd-nav-title-weight);
|
|
line-height: 1.05;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
/* 仓库管理统计卡:可用货值会比较长,数字单行不换行,溢出才截断 */
|
|
.warehouse-stats-card .kpi-cell {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.warehouse-stats-card .kpi-num {
|
|
font-size: 30rpx;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.kpi-label {
|
|
font-size: 18rpx;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.kpi-value-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 6rpx;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.kpi-value {
|
|
font-size: var(--xd-nav-title-size);
|
|
font-weight: var(--xd-nav-title-weight);
|
|
line-height: 1;
|
|
}
|
|
|
|
.kpi-unit {
|
|
font-size: 18rpx;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.kpi-side {
|
|
text-align: right;
|
|
}
|
|
|
|
.kpi-side-item {
|
|
margin-bottom: 4rpx;
|
|
}
|
|
|
|
.kpi-side-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.kpi-side-label {
|
|
font-size: 18rpx;
|
|
opacity: 0.85;
|
|
margin-right: 10rpx;
|
|
}
|
|
|
|
.kpi-side-value {
|
|
font-size: var(--xd-nav-title-size);
|
|
font-weight: var(--xd-nav-title-weight);
|
|
}
|
|
|
|
.home-top-dock-spacer {
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.home-module-dock {
|
|
padding: 8rpx 0 12rpx;
|
|
background: #f3faf6;
|
|
}
|
|
|
|
.section-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
padding: 0 32rpx;
|
|
margin-bottom: 18rpx;
|
|
}
|
|
|
|
.section-mark {
|
|
width: 8rpx;
|
|
height: 28rpx;
|
|
border-radius: 8rpx;
|
|
background: linear-gradient(180deg, #10b981 0%, #047857 100%);
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 30rpx;
|
|
font-weight: 700;
|
|
color: #0a0a0b;
|
|
}
|
|
|
|
.module-grid {
|
|
--xd-module-grid-gap: 8rpx;
|
|
--xd-module-grid-pad: 4rpx;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: 0 8rpx;
|
|
row-gap: var(--xd-module-grid-gap);
|
|
}
|
|
|
|
.grid-card {
|
|
position: relative;
|
|
width: 20%;
|
|
box-sizing: border-box;
|
|
padding: 0 var(--xd-module-grid-pad);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
justify-content: center;
|
|
}
|
|
|
|
.grid-card .grid-title {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
margin: 0;
|
|
min-height: 56rpx;
|
|
padding: 8rpx 2rpx;
|
|
border-radius: 8rpx;
|
|
background: #f4f4f5;
|
|
border: 2rpx solid #d4d4d8;
|
|
box-shadow: 0 2rpx 0 #e4e4e7;
|
|
font-size: var(--xd-module-grid-size);
|
|
font-weight: var(--xd-module-grid-weight);
|
|
font-style: normal;
|
|
color: #3f3f46;
|
|
line-height: 1.2;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
word-break: keep-all;
|
|
overflow: hidden;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.grid-card.is-active .grid-title {
|
|
background: #ecfdf5;
|
|
border-color: #059669;
|
|
box-shadow: 0 2rpx 0 #047857;
|
|
color: #047857;
|
|
}
|
|
|
|
.list-icon {
|
|
width: 72rpx;
|
|
height: 72rpx;
|
|
border-radius: 22rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.menu-badge {
|
|
min-width: 28rpx;
|
|
height: 28rpx;
|
|
padding: 0 6rpx;
|
|
border-radius: 999rpx;
|
|
background: #ef4444;
|
|
color: #fff;
|
|
font-size: 18rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.grid-badge {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
z-index: 1;
|
|
min-width: 22rpx;
|
|
height: 22rpx;
|
|
padding: 0 4rpx;
|
|
font-size: 16rpx;
|
|
}
|
|
|
|
.list-section {
|
|
margin-top: 36rpx;
|
|
}
|
|
|
|
.list-card {
|
|
margin: 0 24rpx;
|
|
background: #fff;
|
|
border: 1px solid #e7efea;
|
|
border-radius: 28rpx;
|
|
overflow: hidden;
|
|
box-shadow: 0 8rpx 24rpx rgba(15, 23, 42, 0.03);
|
|
}
|
|
|
|
.list-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20rpx;
|
|
padding: 28rpx 24rpx;
|
|
border-bottom: 1px solid #f1f5f3;
|
|
}
|
|
|
|
.list-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.list-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.list-title-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8rpx;
|
|
}
|
|
|
|
.list-title {
|
|
font-size: 28rpx;
|
|
font-weight: 600;
|
|
color: #0a0a0b;
|
|
}
|
|
|
|
.list-sub {
|
|
margin-top: 6rpx;
|
|
font-size: 22rpx;
|
|
color: #8b949e;
|
|
display: -webkit-box;
|
|
-webkit-box-orient: vertical;
|
|
-webkit-line-clamp: 1;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tone-emerald {
|
|
background: #ecfdf5;
|
|
color: #059669;
|
|
}
|
|
|
|
.tone-teal {
|
|
background: #f0fdfa;
|
|
color: #0d9488;
|
|
}
|
|
|
|
.tone-sky {
|
|
background: #f0f9ff;
|
|
color: #0284c7;
|
|
}
|
|
|
|
.tone-lime {
|
|
background: #f7fee7;
|
|
color: #65a30d;
|
|
}
|
|
|
|
.tone-orange {
|
|
background: #fff7ed;
|
|
color: #ea580c;
|
|
}
|
|
|
|
.tone-amber {
|
|
background: #fffbeb;
|
|
color: #d97706;
|
|
}
|
|
|
|
.tone-violet {
|
|
background: #f5f3ff;
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.login-cta {
|
|
margin: 80rpx 40rpx 0;
|
|
padding: 24rpx 28rpx 36rpx;
|
|
background: #fff;
|
|
border-radius: 28rpx;
|
|
border: 1px solid #e7efea;
|
|
}
|
|
|
|
/* 未登录工作台:去掉导航栏下大块留白,不影响已登录宫格 */
|
|
.home-page--guest .login-cta {
|
|
margin: 48rpx 32rpx 0;
|
|
padding: 36rpx 28rpx 32rpx;
|
|
}
|
|
|
|
.login-empty {
|
|
padding: 8rpx 0 4rpx !important;
|
|
}
|
|
|
|
.login-empty .van-empty__image {
|
|
height: 200rpx !important;
|
|
width: 200rpx !important;
|
|
}
|
|
|
|
.login-cta-btn {
|
|
margin-top: 8rpx !important;
|
|
}
|
|
|
|
.role-mask {
|
|
position: fixed;
|
|
inset: 0;
|
|
background: rgba(15, 23, 42, 0.45);
|
|
z-index: 200;
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.role-sheet {
|
|
width: 100%;
|
|
background: #fff;
|
|
border-radius: 28rpx 28rpx 0 0;
|
|
padding: 16rpx 32rpx calc(32rpx + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.role-sheet-handle {
|
|
width: 64rpx;
|
|
height: 8rpx;
|
|
border-radius: 8rpx;
|
|
background: #e4e4e7;
|
|
margin: 0 auto 20rpx;
|
|
}
|
|
|
|
.role-sheet-title {
|
|
text-align: center;
|
|
font-weight: 700;
|
|
font-size: 30rpx;
|
|
margin-bottom: 12rpx;
|
|
color: #0a0a0b;
|
|
}
|
|
|
|
.role-option {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 30rpx 8rpx;
|
|
border-top: 1px solid #f1f5f3;
|
|
font-size: 30rpx;
|
|
color: #3f3f46;
|
|
}
|
|
|
|
.role-option.on {
|
|
color: #059669;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.role-cancel {
|
|
text-align: center;
|
|
padding: 28rpx;
|
|
margin-top: 12rpx;
|
|
color: #52525b;
|
|
background: #f4f4f5;
|
|
border-radius: 20rpx;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.anim-rise {
|
|
animation: rise-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
|
|
}
|
|
|
|
.anim-rise--delay {
|
|
animation-delay: 0.08s;
|
|
}
|
|
|
|
.anim-rise--delay-2 {
|
|
animation-delay: 0.16s;
|
|
}
|
|
|
|
@keyframes rise-in {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(20rpx);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|