Files
SupplierSystem/miniprogram/components/preparation-panel/index.wxss
T
Ubuntu deb3e72750
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
chore: 以 AI 生鲜配送系统 当前版本作为 SupplierSystem 起点
来源仓库:jxc/ai-fresh-delivery
来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d
快照树:  09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件)

按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据
(生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、
deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值),
整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。
供应商系统后续开发自本提交开始。
2026-10-08 17:35:43 +08:00

723 lines
14 KiB
Plaintext

.preparation-panel {
box-sizing: border-box;
min-height: 100vh;
padding: 24rpx;
background: #fafafa;
}
.preparation-panel.is-embedded {
min-height: 0;
background: transparent;
}
.hero-card {
background: #fff;
border-radius: 24rpx;
padding: 28rpx 32rpx;
border: 1px solid #e4e4e7;
margin-bottom: 20rpx;
}
.hero-main {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16rpx;
}
.hero-col {
display: flex;
flex-direction: column;
gap: 8rpx;
min-width: 0;
}
.hero-col--end {
flex-shrink: 0;
align-items: flex-end;
text-align: right;
}
.hero-label,
.hero-status-label {
font-size: 24rpx;
color: #a1a1aa;
line-height: 1.2;
}
.hero-date {
font-size: 36rpx;
font-weight: 700;
color: #0a0a0b;
line-height: 1.25;
}
.hero-progress {
font-size: 36rpx;
font-weight: 700;
color: #059669;
line-height: 1.25;
font-variant-numeric: tabular-nums;
}
.action-row {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
margin-bottom: 20rpx;
}
.action-pill {
flex: 1 1 calc(50% - 8rpx);
min-width: calc(50% - 8rpx);
display: flex;
align-items: center;
justify-content: center;
gap: 10rpx;
padding: 22rpx 20rpx;
border-radius: 999rpx;
background: #fff;
border: 1px solid #e4e4e7;
color: #52525b;
font-size: 28rpx;
font-weight: 500;
box-sizing: border-box;
}
.action-pill--on {
border-color: #059669;
color: #059669;
background: #ecfdf5;
}
.action-pill-icon {
font-size: 28rpx;
line-height: 1;
}
.action-pill-icon--history {
color: #059669;
}
.action-pill-icon--amend {
color: #f59e0b;
}
.hint-banner {
margin-bottom: 16rpx;
padding: 16rpx 20rpx;
border-radius: 16rpx;
background: #fff;
border: 1px solid #e4e4e7;
color: #52525b;
font-size: 26rpx;
line-height: 1.45;
}
.archive-panel {
background: #fff;
border-radius: 24rpx;
padding: 24rpx;
margin-bottom: 20rpx;
border: 1px solid #e4e4e7;
}
.period-row { display: flex; flex-wrap: wrap; gap: 10rpx; margin-bottom: 12rpx; }
.period-chip {
padding: 6rpx 16rpx;
border-radius: 999rpx;
font-size: 20rpx;
line-height: 1.3;
color: #52525b;
background: #fafafa;
border: 1px solid #e4e4e7;
}
.period-chip.active { background: #ecfdf5; border-color: #059669; color: #047857; }
.range-row {
display: flex;
flex-direction: row;
align-items: center;
gap: 12rpx;
flex-wrap: nowrap;
}
.range-row picker {
flex: 1;
min-width: 0;
width: 0;
}
.range-picker {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 8rpx;
padding: 14rpx 20rpx;
border: 1px solid #e4e4e7;
border-radius: 999rpx;
background: #fff;
box-sizing: border-box;
min-height: 64rpx;
}
.range-label { font-size: 20rpx; color: #a1a1aa; line-height: 1.4; flex-shrink: 0; }
.range-value {
font-size: 22rpx;
font-weight: 600;
color: #0a0a0b;
line-height: 1.4;
white-space: nowrap;
}
.range-sep { font-size: 20rpx; color: #a1a1aa; flex-shrink: 0; }
.archive-toolbar {
margin-top: 12rpx;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12rpx;
}
.period-summary {
flex: 1;
min-width: 0;
font-size: 22rpx;
color: #52525b;
line-height: 1.4;
}
.period-count { color: #059669; }
.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;
}
.state-error {
margin: 12rpx 0;
padding: 16rpx 20rpx;
border-radius: 16rpx;
background: #fef2f2;
color: #ef4444;
font-size: 28rpx;
}
.state-muted,
.state-empty {
margin: 40rpx 0;
text-align: center;
color: #a1a1aa;
font-size: 28rpx;
}
.empty-hint { margin-top: 12rpx; font-size: 26rpx; line-height: 1.45; color: #a1a1aa; }
.day-group { margin-bottom: 8rpx; }
.day-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12rpx 8rpx 16rpx;
}
.day-header-main { display: flex; align-items: center; gap: 12rpx; }
.day-chevron { font-size: 24rpx; color: #a1a1aa; width: 28rpx; }
.day-title { font-size: 30rpx; font-weight: 600; color: #0a0a0b; }
.day-sub { font-size: 24rpx; color: #a1a1aa; margin-top: 4rpx; }
.day-header-side { display: flex; align-items: center; gap: 12rpx; }
.day-total-amount { font-size: 28rpx; font-weight: 700; color: #0a0a0b; }
.day-badge {
font-size: 24rpx;
color: #52525b;
background: #fff;
border: 1px solid #e4e4e7;
padding: 6rpx 16rpx;
border-radius: 999rpx;
}
.archive-table {
margin-bottom: 16rpx;
border: 1px solid #e4e4e7;
border-radius: 20rpx;
overflow: hidden;
background: #fff;
}
.archive-tr {
display: flex;
align-items: center;
padding: 20rpx 16rpx;
border-top: 1px solid #e4e4e7;
}
.archive-tr--head {
border-top: none;
background: #fafafa;
padding: 16rpx;
}
.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-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; }
.day-items { display: flex; flex-direction: column; gap: 20rpx; }
.task-card {
background: #fff;
border-radius: 24rpx;
padding: 28rpx 28rpx 24rpx;
border: 1px solid #e4e4e7;
}
.task-card--amend {
border-radius: 12rpx;
padding: 10rpx 12rpx;
}
.amend-row {
display: flex;
flex-wrap: nowrap;
align-items: center;
gap: 6rpx;
min-width: 0;
}
.amend-row picker {
flex-shrink: 0;
}
.amend-row-name {
flex: 1 1 200rpx;
min-width: 160rpx;
}
.amend-row-name .task-title {
display: block;
font-size: 24rpx;
line-height: 1.35;
white-space: normal;
word-break: break-word;
}
.amend-row .unit-picker--row {
height: 40rpx;
padding: 0 8rpx;
font-size: 20rpx;
min-width: 0;
line-height: 40rpx;
}
.amend-row-num {
flex: 0 0 96rpx;
width: 96rpx;
min-width: 0;
height: 40rpx;
padding: 0 4rpx 0 8rpx;
border-radius: 10rpx;
}
.amend-row-num--price {
flex: 0 0 144rpx;
width: 144rpx;
}
.amend-row-num .input {
height: 40rpx;
line-height: 40rpx;
font-size: 22rpx;
}
.amend-row-num .unit-tag {
padding: 0 8rpx;
font-size: 18rpx;
}
.btn-amend--row {
flex: 0 0 auto;
width: auto;
max-width: none;
height: 40rpx;
line-height: 40rpx;
padding: 0 12rpx;
font-size: 20rpx;
border-radius: 999rpx;
}
.task-card--amend .status-line {
margin-top: 8rpx;
font-size: 22rpx;
}
.task-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12rpx;
margin-bottom: 20rpx;
}
.task-head-left {
flex: 1;
min-width: 0;
padding-left: 4rpx;
text-align: left;
}
.task-title-row {
display: flex;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
gap: 10rpx;
}
.task-title {
font-size: 30rpx;
font-weight: 700;
color: #0a0a0b;
line-height: 1.35;
word-break: break-word;
}
.task-remark {
font-size: 24rpx;
font-weight: 700;
color: #0a0a0b;
line-height: 1.35;
word-break: break-word;
text-align: right;
}
.processing-tag {
display: inline-flex;
padding: 4rpx 12rpx;
border-radius: 26rpx;
background: #fff7ed;
color: #c2410c;
font-size: 20rpx;
font-weight: 600;
white-space: nowrap;
}
.price-hint {
font-size: 24rpx;
color: #52525b;
font-weight: 500;
white-space: nowrap;
margin-left: 4rpx;
}
.task-head-actions {
flex-shrink: 0;
display: flex;
align-items: center;
gap: 16rpx;
}
.head-hint { font-size: 24rpx; color: #a1a1aa; white-space: nowrap; }
.btn-done,
.btn-stockout,
.btn-done--static {
box-sizing: border-box;
padding: 0 22rpx;
height: 56rpx;
line-height: 52rpx;
border-radius: 999rpx;
font-size: 24rpx;
font-weight: 600;
text-align: center;
white-space: nowrap;
}
.btn-done,
.btn-done--static {
background: #059669;
color: #fff;
border: 2rpx solid #059669;
}
.btn-done--static {
opacity: 0.85;
pointer-events: none;
}
.btn-stockout {
background: #fff;
color: #ef4444;
border: 2rpx solid #ef4444;
margin-left: auto;
}
.btn-report {
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;
background: #fff;
color: #0369a1;
border: 2rpx solid #0369a1;
}
.btn-report.is-covered {
background: #0369a1;
color: #fff;
}
.btn-report.is-expired {
background: #fff;
color: #dc2626;
border-color: #dc2626;
}
.is-disabled {
opacity: 0.45;
pointer-events: none;
}
.field-grid {
display: flex;
gap: 14rpx;
align-items: stretch;
}
.field-block { flex: 1 1 0; min-width: 0; }
.field-block--unit { flex: 0 0 150rpx; max-width: 170rpx; }
.input-with-unit,
.unit-picker {
box-sizing: border-box;
height: 76rpx;
border-radius: 16rpx;
background: #f4f4f5;
border: none;
}
.input-with-unit {
display: flex;
align-items: center;
overflow: hidden;
padding: 0 4rpx 0 16rpx;
}
.input {
flex: 1;
min-width: 0;
width: 100%;
height: 76rpx;
line-height: 76rpx;
padding: 0;
font-size: 30rpx;
font-weight: 600;
color: #0a0a0b;
border: none;
background: transparent;
font-variant-numeric: tabular-nums;
}
.unit-tag {
padding: 0 14rpx;
font-size: 26rpx;
color: #a1a1aa;
white-space: nowrap;
flex-shrink: 0;
}
.unit-picker {
display: flex;
align-items: center;
justify-content: center;
padding: 0 8rpx;
font-size: 28rpx;
font-weight: 600;
color: #0a0a0b;
}
.done-summary {
font-size: 26rpx;
color: #a1a1aa;
padding-top: 4rpx;
}
.status-line {
margin-top: 12rpx;
font-size: 26rpx;
color: #52525b;
line-height: 1.4;
}
.amend-actions { margin-top: 16rpx; }
.btn-amend {
box-sizing: border-box;
width: 100%;
height: 72rpx;
line-height: 72rpx;
text-align: center;
background: #059669;
color: #fff;
border-radius: 20rpx;
font-size: 28rpx;
font-weight: 600;
}
.amend-row .btn-amend {
flex: 0 0 auto;
width: auto;
min-width: 72rpx;
height: 36rpx;
line-height: 36rpx;
padding: 0 10rpx;
font-size: 18rpx;
border-radius: 999rpx;
}
.text-error { color: #ef4444; }
.text-warn { color: #f59e0b; }
.bottom-bar-slot {
height: calc(148rpx + env(safe-area-inset-bottom));
flex-shrink: 0;
}
.bottom-bar-slot--embedded {
height: 148rpx;
}
.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: #ffffff;
border-top: 1px solid #e4e4e7;
box-sizing: border-box;
}
.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;
line-height: 1.2;
font-variant-numeric: tabular-nums;
}
.bottom-done-hint {
margin-top: 4rpx;
font-size: 24rpx;
font-weight: 600;
color: #059669;
}
.bottom-submit {
flex-shrink: 0;
box-sizing: border-box;
padding: 0 36rpx;
height: 88rpx;
line-height: 88rpx;
border-radius: 20rpx;
background: #059669;
color: #fff;
font-size: 28rpx;
font-weight: 700;
text-align: center;
}
.bottom-bar--embedded {
bottom: calc(120rpx + env(safe-area-inset-bottom));
z-index: 99;
padding-bottom: 20rpx;
}
.report-sheet-mask {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.45);
z-index: 10000;
display: flex;
align-items: flex-end;
justify-content: center;
}
.report-sheet {
width: 100%;
max-height: 78vh;
background: #fff;
border-radius: 24rpx 24rpx 0 0;
padding: 32rpx 28rpx calc(32rpx + env(safe-area-inset-bottom));
box-sizing: border-box;
display: flex;
flex-direction: column;
}
.report-sheet--embedded {
padding-bottom: calc(32rpx + 120rpx + env(safe-area-inset-bottom));
}
.report-sheet-title {
font-size: 32rpx;
font-weight: 700;
color: #0a0a0b;
}
.report-sheet-meta {
margin-top: 8rpx;
font-size: 24rpx;
color: #52525b;
}
.report-sheet-meta.is-expired {
color: #dc2626;
}
.report-sheet-files {
display: flex;
flex-wrap: wrap;
gap: 12rpx;
margin-top: 20rpx;
}
.report-sheet-file {
width: 120rpx;
height: 120rpx;
border-radius: 12rpx;
overflow: hidden;
border: 1rpx solid #e4e4e7;
background: #f4f4f5;
}
.report-sheet-thumb {
width: 120rpx;
height: 120rpx;
}
.report-sheet-pdf {
width: 120rpx;
height: 120rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 24rpx;
font-weight: 700;
color: #3f3f46;
}
.report-sheet-list {
margin-top: 20rpx;
max-height: 48vh;
}
.report-sheet-row {
display: flex;
align-items: center;
gap: 16rpx;
padding: 18rpx 0;
border-bottom: 1rpx solid #f4f4f5;
}
.report-sheet-check {
width: 36rpx;
height: 36rpx;
border-radius: 8rpx;
border: 2rpx solid #d4d4d8;
box-sizing: border-box;
flex-shrink: 0;
}
.report-sheet-check.is-on {
background: #059669;
border-color: #059669;
}
.report-sheet-name {
font-size: 28rpx;
color: #0a0a0b;
}
.report-sheet-actions {
display: flex;
gap: 16rpx;
margin-top: 24rpx;
}
.report-sheet-btn {
flex: 1;
height: 80rpx;
line-height: 80rpx;
text-align: center;
border-radius: 16rpx;
font-size: 28rpx;
font-weight: 600;
background: #f4f4f5;
color: #3f3f46;
}
.report-sheet-btn--ok {
background: #059669;
color: #fff;
}