Web 验收弹窗与小程序验收面板新增「存放区域」,随批次写入 inventory.storage_zone;独立进货走同一段 INSERT 一并覆盖。 默认值 = 该商品上次入库区域(同 SKU 最近一批非空区域):后端列表接口带 last_storage_zone,只拼在带 LIMIT 的列表查询上,不并入计数类查询。 区域为自由文本、无独立表:Web 复用 /inventory/storage-zones 候选 + 输入即新增;小程序原生 picker + 末尾「+ 新增区域」。不新增前端文案。称重台/Android 不做。 测试:server/tests/inspectionStorageZone.test.ts(8 例)、src/utils/inspectionStorageZone.contract.test.ts(13 例);npm run typecheck 通过;last_zone 片段已对本地库实跑。
459 lines
6.7 KiB
Plaintext
459 lines
6.7 KiB
Plaintext
.inspection-page {
|
|
min-height: 100vh;
|
|
background: #fafafa;
|
|
padding-bottom: 40rpx;
|
|
}
|
|
|
|
.inspection-page.is-embedded {
|
|
min-height: 0;
|
|
background: transparent;
|
|
padding-bottom: calc(32rpx + env(safe-area-inset-bottom));
|
|
}
|
|
|
|
.inspection-page.is-embedded .list-sheet {
|
|
min-height: 0;
|
|
}
|
|
|
|
.inspection-page.is-embedded .filter-pills {
|
|
padding-top: 8rpx;
|
|
}
|
|
|
|
.kpi-card {
|
|
margin: 24rpx;
|
|
background: #047857;
|
|
border-radius: 24rpx;
|
|
padding: 28rpx 16rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
color: #fff;
|
|
}
|
|
|
|
.kpi-cell {
|
|
flex: 1;
|
|
text-align: center;
|
|
}
|
|
|
|
.kpi-num {
|
|
font-size: 40rpx;
|
|
font-weight: 700;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.kpi-label {
|
|
margin-top: 6rpx;
|
|
font-size: 22rpx;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.kpi-divider {
|
|
width: 1px;
|
|
height: 56rpx;
|
|
background: rgba(255, 255, 255, 0.25);
|
|
}
|
|
|
|
.filter-pills {
|
|
display: flex;
|
|
gap: 12rpx;
|
|
padding: 0 24rpx 16rpx;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.filter-pill {
|
|
padding: 12rpx 24rpx;
|
|
border-radius: 999rpx;
|
|
font-size: 24rpx;
|
|
color: #52525b;
|
|
background: #fff;
|
|
border: 1px solid #e4e4e7;
|
|
}
|
|
|
|
.filter-pill.on {
|
|
background: #059669;
|
|
color: #fff;
|
|
border-color: #059669;
|
|
}
|
|
|
|
.list-sheet {
|
|
margin: 0 24rpx;
|
|
background: #fff;
|
|
border: 1px solid #e4e4e7;
|
|
border-radius: 24rpx 24rpx 0 0;
|
|
padding: 24rpx 0 8rpx;
|
|
min-height: 60vh;
|
|
}
|
|
|
|
.sku-group {
|
|
margin-bottom: 4rpx;
|
|
}
|
|
|
|
.sku-group-head {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
margin: 0 16rpx 4rpx;
|
|
padding: 16rpx 18rpx;
|
|
border-radius: 16rpx;
|
|
background: #f4f4f5;
|
|
}
|
|
|
|
.sku-group-head.is-collapsed {
|
|
background: #ecfdf5;
|
|
}
|
|
|
|
.sku-group-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.sku-group-title {
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: #0a0a0b;
|
|
white-space: normal;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.sku-group-meta {
|
|
margin-top: 4rpx;
|
|
font-size: 22rpx;
|
|
color: #71717a;
|
|
}
|
|
|
|
.sku-group-chevron {
|
|
flex-shrink: 0;
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
color: #059669;
|
|
}
|
|
|
|
.batch-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12rpx;
|
|
padding: 0 24rpx 16rpx;
|
|
overflow: visible;
|
|
}
|
|
|
|
.batch-btn-wrap {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.batch-btn {
|
|
width: auto !important;
|
|
margin: 0;
|
|
padding: 0 20rpx;
|
|
font-size: 24rpx;
|
|
line-height: 2.1;
|
|
}
|
|
|
|
.cat-grid {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-shrink: 0;
|
|
border-top: 1px solid #64748b;
|
|
border-left: 1px solid #64748b;
|
|
background: #f7fdf8;
|
|
}
|
|
|
|
.cat-cell {
|
|
flex: 0 0 20%;
|
|
width: 20%;
|
|
min-width: 20%;
|
|
max-width: 20%;
|
|
box-sizing: border-box;
|
|
border-right: 1px solid #64748b;
|
|
border-bottom: 1px solid #64748b;
|
|
text-align: center;
|
|
padding: 6rpx 4rpx 8rpx;
|
|
}
|
|
|
|
.cat-cell.is-active {
|
|
background: #059669;
|
|
}
|
|
|
|
.cat-cell.is-active .cat-cell-name,
|
|
.cat-cell.is-active .cat-cell-count {
|
|
color: #fff;
|
|
}
|
|
|
|
.cat-cell-name {
|
|
font-size: 20rpx;
|
|
color: #334155;
|
|
line-height: 1.3;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.cat-cell-count {
|
|
margin-top: 2rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 700;
|
|
color: #0f172a;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.date-axis {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
padding: 0 24rpx 16rpx;
|
|
}
|
|
|
|
.date-chip {
|
|
padding: 10rpx 20rpx;
|
|
border-radius: 999rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
color: #475569;
|
|
background: #f1f5f9;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.date-axis .axis-pick {
|
|
background: #ecfdf5;
|
|
color: #047857;
|
|
}
|
|
|
|
.date-axis .date-pick {
|
|
padding: 10rpx 12rpx;
|
|
font-size: 22rpx;
|
|
}
|
|
|
|
.today-day-head {
|
|
margin: 8rpx 24rpx 0;
|
|
padding: 8rpx 4rpx 4rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 700;
|
|
color: #047857;
|
|
}
|
|
|
|
.xd-row-card {
|
|
margin: 0 16rpx 4rpx;
|
|
padding: 16rpx 8rpx 16rpx;
|
|
border-bottom: 1rpx solid #f1f5f9;
|
|
}
|
|
|
|
.card-r1,
|
|
.card-r2 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12rpx;
|
|
min-width: 0;
|
|
}
|
|
|
|
.card-r1 {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.card-r2 {
|
|
margin-top: 12rpx;
|
|
flex-wrap: nowrap;
|
|
}
|
|
|
|
.card-title-wrap {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: baseline;
|
|
gap: 8rpx;
|
|
}
|
|
|
|
.task-title {
|
|
font-size: 28rpx;
|
|
font-weight: 700;
|
|
color: #0a0a0b;
|
|
min-width: 4em;
|
|
flex: 1 1 auto;
|
|
white-space: normal;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.photo-hint {
|
|
flex-shrink: 0;
|
|
font-size: 20rpx;
|
|
font-weight: 600;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.photo-hint.need {
|
|
color: #b45309;
|
|
}
|
|
|
|
.photo-hint.skip {
|
|
color: #a1a1aa;
|
|
}
|
|
|
|
.photo-hint.independent {
|
|
color: #1d4ed8;
|
|
}
|
|
|
|
.task-meta {
|
|
flex-shrink: 0;
|
|
font-size: 22rpx;
|
|
color: #a1a1aa;
|
|
}
|
|
|
|
.btn-pass,
|
|
.btn-return {
|
|
flex-shrink: 0;
|
|
box-sizing: border-box;
|
|
padding: 0 18rpx;
|
|
height: 56rpx;
|
|
line-height: 52rpx;
|
|
text-align: center;
|
|
border-radius: 999rpx;
|
|
font-size: 22rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn-pass {
|
|
background: #059669;
|
|
color: #fff;
|
|
border: 2rpx solid #059669;
|
|
}
|
|
|
|
.btn-return {
|
|
background: #fff;
|
|
color: #ef4444;
|
|
border: 2rpx solid #ef4444;
|
|
}
|
|
|
|
.is-disabled {
|
|
opacity: 0.45;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.r2-photo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.photo-grid {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
gap: 6rpx;
|
|
max-width: 72rpx;
|
|
overflow: hidden;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.photo-thumb-wrap {
|
|
position: relative;
|
|
width: 56rpx;
|
|
height: 56rpx;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.photo-thumb {
|
|
width: 56rpx;
|
|
height: 56rpx;
|
|
border-radius: 12rpx;
|
|
background: #e4e4e7;
|
|
}
|
|
|
|
.photo-del {
|
|
position: absolute;
|
|
top: -6rpx;
|
|
right: -6rpx;
|
|
width: 28rpx;
|
|
height: 28rpx;
|
|
line-height: 24rpx;
|
|
text-align: center;
|
|
border-radius: 50%;
|
|
background: rgba(24, 24, 27, 0.78);
|
|
color: #fff;
|
|
font-size: 20rpx;
|
|
}
|
|
|
|
.btn-photo {
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 112rpx;
|
|
height: 56rpx;
|
|
padding: 0;
|
|
margin: 0;
|
|
line-height: 1;
|
|
text-align: center;
|
|
border-radius: 12rpx;
|
|
background: #fff;
|
|
color: #059669;
|
|
border: 2rpx solid #059669;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.r2-field {
|
|
flex: 1;
|
|
min-width: 0;
|
|
height: 56rpx;
|
|
border-radius: 12rpx;
|
|
background: #f4f4f5;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.r2-picker {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.qty-input {
|
|
width: 100%;
|
|
height: 56rpx;
|
|
padding: 0 16rpx;
|
|
box-sizing: border-box;
|
|
border: none;
|
|
background: transparent;
|
|
font-size: 26rpx;
|
|
font-weight: 600;
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: center;
|
|
}
|
|
|
|
.rate-pick {
|
|
height: 56rpx;
|
|
line-height: 56rpx;
|
|
padding: 0 12rpx;
|
|
text-align: center;
|
|
font-size: 24rpx;
|
|
font-weight: 600;
|
|
color: #18181b;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.rate-pick.is-empty {
|
|
color: #a1a1aa;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.ai-verdict {
|
|
flex-shrink: 0;
|
|
font-size: 20rpx;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
}
|
|
|
|
.ai-verdict.ok {
|
|
color: #047857;
|
|
}
|
|
|
|
.ai-verdict.fail {
|
|
color: #dc2626;
|
|
}
|
|
|
|
.ai-verdict.warn,
|
|
.ai-verdict.pending {
|
|
color: #b45309;
|
|
font-weight: 600;
|
|
}
|