Files
SupplierSystem/miniprogram/components/purchase-today-panel/index.wxss
T
雨天 6db5eb9e77
CI / server typecheck + tests (push) Canceled after 0s
CI / web typecheck + tests + miniprogram syntax (push) Canceled after 0s
CI / eslint (观察项,C7 骨架) (push) Canceled after 0s
CI / npm audit (critical 硬拦) (push) Canceled after 0s
小程序自采列表: 规格整行显示 + 单价预填去 0
① 规格从商品名列(被单位/数量/单价挤到极窄、规格与商品名都折行)移到卡片行下方独占一行;
② 单价输入预填去 0:0 视为未定价 ⇒ 留空(点击即可直接填,无需先删 0),>0 才预填;pickCostPriceHint 的「0 合法」语义不变。
均只改自采列表卡片,新增两条契约测试。
2026-10-16 17:21:56 +08:00

1630 lines
26 KiB
Plaintext

.purchase-today-panel {
position: relative;
min-height: 100vh;
padding-bottom: calc(220rpx + env(safe-area-inset-bottom));
background: #f3faf6;
box-sizing: border-box;
overflow: hidden;
}
.purchase-today-panel.is-embedded {
min-height: 0;
padding-bottom: calc(280rpx + env(safe-area-inset-bottom));
background: transparent;
overflow: visible;
}
.purchase-today-panel.is-embedded .kpi-card {
margin-top: 8rpx;
}
.panel-head-actions {
display: flex;
align-items: center;
gap: 12rpx;
flex-shrink: 0;
}
.history-link {
padding: 10rpx 16rpx;
border-radius: 999rpx;
background: #fff;
border: 1px solid #d1fae5;
color: #047857;
font-size: 24rpx;
font-weight: 600;
}
.seg-tabs {
display: flex;
width: 100%;
margin-top: 10rpx;
margin-bottom: 0;
padding: 3rpx;
border-radius: 12rpx;
background: #f4f4f5;
}
.seg-tab {
flex: 1;
text-align: center;
padding: 8rpx 0;
border-radius: 10rpx;
font-size: 24rpx;
font-weight: 600;
color: #71717a;
}
.seg-tab.active {
background: #059669;
color: #fff;
box-shadow: 0 4rpx 10rpx rgba(5, 150, 105, 0.22);
}
.branch-scope-hint {
margin-top: 8rpx;
font-size: 22rpx;
color: #047857;
}
.bottom-bar-slot {
height: calc(148rpx + env(safe-area-inset-bottom));
flex-shrink: 0;
}
.bottom-bar-slot--embedded {
height: 148rpx;
}
.page-atmosphere {
position: absolute;
left: 0;
right: 0;
top: 0;
height: 280rpx;
pointer-events: none;
z-index: 0;
background:
radial-gradient(ellipse 70% 80% at 90% 0%, rgba(16, 185, 129, 0.16) 0%, transparent 60%),
linear-gradient(180deg, #d1fae5 0%, rgba(243, 250, 246, 0) 100%);
}
.kpi-card,
.main-panel {
position: relative;
z-index: 1;
}
.kpi-card {
margin: 20rpx 24rpx 0;
background: linear-gradient(135deg, #047857 0%, #059669 55%, #10b981 100%);
border-radius: 28rpx;
padding: 28rpx 32rpx;
display: flex;
align-items: flex-start;
justify-content: space-between;
color: #fff;
box-shadow: 0 16rpx 40rpx rgba(5, 150, 105, 0.28);
}
.kpi-left,
.kpi-right {
display: flex;
flex-direction: column;
gap: 8rpx;
}
.kpi-right {
align-items: flex-end;
text-align: right;
}
.kpi-label {
font-size: 22rpx;
opacity: 0.9;
}
.kpi-date {
font-size: 36rpx;
font-weight: 700;
line-height: 1.2;
}
.kpi-progress {
font-size: 36rpx;
font-weight: 700;
font-variant-numeric: tabular-nums;
line-height: 1.2;
}
.main-panel {
margin: 12rpx 24rpx 0;
padding: 20rpx 20rpx 16rpx;
background: #fff;
border: 1px solid #e7efea;
border-radius: 28rpx;
box-shadow: 0 10rpx 28rpx rgba(6, 78, 59, 0.05);
}
.panel-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16rpx;
margin-bottom: 10rpx;
}
.panel-head-left {
min-width: 0;
flex: 1;
}
.today-toolbar-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
}
.today-toolbar-row .aggregate-toggle {
margin-top: 0;
min-width: 0;
flex: 1;
}
.today-toolbar-row .order-item-tools {
margin-left: 0;
}
.section-head {
display: flex;
align-items: center;
gap: 12rpx;
}
.order-item-tools {
display: flex;
align-items: center;
gap: 10rpx;
margin-left: auto;
flex-shrink: 0;
}
.order-item-tool {
padding: 8rpx 18rpx;
border-radius: 999rpx;
font-size: 22rpx;
font-weight: 650;
line-height: 1.4;
border: 1px solid #a7f3d0;
background: #ecfdf5;
color: #047857;
}
.order-item-tool--remove {
border-color: #fecaca;
background: #fef2f2;
color: #dc2626;
}
.section-mark {
width: 8rpx;
height: 28rpx;
border-radius: 8rpx;
background: linear-gradient(180deg, #10b981 0%, #047857 100%);
flex-shrink: 0;
}
.section-title {
font-size: 30rpx;
font-weight: 700;
color: #0a0a0b;
}
.date-hint {
margin-top: 10rpx;
font-size: 22rpx;
color: #71717a;
line-height: 1.45;
}
.refresh-btn {
display: inline-flex;
align-items: center;
gap: 6rpx;
padding: 10rpx 16rpx;
border-radius: 999rpx;
background: #ecfdf5;
color: #047857;
font-size: 24rpx;
font-weight: 600;
flex-shrink: 0;
}
.seg-tabs {
display: flex;
width: 100%;
margin-top: 10rpx;
margin-bottom: 0;
padding: 3rpx;
border-radius: 12rpx;
background: #f4f4f5;
}
.seg-tab {
flex: 1;
text-align: center;
padding: 8rpx 0;
border-radius: 10rpx;
font-size: 24rpx;
font-weight: 600;
color: #71717a;
}
.seg-tab.active {
background: #059669;
color: #fff;
box-shadow: 0 4rpx 10rpx rgba(5, 150, 105, 0.22);
}
.toolbar-card {
margin-bottom: 16rpx;
padding: 16rpx 18rpx;
border-radius: 18rpx;
background: #fafafa;
border: 1px solid #f1f5f3;
}
.filter-row {
display: flex;
gap: 12rpx;
flex-wrap: wrap;
}
.filter-chip {
display: inline-flex;
align-items: center;
gap: 6rpx;
padding: 12rpx 20rpx;
border-radius: 999rpx;
font-size: 24rpx;
font-weight: 600;
color: #52525b;
background: #fff;
border: 1px solid #e4e4e7;
}
.filter-chip.active {
color: #fff;
background: #059669;
border-color: #059669;
}
.aggregate-toggle {
display: flex;
align-items: center;
gap: 8rpx;
margin-top: 10rpx;
}
.aggregate-toggle--compact .aggregate-switch-wrap {
width: 52rpx;
height: 32rpx;
overflow: hidden;
display: flex;
align-items: center;
flex-shrink: 0;
}
.aggregate-toggle--compact .aggregate-switch {
transform: scale(0.5);
transform-origin: left center;
margin-right: -52rpx;
}
.aggregate-toggle--compact .aggregate-label {
font-size: 22rpx;
font-weight: 600;
color: #0a0a0b;
}
.aggregate-toggle--compact .aggregate-hint {
font-size: 18rpx;
color: #a1a1aa;
}
.aggregate-text {
display: flex;
flex-direction: column;
gap: 2rpx;
min-width: 0;
}
.aggregate-row {
margin-top: 14rpx;
padding-top: 14rpx;
border-top: 1px dashed #e7efea;
}
.category-scroll {
display: block;
width: 100%;
height: 60rpx;
margin-bottom: 8rpx;
white-space: nowrap;
}
.category-chip {
display: inline-flex;
align-items: center;
justify-content: center;
height: 56rpx;
padding: 0 20rpx;
margin-right: 12rpx;
box-sizing: border-box;
border-radius: 999rpx;
font-size: 24rpx;
line-height: 1;
color: #52525b;
background: #fafafa;
border: 1px solid #e4e4e7;
vertical-align: middle;
}
.category-chip.active {
color: #fff;
background: #059669;
border-color: #059669;
}
.error-box {
margin-bottom: 12rpx;
padding: 16rpx 18rpx;
border-radius: 16rpx;
background: #fef2f2;
border: 1px solid #fecaca;
color: #ef4444;
font-size: 24rpx;
}
.state-box {
padding: 48rpx 16rpx;
display: flex;
justify-content: center;
}
.order-group {
margin-top: 18rpx;
border: 1px solid #e7efea;
border-radius: 20rpx;
overflow: hidden;
background: #fff;
box-shadow: 0 4rpx 16rpx rgba(15, 23, 42, 0.03);
}
.order-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16rpx;
padding: 22rpx 24rpx;
background: #f8fafc;
border-bottom: 1px solid #e7efea;
}
.order-header-main {
display: flex;
align-items: center;
gap: 12rpx;
min-width: 0;
flex: 1;
}
.order-header-text {
min-width: 0;
flex: 1;
}
.order-title {
font-size: 28rpx;
font-weight: 700;
color: #0a0a0b;
}
.order-sub {
font-size: 22rpx;
margin-top: 4rpx;
color: #71717a;
}
.order-badge {
font-size: 22rpx;
color: #52525b;
white-space: nowrap;
padding: 6rpx 14rpx;
border-radius: 999rpx;
background: #f4f4f5;
}
.pending-badge {
color: #d97706;
background: #fffbeb;
border: 1px solid #fde68a;
font-weight: 600;
}
.product-card {
padding: 24rpx;
border-top: 1px solid #f1f5f3;
}
.product-card-head {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 12rpx;
}
.product-card-main {
display: flex;
align-items: flex-start;
gap: 12rpx;
min-width: 0;
flex: 1;
}
.product-card-text {
min-width: 0;
flex: 1;
}
.task-title {
font-size: 28rpx;
font-weight: 700;
color: #0a0a0b;
line-height: 1.35;
}
.product-meta {
margin-top: 6rpx;
font-size: 22rpx;
color: #71717a;
}
.product-children {
margin-top: 16rpx;
padding-top: 12rpx;
border-top: 1px dashed #e7efea;
}
.child-item {
padding: 14rpx 0;
border-bottom: 1px solid #f4f4f5;
}
.child-item:last-child {
border-bottom: none;
}
.child-line {
font-size: 22rpx;
color: #71717a;
line-height: 1.45;
}
.history-toolbar {
margin-bottom: 0;
}
.period-chip {
white-space: nowrap;
}
.history-range {
margin-top: 12rpx;
align-items: center;
flex-wrap: nowrap;
}
.history-range picker {
min-width: 0;
}
.history-export-row {
margin-top: 12rpx;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
}
.period-summary {
flex: 1;
min-width: 0;
margin-top: 0;
font-size: 22rpx;
color: #71717a;
}
.export-btn {
flex-shrink: 0;
padding: 10rpx 22rpx;
border-radius: 999rpx;
background: #059669;
color: #fff;
font-size: 22rpx;
font-weight: 600;
line-height: 1.3;
}
.export-btn--ghost {
background: #fff;
color: #047857;
border: 1px solid #a7f3d0;
}
.export-btn.is-disabled { opacity: 0.55; }
.export-actions {
display: flex;
align-items: center;
gap: 12rpx;
flex-shrink: 0;
}
.print-canvas {
position: fixed;
left: 0;
top: 0;
width: 10px;
height: 10px;
opacity: 0;
pointer-events: none;
z-index: -1;
}
.range-chip {
padding: 12rpx 20rpx;
border-radius: 999rpx;
background: #fff;
border: 1px solid #e4e4e7;
font-size: 24rpx;
color: #52525b;
}
.range-value {
color: #0a0a0b;
font-weight: 600;
margin-left: 6rpx;
}
.day-header-side {
display: flex;
align-items: center;
gap: 14rpx;
}
.day-total-amount {
font-size: 28rpx;
font-weight: 700;
color: #0a0a0b;
}
.archive-table {
margin: 0;
border: none;
border-radius: 0;
overflow: hidden;
background: #fff;
}
.archive-tr {
display: flex;
align-items: center;
padding: 18rpx 20rpx;
border-top: 1px solid #f4f4f5;
}
.archive-tr--head {
border-top: none;
background: #fafafa;
padding: 14rpx 20rpx;
}
.archive-tr--head .archive-td {
color: #a1a1aa;
font-weight: 600;
font-size: 24rpx;
}
.archive-td {
font-size: 28rpx;
color: #0a0a0b;
}
.archive-td--name {
flex: 1;
min-width: 0;
word-break: break-all;
padding-right: 12rpx;
}
.archive-tag {
font-size: 20rpx;
font-weight: 600;
line-height: 1.2;
white-space: nowrap;
padding: 4rpx 10rpx;
margin-left: 8rpx;
border-radius: 8rpx;
color: #b45309;
background: #fef3c7;
}
.archive-td--qty {
width: 150rpx;
flex-shrink: 0;
}
.archive-td--price {
width: 130rpx;
flex-shrink: 0;
color: #52525b;
}
.archive-td--total {
width: 140rpx;
flex-shrink: 0;
text-align: right;
font-weight: 700;
}
.supplier-hint {
margin-top: 8rpx;
font-size: 22rpx;
color: #059669;
}
.setup-hint {
margin-top: 12rpx;
font-size: 22rpx;
color: #b45309;
background: #fffbeb;
border: 1px solid #fde68a;
border-radius: 12rpx;
padding: 12rpx 14rpx;
line-height: 1.45;
}
.product-setup {
margin-top: 16rpx;
padding: 16rpx;
background: #f8fafc;
border: 1px dashed #e7efea;
border-radius: 14rpx;
}
.field-block-cat {
position: relative;
z-index: 2;
margin-top: 14rpx;
}
.cat-field-row {
display: flex;
align-items: flex-start;
gap: 8rpx;
}
.cat-picker-wrap {
flex: 1;
min-width: 0;
position: relative;
}
.item-control {
width: 100%;
height: 64rpx;
line-height: 64rpx;
padding: 0 12rpx;
border: 1px solid #e4e4e7;
border-radius: 12rpx;
background: #fff;
font-size: 24rpx;
color: #0a0a0b;
box-sizing: border-box;
}
.item-control-cat {
display: flex;
align-items: center;
justify-content: space-between;
}
.item-control-cat.cat-filled .cat-label {
flex: 1;
min-width: 0;
color: #0a0a0b;
font-size: 24rpx;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.item-control-cat.cat-empty {
color: #b45309;
background: #fffbeb;
border-color: #fde68a;
}
.item-control-cat.cat-empty .cat-label {
flex: 1;
min-width: 0;
color: #b45309;
font-size: 22rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cat-arrow {
margin-left: 8rpx;
color: #a1a1aa;
font-size: 20rpx;
flex-shrink: 0;
}
.cat-dropdown-panel {
position: absolute;
left: 0;
right: 0;
top: 68rpx;
z-index: 950;
background: #fff;
border: 1px solid #e4e4e7;
border-radius: 12rpx;
box-shadow: 0 8rpx 24rpx rgba(15, 23, 42, 0.08);
overflow: hidden;
}
.cat-dropdown-search-wrap {
padding: 12rpx;
border-bottom: 1px solid #f4f4f5;
background: #fafafa;
}
.cat-dropdown-search {
display: block;
width: 100%;
height: 64rpx;
min-height: 64rpx;
line-height: 64rpx;
padding: 0 16rpx;
border: 1px solid #e4e4e7;
border-radius: 10rpx;
background: #fff;
font-size: 28rpx;
color: #0a0a0b;
caret-color: #059669;
box-sizing: border-box;
}
.cat-dropdown-list {
max-height: 320rpx;
}
.cat-dropdown-item {
padding: 18rpx 20rpx;
font-size: 26rpx;
color: #52525b;
border-bottom: 1px solid #f4f4f5;
}
.cat-dropdown-item.selected {
color: #047857;
background: #ecfdf5;
font-weight: 600;
}
.cat-dropdown-empty {
padding: 28rpx 20rpx;
text-align: center;
font-size: 24rpx;
color: #a1a1aa;
}
.cat-dropdown-footer {
padding: 16rpx 20rpx;
text-align: center;
font-size: 24rpx;
color: #059669;
font-weight: 600;
border-top: 1px solid #f4f4f5;
background: #fafafa;
}
.cat-add-btn {
width: 64rpx;
height: 64rpx;
line-height: 64rpx;
text-align: center;
border-radius: 12rpx;
background: #ecfdf5;
border: 1px solid #a7f3d0;
color: #059669;
font-size: 32rpx;
font-weight: 600;
flex-shrink: 0;
}
.modal-mask {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.45);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
}
.modal-mask--over-spi {
z-index: 11000;
}
.modal-card {
width: 80%;
background: #fff;
border-radius: 20rpx;
padding: 28rpx 24rpx;
}
.modal-title {
font-size: 30rpx;
font-weight: 700;
margin-bottom: 16rpx;
color: #0a0a0b;
}
.modal-input {
width: 100%;
padding: 16rpx;
border: 1px solid #e4e4e7;
border-radius: 12rpx;
box-sizing: border-box;
margin-bottom: 16rpx;
background: #fafafa;
}
.modal-actions {
display: flex;
gap: 12rpx;
}
.modal-btn {
flex: 1;
height: 72rpx !important;
line-height: 72rpx !important;
padding: 0 !important;
border-radius: 16rpx !important;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.spi-mask {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
padding: 48rpx 32rpx;
background: rgba(15, 23, 42, 0.48);
box-sizing: border-box;
}
.spi-modal-card {
width: 100%;
max-width: 680rpx;
max-height: 86vh;
overflow-y: auto;
background: #fff;
border-radius: 24rpx;
padding: 32rpx 28rpx 28rpx;
box-sizing: border-box;
box-shadow: 0 24rpx 64rpx rgba(15, 23, 42, 0.18);
}
.spi-modal-card--dropdown-open {
overflow: visible;
}
.spi-title {
font-size: 32rpx;
font-weight: 700;
color: #0a0a0b;
margin-bottom: 20rpx;
}
.spi-mode-row {
display: flex;
gap: 12rpx;
margin-bottom: 24rpx;
}
.spi-mode {
flex: 1;
height: 72rpx;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
border-radius: 14rpx;
font-size: 26rpx;
font-weight: 600;
color: #52525b;
background: #f4f4f5;
border: 2rpx solid #e4e4e7;
box-sizing: border-box;
}
.spi-mode.active {
color: #047857;
background: #ecfdf5;
border-color: #059669;
}
.spi-field {
margin-bottom: 18rpx;
}
.spi-field-label {
font-size: 22rpx;
font-weight: 600;
color: #71717a;
margin-bottom: 8rpx;
}
.spi-control {
width: 100%;
height: 80rpx;
padding: 0 20rpx;
border: 2rpx solid #d1fae5;
border-radius: 14rpx;
box-sizing: border-box;
background: #f4fdf8;
font-size: 28rpx;
font-weight: 600;
color: #0a0a0b;
line-height: 80rpx;
}
.spi-control--select {
display: flex;
align-items: center;
color: #047857;
}
.spi-control--select .cat-label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.spi-control--select.is-placeholder {
color: #94a3b8;
font-weight: 500;
}
.spi-select-row {
display: flex;
align-items: flex-start;
gap: 8rpx;
}
.spi-select-row .cat-add-btn {
width: 80rpx;
height: 80rpx;
line-height: 80rpx;
}
.spi-dropdown-panel {
position: relative;
top: 8rpx;
z-index: 1200;
}
.spi-control--area {
height: 140rpx;
min-height: 140rpx;
padding: 16rpx 20rpx;
line-height: 1.45;
font-weight: 500;
}
.spi-placeholder {
color: #94a3b8;
font-weight: 500;
}
.spi-sku-search {
position: relative;
}
.spi-suggestions {
margin-top: 12rpx;
height: 360rpx;
background: #fff;
border: 2rpx solid #d1fae5;
border-radius: 14rpx;
box-sizing: border-box;
}
.spi-suggestion {
padding: 18rpx 20rpx;
border-bottom: 1rpx solid #ecfdf5;
}
.spi-suggestion:last-child {
border-bottom: none;
}
.spi-suggestion-muted {
color: #a1a1aa;
font-size: 24rpx;
font-weight: 500;
}
.spi-sku-name {
font-size: 28rpx;
font-weight: 700;
color: #0a0a0b;
}
.spi-sku-meta {
margin-top: 4rpx;
font-size: 22rpx;
color: #71717a;
}
.spi-selected {
margin-top: 8rpx;
font-size: 22rpx;
font-weight: 600;
color: #047857;
}
.spi-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16rpx;
}
.spi-grid .spi-field {
margin-bottom: 18rpx;
}
.spi-actions {
display: flex;
gap: 16rpx;
margin-top: 8rpx;
}
.spi-btn {
flex: 1;
height: 80rpx !important;
line-height: 80rpx !important;
padding: 0 !important;
border-radius: 14rpx !important;
font-size: 28rpx !important;
font-weight: 700 !important;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.spi-btn::after {
border: none;
}
.spi-btn--ghost {
background: #fff !important;
color: #047857 !important;
border: 2rpx solid #059669 !important;
}
.spi-btn--primary {
background: #059669 !important;
color: #fff !important;
border: 2rpx solid #059669 !important;
}
.modal-btn::after {
border: none;
}
.actions {
display: flex;
gap: 12rpx;
margin-top: 16rpx;
flex-wrap: wrap;
}
.action-btn {
min-width: 160rpx;
height: 64rpx !important;
line-height: 64rpx !important;
padding: 0 24rpx !important;
border-radius: 14rpx !important;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
font-weight: 600;
}
.action-btn::after {
border: none;
}
.actual-grid {
display: flex;
gap: 16rpx;
margin-top: 16rpx;
flex-wrap: wrap;
}
.field-block {
flex: 1;
min-width: 200rpx;
}
.field-label {
font-size: 22rpx;
color: #a1a1aa;
margin-bottom: 8rpx;
}
.input-with-unit {
display: flex;
align-items: center;
border-radius: 12rpx;
background: #f4f4f5;
overflow: hidden;
border: 1px solid #eceef0;
}
.input {
flex: 1;
min-width: 0;
padding: 12rpx 16rpx;
font-size: 26rpx;
border: none;
background: transparent;
font-variant-numeric: tabular-nums;
}
.setup-input {
width: 100%;
border-radius: 12rpx;
background: #fff;
border: 1px solid #e4e4e7;
box-sizing: border-box;
}
.unit-tag {
padding: 0 16rpx;
font-size: 22rpx;
color: #a1a1aa;
align-self: stretch;
display: flex;
align-items: center;
white-space: nowrap;
}
.unit-picker {
border-radius: 12rpx;
background: #f4f4f5;
border: 1px solid #eceef0;
padding: 12rpx 16rpx;
font-size: 26rpx;
color: #0a0a0b;
}
.bottom-bar {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 99;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24rpx;
padding: 20rpx 28rpx calc(20rpx + env(safe-area-inset-bottom));
background: rgba(255, 255, 255, 0.96);
border-top: 1px solid #e7efea;
box-shadow: 0 -8rpx 24rpx rgba(6, 78, 59, 0.06);
box-sizing: border-box;
}
.bottom-bar--embedded {
bottom: calc(120rpx + env(safe-area-inset-bottom));
z-index: 99;
padding-bottom: 20rpx;
}
.bottom-left {
min-width: 0;
flex: 1;
}
.bottom-total-label {
font-size: 22rpx;
color: #a1a1aa;
}
.bottom-total-value {
font-size: 40rpx;
font-weight: 800;
color: #0a0a0b;
font-variant-numeric: tabular-nums;
}
.bottom-done-hint {
margin-top: 4rpx;
font-size: 24rpx;
font-weight: 600;
color: #059669;
}
.bottom-submit {
flex-shrink: 0;
padding: 0 32rpx;
height: 88rpx;
line-height: 88rpx;
border-radius: 20rpx;
background: linear-gradient(135deg, #047857 0%, #059669 100%);
color: #fff;
font-size: 28rpx;
font-weight: 700;
text-align: center;
box-shadow: 0 10rpx 24rpx rgba(5, 150, 105, 0.28);
}
.bottom-submit.is-disabled {
opacity: 0.45;
pointer-events: none;
box-shadow: none;
}
.anim-rise {
animation: rise-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.anim-rise--delay {
animation-delay: 0.08s;
}
@keyframes rise-in {
from {
opacity: 0;
transform: translateY(18rpx);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 图一:参考供货录入卡片布局 */
.today-date-axis {
padding: 0 4rpx 6rpx;
align-items: center;
}
.today-date-axis picker {
flex-shrink: 0;
}
.today-date-axis .axis-pick {
background: #ecfdf5;
color: #047857;
border-color: #a7f3d0;
}
.today-product-list {
display: flex;
flex-direction: column;
gap: 8rpx;
margin-top: 0;
}
.today-day-head {
margin: 8rpx 4rpx 0;
padding: 8rpx 4rpx 4rpx;
font-size: 22rpx;
font-weight: 700;
color: #047857;
}
.product-row-card {
background: #fff;
border-radius: 12rpx;
padding: 6rpx 8rpx;
border: 1px solid #e4e4e7;
}
.product-row-card.is-earliest {
border-color: #18181b;
}
.product-row {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 6rpx;
min-width: 0;
}
.product-row picker {
flex-shrink: 0;
}
.product-row-name {
flex: 1 1 0;
min-width: 96rpx;
overflow: visible;
}
.product-row-remark {
display: block;
margin-top: 2rpx;
font-size: 22rpx;
font-weight: 400;
color: #71717a;
line-height: 1.35;
word-break: break-word;
overflow-wrap: anywhere;
}
/* 规格:整行显示在卡片行下方(2026-10-16 从商品名列移出,避免被挤到折行) */
.product-row-spec {
margin-top: 4rpx;
padding: 0 2rpx;
font-size: 22rpx;
font-weight: 400;
color: #71717a;
line-height: 1.4;
word-break: break-word;
overflow-wrap: anywhere;
}
.product-row-demand {
flex-shrink: 0;
display: flex;
align-items: baseline;
gap: 6rpx;
max-width: 42%;
}
.product-row-demand .demand-label {
font-size: 20rpx;
color: #a1a1aa;
}
.product-row-demand .demand-qty {
font-size: 28rpx;
font-weight: 700;
color: #18181b;
font-variant-numeric: tabular-nums;
}
.product-row-demand .demand-extra {
font-size: 20rpx;
color: #71717a;
}
.product-row .task-title {
display: block;
font-size: 28rpx;
font-weight: 700;
color: #0a0a0b;
line-height: 1.35;
overflow: visible;
white-space: normal;
word-break: break-word;
overflow-wrap: anywhere;
}
.unit-picker--row {
box-sizing: border-box;
height: 56rpx;
min-height: 56rpx;
padding: 0 10rpx;
font-size: 24rpx;
min-width: 0;
line-height: 1;
display: flex;
align-items: center;
}
.product-row-num {
flex: 0 0 112rpx;
min-width: 0;
width: 112rpx;
height: 56rpx;
box-sizing: border-box;
}
.product-row-num .input {
padding: 0 4rpx 0 8rpx;
font-size: 26rpx;
height: 100%;
min-height: 0;
}
.product-row-num .unit-tag {
padding: 0 8rpx;
font-size: 22rpx;
}
.product-row .btn-done,
.product-row .btn-stockout,
.product-row .btn-photo {
height: 40rpx;
line-height: 36rpx;
padding: 0 10rpx;
font-size: 20rpx;
}
.prep-style-list {
display: flex;
flex-direction: column;
gap: 12rpx;
padding: 4rpx 0 0;
}
.task-card {
background: #fff;
border-radius: 16rpx;
padding: 16rpx 16rpx 14rpx;
border: 1px solid #e4e4e7;
}
.task-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8rpx;
margin-bottom: 10rpx;
}
.task-head-left {
flex: 1;
min-width: 0;
text-align: right;
}
.task-title-row {
display: flex;
align-items: center;
justify-content: flex-end;
flex-wrap: wrap;
gap: 10rpx;
}
.task-title {
font-size: 30rpx;
font-weight: 700;
color: #0a0a0b;
line-height: 1.35;
word-break: break-word;
}
.price-hint {
font-size: 24rpx;
color: #71717a;
font-weight: 500;
white-space: nowrap;
}
.btn-done,
.btn-stockout {
box-sizing: border-box;
padding: 0 16rpx;
height: 48rpx;
line-height: 44rpx;
border-radius: 999rpx;
font-size: 22rpx;
font-weight: 600;
text-align: center;
white-space: nowrap;
flex-shrink: 0;
}
.btn-done {
background: #059669;
color: #fff;
border: 2rpx solid #059669;
}
.btn-photo {
box-sizing: border-box;
padding: 0 16rpx;
height: 48rpx;
line-height: 44rpx;
border-radius: 999rpx;
font-size: 22rpx;
font-weight: 600;
text-align: center;
white-space: nowrap;
flex-shrink: 0;
background: #fff;
color: #0f766e;
border: 2rpx solid #0f766e;
}
.btn-stockout {
background: #fff;
color: #ef4444;
border: 2rpx solid #ef4444;
}
.btn-done.is-disabled,
.btn-stockout.is-disabled {
opacity: 0.45;
pointer-events: none;
}
.field-grid {
display: flex;
gap: 10rpx;
align-items: flex-end;
}
.field-block--unit {
flex: 0 0 150rpx;
max-width: 170rpx;
}
.field-block--num {
flex: 1 1 0;
min-width: 0;
}
.product-meta-line {
margin-top: 16rpx;
font-size: 22rpx;
color: #a1a1aa;
}
/* 独立类名,避免 addGlobalClass 被页面旧 .task-title/.input/.seg-tab 盖住 */
.ptp-seg-tab {
font-size: 28rpx !important;
}
.ptp-row-title {
font-size: 32rpx !important;
}
.ptp-row-unit {
font-size: 26rpx !important;
height: 56rpx !important;
min-height: 56rpx !important;
line-height: 52rpx !important;
box-sizing: border-box !important;
}
.ptp-row-input {
font-size: 16px !important;
height: 52rpx !important;
min-height: 0 !important;
}
.ptp-row-unit-tag {
font-size: 24rpx !important;
}
.ptp-row-btn {
font-size: 22rpx !important;
height: 48rpx !important;
line-height: 44rpx !important;
}
.ptp-archive-cell {
font-size: 30rpx !important;
}
.archive-tr--head .ptp-archive-cell {
font-size: 26rpx !important;
}